:root{
  --hero-bg: none;  /* set by index.php inline <style> */
  --promo-bg: none; /* set by index.php inline <style> */
}

/* Logo only (no brand__text) */
.brand{ display:flex; align-items:center; }
.brand__logo{ height:42px; width:auto; max-width:220px; object-fit:contain; }

/* Joomla menu module typically outputs ul.menu */
.nav__list-wrap{ display:flex; align-items:center; }
.nav__list-wrap ul.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 20px;
  align-items:center;
}
.nav__list-wrap ul.menu > li > a{
  color:#fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity:.95;
  text-decoration:none;
}
.nav__list-wrap ul.menu > li > a:hover{ opacity:1; }

/* Mobile menu (works with Joomla output) */
@media (max-width: 720px){
  .nav__toggle{ display:inline-flex; }
  .nav__list-wrap{
    display:none;
    position:absolute;
    right: 24px;
    top: 64px;
    background: rgba(176,20,27,.98);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 12px;
    min-width: 240px;
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
    z-index: 999;
  }
  .nav__list-wrap--open{ display:block; }
  .nav__list-wrap ul.menu{ flex-direction:column; align-items:stretch; gap: 0; }
  .nav__list-wrap ul.menu a{ padding: 10px 12px; border-radius: 12px; display:block; }
  .nav__list-wrap ul.menu a:hover{ background: rgba(255,255,255,.10); }
}



/* Mobile hamburger */
.hamburger{ display:none; }
.hamburger__icon{
  width:18px; height:12px; display:inline-block;
  background:
    linear-gradient(var(--red) 0 0) 0 0/100% 2px,
    linear-gradient(var(--red) 0 0) 0 50%/100% 2px,
    linear-gradient(var(--red) 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: var(--red);
      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: var(--red);
      color: #FFF;
      border: none;
   }

  @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 background via CSS variable (fast, cacheable) */
.hero{
  /*
  background:
    linear-gradient(0deg, rgba(176,20,27,.06), rgba(176,20,27,.06)),
    var(--hero-bg) center/cover no-repeat; */
    background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.35) 40%,
      rgba(0,0,0,.15) 100%
    ),
    var(--hero-bg) center/cover no-repeat;
}

/* Promo parallax background via CSS variable */
.section--promo.section--parallax::before{
  background-image: var(--promo-bg);
}

/* iOS fix for parallax */
@media (max-width: 900px){
  .section--promo.section--parallax::before{
    background-attachment: scroll;
    transform: none;
  }
}

/* till joomla */

/* start from raw html */

/* styles.css */

/* -------------------------
   Base / tokens
-------------------------- */
:root{
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(0,0,0,.10);

  --red: #b0141b;       /* primary */
  --red-2: #8f0f15;     /* deeper */
  --dark: #0b0f1a;      /* footer */

  --card: #ffffff;
  --shadow: 0 12px 30px rgba(0,0,0,.10);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img{ max-width:100%; height:auto; display:block; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 2*var(--space-4)));
  margin-inline: auto;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); border:0;
}

.skip-link{
  position:absolute;
  left: -999px;
  top: 0;
  padding: 10px 14px;
  background: #111;
  color:#fff;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* -------------------------
   Header / Topbar
-------------------------- */
.site-header{ position: relative; }

.topbar{
  background: var(--red);
  color: #fff;
}
.topbar__inner{
  display:flex;
  align-items:center;
  gap: var(--space-3);
  padding: 8px 0;
}

/* Brand as logo only */
.brand{
  display:flex;
  align-items:center;
  gap: 0;
  min-width: unset; /* was 220px */
}

.brand__logo{
  display:block;
  height: 103px;     /* adjust to taste */
  width: auto;
  max-width: 220px; /* prevents oversized logo */
  object-fit: contain;
}

/* If brand__text still exists somewhere, hide it for this site */
.brand__text{ display:none; }
.brand__mark{ display:none; } /* optional if still in HTML */

@media (max-width: 720px){
  .brand__logo{
    height: 34px;
    max-width: 170px;
  }
}

.nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap: var(--space-3);
}
.nav__toggle{
  display:none;
  border:0;
  background: rgba(255,255,255,.14);
  color:#fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}
.nav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 20px;
  align-items:center;
}
.nav__link{
  color:#fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .95;
}
.nav__link:hover{ opacity: 1; text-decoration: none; }

.header-actions{
  display:flex;
  gap: 10px;
}
.icon-btn{
  border:0;
  background: rgba(255,255,255,.14);
  color: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  line-height: 1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.icon-btn:hover{ background: rgba(255,255,255,.22); text-decoration:none; }

/* -------------------------
   Hero (angled with image)
-------------------------- */
.hero{
  position: relative;
  padding: var(--space-6) 0 var(--space-7);
  /*
  background:
    linear-gradient(0deg, rgba(176,20,27,.06), rgba(176,20,27,.06)),
    url("assets/hero-bg.jpg") center/cover no-repeat;
    */
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: var(--space-5);
  align-items: start;
}
.eyebrow{
  margin:0 0 8px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  letter-spacing: .02em;
}
.hero h1{
  margin: 0 0 var(--space-3);
  color:#fff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  text-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.hero__bullets{
  margin: 0 0 var(--space-4);
  padding-left: 18px;
  color: rgba(255,255,255,.92);
}
.hero__bullets li{ margin: 6px 0; }

.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.btn--primary{
  background: #fff;
  color: var(--red);
}
.btn--primary:hover{ text-decoration:none; transform: translateY(-1px); }

.btn--ghost{
  background: rgba(255,255,255,.12);
  color:#fff;
  border-color: rgba(255,255,255,.28);
  box-shadow: none;
}
.btn--ghost:hover{ text-decoration:none; background: rgba(255,255,255,.18); }

/* Bestseller overlay card */
.bestseller__card{
  background: rgba(255,255,255,.88);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.35);
  /* Fade In Up animation */
  animation: fadeInUp .8s ease-out both;
}
.bestseller__title{
  margin:0 0 8px;
  font-weight: 800;
  color: #111827;
}
.bestseller__name{
  margin:0;
  color: #111827;
  font-weight: 600;
}
.bestseller__price{
  margin: 10px 0;
}
.price{
  font-weight: 900;
  color: var(--red-2);
}
.bestseller__link{
  display:inline-block;
  margin: 0 0 var(--space-3);
  color: var(--red-2);
  font-weight: 800;
}
.bestseller__link:hover{ text-decoration: underline; }
.bestseller__media{
  border-radius: var(--radius-sm);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.hero__angle{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 90px;
  background: var(--bg);
  clip-path: polygon(0 55%, 100% 15%, 100% 100%, 0 100%);
  box-shadow: 0 -2px 0 rgba(0,0,0,.02);
}

/* -------------------------
   Sections
-------------------------- */
.section{ padding: var(--space-7) 0; }
.section--products{ padding-top: var(--space-6); }

.section__header{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.section__header h2{
  margin:0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
}

.carousel-controls{ display:flex; gap: 10px; }
.carousel-controls .icon-btn{
  background: rgba(0,0,0,.05);
}
.carousel-controls .icon-btn:hover{
  background: rgba(0,0,0,.08);
}

/* Product grid */
.product-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.product-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.10);
}
.product-card__link{
  display:block;
  padding: var(--space-3);
}
.product-card__media{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
  margin-bottom: var(--space-2);
  background: #f6f7f9;
}
.product-card__title{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.product-card__price{
  margin: 0;
  font-weight: 900;
  color: var(--red-2);
}

figure {
  margin: 0;
}

/* Promo tile section */
.section--promo{
  position: relative;
  padding: 0;
  min-height: 420px;

  /* FIX: prevent pseudo-element from extending the scroll area */
  overflow: hidden;        /* safest */
  /* overflow: clip; */    /* optional modern alternative */
}

.section--promo.section--parallax::before{
  content:"";
  position:absolute;
  inset:-15%;
  background-image: var(--promo-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index:0;
}

.section--promo.section--parallax::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.30) 0%,
    rgba(0,0,0,.10) 45%,
    rgba(0,0,0,0) 100%
  );
  z-index:0;
}

.section--promo .promo{
  position: relative;
  z-index: 1;
}

/* Your existing promo styles */
.promo{
  padding: var(--space-6) 0 var(--space-6); /* give the background room */
}

.promo__tile{
  width: min(420px, 100%);
  background: rgba(255,255,255,.92); /* slight transparency looks great on parallax */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  margin-top: var(--space-3);
  backdrop-filter: blur(6px); /* optional: nice glass effect */
  animation: fadeInUp .8s ease-out both;
}

.promo__tile img{
  width:100%;
  height:auto;
}

.promo__title{
  margin: var(--space-4) var(--space-4) 6px;
  font-weight: 900;
}

.promo__subtitle{
  margin: 0 var(--space-4) var(--space-3);
  color: var(--muted);
  font-weight: 600;
}

/* Your angled separator (unchanged) */
.section__angle{
  height: 120px;
  background: var(--bg);
  clip-path: polygon(0 20%, 100% 55%, 100% 100%, 0 100%);
  border-top: 1px solid rgba(0,0,0,.04);
}

/* Mobile fix: background-attachment: fixed is buggy on iOS */
@media (max-width: 900px){
  .section--promo.section--parallax::before{
    background-attachment: scroll;
    transform: none;
  }
}

.section__angle{
  height: 90px;
  background: var(--bg);
  clip-path: polygon(0 20%, 100% 55%, 100% 100%, 0 100%);
  border-top: 1px solid rgba(0,0,0,.04);
}

/* Content section (long text) */
.section--content{
  padding-top: var(--space-6);
}
.content{
  max-width: 980px;
}
.content__header h2{
  margin: 0 0 var(--space-3);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900;
}
.content__prose{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.content__prose h3{
  margin-top: var(--space-4);
  font-size: 18px;
}
.content__prose p{
  margin: 10px 0;
  color: #111827;
}

/* Features (dark red band) */
.features{
  position: relative;
  padding: var(--space-7) 0;
  background: radial-gradient(1200px 450px at 30% 0%, rgba(255,255,255,.08), transparent 60%),
              linear-gradient(180deg, var(--red-2), #2b0b10);
  color:#fff;
}

.features__angle-top,
.features__angle-bottom{
  position:absolute;
  left:0; right:0;
  height: 90px;
  background: var(--bg);
}
.features__angle-top{
  top:-1px;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 80%);
}
.features__angle-bottom{
  bottom:-1px;
  clip-path: polygon(0 25%, 100% 65%, 100% 100%, 0 100%);
}

.features__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}
.feature{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: rgba(0,0,0,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}
.feature__icon{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  margin-bottom: 10px;
  font-size: 20px;
}
.feature h3{ margin: 0 0 6px; font-size: 16px; }
.feature p{ margin: 0; color: rgba(255,255,255,.88); }

/* Footer */
.site-footer{
  background: var(--dark);
  color: rgba(255,255,255,.86);
  padding: var(--space-6) 0;
}
.footer{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__nav{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
}
.footer__nav a{
  color: rgba(255,255,255,.86);
  font-weight: 600;
  font-size: 13px;
}
.footer__nav a:hover{ color:#fff; text-decoration: underline; }
.footer__copy{
  margin:0;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}

/* VirtueMart product page layout */
.vm-product__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4px;
  align-items:start;
}
.vm-product__img{ width:100%; height:auto; display:block; }
.vm-product__title{ margin: 0 0 12px; font-weight: 900; }

@media (max-width: 1024px){
  .vm-product__grid{ grid-template-columns: 1fr; }
}

/* Category header */
.vm-category__title{ font-weight: 900; margin: 0 0 12px; }
.vm-category__desc{ color: var(--text); }

/* my extra css */
.vm-product__price {
    letter-spacing: -1px;
    font-size: 160%;
    clear: both; 
}

.vm-customfields-wrap {
    background-color: #F4F4F4;
    padding: 10px;
    margin: 15px 0 15px 0;
    clear: both; 
}

span.addtocart-button input.addtocart-button {
    background: #b31212 ;
    color: #fff;
    border: solid #920707 1px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    letter-spacing: 1px;
    padding: 10px 7px;
    margin-bottom: 0;
}

/* Animation */
@keyframes fadeInUp{
  from{
    opacity: 0;
    transform: translateY(24px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}


/* -------------------------
   Responsive
-------------------------- */
@media (max-width: 1024px){
  .hero__inner{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: repeat(3, 1fr); }
  .features__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px){
  .topbar__inner{ gap: 10px; }
  .brand{ min-width: unset; }
  .nav__toggle{ display:inline-flex; }
  .nav__list{
    display:none;
    position:absolute;
    right: var(--space-4);
    top: 64px;
    background: rgba(176,20,27,.98);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
    z-index: 999;
  }
  .nav__list--open{ display:flex; }
  .nav__link{ padding: 10px 12px; border-radius: 12px; }
  .nav__link:hover{ background: rgba(255,255,255,.10); }

  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .content__prose{ padding: var(--space-4); }
}

@media (max-width: 420px){
  .product-grid{ grid-template-columns: 1fr; }
  .features__grid{ grid-template-columns: 1fr; }
}
