/* ==========================================================
   HexaCommerce — Storefront Stylesheet
   Minimalist, light theme, modern. Theme-able via CSS variables
   (--accent, --accent-dark, --font-heading, --font-body, --radius)
   which are injected inline per-store from admin settings.
   Developed by Hexaage Academy Private Limited
   ========================================================== */

:root{
  --accent: #c9a15a;
  --accent-dark: #a6813f;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 10px;

  --ink: #1c1c1e;
  --ink-soft: #5b5b60;
  --line: #ececec;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
}

*{ box-sizing: border-box; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6, .hx-heading-font{
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a{ color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover{ color: var(--accent-dark); }

img{ max-width: 100%; }

/* ---------- Buttons ---------- */
.hx-btn-accent{
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: .6rem 1.4rem;
  font-weight: 500;
  transition: all .15s ease;
}
.hx-btn-accent:hover{ background: var(--accent-dark); border-color: var(--accent-dark); color:#fff; }

.hx-btn-outline{
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: var(--radius);
  padding: .55rem 1.3rem;
  font-weight: 500;
}
.hx-btn-outline:hover{ background: var(--ink); color:#fff; }

.hx-btn-sm{ padding: .35rem .9rem; font-size: .85rem; }

/* ---------- Top utility bar ---------- */
.hx-topbar{
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  padding: .45rem 0;
}
.hx-topbar a{ color: #fff; margin-left: .6rem; opacity: .85; }
.hx-topbar a:hover{ opacity: 1; color: var(--accent); }

/* ---------- Navbar ---------- */
.hx-navbar{
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hx-brand-text{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.hx-main-links .nav-link{
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 1rem !important;
  color: var(--ink);
}
.hx-main-links .nav-link:hover{ color: var(--accent-dark); }

.hx-search{ max-width: 280px; }
.hx-search input{ border-radius: var(--radius) 0 0 var(--radius); border-right:0; }
.hx-search button{ border: 1px solid #ced4da; border-left:0; border-radius: 0 var(--radius) var(--radius) 0; background:#fff; }

.hx-icons a{ font-size: 1.25rem; color: var(--ink); }
.hx-icon-link{ position: relative; }
.hx-cart-badge{
  position:absolute; top:-6px; right:-10px;
  background: var(--accent); color:#fff;
  font-size: .65rem; font-weight:700;
  border-radius: 50%; width:18px; height:18px;
  display:flex; align-items:center; justify-content:center;
}

/* ---------- Hero / Banner ---------- */
.hx-hero{
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow:hidden;
  position: relative;
  min-height: 420px;
  display:flex;
  align-items:center;
}
.hx-hero::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05));
}
.hx-hero-content{ position:relative; z-index:2; color:#fff; padding: 3rem; max-width: 560px; }
.hx-hero-content h1{ font-size: 2.6rem; margin-bottom: .75rem; }
.hx-hero-content p{ font-size: 1.05rem; opacity:.92; margin-bottom: 1.5rem; }

/* ---------- Section titles ---------- */
.hx-section-title{
  text-align:center;
  margin-bottom: 2.5rem;
}
.hx-section-title h2{ font-size: 1.9rem; margin-bottom:.4rem; }
.hx-section-title p{ color: var(--ink-soft); }

/* ---------- Category cards ---------- */
.hx-cat-card{
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  display:block;
  background: var(--bg-soft);
}
.hx-cat-card img{ width:100%; height:100%; object-fit:cover; transition: transform .3s ease; }
.hx-cat-card:hover img{ transform: scale(1.06); }
.hx-cat-card-label{
  position:absolute; bottom:0; left:0; right:0;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
  color:#fff; padding: 1rem; font-weight:600; font-family: var(--font-heading);
}

/* ---------- Product cards ---------- */
.hx-product-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hx-product-card:hover{ box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.hx-product-img-wrap{
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-soft);
}
.hx-product-img-wrap img{ width:100%; height:100%; object-fit: cover; transition: transform .35s ease; }
.hx-product-card:hover .hx-product-img-wrap img{ transform: scale(1.05); }

.hx-badge-sale{
  position:absolute; top:10px; left:10px;
  background: var(--accent); color:#fff;
  font-size:.72rem; font-weight:700;
  padding: .25rem .55rem; border-radius: 6px;
}
.hx-wishlist-btn{
  position:absolute; top:10px; right:10px;
  background: #fff; border-radius: 50%;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--line);
}
.hx-product-body{ padding: 1rem; flex:1; display:flex; flex-direction:column; }
.hx-product-cat{ font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.hx-product-name{ font-size: .98rem; font-weight: 600; margin: .25rem 0 .4rem; color: var(--ink); }
.hx-product-name:hover{ color: var(--accent-dark); }
.hx-price-row{ margin-top:auto; display:flex; align-items:center; gap:.5rem; }
.hx-price{ font-weight:700; font-size:1.05rem; }
.hx-price-strike{ color: var(--ink-soft); text-decoration: line-through; font-size:.85rem; }
.hx-rating{ color: #f5a623; font-size: .8rem; }

/* ---------- USP strip ---------- */
.hx-usp-strip{ background: var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.hx-usp-icon{ font-size: 1.8rem; color: var(--accent); display:block; margin-bottom:.5rem; }
.hx-usp-title{ font-weight:600; font-size:.95rem; }

/* ---------- Footer ---------- */
.hx-footer{ background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 3rem; }
.hx-footer-brand{ font-family: var(--font-heading); font-weight:700; }
.hx-footer-heading{ font-weight:600; font-size:.9rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:1rem; }
.hx-footer-links li{ margin-bottom:.5rem; }
.hx-footer-links a{ color: var(--ink-soft); font-size:.9rem; }
.hx-footer-links a:hover{ color: var(--accent-dark); }
.hx-footer-social a{ display:inline-flex; width:34px; height:34px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:50%; margin-right:.5rem; color:var(--ink); }
.hx-footer-social a:hover{ background: var(--accent); color:#fff; border-color: var(--accent); }
.hx-footer-bottom{ border-top:1px solid var(--line); }

.hx-whatsapp-float{
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background:#25D366; color:#fff; width:56px; height:56px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.hx-whatsapp-float:hover{ color:#fff; transform: scale(1.06); }

/* ---------- Product detail page ---------- */
.hx-pd-gallery-main{ border-radius: var(--radius); overflow:hidden; aspect-ratio:1/1; background: var(--bg-soft); }
.hx-pd-gallery-main img{ width:100%; height:100%; object-fit:cover; }
.hx-pd-thumb{ width:70px; height:70px; border-radius:8px; overflow:hidden; border:1px solid var(--line); cursor:pointer; }
.hx-pd-thumb img{ width:100%; height:100%; object-fit:cover; }
.hx-pd-thumb.active{ border-color: var(--accent); border-width:2px; }
.hx-qty-box{ display:inline-flex; align-items:center; border:1px solid var(--line); border-radius: var(--radius); }
.hx-qty-box button{ background:none; border:none; width:38px; height:38px; }
.hx-qty-box input{ width:44px; border:none; text-align:center; }

/* ---------- Cart / Checkout ---------- */
.hx-cart-row{ border-bottom: 1px solid var(--line); padding: 1rem 0; }
.hx-cart-thumb{ width:80px; height:80px; border-radius:8px; overflow:hidden; background: var(--bg-soft); }
.hx-summary-card{ border:1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--bg-soft); }
.hx-step-badge{ width:28px; height:28px; border-radius:50%; background: var(--accent); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; margin-right:.5rem; }

/* ---------- Forms ---------- */
.form-control:focus, .form-select:focus{ border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(201,161,90,.15); }
.form-control, .form-select{ border-radius: var(--radius); }

/* ---------- Order status timeline ---------- */
.hx-timeline{ list-style:none; padding:0; margin:0; }
.hx-timeline li{ position:relative; padding-left: 2rem; padding-bottom: 1.5rem; border-left: 2px solid var(--line); margin-left: .6rem; }
.hx-timeline li:last-child{ border-left-color: transparent; padding-bottom:0; }
.hx-timeline li::before{ content:''; position:absolute; left:-9px; top:0; width:16px; height:16px; border-radius:50%; background:#fff; border:2px solid var(--line); }
.hx-timeline li.done::before{ background: var(--accent); border-color: var(--accent); }

/* ---------- Utility ---------- */
.hx-section{ padding: 3.5rem 0; }
.text-accent{ color: var(--accent-dark); }
.bg-accent{ background: var(--accent); }

@media (max-width: 767px){
  .hx-hero{ min-height: 300px; }
  .hx-hero-content{ padding: 1.5rem; }
  .hx-hero-content h1{ font-size: 1.8rem; }
  .hx-section{ padding: 2rem 0; }
}
