:root{
  --bg:#ffffff;
  --card:#f8f9fa;
  --muted:#6c757d;
  --text:#212529;
  --brand:#0d6efd;
  --accent:#198754;
  --danger:#dc3545;
  --shadow: 0 6px 18px rgba(0,0,0,.08);
  --radius: 16px;
  --maxw: 1200px;
  --border: rgba(0,0,0,.1);
  --logo: 68px; /* set 40–48px if you want a taller header */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* Header / Navigation */
header{position:sticky;top:0;z-index:50;backdrop-filter:saturate(1.2) blur(8px);
  background:rgba(255,255,255,.8);border-bottom:1px solid var(--border)}
.nav{max-width:var(--maxw);margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 18px}
.nav-left{display:flex;align-items:center;gap:20px;flex:1}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px}
.menu{display:flex;gap:12px;align-items:center}
.menu a{padding:8px 10px;border-radius:8px;color:var(--muted)}
.menu a:hover{color:var(--text);background:rgba(0,0,0,.04)}

/* Desktop Social Icons in Navigation */
.nav-social-desktop{
  display:flex;
  align-items:center;
  gap:12px;
}
.nav-social-desktop .icon{
  width:22px;
  height:22px;
  opacity:0.85;
  transition:opacity 0.2s ease, transform 0.2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.nav-social-desktop .icon:hover{
  opacity:1;
  transform:translateY(-2px);
}
@media (max-width:720px){
  .nav-social-desktop{
    display:none;
  }
}

/* Mobile Social Icons in Navigation */
.nav-social-mobile{
  display:none;
  align-items:center;
  gap:10px;
}
@media (max-width:720px){
  .nav{
    position:relative;
  }
  .nav-left{
    flex:0 0 auto;
  }
  .nav-social-mobile{
    display:flex;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    align-items:center;
    gap:10px;
  }
  .menu-toggle{
    flex:0 0 auto;
  }
}
.nav-social-mobile .icon{
  width:20px;
  height:20px;
  opacity:0.85;
  transition:opacity 0.2s ease, transform 0.2s ease;
}
.nav-social-mobile .icon:hover{
  opacity:1;
  transform:translateY(-2px);
}

/* Hamburger Menu Toggle Button */
.menu-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:60;
  position:relative;
  align-items:center;
  justify-content:center;
}
.menu-toggle img{
  display:block;
  width:24px;
  height:24px;
  transition:opacity 0.2s ease;
}
.menu-toggle:hover img{
  opacity:0.7;
}
@media (max-width:720px){
  .menu-toggle{
    display:flex;
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  z-index:55;
  display:none;
}
.mobile-menu-overlay.show{
  display:block;
}
.mobile-menu{
  position:fixed;
  top:0;
  right:0;
  width:280px;
  max-width:85vw;
  height:100vh;
  max-height:100vh;
  background:#fff;
  box-shadow:-2px 0 12px rgba(0,0,0,0.15);
  transform:translateX(100%);
  transition:transform 0.3s ease;
  display:flex;
  flex-direction:column;
  padding:60px 24px 24px;
  overflow-y:auto;
  z-index:56;
  will-change:transform;
}
.mobile-menu-overlay.show .mobile-menu{
  transform:translateX(0);
}
.mobile-menu-close{
  position:absolute;
  top:16px;
  right:16px;
  width:44px;
  height:44px;
  border:none;
  background:#f1f3f5;
  border-radius:10px;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:24px;
  color:var(--text);
  z-index:10;
}
.mobile-menu-close:hover{
  background:#e9ecef;
}
.mobile-menu-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:32px;
}
.mobile-menu-link{
  padding:14px 16px;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
  font-size:16px;
  font-weight:500;
  transition:background 0.2s ease;
}
.mobile-menu-link:hover,
.mobile-menu-link:active{
  background:rgba(0,0,0,0.04);
}
.icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;
  opacity:.85;transition:transform .2s ease,opacity .2s ease}
.icon:hover{transform:translateY(-2px);opacity:1}

/* keep the header compact regardless of the SVG's intrinsic size */
.logo-img{
  height: var(--logo);
  width: auto;
  display: block;
}

/* Banner — FULL WIDTH background, boxed content */
.banner{
  width:100%;
  background:linear-gradient(180deg,#fdfdfd 0%,#f4f6f9 100%);
  border-bottom:1px solid var(--border);
}
.banner-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:52px 18px 56px;
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  text-align:center;
}
.banner h1{font-size:clamp(28px,4vw,44px);margin:0 0 6px 0;letter-spacing:.2px}
.banner p{margin:0 auto;color:var(--muted);max-width:700px;font-size:clamp(14px,2vw,16px)}

/* Main hero uses a full-bleed background image with a soft overlay */
#new{
  --hero: url('../assets/images/hero/hero.png'); /* change this path */
  --overlay: linear-gradient(180deg, rgba(255,255,255,.30), rgba(244,246,249,.30));
  background: var(--overlay), var(--hero) center/cover no-repeat;
}

/* Gallery */
main{max-width:var(--maxw);margin:0 auto;padding:18px 18px 80px}
@media (max-width:720px){
  main{padding:8px 18px 80px}
}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media (max-width:1024px){.grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:720px){
  .menu{display:none}
  .menu-toggle{display:flex}
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:460px){.grid{grid-template-columns:1fr}}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow);
  transition:transform .15s ease,box-shadow .15s ease;
  z-index:1;
}
.card:hover{transform:translateY(-3px)}
.thumb{
  aspect-ratio:4/3;
  background:#e9ecef;
  overflow:hidden;
  position:relative;
  z-index:1;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
  position:relative;
  z-index:1;
}
.card:hover .thumb img{transform:scale(1.04)}
/* Square cards (no rounded corners) */
.card{ border-radius: 0; }
.card .thumb{ border-radius: 0; } /* in case any UA style adds rounding */

.content{padding:14px 14px 16px}
.title{font-weight:700;font-size:16px;line-height:1.3;margin:0 0 6px 0;cursor:pointer}
.subtitle{margin:0;color:var(--muted);font-size:13.5px}

/* AdSense Ad Cards - styled to match product cards */
.ad-card{
  background:var(--card);
  border:1px solid var(--border);
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow);
}
.ad-card:hover{
  transform:none; /* Disable hover effect for ads */
  box-shadow:var(--shadow);
}
.ad-thumb{
  aspect-ratio:4/3;
  background:#e9ecef;
  overflow:hidden;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:200px;
}
.ad-thumb ins{
  display:block;
  width:100%;
  height:100%;
  min-height:200px;
}
.ad-content{
  padding:8px 14px 10px;
}
.ad-card .subtitle{
  text-align:center;
  font-size:11px;
  color:var(--muted);
  opacity:0.7;
}

/* Pagination */
.pagination{display:flex;gap:8px;justify-content:center;margin-top:28px;flex-wrap:wrap}
.page-btn{min-width:40px;height:40px;display:inline-grid;place-items:center;padding:0 12px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer;user-select:none;transition:background .15s ease,transform .15s ease}
.page-btn:hover{background:#f1f3f5}
.page-btn.active{background:var(--brand);border-color:transparent;color:#fff;font-weight:800}
.page-btn.disabled{opacity:.45;pointer-events:none}

/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:100;padding:24px}
.modal-backdrop.show{display:flex;animation:fadeIn .15s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{width:min(100%,980px);max-height:min(92vh,1000px);background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;position:relative;box-shadow:var(--shadow)}
@media (max-width:900px){
  .modal-backdrop{padding:0}
  .modal{
    width:100%;
    height:100vh;
    max-height:100vh;
    border-radius:0;
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
    overflow-y:auto;
  }
}
.modal .close{
  position:fixed;
  right:12px;
  top:12px;
  border:none;
  background:#f1f3f5;
  width:32px;
  height:32px;
  border-radius:8px;
  display:grid !important;
  place-items:center;
  cursor:pointer;
  color:var(--text);
  z-index:1001 !important;
  font-size:18px;
  font-weight:bold;
  line-height:1;
  padding:0;
  margin:0;
  opacity:1;
  visibility:visible;
}
.modal .close:hover{
  background:#e9ecef;
}
@media (max-width:900px){
  .modal .close{
    position:fixed;
    right:8px;
    top:8px;
    width:36px;
    height:36px;
    background:rgba(255,255,255,0.98);
    box-shadow:0 2px 12px rgba(0,0,0,0.25);
    font-size:20px;
    z-index:1001 !important;
    display:grid !important;
  }
}
.carousel{background:#f1f3f5;display:grid;grid-template-rows:1fr auto;min-height:420px}
@media (max-width:900px){
  .carousel{
    min-height:50vh;
    max-height:50vh;
    overflow:hidden;
  }
}
.carousel-viewport{position:relative;overflow:hidden}
.carousel-viewport img{width:100%;height:100%;object-fit:contain;background:#f1f3f5}
@media (max-width:900px){
  .carousel-viewport{
    padding-top:24px;
  }
}
.carousel-controls{display:flex;justify-content:space-between;gap:10px;padding:10px;border-top:1px solid var(--border)}
.carousel-controls button{flex:1;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer}
.carousel-controls button:hover{background:#f8f9fa}
.details{
  padding:18px;
  padding-bottom:24px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow-y:auto;
}
@media (max-width:900px){
  .details{
    padding:16px;
    padding-bottom:24px;
    gap:10px;
    max-height:50vh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
}
.details h3{margin:0 0 4px 0}
.desc{color:var(--muted);line-height:1.6;font-size:14.5px}
.link-buttons{
  display:grid;
  gap:10px;
  grid-template-columns:1fr;
  margin-top:auto;
  padding-top:12px;
  padding-bottom:8px;
}
@media (max-width:900px){
  .link-buttons{
    gap:8px;
    padding-top:16px;
    padding-bottom:12px;
  }
}
.link-buttons .btn{
  justify-content:center;
  width:100%;
}
.btn{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;border:1px solid var(--border);background:#fff;color:var(--text);cursor:pointer;transition:transform .15s ease,background .15s ease}
.btn:hover{transform:translateY(-1px);background:#f8f9fa}
.btn.primary{background:var(--brand);border:1px solid var(--brand);color:#fff}
.btn.ghost{background:transparent}

/* Link Button Colors */
#link1.btn{background:#0d6efd;border-color:#0d6efd;color:#fff}
#link1.btn:hover{background:#0b5ed7;border-color:#0b5ed7}
#link2.btn{background:#198754;border-color:#198754;color:#fff}
#link2.btn:hover{background:#157347;border-color:#157347}
#link3.btn{background:#ffc107;border-color:#ffc107;color:#000}
#link3.btn:hover{background:#ffcd39;border-color:#ffcd39}

/* AdSense container */
.ad-banner{ max-width:var(--maxw); margin:18px auto 0; padding:0 18px; }
@media (max-width:720px){
  .ad-banner{ margin:8px auto 0; padding:0 18px; }
}

/* Footer */
footer{color:var(--muted);text-align:center;padding:46px 18px 60px;border-top:1px solid var(--border);
  background:linear-gradient(0deg,#f8f9fa,transparent 60%)}

/* Section Headers */
.section-header{text-align:center;margin-bottom:32px}
.section-header h2{font-size:32px;font-weight:800;color:var(--text);margin:0 0 8px 0}
.section-header p{color:var(--muted);font-size:16px;margin:0}

/* Products Section */
.new-products-section{margin-top:20px}
.new-products-section .section-header{
  margin-bottom:24px;
  text-align:left;
}
.new-products-section .section-header h2{
  margin:0 0 8px 0;
}
.new-products-section .section-subtitle-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.new-products-section .section-subtitle-row p{
  margin:0;
  flex:1;
}
.new-products-section .sorting-controls{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.new-products-section .product-count{
  color:var(--muted);
  font-size:14px;
  white-space:nowrap;
}
.new-products-section .sort-select{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font-size:14px;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease;
  min-width:160px;
}
.new-products-section .sort-select:hover{
  border-color:var(--brand);
}
.new-products-section .sort-select:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(13,110,253,.1);
}
@media (max-width:720px){
  .new-products-section{margin-top:8px}
  .new-products-section .section-header{
    margin-bottom:16px;
  }
  .new-products-section .section-subtitle-row{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .new-products-section .sorting-controls{
    justify-content:space-between;
    width:100%;
  }
  .new-products-section .sort-select{
    flex:1;
    min-width:auto;
  }
}
