/* ========== Base / Reset ========== */
html:focus-within { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.5;
    color: #0f172a;
    background: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/*a:hover { text-decoration: underline; } */
h1, h2, h3 { font-weight: 500; }

/* Basic layout helpers */
.container { width: min(1140px, 92vw); margin-inline: auto; }
.skip-link{ position:absolute; left:-999px; top:8px; background:#fff; padding:10px 12px; border-radius:8px; border:1px solid #ddd; z-index:9999; }
.skip-link:focus{ left:12px; }

/* Topbar */
.topbar{ background:#111827; color:#e5e7eb; font-size:.875rem; }
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; }
.topbar__left,.topbar__right{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

/* Sticky header */
.site-header{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid #e5e7eb; }
.header__inner{ display:grid; grid-template-columns:220px 1fr auto; align-items:center; gap:14px; padding:12px 0; }
.brand{ display:flex; gap:10px; align-items:center; }
.brand__logo{ width:62px; height:50px; border-radius:10px; background:linear-gradient(135deg,#0ea5e9,#0b6aa2); color:#fff; display:grid; place-items:center; font-weight:800; }
.brand__text strong{ display:block; line-height:1.1; }
.brand__text span{ display:block; font-size:.85rem; color:#475569; }

/* Desktop nav module output */
.primary-nav ul { list-style:none; padding:0; margin:0; display:flex; gap:18px; flex-wrap:wrap; font-weight:700; }
.primary-nav a { padding:10px 10px; border-radius:10px; display:inline-block; }
.primary-nav a:hover { background:#f1f5f9; text-decoration:none; }

/* Header actions */
.header-actions{ display:flex; gap:10px; align-items:center; justify-self:end; }
.icon-btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:12px; border:1px solid #e5e7eb; background:#fff; font-weight:700; }

/* Mobile hamburger */
.hamburger{ display:none; }
.hamburger__icon{
  width:18px; height:12px; display:inline-block;
  background:
    linear-gradient(#0f172a 0 0) 0 0/100% 2px,
    linear-gradient(#0f172a 0 0) 0 50%/100% 2px,
    linear-gradient(#0f172a 0 0) 0 100%/100% 2px;
  background-repeat:no-repeat;
  border-radius:2px;
}

/* Bootstrap offcanvas styling tweaks */
.offcanvas__brand{ display:flex; align-items:center; gap:10px; }
.side-nav ul{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.offcanvas__nav a{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  font-weight:700;
  display:block;
}
.offcanvas__nav a:hover{ background:#f8fafc; text-decoration:none; }

/* Responsive: hide desktop menu, show hamburger */
@media (max-width: 900px){
  .header__inner{ grid-template-columns: 1fr auto; grid-template-areas:"brand actions" "nav nav"; }
  nav.primary-nav{ display:none; } /* menu goes offcanvas */
  .hamburger{ display:inline-flex; }
}

.side-nav {
      height: 100%;
      width: 0;
      position: fixed;
      z-index: 1000;
      top: 0;
      left: 0;
      background-color: #20A0D1;
      overflow-x: hidden;
      transition: 0.5s;
      padding-top: 60px;
   }

   .side-nav a {
      padding: 8px 8px 8px 32px;
      text-decoration: none;
      font-size: 20px;
      color: white;
      display: block;
      transition: 0.3s;
      font-weight: bold;
      font-style: italic;
   }

   .side-nav a:hover {
      color: #f59e0b;
   }

   .side-nav .closebtn {
      position: absolute;
      top: 0;
      right: 15px;
      font-size: 36px;
      margin-left: 50px;
      background-color: #20A0D1;
      color: #FFF;
      border: none;
   }

   #main {
      transition: margin-left 0.5s;
   }

  @media screen and (max-height: 450px) {
      .side-nav {
         padding-top: 15px;
      }
      .side-nav a {
         font-size: 18px;
      }
   }

   .offcanv_logo img { margin: 0 auto; }


/* Base input styles */
input,
textarea,
select {
  font-family: inherit;
  font-size: 14px;
  padding: 5px 7px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
input:focus,
textarea:focus,
select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* Placeholder */
::placeholder {
  color: #999;
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

/* Checkbox & radio (kept simple) */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #4a90e2;
}


/* ========== Hero ========== */
    .hero {
      background:
        linear-gradient(90deg, rgba(2,6,23,0.55), rgba(2,6,23,0.25)),
        url("assets/hero.jpg");
      background-size: cover;
      background-position: center;
      color: #fff;
    }
    .hero__inner {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 24px;
      padding: 54px 0;
      align-items: center;
    }
    .hero h2 {
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      line-height: 1.15;
      margin: 0 0 10px 0;
      letter-spacing: -0.02em;
    }
    .hero p { margin: 0 0 18px 0; max-width: 56ch; color: rgba(255,255,255,0.92); }
    .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 12px 16px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.22);
      font-weight: 800;
      letter-spacing: 0.01em;
      text-decoration: none;
    }
    .btn--primary { background: #f59e0b; border-color: #f59e0b; color: #111827; }
    .btn--primary:hover { filter: brightness(0.96); text-decoration: none; }
    .btn--ghost { background: rgba(255,255,255,0.10); }
    .btn--ghost:hover { background: rgba(255,255,255,0.16); text-decoration: none; }

    .hero__mock {
      justify-self: end;
      width: min(340px, 90%);
      aspect-ratio: 1 / 1;
      border-radius: 18px;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.18);
      box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    }
    @media (max-width: 900px) {
      .hero__inner { grid-template-columns: 1fr; }
      .hero__mock { justify-self: start; }
    }

    /* ========== Section headers ========== */
    .section { padding: 28px 0; }
    .section-title {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      margin: 0 0 12px 0;
    }
    .section-title h2 {
      margin: 0;
      font-size: 1.25rem;
      letter-spacing: -0.01em;
    }
    .muted { color: #475569; }


 /* ========== Best sellers grid (2 columns) ========== */
    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }
    @media (max-width: 900px) {
      .two-col { grid-template-columns: 1fr; }
    }

    /* ===== Best sellers panel (each_product style) ===== */
 .mb-panel {
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 10px 30px rgba(15,23,42,0.05);
    }
    .mb-panel__head {
      background: linear-gradient(90deg, #0ea5e9, #0b6aa2);
      color: #fff;
      padding: 12px 14px;
      font-weight: 900;
    }
    .mb-product-list { list-style: none; margin: 0; padding: 0; }
    
/* Desktop/tablet: image | text | price */
.mb-product {
  display: grid;
  grid-template-columns: 295px 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #eef2f7;
  align-items: center;
}

/* image box */
.thumb {
  width: 295px;
  height: 120px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* or contain if you prefer */
  display: block;
}

.product__title { margin: 0; font-weight: 800; }
.product__meta { margin: 4px 0 0; font-size: .9rem; color: #64748b; }
.price { font-weight: 900; color: #0b6aa2; white-space: nowrap; }
.mb-product a:hover { text-decoration: none; }
.mb-product:hover { background: #f8fafc; }

/* ✅ Mobile: stack in one column */
@media (max-width: 640px) {
  .mb-product {
    grid-template-columns: 1fr;   /* single column */
    gap: 10px;
    align-items: start;
  }

  .thumb {
    width: 100%;
    height: auto;                /* let image define height */
  }

  .thumb img {
    height: auto;
    object-fit: contain;         /* usually better on mobile for product images */
  }

  .price {
    justify-self: start;         /* align price to left under title */
  }
}



        /* ========== Feature tiles ========== */
    .features {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }
    @media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

    .feature {
      border-radius: 16px;
      padding: 14px;
      color: #0f172a;
      border: 1px solid #e5e7eb;
      background: #fff;
      box-shadow: 0 10px 30px rgba(15,23,42,0.05);
    }
    .feature h3 { margin: 0 0 6px 0; font-size: 1rem; }
    .feature p { margin: 0; color: #475569; font-size: .95rem; }
    .feature--green { border-left: 6px solid #22c55e; }
    .feature--purple { border-left: 6px solid #a855f7; }
    .feature--blue { border-left: 6px solid #3b82f6; }
    .feature--amber { border-left: 6px solid #f59e0b; }


    /* ========== Footer ========== */
    footer.site-footer {
      margin-top: 28px;
      border-top: 1px solid #e5e7eb;
      background: #0b1220;
      color: #e5e7eb;
    }
    .footer__inner {
      padding: 26px 0;
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr;
      gap: 18px;
    }
    .footer__inner a { color: #e5e7eb; }
    .footer__inner a:hover { color: #fff; }
    .footer-col h3 { margin: 0 0 10px 0; font-size: 1rem; }
    .footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.10);
      padding: 12px 0;
      font-size: .9rem;
      color: rgba(229,231,235,0.9);
    }
    @media (max-width: 900px) {
      .footer__inner { grid-template-columns: 1fr; }
    }

/* ===== VirtueMart Category Grid (like screenshot) ===== */
.vmcat h1  {
  font-weight: 500;
}
.vmcat-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 1100px){
  .vmcat-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .vmcat-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .vmcat-grid{ grid-template-columns: 1fr; }
}

.vmcat-card{
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.vmcat-card__link{
  display:block;
  text-decoration:none;
  color: inherit;
}

.vmcat-card__media{
  padding: 18px 18px 8px;
}

.vmcat-card__img{
  width: 100%;
  height: 120px;          /* consistent card height like your screenshot */
  object-fit: contain;
  display:block;
}

.vmcat-card__placeholder{
  width: 100%;
  height: 120px;
  background: #f1f5f9;
}

.vmcat-card__body{
  padding: 8px 18px 18px;
}

.vmcat-card__title{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: #334155;
  min-height: 38px; /* keeps titles aligned */
}

.vmcat-card__price{
  font-weight: 700;
  font-size: 18px;
  color: #0b6aa2;  /* blue price */
}

/* Make VM price divs inherit our styling */
.vmcat-card__price .PricesalesPrice,
.vmcat-card__price .salesPrice{
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}
.vmcat-card:hover{
  box-shadow: 0 14px 38px rgba(15,23,42,.10);
}


/* ===== VirtueMart Product Details (PDP) like screenshot ===== */
.vmpdp__grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items:start;
}

@media (max-width: 900px){
  .vmpdp__grid{ grid-template-columns: 1fr; }
}

/* Left side */
.vmpdp__left{
  text-align:center;
}
.vmpdp__media{
  border: 1px solid #eef2f7;
  background:#fff;
  padding: 18px;
}
.vmpdp__lefttitle{
  margin: 14px 0 0;
  color:#334155;
  font-size: 14px;
}

/* Right side */
.vmpdp__title{
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 400;
  color:#0f172a;
}
.vmpdp__price{
  font-size: 34px;           /* big price */
  font-weight: 800;
  color:#0b6aa2;             /* blue like screenshot */
  margin: 8px 0 14px;
  padding-bottom: 20px;
}
.vmpdp__divider{
  height: 1px;
  background: #eef2f7;
  margin: 10px 0 16px;
}

/* Make VM price output inherit our styles */
.vmpdp__price .PricesalesPrice,
.vmpdp__price .salesPrice,
.vmpdp__price .vm-price-value{
  color: inherit !important;
  font-size: inherit !important;
  /* font-weight: inherit !important; */
  font-weight: normal;
}

/* Customfields area (labels + radio groups) */
.vmpdp__customfields{
  font-size: 14px;
  color:#0f172a;
}
.vmpdp__customfields .product-fields-title,
.vmpdp__customfields label{
  font-weight: 700;
  display:block;
  margin: 12px 0 6px;
}
.vmpdp__customfields input[type="text"],
.vmpdp__customfields input[type="number"],
.vmpdp__customfields select{
  width: min(420px, 100%);
  padding: 8px 10px;
  border-radius: 0;         /* screenshot looks square */
  border: 1px solid #cbd5e1;
  background:#fff;
}
.vmpdp__customfields input[type="radio"]{
  transform: translateY(1px);
}
.vmpdp__customfields .product-field-display,
.vmpdp__customfields .product-field{
  margin-bottom: 6px;
}

.product-fields-title-wrapper { font-weight: normal; }

/* Cart area (qty + button) */
.vmpdp__cart{
  margin-top: 14px;
}
.vmpdp__cart .addtocart-button,
.vmpdp__cart button[type="submit"]{
  background:#fff;
  border: 1px solid #cbd5e1;
  padding: 0px 0px;
  font-weight: normal;
  cursor:pointer;
}
.vmpdp__cart .quantity-controls input.quantity-input,
.vmpdp__cart input.quantity-input{
  width: 30px;
  padding: 0px 0px;
  border: 1px solid #cbd5e1;
}

span.addtocart-button input.addtocart-button { padding: 8px 14px; }

/* Optional description */
.vmpdp__desc{
  margin-top: 22px;
  border-top: 1px solid #eef2f7;
  padding-top: 14px;
}
.vmpdp__desc h2{
  margin: 0 0 10px;
  font-size: 18px;
}

.dnone { display: none; }



