/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat-SemiBold.ttf'); }
:root { --ink:#2b1f1a; --ink-2:#3d342f; --muted:#7a6f68; --line:#e8e3da; --brand:#6d6a33; --chip:#f5f5f5; }

/* ========== BANNER ========== */
.banner-slider { width: 100%; height: 800px; position: relative; overflow: hidden; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .5s ease-in-out; pointer-events: none; z-index: 0;
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.slide-details{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 60%; text-align: center; color: #fff; font-family: 'Montserrat', sans-serif;
  text-shadow: 2px 2px 8px rgba(0,0,0,.7); background: rgba(0,0,0,.3);
  padding: 40px 30px; border-radius: 10px;
}
.slide-details h1{ font-size: 3rem; margin-bottom: 20px; font-weight: 700; }
.slide-details p { font-size: 1.25rem; line-height: 1.6; margin-bottom: 25px; }
.slide:nth-child(1){ background-image: url('images/banner18.png'); }
.slide:nth-child(2){ background-image: url('images/banner7.png'); }
.slide:nth-child(3){ background-image: url('images/banner19.png'); }

/* ========== BUTTONS ========== */
.button,.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 25px; border-radius:999px; font-weight:600; text-transform:uppercase;
  font-size:1rem; line-height:1; border:1px solid #000; background:#6A6932; color:#fff;
  cursor:pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.button:hover,.btn:hover{ background:#BAB86C; color:#fff; border-color:#f5f5f5; }

/* ========== FEATURED ========== */
.featured{ width:100%; padding:10px 0; background:var(--chip); display:flex; justify-content:space-between; }

/* Make boxes hover containers with overlay above image */
.featured-box-1,.featured-box-3{ width:33%; height:700px; position:relative; }
.featured-box-2{ width:33%; height:700px; display:flex; flex-wrap:wrap; justify-content:space-between; }
.featured-box-2-box-1{ width:100%; height:340px; position:relative; }
.featured-box-2-box-2,.featured-box-2-box-3{ width:49.5%; height:340px; position:relative; }

.bg-image{ width:100%; height:100%; overflow:hidden; position:relative; z-index:1; }
.bg-image > img{ width:100%; transition:.2s; }
.featured-box-1:hover img, .featured-box-3:hover img,
.featured-box-2-box-1:hover img, .featured-box-2-box-2:hover img, .featured-box-2-box-3:hover img{ transform:scale(1.1); }

/* Overlay: hidden by default, clickable on hover of card OR overlay itself */
.overlay{
  position:absolute; inset:0; display:flex; padding:5%;
  align-items:flex-end; justify-content:center;
  z-index:2; opacity:0; pointer-events:none; transition:opacity .25s ease;
}

.featured-box-1:hover .overlay,
.featured-box-2:hover .overlay,
.featured-box-2-box-1:hover .overlay,
.featured-box-2-box-2:hover .overlay,
.featured-box-2-box-3:hover .overlay,
.featured-box-3:hover .overlay, 
.overlay:hover{
  opacity:1;
  pointer-events:auto;
}

/* ========== PRODUCT GRIDS ========== */
.products{ width:100%; padding:30px 20%; background:var(--chip); display:flex; flex-direction:column; row-gap:20px; align-items:center; }
.section-title{ font-family:'Montserrat'; }
.products-list{ width:100%; padding:20px 0; display:flex; column-gap:calc(4%/3); justify-content:space-between; }

.product{ width:24.5%; height:420px; display:flex; flex-direction:column; row-gap:15px; font-family:'Montserrat'; font-size:15px; }
.product-image{ height:370px; width:100%; position:relative; overflow:hidden; }
.product-image img{ width:100%; }
.main-image,.effect-image{ position:absolute; inset:0; transition:.2s; }
.effect-image{ opacity:0; transform:scale(1.2); }
.product:hover .main-image{ transform:scale(1.2); opacity:0; }
.product:hover .effect-image{ opacity:1; transform:scale(1); }

/* Show the add-to-cart overlay on hover and make it clickable */
.overlay-image{
  position:absolute; inset:0; display:flex; justify-content:center; align-items:flex-end;
  padding:10%; margin-top:100px; transition:opacity .2s; z-index:3;
  opacity:0; pointer-events:none;
}
.product:hover .overlay-image{ opacity:1; pointer-events:auto; }

.product-details{ padding:10px; display:flex; justify-content:space-between; font-family:'Montserrat'; }

/* ========== CATEGORY CARDS ========== */
.categories{ width:100%; padding:30px 20%; background:var(--chip); display:flex; justify-content:space-between; }
.category{ width:33%; }
.cat-img{ width:100%; height: 400px; overflow:hidden; }
.cat-img > img{ width:100%; transition:.2s; }
.category:hover img{ transform:scale(1.2); }

/* ========== INSTAGRAM STRIP ========== */
.insta{ width:100%; padding:30px 20%; background:var(--chip); display:flex; flex-direction:column; row-gap:20px; align-items:center; }
.posts{ width:100%; padding:20px 0; display:flex; justify-content:space-between; }
.post-image{ width:16%; height:160px; overflow:hidden; position:relative; display:flex; }
.post-image img{ width:100%; transition:.2s; }
.post-image:hover img{ transform:scale(1.2); }
.post-image i{ position:absolute; font-size:30px; margin-right:10px; margin-top:10px; z-index:20; }

/* ========== FOOTER (Upgraded) ========== */
/* Dark, classy footer that matches your brand, fully responsive + accessible */
.footer{
  --ft-bg: #0f0f0f;
  --ft-ink: #e9e7e4;
  --ft-ink-2:#cfcac3;
  --ft-line:#232323;
  --ft-chip:#1a1a1a;

  width:100%;
  background:var(--ft-bg);
  color:var(--ft-ink);
  font-family:'Montserrat',sans-serif;
  padding:48px 20px 22px;
  box-shadow:0 -2px 18px rgba(0,0,0,.18);
}

/* grid container that adapts to 1–3 columns */
.footer-grid{
  max-width:1200px;
  margin:0 auto;
  display:grid;
  gap:28px;
  grid-template-columns: repeat(12, minmax(0,1fr));
}
.footer-section{ grid-column: span 12; }
@media (min-width: 800px){
  .footer-section:nth-child(1){ grid-column: span 4; }
  .footer-section:nth-child(2){ grid-column: span 4; }
  .footer-section:nth-child(3){ grid-column: span 4; }
}

/* headings */
.ft-title{
  font-size:1.05rem;
  letter-spacing:.3px;
  font-weight:800;
  margin:0 0 10px;
  color:#fff;
}

/* lists & links */
.footer-list{ list-style:none; margin:0; padding:0; }
.footer-list li{ margin:8px 0; }
.footer a{
  color:var(--ft-ink);
  text-decoration:none;
  transition: color .2s ease, opacity .2s ease, text-decoration-color .2s ease;
  text-decoration-color: transparent;
}
.footer a:hover,
.footer a:focus{
  color:#fff;
  text-decoration:underline;
  text-decoration-color:#6d6a33; /* brand accent */
  outline: none;
}

/* subtle divider line */
.border-list{
  border-top:1px solid var(--ft-line);
  margin:12px 0;
  width:60%;
}

/* socials: soft squares that glow on hover */
.socials{
  display:flex; gap:10px; padding-top:6px;
}
.socials a{
  width:38px; height:38px; border-radius:10px;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--ft-chip);
  border:1px solid var(--ft-line);
  opacity:.95;
  transition: transform .12s ease, box-shadow .2s ease, opacity .15s ease, border-color .2s ease;
}
.socials a:hover,
.socials a:focus{
  transform: translateY(-1px);
  opacity:1;
  border-color:#3a3a3a;
  box-shadow:0 8px 24px rgba(109,106,51,.35);
}
.socials i{ font-size:18px; }

/* newsletter area */
.ft-subcopy{
  margin:0 0 12px;
  color:var(--ft-ink-2);
  line-height:1.5;
}

.ft-news-form{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:center;
}

.footer input[type="email"]{
  height:46px;
  width:100%;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--ft-line);
  background:#0a0a0a;
  color:#fff;
  transition: border-color .2s, box-shadow .2s;
}
.footer input[type="email"]::placeholder{ color:#7f7f7f; }
.footer input[type="email"]:focus{
  border-color:#6d6a33;
  box-shadow:0 0 0 3px rgba(109,106,51,.28);
  outline:none;
}

/* keep your .button look but tune it for the footer */
.footer .button{
  height:46px;
  padding:0 16px;
  border-radius:12px;
  border:none;
  background:var(--brand);
  color:#fff;
  font-weight:800;
  letter-spacing:.2px;
  transition: background .2s, transform .1s ease;
}
.footer .button:hover{ background:#8A8841; }
.footer .button:active{ transform: translateY(1px); }

/* consent + small notes */
.ft-consent{
  grid-column:1 / -1;
  display:flex; gap:8px; align-items:flex-start;
  color:var(--ft-ink-2);
  font-size:.92rem;
  line-height:1.4;
}
.ft-consent input{
  width:18px; height:18px; border-radius:4px;
  accent-color:#6d6a33;
}
.ft-note{
  grid-column:1 / -1;
  margin:2px 0 0;
  color:#a7a29c;
  font-size:.86rem;
}
.ft-msg{
  grid-column:1 / -1;
  min-height:1.2em;
  font-weight:800;
  margin-top:4px;
}

/* bottom legal strip */
.ft-legal{
  max-width:1200px;
  margin:22px auto 0;
  padding-top:16px;
  border-top:1px solid var(--ft-line);
  text-align:center;
  color:#bdb7af;
}
.ft-legal small{ font-size:.9rem; }

/* keyboard-focus ring on links inside footer for a11y */
.footer a:focus-visible{
  outline:2px solid #8A8841;
  outline-offset:2px;
  border-radius:6px;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .socials a,
  .footer .button{ transition:none; }
}

/* mobile spacing tweaks */
@media (max-width: 480px){
  .footer{ padding:38px 16px 18px; }
  .ft-title{ margin-bottom:8px; }
}

/* ========== FORM ELEMENTS (global) ========== */
input{ height:40px; width:70%; padding:0 15px; border-radius:20px; border:1px solid #ccc; transition:border-color .3s; }
input:focus{ border-color:#000; outline:none; }
button{ height:40px; padding:0 20px; border-radius:20px; border:none; background:#333; color:#fff; cursor:pointer; transition:background-color .3s; }
button:hover{ background:#000; }

/* ========== HEADER ========== */
.header{
  display:grid; grid-template-columns:220px 1fr 280px; grid-template-rows:110px auto;
  align-items:center; column-gap:24px; padding:0 7%; background:#BAB86C;
}
.logo{ grid-column:1; display:flex; justify-content:center; align-items:center; }
.logo img{ height:150px; width:auto; display:block; }

/* Search bar */
.site-search{
  grid-column:2; justify-self:center;
  width:100%; max-width:1000px; height:48px; display:flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.9); backdrop-filter:blur(8px);
  border:1px solid rgba(0,0,0,.08); border-radius:999px; padding:8px 10px 8px 14px;
  box-shadow:0 10px 24px rgba(0,0,0,.1);
}
.site-search i{ font-size:18px; color:#6b7280; }
.site-search input{ flex:1; border:0; outline:0; background:transparent; font-size:16px; color:#111827; padding:4px 0; }
.site-search button{
  border:0; height:34px; padding:0 18px; border-radius:999px; background:#4c4b23; color:#fff; font-weight:700;
  cursor:pointer; transition: transform .12s ease, background .2s;
}
.site-search button:hover{ background:#6d6a33; }

/* Header utilities (icons) */
.utils{
  grid-column:3; display:flex; justify-content:flex-end; align-items:center;
  position: relative; /* anchor greeting under icons */
}
.utils .nav-links{ display:flex; align-items:center; gap:28px; list-style:none; margin:0; padding:0; }
.utils .nav-links > li{ position:relative; display:flex; }
.utils .nav-links a{ display:inline-flex; align-items:center; position:relative; text-decoration:none; color:#fff; line-height:1; }
.utils i{ font-size:24px; color:#fff; opacity:.95; transition:opacity .2s; }
.utils i:hover{ opacity:1; }

/* Cart badge */
.cart-count{
  position:absolute; top:-8px; right:-10px; min-width:18px; height:18px; padding:0 6px;
  display:inline-flex; align-items:center; justify-content:center; font-size:12px; line-height:1;
  color:#fff; background:#2b2b15; border-radius:999px;
}

/* Primary nav links row */
.main-links{ grid-column:1 / -1; grid-row:2; text-align:center; padding:12px 0; }
.main-links ul{ list-style:none; margin:0; padding:0; display:flex; justify-content:center; gap:64px; }
.main-links > ul > li > a{
  color:#fff; text-decoration:none; font-family:'Montserrat',sans-serif; font-weight:800; font-size:22px; letter-spacing:.5px;
  text-shadow:2px 2px 4px rgba(0,0,0,.7); transition: color .3s, transform .2s;
}
.main-links > ul > li > a:hover{ color:#f9f9c0; transform:translateY(-2px); }

/* ========== MEGA MENU: Single-column (Walmart-like) ========== */
.has-megamenu{ position: relative; }
.catmenu-toggle{ display:inline-flex; align-items:center; gap:8px; font-weight:700; text-decoration:none; color:inherit; }

/* Panel */
#catMega{
  position:absolute; left:0; top:100%; transform: translateY(12px);
  width:360px; max-height:74vh; overflow:hidden; padding:10px 0 8px;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,.12);
  opacity:0; visibility:hidden; transition: opacity .15s, transform .15s, visibility .15s; z-index:1000;
}

/* Show on hover (desktop) */
@media (hover:hover) and (pointer:fine){
  .has-megamenu:hover > #catMega{ opacity:1; visibility:visible; transform: translateY(12px); }
}
/* Show on tap (mobile) when JS toggles .open */
.has-megamenu.open > #catMega{ opacity:1; visibility:visible; transform: translateY(12px); }

/* Panel content */
#catMega .cat-heading{
  margin:0; padding:10px 16px 6px; font-size:.95rem; line-height:1.2; font-weight:800; color:#555;
  border-bottom:1px solid #f0ede8;
}
#catMega .cat-list{
  list-style:none; margin:0; padding:6px 0; max-height:calc(74vh - 42px); overflow:auto; display:block;
}
#catMega .cat-list li{ display:block; }
#catMega .cat-list a{
  display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:10px;
  color:var(--ink); text-decoration:none; text-shadow:none; font-weight:800; font-size:1.05rem; line-height:1.2;
}
#catMega .cat-list a i{ width:22px; text-align:center; opacity:.9; }
#catMega .cat-list a:hover,#catMega .cat-list a:focus{ background:#f6f6f3; outline:none; }

/* Small screens: allow a bit more width */
@media (max-width:520px){ #catMega{ width:min(94vw, 420px); } }

/* ========== RESPONSIVE (global) ========== */
@media (max-width:1024px){
  .header{ grid-template-columns:160px 1fr 220px; grid-template-rows:90px auto; padding:0 5%; }
  .logo img{ height:70px; }
  .main-links ul{ gap:40px; }
  .main-links > ul > li > a{ font-size:18px; }
}
@media (max-width:768px){
  .header{ grid-template-columns:120px 1fr 140px; grid-template-rows:80px auto; }
  .main-links ul{ flex-wrap:wrap; gap:24px; }
  .main-links > ul > li > a{ font-size:16px; }

  .products-list,.featured{ flex-direction:column; }
  .product,.featured-box-1,.featured-box-2,.featured-box-3,.category{ width:100%; height:auto; }

  .slide-details{ width:80%; padding:10px; }
  .slide{ padding-left:10%; }
}

/* wishlist heart button (match your HTML .wishlist-btn) */
.wishlist-btn{
  position:absolute; top:12px; right:12px;
  width:40px; height:40px; border-radius:999px;
  border:1px solid #e2ddd4; background:#fff; color:#2b1f1a;
  display:grid; place-items:center; cursor:pointer;
  transition:transform .12s, box-shadow .12s, border-color .12s;
  z-index:4;
}
.wishlist-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 16px rgba(0,0,0,.08); }
.wishlist-btn.active{ color:#e74c3c; border-color:#e9c0bc; }
.wishlist-btn i{ pointer-events:none; }

/* ===== (existing) below-header greeting box; we keep it but will hide it when inline is shown ===== */
.home-greeting{
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 6px 12px;
  font: 600 0.95rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#2b1f1a;
}

/* ===== Inline greeting styles ===== */
.inline-greeting{
  font: 600 0.92rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#2b1f1a;
  white-space: nowrap;
  margin-left: 12px;
}
.inline-greeting.anchored{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
}

/* hide on very small screens to avoid wrapping */
@media (max-width: 720px){
  .inline-greeting,
  .inline-greeting.anchored{ display:none; }
}
.inline-greeting.anchored {
  position: absolute;
  right: 0;
  bottom: -14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2b1f1a;
}
