/* =========================================================
   BeeLady Theme — Light Background + Dark Footer
   Palette:
   --ink: #1F2A32
   --honey: #D8A441
   --honey-2: #C9932E
   --honey-3: #B88125
   --bg: #FFFFFF
   --surface: #FFFFFF
   --text: #1F2A32
   --text-muted: #5A6A74
   --border: #E6E1D5
   --muted: #F2EFE9
   --focus: #3B82F6
   ========================================================= */

:root{
  /* Brand */
  --ink: #1F2A32;
  --honey: #74cfb1;
  --honey-2: #295C4D;     /* hover */
  --honey-3: #224F41;  /* active/deeper */

  /* Neutrals */
  --bg: #FFFFFF;        /* page background (light) */
  --surface: #FFFFFF;   /* cards, panels */
  --text: #1F2A32;      /* primary text */
  --text-muted: #5A6A74;
  --border: #E6E1D5;
  --muted: #F2EFE9;     /* soft pill/badge background */
  --shadow: 0 6px 18px rgba(17,17,17,0.08);

  /* Legacy variable mapping (keeps your existing CSS working) */
  --gold: var(--honey);        /* primary gold */
  --gold-2: var(--honey-3);    /* darker gold */
  --color-primary: var(--honey);
  --color-secondary: var(--ink);  /* used for dark footer and header text/icons */
  --color-accent: var(--honey);

  --card-radius:14px;
  --max-width:1200px;

  /* Accents */
  --accent: linear-gradient(135deg, #FFF4D0 0%, #F3C86A 45%, #D8A441 100%);
  --accent-soft: #295C4D;

  /* Accessibility */
  --focus: #3B82F6;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  min-height:100vh;  /* allow page to grow and scroll */
  height:auto;
  font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}


/* layout */
.container{margin:0px;padding:28px}

.top-bar { background: var(--color-primary); color: white; text-align: center; padding: 0.5rem; font-size: 0.9rem; }
header {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo img { height: 40px; }

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

/* Links and icons base */
.nav-menu a {
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  position: relative;
  padding: .25rem 0; /* room for underline */
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}

.header-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-icons a {
  color: var(--color-secondary);
  font-size: 1.2rem;
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}

/* Hover + focus: color change (uses --accent if available) */
.nav-menu a:hover,
.nav-menu a:focus-visible,
.header-icons a:hover,
.header-icons a:focus-visible {
  color: var(--accent, var(--color-secondary));
}


/* Underline reveal for nav links */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.25rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

/* Subtle icon lift on hover */
.header-icons a:hover,
.header-icons a:focus-visible {
  transform: translateY(-4px);
  opacity: .95;
}

/* Active/current page state */
.nav-menu a[aria-current="page"] {
  color: var(--accent, var(--color-secondary));
}
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Keyboard focus ring (accessible) */
.nav-menu a:focus-visible,
.header-icons a:focus-visible {
  outline: 2px solid var(--color-secondary, currentColor);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .nav-menu a,
  .header-icons a,
  .nav-menu a::after {
    transition: none;
  }
}
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
  .cart-c {display: none;}
  .nav-menu.active { display: flex; }
  .hamburger { display: block; }
}

/* Hero Slider */
.hero-slider { position: relative; width: 100%; overflow: hidden; }
.slides { display: flex; transition: transform 0.5s ease-in-out;}
.slide { min-width: 100%; height: 120vh; position: relative; display: flex; align-items: center; justify-content: center; color: white; flex: 0 0 100%; }
.slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.slide-content { position: relative; text-align: center; }
.slide-content h2 { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 0.5rem; }
.slide-content p { font-size: 1.2rem; margin-bottom: 1rem; }
.slide-content .btn {
  background: var(--color-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  border: 1px solid transparent;
  transition: all .25s ease;
}

@media (max-width: 768px) {
  .slide{height: 500px;}
}
@media (max-width: 560px) {
  .slide{height: 350px;}
}
@media (max-width: 360px) {
  .slide{height: 200px;}
  .arrow{display: none;}
  .arrow.left{height: 20px; width: 20px;}
}
.slide-content .btn:hover { background: var(--honey-2); transform: translateY(-1px); }
.slide-content .btn:active { background: var(--honey-3); transform: translateY(0); }
.slide-content .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; padding: 0.5rem; border-radius: 50%; cursor: pointer; margin-left: 50px; margin-right: 50px;  }
.arrow.left { left: 1rem; }
.arrow.right { right: 1rem; }
.dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background: white; }

@media (max-width:980px){
  .shop-layout{grid-template-columns:1fr;}
}
@media (max-width:768px){
  .filters { margin-bottom: 18px; }
}
.about img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width:768px){
  #about img {
    max-width: 80%;   /* shrink slightly for tablets/mobiles */
    margin: 0 auto;   /* center the image */
    display: block;   /* ensure proper centering */
  }
}

@media (max-width:480px){
  #about img {
    display: none;
    max-width: 100%;  /* full width on very small screens */
  }
}

@media (max-width:600px){
  nav {
    display: none; /* hide nav links if needed, or stack */
  }
  .controls {
    flex-direction: column;
    gap: 8px;
  }
  #search {
    width: 100% !important;
  }
}
@media (max-width:400px){
  .products { grid-template-columns: 1fr; }
}

/* featured */
.grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto; /* Scrollable horizontally */
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px;
  -webkit-overflow-scrolling: touch; /* Smooth on iOS */
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), var(--surface));
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  flex: 0 0 250px; /* Fixed card width */
  scroll-snap-align: start;
}

.product-img {
  height: 350px;
  width: 100%;
  border-radius: 10px;
  background: #f3f2f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: rgba(0,0,0,0.25);
  object-fit: cover;
}

.product-title {
  font-weight: 700;
  margin: 10px 0 6px;
  font-size: 1rem;
  text-align: center;
}

.price {
  color: var(--gold-2);
  font-weight: 700;
  text-align: center;
}

/* HIDE SCROLLBAR but keep scroll active */
.grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.grid {
  -ms-overflow-style: none;  /* Internet Explorer */
  scrollbar-width: none;     /* Firefox */
}

/* Mobile fix: same size on all screens */
@media (max-width: 768px) {
  .card { flex: 0 0 250px; }
  .product-img { height: 350px; }
}

/* filters & shop */
/* .shop-layout{display:grid;grid-template-columns:260px 1fr;gap:18px;margin-top:22px} */
.filters{
  display: flex;
  justify-content: flex-start;
  background: var(--surface);
  gap:18px;
  margin-top:22px;
  border-radius:12px;
  padding:16px;
  box-shadow:var(--shadow)
}
.filters h4{margin:0 0 12px}
.filter-group{margin-bottom:12px;}

/* Product section scrollable horizontally */
.products {
  display: flex;
  flex-wrap: nowrap; /* line break na ho */
  gap: 16px;
  /* overflow-x: auto; horizontal scroll enable */
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px;
}
/* Har product card */
.products > * {
  flex: 0 0 250px; /* fixed width per card */
  height: 565px;
  background: var(--surface);
  border-radius: 12px;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Optional: scrollbar hide */
.products::-webkit-scrollbar { display: none; }

/* product modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,0.45);display:flex;align-items:center;justify-content:center;z-index:60;}
.modal-card{background:var(--surface);border-radius:12px;padding:0px;width:80%;height: 90%; display:grid;grid-template-columns:420px 1fr; gap:18px}

/* Image box */
#modalImageBox {
  width: 90%;
  height: 100%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#modalImageBox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Buttons inside modal */
.modal-card button.icon-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 990px){
  .modal-card{
    width: 80%;
    height: 100%;
    padding: 5px;
  }
  #modalImageBox { padding: 12px; }
}
/* Responsive for small screens */
@media (max-width: 768px) {
  .modal-card {
    max-width: 100%;
    width: 80%;
    height: 120%;
    margin: 20px auto;
    background: var(--surface);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
  }

  #modalImageBox {
    max-height: 100%;
    max-width: 65%;
    margin-top: 10px;
  }

  .modal-card h3 { font-size: 1.2rem; }
  .modal-card .price { font-size: 1rem; }
  .modal-card p { font-size: 0.9rem; }

  .modal-card button.btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #modalImageBox { max-height: 100%; max-width: 80%; }
  .modal-card { gap: 10px; }
  .modal-card h3 { font-size: 1rem; }
}

.thumb{width:60px;height:60px;border-radius:8px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;color:#bbb}
.main-img {width:100%;max-height:400px;object-fit:cover;border-radius:10px;}
.thumbs {display:flex;gap:8px;margin-top:10px;justify-content:center;}
.thumbs img {width:60px;height:60px;object-fit:cover;cursor:pointer;border-radius:5px;border:2px solid transparent;}
.thumbs img:hover, .thumbs img.active {border-color:var(--honey);}
.arrow {position:absolute;top:50%;transform:translateY(-50%);font-size:30px;font-weight:bold;background:rgba(255,255,255,0.7);border-radius:50%;padding:5px 12px;cursor:pointer;user-select:none;}
.arrow.left {left:-40px;}
.arrow.right {right:-40px;}

/* Universal button style */
.btn {
  background-color: var(--honey);
  color: var(--ink);
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.btn:hover {
  background-color: var(--honey-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.btn:active {
  background-color: var(--honey-3);
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.responsive-img {
  width: 100%;
  height: auto;
  max-height: 500px; /* limit height */
  border-radius: 5px;
  object-fit: cover;
}

/* cart drawer (floating) */
.cart-drawer{
  position:fixed;
  right:20px;
  top:80px;
  width:360px;
  background:var(--surface);
  border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
  padding:18px;
  z-index:70
}
.cart-item{display:flex;gap:12px;margin-bottom:12px;align-items:center}
.cart-thumb{width:64px;height:64px;border-radius:8px;background:#f3f3f3}

/* small UI */
.badge{background:var(--muted);padding:6px 8px;border-radius:999px;font-weight:600;color:var(--ink)}
.muted{color:var(--text-muted)}
input[type=search], input[type=text], select{width:100%;padding:10px;border-radius:10px;border:1px solid var(--border)}
.pill{padding:8px 12px;border-radius:999px;border:1px solid var(--border);background: var(--surface)}

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.show { opacity: 1; transform: translateY(0); }

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Footer (dark) */
.main-footer{ background-color: var(--color-secondary); padding: 20px; }
.footer {
  background: var(--color-secondary);
  padding: 50px 20px 20px;
  color: #F2F5F7;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'Poppins', sans-serif;
}

.footer-links {
  background-color: var(--color-secondary);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 30px;
  gap: 30px;
}

.footer-column h4 {
  background-color: var(--color-secondary);
  color:var(--color-accent);
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin: 6px 0; }

.footer-column ul li a {
  color: #D0D8DE;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column ul li a:hover { color: var(--honey); }

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.social-icons a {
  color: #fff;
  background: var(--color-secondary);
  font-size: 18px;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 15px;
  color:var(--color-accent);
}

.footer-bottom a {
  color: var(--honey);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-bottom a:hover { color: var(--honey-2); }

/* Responsive */
@media(max-width: 768px) {
  .footer-links { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width:980px){.hero{grid-template-columns:1fr;}.grid{grid-template-columns:repeat(3,1fr)}.shop-layout{grid-template-columns:1fr}.container{padding:18px}}
@media (max-width:560px){.grid{grid-template-columns:repeat(2,1fr)}.logo{font-size:18px}.hero-left h1{font-size:26px}}
@media (max-width:360px){ .grid{grid-template-columns:1fr} }

/* Announcement bar */
.ann-container {
  position: relative;
  overflow: hidden;
  height: auto; /* Allow height to expand for wrapped text */
  background: var(--accent-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px; /* Added some padding for mobile */
  box-sizing: border-box;
}
.ann-slides { display: flex; width: 100%; transition: transform 0.6s ease-in-out; }
.ann-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal; /* allow text wrapping */
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  padding: 4px 8px;
  box-sizing: border-box;
  line-height: 1.4;
  font-size: 16px;
  height: auto;
}
/* Buttons */
.ann-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--honey);
  border: none;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.ann-btn:hover { background: var(--honey-2); }
.ann-btn.prev { left: 10px; }
.ann-btn.next { right: 10px; }

/* Responsive Fix */
@media (max-width: 360px) {
  .ann-slide { font-size: 14px; padding: 8px; }
  .ann-container { padding: 10px; }
}

/* =============================
   CART — Desktop / Default
   ============================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100%;
  background: var(--surface);
  box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  transition: right 0.3s ease, transform 0.4s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 15px;
}
.cart.open { right: 0; }

/* in case your markup uses sibling overlay */
.cart.open + .cart-overlay { opacity: 1; visibility: visible; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}
.close-cart { background: none; border: none; font-size: 22px; cursor: pointer; }

#cartItemsMini { flex: 1; overflow-y: auto; margin-top: 10px; }

.cart-item-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 8px;
}
.cart-item-mini img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 8px;
}
.cart-info-mini { flex: 1; font-size: 13px; }

.cart-footer { border-top: 1px solid #eee; padding-top: 10px; }
.cart-buttons { display: flex; gap: 8px; margin-top: 10px; }

.btn-primary {
  flex: 1;
  background: var(--honey);
  color: var(--ink);
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary:hover { background: var(--honey-2); }
.btn-primary:active { background: var(--honey-3); }
.btn-primary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Hide scrollbar visually but allow scroll */
#cartItemsMini::-webkit-scrollbar { width: 0; }

/* =============================
   CART — Mobile (≤ 560px)
   ============================= */
@media (max-width: 560px) {
  .cart {
    top: 70px; /* adjust to match header height */
    left: 0;
    right: 0;
    width: 100%;
    height: 50vh;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
    padding: 0;
  }
  .cart.open { transform: translateY(0); opacity: 1; }

  .cart-header {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
  }
  #cartItemsMini { flex: 1; overflow-y: auto; padding: 10px 16px; }
  .cart-footer {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding: 10px 14px;
    border-top: 1px solid #ddd;
  }
  .cart-buttons { margin-top: 6px; }
  .btn-primary { font-size: 14px; padding: 8px 10px; }
  /* Hide scrollbar but allow scrolling */
  #cartItemsMini::-webkit-scrollbar { width: 0; height: 0; }
  /* Overlay covers full background */
  .cart-overlay.active { opacity: 1; visibility: visible; }
}

/* =============================
   CART — Extra Small (≤ 300px)
   ============================= */
@media (max-width: 300px) {
  .cart { top: 60px; height: 55vh; }
  .cart-header { padding: 10px 12px; }
  .btn-primary { font-size: 12px; padding: 6px 8px; }
  #cartItemsMini { padding: 8px 10px; }
}

/* =============================
   Optional: Dark Mode (system-based)
   ============================= */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #f4ebeb;
    --surface: #e7e7e7;
    --text: #000000;
    --text-muted: #B8C2CA;
    --border: #28343B;
    /* Keep footer dark via color-secondary = ink */
    --color-primary: var(--honey);
    --color-secondary: var(--ink); /* footer stays dark */
  }

  header { background: var(--surface); }
  .nav-menu a, .header-icons a { color: var(--text); } /* ensure contrast in dark header */

  .filters { background: var(--surface); box-shadow: none; border: 1px solid var(--border); }
  .card { background: linear-gradient(180deg, rgba(21,31,37,0.9), var(--surface)); box-shadow: none; }
  .product-img { background: #1E2A32; color: rgba(255,255,255,0.35); }

  .cart { background: var(--surface); }
  .cart-header, .cart-footer { border-color: var(--border); }

  .footer { border-top-color: rgba(255,255,255,0.08); }
  .footer-bottom { border-top-color: rgba(255,255,255,0.08); }
}


.wame{
  border-radius: 100%; position: fixed; top: 85%; left: 90%; width: 60px; height: 60px; z-index: 1; 
}
@media (max-width: 768px) {
  .wame{left: 85%;}
}
@media (max-width: 400px) {
  .wame{left: 80%;}
}