/* =========================================
   ORCLAVE - UI/UX Match (LIGHT ONLY)
   - No dark mode
   - 3-column grid on mobile + desktop
   - True hero background
   - Mobile nav hamburger toggle
========================================= */

:root{
  --page-bg:#f3f4f6;
  --page-text:#0b1220;

  --nav-bg:#ffffffcc;
  --nav-text:#111827;
  --nav-border:rgba(0,0,0,.07);

  --card:#ffffff;
  --soft:#f1f4f8;
  --muted:#6b7280;
  --line:rgba(0,0,0,.08);

  --shadow:0 18px 40px rgba(0,0,0,.10);
  --radius:18px;

  --accent:#111827;          /* black button like UI */
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--page-bg);
  color:var(--page-text);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:1120px;margin:0 auto;padding:0 18px}
.muted{color:var(--muted)}
hr.line{border:0;border-top:1px solid var(--line);margin:18px 0}

/* =========================
   Buttons
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer;
  font-weight:800;
  transition:transform .12s ease, filter .12s ease;
}
.btn:hover{transform:translateY(-1px)}
.btnSoft{
  background:var(--soft);
}
.btnPrimary{
  background:var(--accent);
  color:#fff;
  border-color:transparent;
}
.btnDanger{
  border-color:rgba(239,68,68,.45);
  color:#ef4444;
}

.iconBtn{
  width:40px;height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--soft);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* =========================
   Nav (UI/UX header)
========================= */
.nav{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter: blur(10px);
  background:var(--nav-bg);
  border-bottom:1px solid var(--nav-border);
}
.navInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:68px;
  position:relative;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}
.brandLogo{
  width:38px;height:38px;
  border-radius:12px;
  background:linear-gradient(135deg, #111827, #374151);
  box-shadow:0 10px 25px rgba(0,0,0,.10);
}

.navLinks{
  display:flex;
  gap:18px;
  align-items:center;
  font-weight:900;
}
.navLinks a{opacity:.86}
.navLinks a:hover{opacity:1}

.navRight{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Hamburger (mobile) */
.hamburger{
  display:none;
  width:44px;height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column;
  cursor:pointer;
}
.hamburger span{
  display:block;
  width:18px;height:2px;
  background:#111827;
  border-radius:999px;
}

/* Mobile dropdown menu */
@media (max-width:560px){
  .hamburger{display:flex}
  .navLinks{
    display:none;
    position:absolute;
    top:68px;
    right:18px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:12px;
    box-shadow:0 18px 40px rgba(0,0,0,.14);
    flex-direction:column;
    gap:12px;
    min-width:190px;
  }
  .navLinks.isOpen{display:flex}
}

/* =========================
   HERO (TRUE background)
========================= */
.heroBgSection{
  position:relative;
  height:300px;
  background-image:url("https://images.unsplash.com/photo-1517336714731-489689fd1ca8?auto=format&fit=crop&w=1800&q=80");
  background-size:cover;
  background-position:center;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.heroBgOverlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.55));
}
.heroContent{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.heroShopText{
  font-size:clamp(64px, 14vw, 170px);
  font-weight:900;
  letter-spacing:-.06em;
  color:#fff;
  opacity:.92;
  text-shadow:0 18px 70px rgba(0,0,0,.60);
  user-select:none;
}

/* =========================
   Shop block header
========================= */
.shopBlock{padding:18px 0 10px 0}
.shopTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:-14px; /* pulls content up like UI */
}
.shopTitle{
  font-size:18px;
  font-weight:900;
}

/* Search bar (UI) */
.searchBar{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 12px;
  min-width:420px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}
.searchBar input{
  border:0;
  outline:0;
  background:transparent;
  color:var(--page-text);
  width:100%;
  font-weight:700;
}
.searchBar button{
  border:0;
  cursor:pointer;
  padding:10px 14px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:900;
}

/* =========================
   Cards + Product grid (3 columns ALWAYS)
========================= */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

/* =========================
   Fully Responsive Product Grid
========================= */

.grid3{
    display:grid;
    gap:16px;
    margin-top:16px;
    grid-template-columns:repeat(4, minmax(0,1fr));
}

/* Laptop */
@media (max-width:1200px){
    .grid3{
        grid-template-columns:repeat(3,1fr);
    }
}

/* Tablet */
@media (max-width:900px){
    .grid3{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Mobile */
@media (max-width:600px){
    .grid3{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .pImgFixed{
        height:140px;
    }

    .pBody{
        padding:10px;
    }

    .pName{
        font-size:13px;
        line-height:1.3;
    }

    .pMeta{
        font-size:11px;
    }

    .compactActions .btn{
        font-size:11px;
        padding:8px;
    }
}

/* Very Small Phones */
@media (max-width:360px){
    .grid3{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .pImgFixed{
        height:120px;
    }

    .pName{
        font-size:12px;
    }

    .compactActions .btn{
        font-size:10px;
        padding:7px;
    }
}

/* Product */
.productCard{overflow:hidden}
.pImg{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
}
.pImgFixed{
  height:170px; /* clean consistent cards */
}
.pImg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Top-right tag inside image like UI */
.cardTag{
  position:absolute;
  top:10px;
  right:10px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.08);
  font-size:11px;
  font-weight:900;
}

/* Compact body like UI */
.pBody{padding:14px}
.pBody.compact{padding:12px}
.pName{
  font-weight:900;
  font-size:14px;
  margin:0 0 6px 0;
}
.pMeta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
}
.pBrand{color:var(--muted);font-weight:900}
.pStars{font-size:12px}

/* Actions */
.actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.actions .btn{flex:1}
.compactActions{margin-top:10px}
.compactActions .btn{padding:9px 10px;font-size:12px}

/* =========================
   Pagination (UI style)
========================= */
.pagerWrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:18px 0 6px 0;
}
.pagerBtn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--soft);
  font-weight:900;
  white-space:nowrap;
}
.pagerNums{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.pagerNum{
  width:38px;height:38px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--soft);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.pagerNum.active{
  background:#111827;
  color:#fff;
  border-color:transparent;
}

/* =========================
   Recommendations section (fixed sizes)
========================= */
.recoSection{padding-bottom:10px}
.recoHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:22px;
}
.recoTitle{margin:0;font-weight:900}

.recoTrack{
  display:flex;
  gap:14px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  padding:10px 2px 2px;
}
.recoItem{
  min-width:260px;
  scroll-snap-align:start;
}

/* fixed image height so no oversized */
.recoImg{
  height:150px;
}
.recoImg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* =========================
   CTA section (dark block like UI)
========================= */
.ctaBox{
  margin:28px 0 18px;
  padding:18px;
  border-radius:var(--radius);
  background:linear-gradient(180deg, #2b2b2b, #121212);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 28px 70px rgba(0,0,0,.28);
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}
.ctaBox h3{margin:0 0 8px 0;font-weight:900}
.ctaForm{
  display:flex;
  gap:10px;
  align-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:10px 12px;
}
.ctaForm input{
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  width:220px;
  font-weight:800;
}
.ctaForm button{
  border:0;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  color:#111827;
  font-weight:900;
}

/* =========================
   Footer
========================= */
.footer{padding:18px 0 36px}
.footerCols{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.footerCols a{opacity:.82}
.footerCols a:hover{opacity:1}

/* =========================
   Admin (keep working)
========================= */
.adminWrap{max-width:980px;margin:0 auto;padding:18px}
.table{
  width:100%;
  border-collapse:collapse;
  border-radius:14px;
  border:1px solid var(--line);
  overflow:hidden;
}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.table th{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.formRow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field label{
  display:block;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  margin-bottom:6px;
}
.field input,.field select,.field textarea{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--page-text);
  outline:none;
}
.field textarea{min-height:92px;resize:vertical}
.notice{
  padding:10px 12px;
  border-radius:14px;
  background:var(--soft);
  border:1px solid var(--line);
  font-weight:800;
}

/* =========================
   Responsive adjustments (KEEP 3 columns)
========================= */
@media (max-width:900px){
  .footerCols{grid-template-columns:repeat(2,1fr)}
  .searchBar{min-width:unset;width:100%}
  .shopTop{flex-direction:column;align-items:stretch}
}

/* Mobile: keep 3 columns, but make everything compact */
/* Mobile: keep 3 columns, but make everything compact */
/* Mobile: keep 3 columns, but make everything compact */
@media (max-width:560px){
  .grid3{gap:10px}
  .pImgFixed{height:120px}
  .pBody.compact{padding:10px}
  .pName{font-size:12px}
  .pMeta{font-size:11px}
  .cardTag{font-size:10px;padding:5px 8px}
  .compactActions .btn{padding:8px 9px;font-size:11px}
  .recoItem{min-width:200px}
  .recoImg{height:120px}
  .ctaBox{flex-direction:column;align-items:stretch}
  .ctaForm input{width:100%}
  .pagerWrap{flex-direction:column;align-items:stretch}
  .pagerBtn{text-align:center}
  .pagerNums{justify-content:center}
}



/* =========================================
   THEME: Dark Purple / Black Mode
   Usage: <html data-theme="night">
========================================= */

html[data-theme="night"]{
  /* Core */
  --page-bg:#0b0613;
  --page-text:#f3efff;

  --nav-bg:rgba(15, 9, 26, .72);
  --nav-text:#f3efff;
  --nav-border:rgba(255,255,255,.10);

  --card:rgba(18, 10, 33, .72);
  --soft:rgba(255,255,255,.06);
  --muted:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.12);

  --shadow:0 22px 70px rgba(0,0,0,.55);
  --radius:18px;

  /* Accent buttons (purple) */
  --accent:#7c3aed;
}

/* Background atmosphere */
html[data-theme="night"] body{
  background:
    radial-gradient(1000px 560px at 18% 10%, rgba(124,58,237,.22), rgba(0,0,0,0) 60%),
    radial-gradient(900px 520px at 82% 22%, rgba(168,85,247,.16), rgba(0,0,0,0) 60%),
    radial-gradient(900px 520px at 50% 100%, rgba(59,130,246,.10), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #0b0613 0%, #080410 65%, #06030d 100%);
}

/* Optional subtle grain */
html[data-theme="night"] body::before{
  content:"";
  position:fixed;
  inset:-20%;
  pointer-events:none;
  z-index:-1;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,.03) 0,
    rgba(255,255,255,.03) 1px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0) 7px
  );
  opacity:.12;
}

/* Nav + icons */
html[data-theme="night"] .nav{
  background:var(--nav-bg);
  border-bottom:1px solid var(--nav-border);
}
html[data-theme="night"] .hamburger{
  background:rgba(18,10,33,.85);
  border-color:var(--line);
}
html[data-theme="night"] .hamburger span{ background:#f3efff; }

html[data-theme="night"] .iconBtn{
  background:rgba(255,255,255,.06);
  border-color:var(--line);
  color:var(--page-text);
}

/* Cards + inputs */
html[data-theme="night"] .card,
html[data-theme="night"] .searchBar,
html[data-theme="night"] .ctaForm,
html[data-theme="night"] .table,
html[data-theme="night"] .field input,
html[data-theme="night"] .field select,
html[data-theme="night"] .field textarea{
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color:var(--line);
  color:var(--page-text);
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.07) inset,
    0 -14px 40px rgba(0,0,0,.20) inset;
  backdrop-filter: blur(12px);
}

/* Text + muted */
html[data-theme="night"] .muted{ color:var(--muted); }

/* Buttons */
html[data-theme="night"] .btn{
  border-color:var(--line);
}
html[data-theme="night"] .btnSoft{
  background:rgba(255,255,255,.06);
  color:var(--page-text);
}
html[data-theme="night"] .btnPrimary{
  background:linear-gradient(135deg, rgba(124,58,237,1), rgba(168,85,247,1));
  color:#0b0613;
  border-color:transparent;
  box-shadow:
    0 18px 55px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 10px 28px rgba(124,58,237,.22);
}
html[data-theme="night"] .btnPrimary:hover{ filter:brightness(1.03); }

/* Search bar button */
html[data-theme="night"] .searchBar button{
  background:linear-gradient(135deg, rgba(124,58,237,1), rgba(168,85,247,1));
  color:#0b0613;
}

/* Pager active */
html[data-theme="night"] .pagerNum.active{
  background:linear-gradient(135deg, rgba(124,58,237,1), rgba(168,85,247,1));
  color:#0b0613;
}

/* Tag pill on product images */
html[data-theme="night"] .cardTag{
  background:rgba(12,7,20,.72);
  border-color:rgba(255,255,255,.12);
  color:rgba(255,255,255,.92);
}

/* Hero overlay slightly more cinematic in night mode */
html[data-theme="night"] .heroBgOverlay{
  background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.70));
}

/* CTA block stays dark but becomes purple-leaning */
html[data-theme="night"] .ctaBox{
  background:linear-gradient(180deg, #1a0f2a, #0b0613);
  border-color:rgba(255,255,255,.10);
  box-shadow:0 28px 80px rgba(0,0,0,.55);
}
html[data-theme="night"] .ctaForm button{
  background:linear-gradient(135deg, rgba(124,58,237,1), rgba(168,85,247,1));
  color:#0b0613;
}

/* Optional scrollbar (nice on desktop) */
html[data-theme="night"] ::-webkit-scrollbar{height:10px;width:10px}
html[data-theme="night"] ::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.14);
  border-radius:999px;
  border:2px solid rgba(0,0,0,.20);
}

/* =========================================
   NIGHT MODE: Fix mobile dropdown menu contrast
========================================= */
@media (max-width:560px){
  html[data-theme="night"] .navLinks{
    background: rgba(12, 7, 20, .92);     /* dark panel */
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 18px 60px rgba(0,0,0,.60);
  }

  html[data-theme="night"] .navLinks a{
    color: rgba(255,255,255,.92);        /* visible links */
    opacity: 1;
  }

  html[data-theme="night"] .navLinks a:hover{
    color: #a78bfa;                      /* purple hover */
  }
}

@media (max-width:560px){
  html[data-theme="night"] .navLinks a{
    padding:10px 12px;
    border-radius:12px;
  }
  html[data-theme="night"] .navLinks a:hover{
    background: rgba(255,255,255,.06);
  }
}

/* Google Maps responsive fix */
.mapBox iframe{
  width:100% !important;
  height:320px !important;
  border:0 !important;
  display:block;
}


.brand{
    font-weight:900;
}

.brandLink{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:inherit;
}

.logo{
    width:42px;
    height:42px;
    object-fit:contain;
    display:block;
}

.brandLink span{
    font-size:1rem;
    font-weight:900;
    white-space:nowrap;
}

/* =========================================
   COMPLETE MOBILE RESPONSIVE OVERRIDE
   Add this at the VERY END of your CSS
========================================= */

@media screen and (max-width:768px){

    .wrap{
        padding:0 12px;
    }

    /* Hero */
    .heroBgSection{
        height:220px;
    }

    .heroShopText{
        font-size:clamp(42px,16vw,80px);
        text-align:center;
    }

    /* Shop Header */
    .shopTop{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }

    .searchBar{
        width:100%;
        min-width:0;
    }

    /* Product Grid */
    .grid3{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    /* Product Card */
    .productCard{
        width:100%;
    }

    .pImgFixed{
        height:140px;
    }

    .pBody,
    .pBody.compact{
        padding:10px;
    }

    .pName{
        font-size:13px;
        line-height:1.35;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        min-height:35px;
    }

    .pMeta{
        font-size:11px;
        gap:6px;
        flex-wrap:wrap;
    }

    .actions,
    .compactActions{
        display:flex;
        flex-direction:column;
        gap:8px;
    }

    .actions .btn,
    .compactActions .btn{
        width:100%;
        font-size:12px;
        padding:10px;
    }

    .cardTag{
        font-size:10px;
        padding:5px 8px;
    }

    /* Pagination */
    .pagerWrap{
        flex-direction:column;
        gap:12px;
        align-items:center;
    }

    .pagerNums{
        justify-content:center;
        flex-wrap:wrap;
    }

    /* Recommendations */
    .recoItem{
        min-width:180px;
    }

    .recoImg{
        height:120px;
    }

    /* CTA */
    .ctaBox{
        flex-direction:column;
        text-align:center;
    }

    .ctaForm{
        width:100%;
    }

    .ctaForm input{
        width:100%;
    }

    /* Footer */
    .footerCols{
        grid-template-columns:1fr;
        gap:18px;
        text-align:center;
    }

    /* Admin */
    .formRow{
        grid-template-columns:1fr;
    }

    .table{
        display:block;
        overflow-x:auto;
    }
}

/* Small Phones */
@media screen and (max-width:480px){

    .wrap{
        padding:0 10px;
    }

    .grid3{
        gap:10px;
    }

    .pImgFixed{
        height:120px;
    }

    .pName{
        font-size:12px;
    }

    .btn{
        font-size:11px;
    }

    .heroBgSection{
        height:180px;
    }

    .heroShopText{
        font-size:48px;
    }

    .logo{
        width:34px;
        height:34px;
    }

    .brandLink span{
        font-size:.9rem;
    }
}
