/* ============================================================
   The Grandsma Shop USA — Main Stylesheet
   Premium Nest-inspired e-commerce UI (original implementation)
   ============================================================ */

:root {
  --primary: #3bb77e;
  --primary-dark: #29a56c;
  --secondary: #fdc040;
  --accent: #f37233;
  --heading: #253d4e;
  --body: #7e7e7e;
  --muted: #adadad;
  --border: #ececec;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-blue: #d8f1e5;
  --danger: #f74b81;
  --info: #3e8ef7;
  --warning: #ffba00;
  --shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 28px rgba(37, 61, 78, 0.12);
  --radius: 15px;
  --radius-sm: 10px;
  --font: "Quicksand", system-ui, sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--heading);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; padding: 0; margin: 0; }

.container-xl-custom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  padding: 12px 28px;
  transition: all var(--transition);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  padding: 12px 28px;
  transition: all var(--transition);
}

.btn-accent:hover {
  background: #e05f1f;
  color: #fff !important;
}

.btn-outline-brand {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 26px;
}

.btn-outline-brand:hover {
  background: var(--primary);
  color: #fff !important;
}

.btn-cart {
  background: #def9ec;
  color: var(--primary) !important;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  width: 100%;
  padding: 10px;
  transition: all var(--transition);
}

.btn-cart:hover {
  background: var(--primary);
  color: #fff !important;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: #ccead8;
  font-size: 13px;
  color: var(--heading);
  padding: 8px 0;
}

.top-bar a {
  color: var(--heading);
  margin-right: 18px;
  font-weight: 500;
}

.top-bar a:hover { color: var(--primary); }

.top-bar .dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Header ---------- */
.main-header {
  padding: 22px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img,
.logo-link svg {
  height: 58px;
  width: auto;
}

.search-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--primary);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  height: 50px;
}

.search-wrap select {
  border: none;
  border-right: 1px solid var(--border);
  padding: 0 14px;
  min-width: 140px;
  font-weight: 600;
  color: var(--heading);
  background: #fff;
  outline: none;
}

.search-wrap input {
  flex: 1;
  border: none;
  padding: 0 16px;
  outline: none;
  color: var(--heading);
  font-weight: 500;
}

.search-wrap button {
  background: var(--primary);
  border: none;
  color: #fff;
  width: 54px;
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-end;
}

.header-action {
  text-align: center;
  position: relative;
  color: var(--heading);
  font-size: 12px;
  font-weight: 600;
}

.header-action i {
  font-size: 24px;
  display: block;
  margin-bottom: 2px;
}

.header-action .badge-count {
  position: absolute;
  top: -6px;
  right: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-total-label {
  font-size: 12px;
  color: var(--body);
  display: block;
}

.cart-total-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Main Nav ---------- */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.browse-btn {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.browse-btn:hover { background: var(--primary-dark); color: #fff !important; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--heading);
  border-radius: 6px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--primary);
}

.nav-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--heading);
}

.nav-hotline i {
  color: var(--primary);
  font-size: 22px;
}

.nav-hotline span {
  display: block;
  font-size: 12px;
  color: var(--body);
  font-weight: 500;
}

.categories-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 260px;
  padding: 12px 0;
  display: none;
  z-index: 1050;
}

.browse-wrap { position: relative; }
.browse-wrap:hover .categories-dropdown,
.browse-wrap.open .categories-dropdown { display: block; }

.categories-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--heading);
}

.categories-dropdown a:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.categories-dropdown a i {
  width: 22px;
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 28px 0 10px;
  background: var(--bg);
}

.hero-main {
  background: linear-gradient(135deg, #e8f8ef 0%, #fff8e6 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-main::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(59, 183, 126, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 10px;
}

.hero-main h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 14px;
  max-width: 520px;
}

.hero-main p {
  font-size: 16px;
  max-width: 440px;
  margin-bottom: 24px;
}

.hero-media {
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: min(42%, 380px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
}

.hero-side {
  background: linear-gradient(160deg, #fff3e0, #ffe8cc);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-side h3 {
  font-size: 1.6rem;
  margin: 8px 0 12px;
}

.hero-side img {
  align-self: flex-end;
  max-width: 70%;
  margin-top: 16px;
}

/* ---------- Section commons ---------- */
.section {
  padding: 50px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--body);
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.view-all {
  color: var(--primary);
  font-weight: 700;
}

.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
}

.countdown .unit {
  background: var(--accent);
  color: #fff;
  min-width: 48px;
  padding: 8px 6px;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  line-height: 1.1;
}

.countdown .unit small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
}

.countdown-label {
  font-weight: 700;
  color: var(--heading);
  margin-right: 6px;
}

/* ---------- Categories ---------- */
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 18px 12px;
  transition: all var(--transition);
  height: 100%;
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.category-card .thumb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  background: var(--bg-soft);
}

.category-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h6 {
  font-size: 14px;
  margin: 0 0 4px;
}

.category-card span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Product Card ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #ccead8;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-badge.hot { background: var(--danger); }
.product-badge.new { background: var(--info); }
.product-badge.sale { background: var(--accent); }

.product-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  z-index: 2;
}

.product-card:hover .product-actions { opacity: 1; transform: none; }

.product-actions button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-actions button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-thumb img {
  max-height: 170px;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-cat {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 15px;
  margin-bottom: 8px;
  min-height: 40px;
}

.product-title a { color: var(--heading); }
.product-title a:hover { color: var(--primary); }

.product-rating {
  color: #ffb800;
  font-size: 12px;
  margin-bottom: 8px;
}

.product-rating span {
  color: var(--muted);
  margin-left: 4px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.product-price .current {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.product-price .old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
}

.stock-bar {
  margin-bottom: 12px;
}

.stock-bar .progress {
  height: 6px;
  border-radius: 10px;
  background: #ececec;
}

.stock-bar .progress-bar {
  background: var(--primary);
  border-radius: 10px;
}

.stock-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 6px;
  color: var(--body);
}

.product-features {
  font-size: 12px;
  color: var(--body);
  margin-bottom: 12px;
  padding-left: 16px;
  list-style: disc;
}

.product-features li { margin-bottom: 2px; }

/* ---------- Promo Banners ---------- */
.promo-banner {
  border-radius: var(--radius);
  padding: 28px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  color: var(--heading);
  background-size: cover;
  background-position: center;
}

.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.2) 100%);
}

.promo-banner > * { position: relative; z-index: 1; }

.promo-banner.blue { background-color: #e8f3ff; }
.promo-banner.yellow { background-color: #fff5d9; }
.promo-banner.pink { background-color: #ffe8f0; }
.promo-banner.green { background-color: #e8f8ef; }

.promo-banner h4 {
  font-size: 22px;
  margin: 8px 0 14px;
}

.promo-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- Category block with sidebar ---------- */
.cat-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.cat-side-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-weight: 600;
  color: var(--heading);
  font-size: 14px;
}

.cat-side-links a:hover { color: var(--primary); }

.cat-side-banner {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(160deg, #e8f8ef, #fff8e6);
  padding: 16px;
  text-align: center;
}

.inline-banner {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(90deg, #253d4e, #3bb77e);
  color: #fff;
  margin: 24px 0;
}

.inline-banner h3 { color: #fff; margin-bottom: 6px; }
.inline-banner p { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; }

/* ---------- Tabs ---------- */
.product-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-tabs button {
  border: none;
  background: transparent;
  font-weight: 700;
  color: var(--body);
  padding: 8px 14px;
  border-radius: 20px;
}

.product-tabs button.active,
.product-tabs button:hover {
  background: #def9ec;
  color: var(--primary);
}

/* ---------- Features / Trust ---------- */
.feature-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-item i {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #def9ec;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item h6 {
  margin: 0 0 2px;
  font-size: 15px;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  color: var(--body);
}

/* ---------- Why / Process / Stats ---------- */
.icon-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  height: 100%;
  transition: all var(--transition);
}

.icon-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.icon-box .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #def9ec;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-card .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-card p {
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--heading);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step .step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}

.testimonial-card .stars {
  color: #ffb800;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #def9ec;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-author strong {
  display: block;
  color: var(--heading);
}

/* ---------- Blog ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-hover); }

.blog-card .thumb {
  height: 180px;
  overflow: hidden;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .thumb img { transform: scale(1.06); }

.blog-card .body {
  padding: 18px;
}

.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-card h5 {
  font-size: 16px;
  margin-bottom: 10px;
}

.read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: linear-gradient(120deg, #253d4e 0%, #2f6b55 55%, #3bb77e 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.newsletter-section h2,
.newsletter-section h3 {
  color: #fff;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  border: none;
  border-radius: 6px;
  padding: 14px 16px;
  outline: none;
}

.newsletter-form .btn {
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding-top: 50px;
  margin-top: 40px;
}

.footer-brand p {
  margin: 14px 0 18px;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #def9ec;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h5 {
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--body);
  font-size: 14px;
}

.footer-col ul a:hover { color: var(--primary); }

.footer-newsletter input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  margin-bottom: 10px;
  outline: none;
}

.footer-newsletter input:focus {
  border-color: var(--primary);
}

.copyright-bar {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.copyright-bar .legal-links a {
  margin-left: 16px;
  color: var(--body);
}

.copyright-bar .legal-links a:hover { color: var(--primary); }

/* ---------- Page Banner / Breadcrumb ---------- */
.page-banner {
  background: var(--bg-soft);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--muted);
}

.breadcrumb a { color: var(--body); }
.breadcrumb .active { color: var(--primary); font-weight: 600; }

/* ---------- Shop Sidebar ---------- */
.shop-sidebar .widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.shop-sidebar .widget h5 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--heading);
  font-size: 14px;
  cursor: pointer;
}

.price-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-inputs input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatches button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
}

.mini-product {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.mini-product img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.mini-product h6 {
  font-size: 13px;
  margin: 0 0 4px;
}

.tag-cloud a {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  margin: 0 6px 8px 0;
  font-size: 12px;
  font-weight: 600;
}

.shop-toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-banner-inner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  min-height: 160px;
  background: linear-gradient(90deg, #e8f3ff, #fff), url("../images/banners/shop-banner.jpg") right center / cover no-repeat;
  padding: 36px;
  display: flex;
  align-items: center;
}

/* ---------- Product Detail ---------- */
.product-gallery {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.product-gallery img {
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.product-detail-info .price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.product-detail-info .price-row .current {
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-box button {
  width: 38px;
  height: 40px;
  border: none;
  background: var(--bg-soft);
  font-weight: 700;
}

.qty-box input {
  width: 54px;
  height: 40px;
  border: none;
  text-align: center;
  outline: none;
  font-weight: 700;
}

.detail-tabs {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-tabs .nav-link {
  color: var(--heading);
  font-weight: 700;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.detail-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

/* ---------- Cart ---------- */
.cart-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-table th {
  background: var(--bg-soft);
  color: var(--heading);
  font-weight: 700;
  border: none;
  padding: 14px;
}

.cart-table td {
  vertical-align: middle;
  padding: 16px 14px;
  border-color: var(--border);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.cart-summary .row-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.cart-summary .total {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
  font-size: 18px;
  color: var(--heading);
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart i {
  font-size: 56px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-label {
  font-weight: 700;
  color: var(--heading);
  font-size: 14px;
}

.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--heading);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(59, 183, 126, 0.2);
}

.invalid-feedback,
.valid-feedback {
  font-weight: 600;
}

.alert-success-custom {
  background: #def9ec;
  color: var(--primary-dark);
  border: 1px solid #b8efd4;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.accordion-button {
  font-weight: 700;
  color: var(--heading);
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: #def9ec;
  color: var(--primary);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

/* ---------- Content pages ---------- */
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.content-card h2,
.content-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-card p,
.content-card li {
  margin-bottom: 0.75rem;
}

.content-card ul {
  list-style: disc;
  padding-left: 1.25rem;
}

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(90deg, #253d4e, #3bb77e);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
}

.cta-band h2,
.cta-band h3 { color: #fff; }

.cta-band p { color: rgba(255, 255, 255, 0.88); }

/* ---------- Mobile ---------- */
.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: var(--heading);
}

@media (max-width: 991.98px) {
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav .nav-collapse { display: none; }
  .main-nav .nav-collapse.show { display: block; margin-top: 12px; }
  .nav-menu { flex-direction: column; align-items: flex-start; }
  .header-actions { gap: 14px; }
  .header-action span.label { display: none; }
  .hero-media { position: relative; right: auto; bottom: auto; width: 70%; margin: 20px auto 0; }
  .hero-main { flex-direction: column; text-align: center; padding: 36px 24px; min-height: auto; }
  .hero-main h1, .hero-main p { margin-left: auto; margin-right: auto; }
  .hero-side { min-height: auto; margin-top: 16px; }
  .logo-link img { height: 48px; }
}

@media (max-width: 575.98px) {
  .search-wrap select { display: none; }
  .section-title { font-size: 22px; }
  .newsletter-section { padding: 32px 20px; }
  .copyright-bar { text-align: center; justify-content: center; }
  .copyright-bar .legal-links a { margin: 0 8px; }
}

/* Toast */
.toast-stack {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: var(--heading);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  font-weight: 600;
  animation: slideIn 0.3s ease;
}

.toast-msg.success { background: var(--primary); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
