/* ========================= AFTERDARK HOMEPAGE (PRO + VARIABLES) ========================= */

/* ---------- GLOBAL VARIABLES (Theme) ---------- */
:root{
  /* 🎨 Base */
  --bg:#ffffff;
  --surface:#f3f3f3;
  --surface-2:#f6f6f6;
  --text:#111111;
  --muted:#666666;
  --muted-2:#999999;

  /* Borders / shadows */
  --border:#eeeeee;
  --border-2:#e6e6e6;
  --border-3:#cfcfcf;
  --shadow-soft:0 10px 26px rgba(0,0,0,.06);

  /* Brand */
  --primary:#111111;
  --on-primary:#ffffff;

  /* Accent (optional) */
  --accent:#0b3d02;

  /* Badges */
  --badge-new-bg:#111111;
  --badge-new-text:#f5e6d3;

  --badge-best-bg:#2f0909;
  --badge-best-text:#f3e5c0;

  --badge-discount-bg:#a12626;
  --badge-discount-text:#fff2e0;

  /* Typography */
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* ✅ Font weights (premium) */
  --fw-thin:300;
  --fw-light:350;
  --fw-regular:400;
  --fw-medium:500;
  --fw-semibold:600;
  --fw-bold:700;
  --fw-black:900;

  /* Radius */
  --r-sm:10px;
  --r-md:14px;
  --r-lg:18px;

  /* Layout */
  --container:1200px;
  --pad-d:50px;
  --pad-m:20px;
}

/* ---------- RESET ---------- */
*{ margin:0; padding:0; box-sizing:border-box; }

body{
  font-family:var(--font-main);
  background:var(--bg);
  color:var(--text);
}

/* ================= NAVBAR SECTION STARTS ================= */
/* TOP BAR */
.top-bar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  height: 44px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--border-2);
  line-height: 44px;
  z-index: 2000;
}

/* NAVBAR */
nav{
  position: fixed;
  top: 44px;
  left: 0;
  width: 100%;

  background: var(--bg);
  padding: 14px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  z-index: 1500;
  border-bottom: 1px solid var(--border);
}

/* BRAND */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#000;
}
.brand img{ width:38px; height:38px; }
.brand-text{
  font-size:22px;
  font-weight: var(--fw-bold);
  letter-spacing:.2px;
}

/* SEARCH */
.search-container{
  flex:1;
  max-width:650px;
  margin:0 30px;
  position:relative;
}
.search-box{
  width:100%;
  padding:14px 48px 14px 18px;
  border:none;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size:14px;
  outline:none;
}
.search-btn{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  font-size:18px;
  color: #555;
}

/* 🔎 Search dropdown (navbar) */
.search-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  z-index: 9999;
}

.search-dd-item{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f2f2f2;
}

.search-dd-item:last-child{
  border-bottom: none;
}

.search-dd-item:hover{
  background: #fafafa;
}

.search-dd-img{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f4;
  flex: 0 0 40px;
}

.search-dd-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-dd-name{
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.search-dd-empty{
  padding: 12px;
  font-size: 13px;
  color: #666;
}

/* RIGHT */
.nav-right{
  display:flex;
  align-items:center;
  gap:22px;
}

.location{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color: var(--muted);
}
.location i{font-size:16px;color:#000;}
.location span{
  font-weight: var(--fw-bold);
  color:#000;
  font-size:13px;
  text-decoration:underline;
  cursor:pointer;
}

/* ICONS */
.icon-btn{
  position:relative;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius: var(--r-md);
  background: transparent;
  border: none;
  box-shadow: none;

  text-decoration:none;
  color: var(--text);

  transition: transform 0.18s ease;
}
.icon-btn:hover{ transform: translateY(-1px); }

/* ✅ LUCIDE THIN LOOK */
.icon-btn svg{
  width:20px;
  height:20px;
  stroke-width:1.5;
  opacity:0.95;
  display:block;
}

/* 🔴 Cart badge (premium) */
.badge{
  position:absolute;
  top:2px;
  right:2px;
  min-width:16px;
  height:16px;
  padding:0 6px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:10px;
  font-weight: var(--fw-bold);
  line-height:1;

  color: var(--on-primary);
  background:#e10600;
  border-radius:999px;
  border:none;
  box-shadow:0 2px 6px rgba(225,6,0,0.4);
}

/* HAMBURGER */
.hamburger{
  display:none;
  width:34px;
  height:26px;
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  position:relative;
}

.hamburger span{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background:#000;
  border-radius:2px;
  transition: transform 0.28s ease, opacity 0.18s ease, top 0.28s ease;
  transform-origin:center;
  will-change:transform, top, opacity;
}
.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:12px; }
.hamburger span:nth-child(3){ top:24px; }

.hamburger.active span:nth-child(1){ top:12px; transform:rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; transform:scaleX(0.6); }
.hamburger.active span:nth-child(3){ top:12px; transform:rotate(-45deg); }

.hamburger:hover span{ background: var(--text); }

/* MOBILE MENU */
.mobile-menu{
  position:fixed;
  top:110px;
  left:0;
  width:100%;
  background:var(--bg);
  border-top:1px solid var(--border);
  display:none;
  flex-direction:column;
  z-index:1400;
  animation:slideDown 0.35s ease;
}
.mobile-menu a{
  padding:16px 24px;
  border-bottom:1px solid var(--border);
  text-decoration:none;
  color:#000;
  font-size:14px;
}

@keyframes slideDown{
  from{opacity:0;transform:translateY(-10px);}
  to{opacity:1;transform:translateY(0);}
}

@media(max-width:768px){
  .search-container{display:none;}
  .location{display:none;}
  .hamburger{display:block;}
}

@media(max-width:441px){
  nav{padding:14px 18px;}
  .brand-text{font-size:18px;}
}

.header-spacer{ height:110px; }


/* ================= MOBILE SEARCH (VISIBLE FIX) ✅ ================= */

.search-toggle{ display:none; }
.mobile-search-wrap{ display:none; }

@media (max-width: 768px){

  /* desktop search hide */
  .search-container{ display:none !important; }

  /* mobile icon show */
   /* ================= SEARCH ICON SIZE FIX (MOBILE) ================= */

.search-toggle{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.search-toggle i{
  font-size:18px;   /* ✅ same as other icons */
  color:#666;
}


  /* ✅ IMPORTANT FIX: fixed + z-index so it won't hide behind nav */
  .mobile-search-wrap{
    display:block;
    position:fixed;
    left:0;
    right:0;

    /* ✅ topbar (44px) + navbar (approx 60px) */
    top:104px;

    background:#fff;
    padding:0 16px;
    overflow:hidden;

    max-height:0;
    opacity:0;
    transform:translateY(-6px);

    transition:max-height .25s ease, opacity .2s ease, transform .25s ease;
    border-bottom:1px solid #eee;

    z-index:9999; /* ✅ show above everything */
  }

  .mobile-search-wrap.open{
    max-height:90px;
    opacity:1;
    transform:translateY(0);
    padding:10px 16px 12px;
  }

  .mobile-search-form{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid #e9e9e9;
    border-radius:14px;
    padding:10px 12px;
    background:#fafafa;
  }

  .mobile-search-form .ms-icon{
    font-size:14px;
    opacity:.75;
  }

  .mobile-search-input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:14px;
    color:#111;
  }

  .mobile-search-submit{
    border:none;
    background:#111;
    color:#fff;
    width:36px;
    height:36px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
}

@media (max-width: 441px){
  .mobile-search-wrap{ top:104px; } /* same ok */
  .mobile-search-wrap.open{ max-height:86px; padding:10px 14px 12px; }
}

/* ================= NAVBAR SECTION ENDS ================= */


/* ================= CATEGORIES GRID ================= */
.categories-section{
  padding:48px var(--pad-d) 24px;
  background:var(--bg);
  max-width: var(--container);
  margin: 0 auto;
}

.categories-header{ margin-bottom: 28px; }

.categories-header h2{
  font-size: 28px;
  font-weight: var(--fw-light);  /* ✅ patla premium */
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}
.categories-header h2::after{
  content:"";
  display:block;
  width:60px;
  height:3px;
  background:var(--primary);
  margin-top:10px;
}

@media(max-width:480px){
  .categories-header h2{ font-size: 22px; }
}

.categories-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:200px;
  gap:22px;
}

/* CARD */
.cat-card{
  position:relative;
  overflow:hidden;
  border-radius: var(--r-lg);
  background:#000;
  transform: translateZ(0);
}

/* IMAGE */
.cat-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}

/* Overlay */
.cat-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  transition: background .25s ease;
}

/* ✅ Text more premium + slightly thinner */
.cat-text{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:2;

  font-size:22px;
  font-weight: var(--fw-light); /* ✅ patla */
  letter-spacing:3px;
  text-transform:uppercase;

  color:var(--on-primary);
  text-shadow:0 6px 18px rgba(0,0,0,.6);
}

/* Hover */
.cat-card:hover img{ transform:scale(1.08); }
.cat-card:hover::after{ background:rgba(0,0,0,.45); }

.cat-card.wide{ grid-column:span 2; }
.cat-card.tall{ grid-row:span 2; }

/* Mobile */
@media (max-width: 768px) {
  .categories-section{
    padding: 32px var(--pad-m);
    max-width: 100%;
  }
  .categories-grid{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 14px;
  }
  .cat-card.wide,
  .cat-card.tall{ grid-column:auto; grid-row:auto; }

  .cat-text{
    font-size: 14px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 380px) {
  .categories-grid{
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .cat-text{ font-size: 13px; }
}
/* ================= CATEGORIES GRID ENDS ================= */


/* ================= PRODUCTS SECTION START ================= */
.products-section{
  padding:32px var(--pad-d) 48px;
  background:var(--bg);
  max-width: var(--container);
  margin: 0 auto;
}

/* HEADER */
.products-header{
  margin-bottom:64px;
}
.products-header h3{
  font-size:34px;
  font-weight: var(--fw-light); /* ✅ patla premium */
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--text);
  position:relative;
}
.products-header h3::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  background:var(--primary);
  margin-top:14px;
}

@media(max-width:768px){
  .products-section{ padding:28px var(--pad-m); max-width: 100%; }
  .products-header{ margin-bottom:40px; }
  .products-header h3{
    font-size:24px;
    letter-spacing:1px;
  }
}

/* PRODUCT GRID */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
  column-gap:12px;   /* ✅ thoda clean */
  row-gap:36px;
}

.product-link{
  text-decoration:none;
  color:inherit;
  display:block;
}

.product-card{
  display:flex;
  flex-direction:column;
}

/* ✅ Image area refined */
.product-img{
  width:100%;
  height:350px;
  background:#f5f5f5;
  position:relative;
  overflow:hidden;
}
.product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1);
  transition: transform .45s ease;
}
.product-card:hover .product-img img{
  transform: scale(1.04); /* subtle premium zoom */
}

/* BADGE */
.product-badge{
  position:absolute;
  top:0;
  left:0;
  font-size:10px;
  font-weight: var(--fw-semibold);
  padding:6px 12px;
  text-transform:uppercase;
  letter-spacing:.6px;
  z-index:10;
}
.product-badge.new{
  background: var(--badge-new-bg);
  color: var(--badge-new-text);
}
.product-badge.best{
  background: var(--badge-best-bg);
  color: var(--badge-best-text);
}
.product-badge.discount{
  background: var(--badge-discount-bg);
  color: var(--badge-discount-text);
}

/* INFO */
.product-info{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* ✅ product name patla */
.product-name{
  font-size:14px;
  font-weight: var(--fw-light);
  line-height:1.25;
}

/* ✅ prices clean */
.product-price{
  font-size:13px;
  display:flex;
  gap:8px;
  align-items:center;
  color: var(--text);
  font-weight: var(--fw-regular);
}

.old-price{
  color: var(--muted-2);
  text-decoration:line-through;
  font-weight: var(--fw-regular);
}
.new-price{
  font-weight: var(--fw-medium);
}

@media(max-width:768px){
  .products-grid{ gap:36px 20px; }
}
@media(max-width:441px){
  .products-grid{ grid-template-columns:1fr; }
}
/* ================= PRODUCTS SECTION END ================= */


/* ================= FOOTER SECTION STARTS ================= */
.site-footer{
  background: var(--bg);
  border-top: 1px solid #e9e9e9;
  color: #444;

  margin-top: 20px;
  padding: 32px 20px 18px;
}

.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand{
  flex: 1 1 320px;
  min-width: 220px;
}

.footer-brand .brand{
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand .brand img{
  width: 40px;
  height: 40px;
}

.footer-brand p{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 420px;
  font-weight: var(--fw-light);
}

.footer-social{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom: 8px;
}

.footer-social a{
  text-decoration: none;
  font-size: 16px;
  color: #222;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:6px;
  border:1px solid var(--border);
  transition: transform .15s ease, border-color .15s ease;
}
.footer-social a:hover{
  transform: translateY(-1px);
  border-color: var(--border-3);
}

.footer-cols{
  display:flex;
  gap: 28px;
  flex: 1 1 520px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-col{ min-width: 140px; }

.footer-col h4{
  font-size: 14px;
  font-weight: var(--fw-semibold); /* ✅ refined */
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing:.2px;
}

.footer-col ul{ list-style: none; }
.footer-col li{ margin-bottom: 10px; }

.footer-col a{
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--fw-light);
}
.footer-col a:hover{
  color: var(--accent);
  text-decoration: underline;
}

.footer-hr{
  height: 1px;
  background: #f0f0f0;
  margin: 18px 0;
  border: none;
}

.footer-bottom{
  max-width: var(--container);
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}

.footer-bottom .copyright{
  font-size: 13px;
  color: var(--muted);
  font-weight: var(--fw-light);
}

.footer-bottom .policy-links{
  display:flex;
  gap:18px;
  align-items:center;
}

.footer-bottom .policy-links a{
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: var(--fw-light);
}
.footer-bottom .policy-links a:hover{
  text-decoration: underline;
  color: var(--accent);
}

@media (max-width: 880px) {
  .footer-inner { gap: 20px; }
  .footer-cols { justify-content:flex-start; }
  .footer-brand, .footer-cols { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .footer-brand p { max-width: 100%; }
  .footer-col { min-width: 120px; }
  .footer-bottom { font-size: 13px; padding-bottom: 18px; }
}
/* ================= FOOTER SECTION ENDS ================= */
