/* Green Leaf Store - clean compatibility version */

html,
body,
header,
main,
footer,
section,
article,
nav,
div,
form,
label,
input,
select,
textarea,
button,
a,
img,
video,
dialog,
p,
h1,
h2,
h3,
span{
  box-sizing:border-box;
}

body{
  margin:0;
  color:#111;
  background:#fff;
  font-family:Arial,Helvetica,sans-serif;
  font-size:15px;
  line-height:1.6;
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  border:0;
  cursor:pointer;
}

button:disabled{
  opacity:.5;
  cursor:not-allowed;
}

a{
  color:inherit;
  text-decoration:none;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus{
  outline:3px solid #72b8e6;
  outline-offset:3px;
}

h1,
h2,
h3,
p{
  margin-top:0;
}

h1,
h2{
  font-family:Georgia,serif;
  font-weight:400;
  line-height:1.08;
}

h1{
  font-size:72px;
  letter-spacing:-3px;
  margin-bottom:0;
}

h1 em{
  color:#16864b;
  font-weight:400;
}

h2{
  font-size:42px;
  letter-spacing:-1px;
}

h3{
  line-height:1.3;
}

img,
video{
  max-width:100%;
  display:block;
}


/* ANNOUNCEMENT */

.announcement{
  background:#16864b;
  color:white;
  text-align:center;
  padding:7px 20px;
  font-size:11px;
  letter-spacing:1.4px;
}

.announcement span{
  margin-left:50px;
  opacity:.75;
}


/* HEADER */

.header{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 5%;
  background:rgba(255,255,255,.93);
  border-bottom:1px solid #dfe5dd;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:17px;
  letter-spacing:2px;
  font-weight:bold;
}

.brand img{
  width:55px;
  height:55px;
  object-fit:contain;
  border-radius:50%;
}

.brand small{
  display:block;
  font-size:8px;
  letter-spacing:2.6px;
  color:#687268;
}

nav{
  display:flex;
  gap:32px;
  font-size:13px;
}

nav a:hover{
  color:#16864b;
}

.cart-button{
  background:none;
  border:1px solid #dfe5dd;
  border-radius:30px;
  padding:8px 16px;
}

.cart-button span{
  background:#16864b;
  color:white;
  padding:3px 7px;
  border-radius:50%;
  margin-left:10px;
  font-size:11px;
}


/* INTRO */

.intro{
  padding:64px 6% 38px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
}

.eyebrow{
  font-size:10px;
  letter-spacing:2.6px;
  font-weight:bold;
  color:#16864b;
  margin-bottom:18px;
}

.intro-copy{
  padding-bottom:10px;
  font-size:15px;
  color:#687268;
}

.text-link{
  color:#16864b;
  background:none;
  border-bottom:1px solid #16864b;
  padding:3px 0;
  font-weight:600;
}


/* PROMO VIDEOS */

.promos{
  padding:0 6% 50px;
}

.promo-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.video-card{
  position:relative;
  height:420px;
  border-radius:14px;
  overflow:hidden;
  background:#e6ece2;
}

.video-card video{
  width:100%;
  height:100%;
  object-fit:cover;
}

.video-card .caption{
  position:absolute;
  left:18px;
  bottom:16px;
  color:#fff;
  text-shadow:0 1px 10px #000;
  pointer-events:none;
}

.demo-video{
  min-height:420px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  padding:25px;
  background:#173e29;
  color:#fff;
}

.demo-video:nth-child(2){
  background:#839f72;
}

.demo-video:nth-child(3){
  background:#121c17;
}

.demo-video:nth-child(4){
  background:#758e6e;
}

.demo-video .play{
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  height:45px;
  width:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:auto;
}

.demo-video h3{
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
  margin-bottom:5px;
}

.demo-video small{
  opacity:.7;
  font-size:10px;
  letter-spacing:1px;
}


/* RIBBON */

.ribbon{
  background:#f0f4ec;
  display:flex;
  justify-content:space-around;
  gap:20px;
  padding:15px;
  font-size:10px;
  letter-spacing:2px;
  color:#416142;
  overflow:hidden;
  white-space:nowrap;
}


/* SECTIONS */

.section{
  padding:65px 6%;
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:30px;
}

.section-title h2{
  margin-bottom:0;
}

.section-title .eyebrow{
  margin-bottom:12px;
}

.muted{
  color:#687268;
  font-size:13px;
}


/* BUNDLES */

.bundle{
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:20px;
  padding:12px;
  margin-bottom:28px;
  background:#f4f6f0;
  border-radius:14px;
  align-items:flex-start;
}

.bundle:nth-child(even){
  background:#e9efe6;
}

.bundle .media-view{
  width:100%;
  height:auto;
  background:transparent;
}

.bundle .media-view img{
  width:100%;
  height:auto;
  display:block;
}

.bundle .media-view video{
  width:100%;
  height:auto;
  display:block;
}
@media (min-width:769px){
  .bundle .media-view{
    aspect-ratio:1 / 1;
    overflow:hidden;
  }

  .bundle .media-view img,
  .bundle .media-view video{
    width:100%;
    height:100%;
    object-fit:contain;
  }
}

.bundle h3{
  font-family:Georgia,serif;
  font-size:36px;
  font-weight:400;
}

.bundle-description{
  max-width:520px;
  color:#687268;
}

/* PRICE + BUTTONS */

.price{
  font-size:20px;
  font-weight:600;
  margin:14px 0;
}

.price del{
  color:#687268;
  font-size:13px;
  margin-left:10px;
  font-weight:400;
}

.button{
  display:inline-block;
  border:1px solid #16864b;
  background:#16864b;
  color:white;
  padding:13px 22px;
  border-radius:5px;
  font-size:13px;
  font-weight:600;
  text-align:center;
}

.button:hover{
  background:#116839;
}

.button.secondary{
  background:transparent;
  color:#16864b;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}


/* PRODUCTS */

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.product-card .media-view{
  height:270px;
  background:#f0f3ee;
  border-radius:10px;
  overflow:hidden;
}

.product-card h3{
  margin:17px 0 7px;
  font-size:17px;
}

.product-card .price{
  font-size:16px;
}

.product-card .actions button{
  flex:1;
  padding:10px;
}

.product-title{
  background:none;
  padding:0;
  text-align:left;
  color:#111;
  font-weight:bold;
}


/* MEDIA */

.media-view{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.media-view img,
.media-view video{
  width:100%;
  height:100%;
  object-fit:contain;
}

.media-view .arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border-radius:50%;
  height:36px;
  width:36px;
  background:rgba(255,255,255,.92);
  box-shadow:0 1px 10px rgba(0,0,0,.08);
  font-size:18px;
  z-index:2;
}

.prev{
  left:8px;
}

.next{
  right:8px;
}

.media-count{
  position:absolute;
  bottom:8px;
  right:12px;
  background:rgba(255,255,255,.88);
  padding:2px 7px;
  border-radius:20px;
  font-size:10px;
}


/* BUNDLE IMAGE FIX */

.bundle .media-view{
  display:block;
  width:100%;
  height:auto;
  background:transparent;
  border-radius:10px;
}

.bundle .media-view img{
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain;
}

.bundle .media-view video{
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain;
}


/* BADGES */

.badge{
  display:inline-block;
  border:1px solid #cee0cd;
  background:#eef6eb;
  color:#345f37;
  font-size:10px;
  padding:3px 8px;
  border-radius:3px;
  margin-bottom:8px;
}

.sold{
  color:#94412d;
  background:#fcece5;
  border-color:#f1d8cc;
}


/* GALLERY */

.tinted{
  background:#f5f7f3;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.gallery-card{
  border:1px solid #dfe5dd;
  border-radius:12px;
  overflow:hidden;
}

.gallery-card img,
.gallery-card video{
  width:100%;
  height:230px;
  object-fit:cover;
}

.gallery-card p{
  padding:15px;
  margin:0;
}

.empty-state{
  padding:45px;
  border:1px dashed #c9d6c5;
  border-radius:12px;
  color:#687268;
  grid-column:1/-1;
  text-align:center;
}


/* CONTACT */

.contact-strip{
  margin:20px 6% 60px;
  padding:40px;
  background:#16864b;
  color:white;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.contact-strip h2{
  font-size:33px;
  margin:0;
}

.contact-strip .button{
  background:white;
  color:#16864b;
  white-space:nowrap;
}


/* FOOTER */

footer{
  background:#111b15;
  color:#dbe4da;
  padding:55px 6% 20px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:35px;
}

footer h2{
  font-size:48px;
  margin-bottom:15px;
}

footer h3{
  font-size:12px;
  letter-spacing:1px;
}

footer a{
  display:block;
  font-size:13px;
  margin-bottom:9px;
}

footer p{
  color:#9caf9f;
  font-size:13px;
}

.copyright{
  grid-column:1/-1;
  border-top:1px solid #2a352b;
  padding-top:22px;
  font-size:11px;
}


/* MISC */

.notice{
  padding:14px 6%;
  background:#fff5d9;
  color:#655329;
}

.preserve{
  white-space:pre-wrap;
}

.wide{
  width:100%;
  margin-top:12px;
}


/* DIALOG */

dialog{
  border:0;
  border-radius:14px;
  padding:35px;
  width:94vw;
  max-width:850px;
  max-height:90vh;
  overflow:auto;
  box-shadow:0 20px 100px rgba(0,0,0,.25);
}

dialog h2{
  font-size:34px;
  padding-right:25px;
}

.close{
  position:absolute;
  right:15px;
  top:10px;
  font-size:28px;
  background:none;
  color:#333;
}


/* PRODUCT DETAIL */

#product-dialog{
  width:96vw;
  max-width:1200px;
}

.detail-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:42px;
  align-items:flex-start;
}

.detail-grid .media-view{
  width:100%;
  height:auto;
  background:transparent;
  border-radius:10px;
}

.detail-grid .media-view img{
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain;
}

.detail-grid .media-view video{
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain;
}


/* FORMS */

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

label{
  display:block;
  font-size:12px;
  color:#506050;
}

input,
select,
textarea{
  width:100%;
  padding:11px;
  border:1px solid #ccd7cb;
  background:white;
  border-radius:5px;
  margin:5px 0 10px;
  color:#111;
}

textarea{
  min-height:90px;
  resize:vertical;
}

.full{
  grid-column:1/-1;
}

.payment-box{
  background:#f4f6f0;
  padding:18px;
  margin-bottom:18px;
  white-space:pre-wrap;
}

.total{
  font-size:22px;
  font-weight:bold;
}

.form-error{
  color:#a23126;
}


/* CART */

.cart-line{
  display:grid;
  grid-template-columns:1fr 85px auto;
  gap:15px;
  align-items:center;
  border-bottom:1px solid #dfe5dd;
  padding:14px 0;
}

.cart-line input{
  margin:0;
}

.cart-line button{
  background:none;
  color:#8a342b;
}

.summary-line{
  display:flex;
  justify-content:space-between;
  margin:10px 0;
}


/* TOAST */

#toast{
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  max-width:90vw;
  background:#172b1c;
  color:white;
  border-radius:8px;
  padding:14px 22px;
  z-index:99;
  box-shadow:0 5px 25px rgba(0,0,0,.2);
}


/* ANIMATION */

.section,
.intro{
  animation:rise .6s ease both;
}

@keyframes rise{

  from{
    opacity:.3;
    transform:translateY(12px);
  }

  to{
    opacity:1;
    transform:none;
  }

}


/* TABLET */

@media(max-width:900px){

  h1{
    font-size:56px;
  }

  h2{
    font-size:36px;
  }

  .product-grid{
    grid-template-columns:repeat(2,1fr);
  }

  nav{
    gap:14px;
  }

  .bundle{
    grid-template-columns:1fr 1fr;
    gap:25px;
    padding:20px;
  }

  .intro-copy{
    max-width:230px;
  }

  .promo-grid{
    gap:10px;
  }

  .demo-video{
    padding:18px;
  }

  .demo-video h3{
    font-size:22px;
  }

  .detail-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

}


/* MOBILE */

@media(max-width:600px){

  .announcement span{
    display:none;
  }

  .brand span{
    font-size:12px;
  }

  .brand small{
    font-size:7px;
  }

  .brand img{
    width:42px;
    height:42px;
  }

  nav{
    display:none;
  }

  .intro{
    display:block;
    padding-top:38px;
  }

  .intro-copy{
    margin-top:25px;
    max-width:none;
  }

  h1{
    font-size:46px;
    letter-spacing:-2px;
  }

  h2{
    font-size:30px;
  }

  .promo-grid{
    display:flex;
    overflow-x:auto;
    padding-bottom:8px;
  }

  .promo-grid > div,
  .promo-grid > article{
    min-width:68%;
  }

  .section{
    padding:40px 5%;
  }

  .section-title{
    align-items:flex-start;
    flex-direction:column;
  }

  .bundle{
    grid-template-columns:1fr;
    padding:14px;
    gap:18px;
  }

  .bundle .media-view{
    width:100%;
    height:auto;
  }

  .bundle .media-view img{
    width:100%;
    height:auto;
  }

  .bundle h3{
    font-size:29px;
  }

  .product-grid{
    gap:13px;
  }

  .product-card .media-view{
    height:200px;
  }

  .product-card .actions{
    display:block;
  }

  .product-card .actions button{
    width:100%;
    margin-top:6px;
  }

  .gallery-grid{
    grid-template-columns:1fr;
  }

  .contact-strip{
    flex-direction:column;
    align-items:flex-start;
    padding:25px;
  }

  footer{
    grid-template-columns:1fr 1fr;
  }

  .footer-brand{
    grid-column:1/-1;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  #product-dialog{
    width:96vw;
    padding:20px 14px;
  }

  dialog{
    padding:28px 20px;
  }

  .cart-line{
    grid-template-columns:1fr 65px auto;
    gap:8px;
  }

}
