/* ============================================================
   LAYOUT.CSS - Site header, navigation, footer, newsletter
   ============================================================ */

/* ---- Google Fonts import ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400;1,500&family=Source+Serif+4:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- Site Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #F5FFF0;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---- Logo ---- */


.logo img{
  width: 150px;
}


/* ---- Main Nav ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #191919;
  padding: 10px 14px;
  border-radius: 3px;
  position: relative;
}

.main-nav a:hover {
  color: #77BD43;
}

.main-nav a.active {
  color: #77BD43;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: #77BD43;
}

/* ---- Header Actions (cart) ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid #191919;
  color: #191919;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 3px;
  cursor: pointer;
}

.cart-btn:hover {
  border-color: #77BD43;
  color: #77BD43;
}

.cart-count {
  background: #77BD43;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---- Hamburger toggle (mobile) ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: #191919;
  display: block;
}

/* ---- Newsletter Band ---- */
.newsletter-band {
  background: #191919;
  color: #F5FFF0;
  padding: 56px 0;
}

.newsletter-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.newsletter-grid h2 {
  color: #fff;
  margin-bottom: 6px;
  font-size: 28px;
}

.newsletter-grid p {
  color: #cfcfcf;
  margin: 0;
  max-width: 42ch;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter-form input[type=email] {
  width: 240px;
  background: #1f1f1f;
  border-color: #3a3a3a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  padding: 11px 13px;
  border: 1.5px solid #3a3a3a;
  border-radius: 3px;
}

.freq-group {
  display: flex;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #cfcfcf;
  align-items: center;
}

.freq-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cfcfcf;
  font-weight: 500;
  margin: 0;
}

/* ---- Site Footer ---- */
.site-footer {
  background: #DFF2CC;
  padding-top: 54px;

}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand {
  flex: 1 1 260px;
}

.footer-brand p {
  font-size: 14px;
  color: #2A2A2A;
  max-width: 32ch;
  margin-top: 12px;
}

.footer-col {
  flex: 1 1 150px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #191919;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: #2A2A2A;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #77BD43;
}

.footer-bottom {
  border-top: 1px solid rgba(18,18,18,0.14);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: #777;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Social circles ---- */
.social-row {
  display: flex;
  gap: 10px;
}

.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #191919;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #191919;
  cursor: pointer;
}

.social-circle:hover {
  background: #77BD43;
  border-color: #77BD43;
  color: #fff;
}

.footer-bottom .social-row {
  margin-top: 0;
}

.footer-bottom .social-circle {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

/* ---- Cart Drawer ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,18,18,0.45);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: #F5FFF0;
  z-index: 90;
  box-shadow: -12px 0 30px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(18,18,18,0.14);
}

.cart-head h2 {
  margin: 0;
  font-size: 22px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  text-align: center;
  color: #777;
  font-family: 'Inter', sans-serif;
  padding: 60px 20px;
}

.cart-empty a {
  color: #77BD43;
  font-weight: 700;
}

.cart-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cart-line .mini-cover {
  width: 48px;
  height: 64px;
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  padding: 4px;
}

.cart-line-info {
  flex: 1;
}

.cart-line-info h4 {
  font-size: 14.5px;
  margin: 0 0 4px;
  color: #191919;
}

.cart-line-price {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #77BD43;
  font-weight: 700;
}

.cart-line-remove {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  display: inline-block;
  cursor: pointer;
}

.cart-line-remove:hover {
  color: #77BD43;
}

.cart-foot {
  border-top: 1px solid rgba(18,18,18,0.14);
  padding: 20px 24px 26px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.cart-note {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: #888;
  margin-top: 10px;
  text-align: center;
}

/* ---- Checkout Modal ---- */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 520px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  background: #F5FFF0;
  z-index: 95;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(18,18,18,0.10);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(18,18,18,0.14);
}

.modal-head h2 {
  margin: 0;
  font-size: 21px;
}

.modal-body {
  padding: 24px 26px 28px;
}

/* ---- Responsive layout ---- */
@media (max-width: 680px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 78vw;
    max-width: 320px;
    background: #F5FFF0;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s;
    box-shadow: -10px 0 24px rgba(0,0,0,0.15);
    z-index: 70;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(18,18,18,0.08);
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .newsletter-form input[type=email] {
    width: 100%;
  }
}
