/* ==========================================================================
   Greenshaala - store.css  (Nov 2026 redesign)
   Storefront: header, home, listings, product page, cart, checkout, account.
   ========================================================================== */

/* ---------- top bar + header -------------------------------------------- */
.topbar { background: var(--green-900); color: #dbeadf; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar i { color: #8fd3a8; margin-right: 6px; }

.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--green-900); letter-spacing: -.01em; }
.brand-name b { color: var(--green-500); font-weight: 600; }
.nav-toggle { display: none; }
.menubar-head { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links > li > a:hover, .nav-links > li > a.active { background: var(--green-50); color: var(--green-700); }
.nav-links .fa-chevron-down { font-size: .65rem; transition: transform .2s; }
.has-dropdown:hover .fa-chevron-down { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 6px 26px;
  width: max-content; max-width: min(760px, 92vw); padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-col { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.dropdown-col a { color: var(--muted); font-size: .9rem; padding: 3px 0; }
.dropdown-col a:hover { color: var(--green-700); }
.dropdown-col .dropdown-title { color: var(--ink); font-weight: 700; font-size: .95rem; margin-bottom: 2px; }

.header-search { position: relative; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.header-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }
.header-search input { padding-left: 42px; border-radius: 999px; background: var(--green-50); border-color: transparent; }
.header-search input:focus { background: #fff; }
#search-list {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 950;
  max-height: 380px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
#search-list ul { padding: 6px; }
#search-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: .92rem; color: var(--ink); }
#search-list li:hover { background: var(--green-50); }
#search-list img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
#search-list ul:empty::after { content: "No products found"; display: block; padding: 12px; color: var(--muted); font-size: .9rem; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-login { min-height: 42px; padding: 8px 16px; }
.cart-display { cursor: pointer; background: var(--green-700); border-color: var(--green-700); color: #fff; }
.cart-display:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.cart-display .cart-box {
  position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1;
}
.cart-animate { animation: cart-bump .5s ease; }
@keyframes cart-bump { 30% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(.92); } }
.nav-overlay { display: none; }

/* ---------- cart drawer -------------------------------------------------- */
.shopping-cart-box {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
  width: min(430px, 100vw); background: #fff;
  box-shadow: 0 0 0 100vmax rgba(12, 42, 31, .45), var(--shadow-lg);
  flex-direction: column;
}
.cart_top_bar { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart_top_bar #cart-info1 { flex: 1; }
.cart_top_bar h3 { font-family: var(--font-head); font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.cart_top_bar h3 i { color: var(--green-600); font-size: 1.05rem; }
#clear-cart a { font-size: .84rem; font-weight: 600; color: var(--muted); padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; }
#clear-cart a:hover { color: var(--danger); border-color: var(--danger); }
#close-cart i { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-50); color: var(--ink); cursor: pointer; }
#close-cart i:hover { background: var(--danger-soft); color: var(--danger); }
.cart_bottom_bar { height: calc(100% - 76px); overflow: auto; padding: 14px 20px 24px; }
#shopping-cart-results:empty::before, .cart-products-loaded:empty::before {
  content: "Your cart is empty. Add a plant or two!"; display: block; padding: 60px 10px; text-align: center; color: var(--muted);
}
.cart-products-loaded li {
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.cart-item-count { color: var(--muted); font-size: .8rem; }
.cart-prod-name-info { font-weight: 600; color: var(--ink); line-height: 1.35; }
.cart-prod-meta-info { color: var(--muted); font-size: .82rem; }
.cart-prod-total-qty { min-width: 30px; text-align: center; padding: 3px 9px; border-radius: 999px; background: var(--green-50); font-weight: 700; font-size: .82rem; color: var(--green-700); }
.cart-prod-total-qty::before { content: "\00d7"; margin-right: 1px; font-weight: 400; }
.cart-prod-total-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cart-prod-remove-prod a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); }
.cart-prod-remove-prod a:hover { background: var(--danger-soft); color: var(--danger); }
.cart-products-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.cart-products-total .popup-checkout {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px;
  background: var(--green-700); color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 600;
}
.cart-products-total .popup-checkout:hover { background: var(--green-600); }
.cart-products-total + div { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: #8a4a22; font-size: .86rem; line-height: 1.5; }

/* ---------- sections ----------------------------------------------------- */
.section { padding: 56px 0; }
.section-tight { padding: 30px 0; }
.section-soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin-top: 4px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.link-arrow i { transition: transform .18s; }
.link-arrow:hover i { transform: translateX(4px); }
.scroller-nav { display: flex; gap: 8px; }

/* ---------- hero --------------------------------------------------------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,42,31,.9) 0%, rgba(12,42,31,.72) 42%, rgba(12,42,31,.25) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 86px; padding-bottom: 96px; max-width: var(--container); }
.hero-inner > * { max-width: 620px; }
.hero .eyebrow { color: #a8e0bb; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.06; margin: 18px 0 16px; }
.hero h1 em { font-style: italic; color: #a8e0bb; }
.hero p { font-size: 1.08rem; color: #dcebe0; margin-bottom: 26px; }
.hero-search { position: relative; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); }
.hero-search > i { position: absolute; left: 22px; color: var(--muted); }
.hero-search input { border: 0; background: transparent; padding-left: 46px; min-height: 46px; box-shadow: none !important; }
.hero-search .btn { flex-shrink: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- category tiles + collections -------------------------------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: -64px; position: relative; z-index: 2; }
.cat-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-500); color: var(--ink); }
.cat-tile-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-size: 1.15rem; margin-bottom: 6px; }
.cat-tile-name { font-weight: 700; font-size: 1.02rem; }
.cat-tile-count { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cat-tile:hover .cat-tile-count { color: var(--green-700); }

.collection-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 22px 16px; }
.collection { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); text-align: center; }
.collection-img { width: 100%; max-width: 150px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.collection-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.collection:hover .collection-img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.collection:hover .collection-img img { transform: scale(1.08); }
.collection-name { font-weight: 600; font-size: .93rem; }

/* ---------- product card ------------------------------------------------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 264px); gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 18px; margin: -4px; scrollbar-width: thin; scrollbar-color: var(--green-100) transparent; }
.scroller > * { scroll-snap-align: start; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdccf; }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1.05; background: var(--green-50); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; }
.pcard-badge-out { left: auto; right: 12px; background: var(--ink); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.pcard-brand { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard-title { font-family: var(--font-body); font-size: .98rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a { color: var(--ink); }
.pcard-title a:hover { color: var(--green-700); }
.pcard-price, .product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-now { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.price-was { color: var(--muted); font-size: .9rem; }
.price-off { color: var(--accent); font-size: .82rem; font-weight: 700; }
.pcard-form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }
.pcard-form select { min-height: 38px; padding: 6px 30px 6px 12px; font-size: .88rem; }
.pcard-actions { display: flex; gap: 8px; }
.pcard-actions .product_qty { width: 70px; flex: 0 0 70px; }
.pcard-actions .btn { flex: 1; min-height: 38px; padding: 8px 12px; font-size: .88rem; }

/* ---------- promo + about ------------------------------------------------ */
.promo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.promo-card { position: relative; overflow: hidden; padding: 38px 34px; border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.promo-card h3 { font-family: var(--font-head); font-size: 1.6rem; }
.promo-card p { max-width: 44ch; margin-bottom: 10px; }
.promo-green { background: linear-gradient(135deg, var(--green-900), var(--green-600)); color: #dcebe0; }
.promo-green h3 { color: #fff; }
.promo-green .eyebrow { color: #a8e0bb; }
.promo-green::after, .promo-sand::after { content: "\f4d8"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -18px; bottom: -40px; font-size: 11rem; opacity: .1; line-height: 1; }
.promo-sand { background: var(--sand); }
.promo-sand .eyebrow { color: var(--accent); }
.promo-sand::after { content: "\f06c"; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list i { color: var(--green-500); margin-top: 4px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--green-700); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- listing pages ------------------------------------------------ */
.page-head { background: linear-gradient(180deg, var(--green-50), var(--cream)); padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb i { font-size: .6rem; opacity: .6; }
.breadcrumb span { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .88rem; transition: all .18s; }
.chip:hover { border-color: var(--green-500); color: var(--green-700); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.listing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.listing-count { color: var(--muted); }
.listing-count b { color: var(--ink); }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { color: var(--muted); font-weight: 500; white-space: nowrap; }
.sort-form select { width: auto; min-width: 190px; border-radius: 999px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pagination a { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.pagination a:hover { border-color: var(--green-500); color: var(--green-700); }
.pagination a.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- product page ------------------------------------------------- */
.product-page { padding: 26px 0 20px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; margin-top: 20px; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.prod-main-img-box { aspect-ratio: 1 / 1.05; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.prod-main-img-box img { width: 100%; height: 100%; object-fit: cover; }
.prod-gallery-img-box { display: flex; gap: 10px; flex-wrap: wrap; }
.prod-gallery-img-box img { width: 78px; height: 78px; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); background: #fff; transition: border-color .18s, transform .18s; }
.prod-gallery-img-box img:hover { border-color: var(--green-500); transform: translateY(-2px); }
.product-info { display: flex; flex-direction: column; gap: 12px; }
.product-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.product-sci { color: var(--muted); font-style: italic; }
.product-sci i { font-style: normal; margin-right: 6px; color: var(--green-500); }
.product-price { margin-top: 6px; }
.product-price .price-now { font-family: var(--font-head); font-size: 2.1rem; }
.product-price .price-was { font-size: 1.1rem; }
.product-price .price-off { font-size: .95rem; padding: 3px 10px; background: var(--accent-soft); border-radius: 999px; }
.product-price .price-off:empty { display: none; }
.product-tax { font-size: .82rem; color: var(--muted); margin-top: -8px; }
.product-stock { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.product-stock.in { background: var(--green-100); color: var(--green-700); }
.product-stock.out { background: var(--danger-soft); color: var(--danger); }
.product-form { display: flex; flex-direction: column; gap: 16px; padding: 20px; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.product-buy { display: flex; align-items: flex-end; gap: 12px; }
.field-qty { width: 96px; flex: 0 0 96px; }
.product-buy .btn { flex: 1; }
.product-perks { display: grid; gap: 10px; margin-top: 6px; }
.product-perks li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: .93rem; }
.product-perks i { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--green-100); color: var(--green-700); }
.product-details { display: grid; gap: 22px; margin-top: 48px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.detail-card h2 { font-size: 1.4rem; margin-bottom: 14px; }
.rich-text { color: var(--text); max-width: 78ch; }
.rich-text p + p { margin-top: 10px; }
.spec-table { width: 100%; max-width: 640px; margin-top: 20px; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--ink); font-weight: 600; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--green-600); transition: transform .2s; }
.faq[open] summary i { transform: rotate(45deg); }
.faq .rich-text { padding-bottom: 16px; }

/* ---------- trust strip + footer ---------------------------------------- */
.trust-strip { background: #fff; border-top: 1px solid var(--line); padding: 30px 0; margin-top: 30px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item i { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--green-100); color: var(--green-700); font-size: 1.15rem; }
.trust-item b { display: block; color: var(--ink); font-size: .95rem; }
.trust-item span { color: var(--muted); font-size: .84rem; }
.site-footer { background: var(--green-950); color: #b9cdbf; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 54px; padding-bottom: 40px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name b { color: #8fd3a8; }
.footer-brand p { margin-top: 16px; max-width: 38ch; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 9px; }
.site-footer ul a { color: #b9cdbf; font-size: .92rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .84rem; color: #8fa596; }

/* ---------- simple content pages: login, signup, contact, 404 ----------- */
#login-section, .main-container, .not-found { padding: 48px 20px 60px; display: flex; justify-content: center; }
#login-wrapper, .main-container > .login, .contact-card {
  width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px 30px;
}
#login-wrapper .contactUsForm > h2, .main-container > .login > h2 { text-align: center; margin-bottom: 6px; }
.main-container > .login > h4 { text-align: center; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.main-container ol { list-style: decimal; padding-left: 22px; margin: 14px 0 20px; display: grid; gap: 6px; }
.user_name { font-weight: 700; color: var(--green-700); }
.not-found { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 80px 20px 90px; }
.not-found .nf-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--green-100); -webkit-text-stroke: 2px var(--green-500); }
.not-found p { color: var(--muted); max-width: 46ch; }
.not-found .nf-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ---------- responsive --------------------------------------------------- */
@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .nav-links > li > a { padding: 10px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar-right { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; row-gap: 12px; }
  .brand { margin-right: auto; }
  .brand img { width: 42px; height: 42px; }
  .header-search { order: 5; flex: 1 0 100%; max-width: none; margin: 0; }
  .header-login span { display: none; }
  .header-login { width: 42px; padding: 0; border-radius: 50%; }

  .menubar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1001; width: min(320px, 86vw); background: #fff; padding: 18px; overflow: auto; transform: translateX(-102%); transition: transform .28s ease; box-shadow: var(--shadow-lg); }
  .menubar.openmenu { transform: none; }
  .menubar.openmenu ~ .nav-overlay, .menubar.openmenu + * + * + .nav-overlay { display: block; }
  .menubar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links > li > a { justify-content: space-between; padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .dropdown { position: static; transform: none !important; opacity: 1; visibility: visible; display: block; width: auto; max-width: none; padding: 4px 14px 10px; border: 0; box-shadow: none; }
  .dropdown-col { padding-bottom: 12px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-overlay { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(12,42,31,.5); }

  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .promo, .about { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 60px; padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .scroller-nav { display: none; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scroller { grid-auto-columns: 62vw; gap: 12px; }
  .pcard-body { padding: 12px; }
  .pcard-actions { flex-direction: column; }
  .pcard-actions .product_qty { width: 100%; flex: 1; }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { padding: 16px 14px; }
  .collection-row { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .hero-search .btn { padding: 10px 16px; }
  .listing-bar { flex-direction: column; align-items: stretch; }
  .sort-form select { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .detail-card { padding: 22px 18px; }
  .promo-card { padding: 28px 22px; }
  .about-stats { gap: 10px; }
  .stat { padding: 18px 16px; }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; }
}

/* ---------- login / signup (old markup, new look) ------------------------ */
.login-section-wrapper:has([id$="section-divider"]) { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.login-section[id$="section-divider"] { border: 0; background: transparent; padding: 0 2px; display: flex; align-items: center; }
.login-section[id$="section-divider"] h3 { margin: 0; color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.login-section[id$="section-divider"] h3::before { content: none !important; }
#page-tele-login-section h3::before { content: "\f2c6"; font-family: "Font Awesome 6 Brands"; color: #229ed9; font-size: 1.2rem; }
#page-user-login-form, #page-login-block-1, #page-login-block-2, #page-login-block-3 { display: flex; flex-direction: column; gap: 12px; }
#page-click-here { align-self: flex-start; }
.main-container > .login .login-section-wrapper:not(:has([id$="section-divider"])) { grid-template-columns: 1fr; }
.main-container > .login .login-section-wrapper:not(:has([id$="section-divider"])) .login-section { background: transparent; border: 0; padding: 0; }
.main-container > .login .login-section-wrapper:not(:has([id$="section-divider"])) .login-section h3::before { content: none; }
#user_signup_form { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
#user_signup_form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
#user_signup_form .column { display: flex; flex-direction: column; gap: 6px; }
#user_signup_form .v-center { align-items: flex-start; }

/* ---------- contact page ------------------------------------------------- */
#login-wrapper:has(.contactUs-Form) { max-width: 980px; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr; }
#left-container-cuf { position: relative; background: var(--green-900); color: #dcebe0; display: flex; flex-direction: column; }
#left-container-cuf img { width: 100%; height: 260px; object-fit: cover; opacity: .85; }
#left-container-cuf > div { padding: 26px 28px; display: grid; gap: 10px; }
#left-container-cuf strong { color: #fff; }
#right-container-cuf { padding: 32px 30px; display: flex; flex-direction: column; gap: 8px; }
#right-container-cuf h3 { font-size: .95rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
#user_contact_form { display: flex; flex-direction: column; gap: 10px; }
#user_contact_form .btn { align-self: flex-start; margin-top: 6px; }
.success { color: var(--green-600); font-weight: 600; }

/* ---------- checkout ------------------------------------------------------ */
.order-container { max-width: 860px; margin: 36px auto 50px; padding: 0 20px; }
.checkout-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 20px; }
.view-cart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 24px; }
.view-cart li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.view-cart li:last-child { border-bottom: 0; }
.view-cart .item-count { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .82rem; }
.view-cart .prod-var-info { flex: 1; display: flex; flex-direction: column; }
.view-cart .product-name { font-weight: 600; color: var(--ink); }
.view-cart .product-variant { color: var(--muted); font-size: .85rem; }
.view-cart .prod-item-info { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.view-cart .product-qty { padding: 3px 11px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 600; font-size: .84rem; }
.view-cart .product-price { font-weight: 700; color: var(--ink); }
.view-cart-total { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.shipping-details, .grand-total { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.shipping-details h4 { margin-bottom: 12px; }
.shipping-address { display: flex; justify-content: space-between; gap: 12px; }
.shipping-address p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.shipping-address p i { color: var(--green-600); margin-top: 5px; }
.shipping-address a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-50); }
.grand-total { display: flex; flex-direction: column; gap: 10px; }
.grand-total > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.grand-total > div:empty { display: none; }
.grand-total > div:last-child { margin-top: 6px; padding-top: 14px; border-top: 1.5px dashed var(--line); color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.grand-price { color: var(--ink); font-weight: 600; }
.place-order { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.place-order h3 { width: 100%; padding: 16px 20px; border-radius: var(--radius); background: var(--green-100); color: var(--green-900); text-align: center; }
.order-container > pre:empty { display: none; }
.order-container .error { display: block; margin: 6px 0; }

@media (max-width: 760px) {
  .login-section-wrapper:has([id$="section-divider"]) { grid-template-columns: 1fr; }
  .login-section[id$="section-divider"] { justify-content: center; }
  #login-wrapper:has(.contactUs-Form) { grid-template-columns: 1fr; }
  #left-container-cuf img { height: 170px; }
  .view-cart-total { grid-template-columns: 1fr; }
  .view-cart li { flex-wrap: wrap; }
}

/* ---------- my account ---------------------------------------------------- */
.account { padding: 34px 0 20px; }
.account-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.account-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.account-avatar { width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--font-head); font-size: 1.3rem; }
.account-user b { display: block; color: var(--ink); line-height: 1.25; }
.account-user small { color: var(--muted); font-size: .8rem; }
.account-nav nav { display: flex; flex-direction: column; gap: 3px; }
.account-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .94rem; }
.account-link i { width: 18px; text-align: center; color: var(--muted); }
.account-link:hover { background: var(--green-50); color: var(--green-700); }
.account-link.active { background: var(--green-700); color: #fff; }
.account-link.active i { color: #fff; }
.account-logout { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 14px; color: var(--danger); }
.account-logout i { color: var(--danger); }
.account-logout:hover { background: var(--danger-soft); color: var(--danger); }
.account-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.account-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.account-head p { color: var(--muted); margin-top: 4px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-stat { display: flex; align-items: center; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
a.account-stat:hover { border-color: var(--green-500); box-shadow: var(--shadow); color: var(--ink); }
.account-stat i { width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-size: 1.1rem; }
.account-stat b { display: block; font-size: 1.45rem; line-height: 1.15; }
.account-stat span { color: var(--muted); font-size: .86rem; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.account-card, .account-main > .main-container { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.account-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.account-card h2 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; }
.account-card-head a { font-size: .86rem; font-weight: 600; }
.order-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-list li:last-child { border-bottom: 0; }
.order-list li > div { flex: 1; min-width: 0; }
.order-list b { color: var(--ink); }
.order-list small { display: block; color: var(--muted); font-size: .82rem; }
.order-amount { white-space: nowrap; }
.address-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.address-line i { color: var(--green-600); margin-top: 5px; }
.muted { color: var(--muted); }

/* old account screens (settings, orders) inside the new layout */
.account-main > .main-container { display: flex; flex-direction: column; gap: 18px; justify-content: flex-start; }
.account-main #container-title h2 { font-size: 1.5rem; }
.tab-content-container { display: none; width: 100%; }
#tabs-section { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--green-50); border-radius: 999px; width: fit-content; max-width: 100%; }
#tabs-section .btn { background: transparent; border-color: transparent; color: var(--muted); min-height: 38px; padding: 8px 18px; box-shadow: none; }
#tabs-section .btn:hover { color: var(--ink); }
#tabs-section .btn.active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
.account-main .box-wrapper, .account-main .box-container { display: flex; flex-direction: column; gap: 14px; }
.account-main .box-container h3 { font-size: 1.05rem; }
.account-main form { display: flex; flex-direction: column; gap: 16px; }
.account-main .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.account-main .column { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.account-main table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.account-main th { text-align: left; padding: 10px 12px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--line); }
.account-main td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.user-order-history-list { display: grid; gap: 4px; }
.success-message:empty, .show-message:empty { display: none; }
.success-message, .show-message { color: var(--green-600); font-weight: 600; }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .account-nav nav { flex-direction: row; flex-wrap: wrap; }
  .account-link { padding: 9px 12px; }
  .account-logout { margin-top: 0; border-top: 0; border-radius: 12px; padding-top: 9px; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-stats { grid-template-columns: 1fr; }
  .account-main table, .account-main tbody, .account-main tr, .account-main td { display: block; width: 100%; }
  .account-main th { display: none; }
}

@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.12rem; white-space: nowrap; }
  .header-actions { gap: 8px; }
  .hero-search input { padding-left: 42px; min-width: 0; }
}

/* the blurred header would trap the slide-in menu inside itself on phones */
@media (max-width: 900px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
