/* =============================================================
   TM IT STORE — eCommerce Homepage
   Custom styles (HTML5 + CSS3 + Bootstrap 5 + Bootstrap Icons)
   ============================================================= */

/* ---------- 1. CSS VARIABLES / DESIGN TOKENS ---------- */
:root {
  --primary-color: #f48721;
  --primary-dark: #d9740f;
  --primary-soft: #fff4ea;
  --primary-border: #ffe0c2;

  --menu-color: #000000;
  --menu-hover: #f48721;

  --footer-color: #000000;
  --footer-text: #b5b5b5;
  --footer-heading: #ffffff;
  --bottom-bar-bg: #050505;

  --body-bg: #ffffff;
  --soft-bg: #f7f7f8;
  --text-dark: #1d1d1f;
  --text-muted: #6b7280;
  --border-color: #ececec;

  --radius-sm: 4px;
  --radius: 6px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.10);
  --transition: 0.25s ease;

  --header-offset: 150px;
}

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--body-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }

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

/* Primary button override */
.btn-primary {
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-focus-shadow-rgb: 244, 135, 33;
  font-weight: 600;
}

.text-primary-accent { color: var(--primary-color) !important; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =============================================================
   3. HEADER (sticky) — announcement + top bar + main menu
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.announcement-bar {
  background: var(--primary-color);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.4rem 0;
}
.announcement-bar span { display: inline-block; }

/* ---- Top bar ---- */
.header-main {
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.header-brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--menu-color);
  white-space: nowrap;
}
.brand-logo-text span { color: var(--primary-color); }
.brand-logo-img { max-height: 44px; width: auto; }

/* ---- Search ---- */
.header-search { flex: 1 1 320px; min-width: 0; }
.search-group {
  display: flex;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.search-input {
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
}
.search-input:focus { outline: none; }
.search-btn {
  border: 0;
  border-radius: 0;
  background: var(--primary-color);
  color: #fff;
  padding: 0 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--primary-dark); color: #fff; }

/* ---- Action icons ---- */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.action-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 46px;
  padding: 0.35rem 0.4rem;
  color: var(--menu-color);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.action-btn:hover { color: var(--primary-color); background: var(--primary-soft); }
.action-btn i { font-size: 1.25rem; line-height: 1; }
.action-label { font-size: 0.68rem; font-weight: 500; }
.action-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border-radius: 999px;
}

/* =============================================================
   MAIN NAVIGATION MENU
   ============================================================= */
.main-nav {
  background: #fff;
  padding: 0;
}
.main-nav .container { flex-wrap: wrap; }

.main-nav .navbar-toggler {
  border: 0;
  padding: 0.6rem 0;
  color: var(--menu-color);
  font-weight: 600;
  box-shadow: none;
}
.main-nav .navbar-toggler i { font-size: 1.35rem; vertical-align: middle; }

.main-nav .navbar-nav { gap: 0.15rem; padding: 0.15rem 0; }

.main-nav .nav-link {
  color: var(--menu-color);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.7rem 0.75rem;
  position: relative;
  transition: color var(--transition);
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link.active,
.main-nav .nav-item.show > .nav-link {
  color: var(--primary-color);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { transform: scaleX(1); }

.main-nav .nav-offers {
  color: var(--primary-color);
  font-weight: 700;
}

/* Dropdowns */
.main-nav .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  margin-top: 0.25rem;
}
.main-nav .dropdown-item {
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  color: var(--menu-color);
  transition: background var(--transition), color var(--transition);
}
.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
  background: var(--primary-soft);
  color: var(--primary-color);
}
.main-nav .dropdown-item.active,
.main-nav .dropdown-item:active {
  background: var(--primary-color);
  color: #fff;
}

/* Hover-to-open dropdowns on desktop */
@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu { display: block; }
}

/* =============================================================
   4. HERO SLIDER
   ============================================================= */
.hero-section { padding: 1.25rem 0 0; }

.hero-carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

.hero-slide {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.05) 100%);
}
.hero-caption {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  color: #fff;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
}
.hero-caption h2 {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  margin-bottom: 0.6rem;
}
.hero-caption p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 1.25rem;
  color: #e9e9e9;
}
.btn-hero { padding: 0.65rem 1.6rem; font-size: 1rem; }

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
}
.hero-carousel .carousel-indicators .active { background: var(--primary-color); }

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 5%; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 1.1rem;
  background-size: 45%;
}

/* =============================================================
   5. CATEGORY ICON SECTION
   ============================================================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}
.section-title {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  margin: 0;
  position: relative;
  padding-left: 0.85rem;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.4em;
  background: var(--primary-color);
  border-radius: 2px;
}
.section-head--center .section-title { padding-left: 0; }
.section-head--center .section-title::before { display: none; }
.section-accent {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.view-all {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
}
.view-all:hover { color: var(--primary-dark); gap: 0.55rem; }

.category-section { padding: 2.25rem 0 0.75rem; }

.category-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.category-item {
  flex: 0 0 auto;
  width: 108px;
  text-align: center;
  color: var(--menu-color);
  padding: 0.5rem 0.25rem;
}
.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.category-item:hover .cat-icon {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-4px);
}
.cat-name { font-size: 0.82rem; font-weight: 500; display: block; }
.category-item:hover .cat-name { color: var(--primary-color); }

@media (min-width: 992px) {
  .category-strip {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
  .category-item { width: 9%; min-width: 92px; }
}

/* =============================================================
   5b. PRODUCT CARDS
   ============================================================= */
.product-section { padding: 2.5rem 0; }

.product-grid .product-col { display: flex; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft-bg);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.08); }

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.wishlist-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), color var(--transition), background var(--transition);
}
.product-card:hover .wishlist-toggle { opacity: 1; transform: translateY(0); }
.wishlist-toggle:hover { color: var(--primary-color); border-color: var(--primary-border); }
.wishlist-toggle.active { color: #fff; background: var(--primary-color); border-color: var(--primary-color); opacity: 1; transform: translateY(0); }

@media (hover: none) {
  .wishlist-toggle { opacity: 1; transform: none; }
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.75rem 0.8rem 0.9rem;
}
.product-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.product-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.product-title a { color: inherit; }
.product-title a:hover { color: var(--primary-color); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.product-rating .stars { color: var(--primary-color); letter-spacing: 1px; }

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.price-now { font-size: 1.02rem; font-weight: 800; color: var(--primary-color); }
.price-old { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }
.price-off { font-size: 0.74rem; font-weight: 700; color: #16a34a; }

.add-cart-btn {
  margin-top: auto;
  width: 100%;
  border: 1px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.add-cart-btn:hover,
.add-cart-btn.added { background: var(--primary-color); color: #fff; }

.no-results {
  padding: 3rem 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* =============================================================
   6. CUSTOMER REVIEWS
   ============================================================= */
.reviews-section { padding: 3rem 0; background: var(--soft-bg); }

.review-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { color: var(--primary-color); font-size: 0.9rem; margin-bottom: 0.6rem; letter-spacing: 2px; }
.review-text { font-size: 0.9rem; color: #444; margin-bottom: 1.1rem; }
.review-user { display: flex; align-items: center; gap: 0.7rem; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-border); }
.review-name { display: block; font-weight: 700; font-size: 0.9rem; }
.verified-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.74rem; color: #16a34a; font-weight: 600; }

/* =============================================================
   7. PROMOTIONAL BANNER
   ============================================================= */
.promo-section { padding: 3rem 0; }

.promo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(2rem, 6vw, 3.75rem);
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15)),
    linear-gradient(115deg, var(--primary-color), var(--primary-dark)),
    url("../images/promo.svg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply, overlay;
  color: #fff;
}
.promo-content { max-width: 560px; }
.promo-eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}
.promo-title { font-size: clamp(1.8rem, 5vw, 3rem); margin: 0 0 0.4rem; }
.promo-title span { text-decoration: underline; text-underline-offset: 6px; }
.promo-sub { font-size: clamp(0.95rem, 2vw, 1.15rem); margin-bottom: 1.4rem; color: #f4f4f4; }
.promo-btn { font-weight: 700; color: var(--primary-dark); padding: 0.65rem 1.75rem; }
.promo-btn:hover { color: #fff; background: var(--primary-dark); }

/* =============================================================
   SERVICE FEATURES STRIP
   ============================================================= */
.features-strip { padding: 1.75rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.feature-item { display: flex; align-items: center; gap: 0.75rem; justify-content: center; }
.feature-item i { font-size: 1.7rem; color: var(--primary-color); flex: 0 0 auto; }
.feature-title { display: block; font-weight: 700; font-size: 0.9rem; }
.feature-text { display: block; font-size: 0.78rem; color: var(--text-muted); }
@media (min-width: 992px) { .feature-item { justify-content: flex-start; } }

/* =============================================================
   8. FOOTER
   ============================================================= */
.site-footer {
  background: var(--footer-color);
  color: var(--footer-text);
  padding: 3rem 0 0;
  margin-top: 1rem;
}
.footer-brand { display: inline-block; margin-bottom: 0.9rem; }
.footer-brand .brand-logo-text { color: #fff; }
.footer-brand .brand-logo-text span { color: var(--primary-color); }
.footer-about { font-size: 0.88rem; margin-bottom: 1.1rem; max-width: 420px; }

.footer-contact li { font-size: 0.88rem; margin-bottom: 0.5rem; display: flex; gap: 0.55rem; align-items: flex-start; }
.footer-contact i { color: var(--primary-color); margin-top: 0.15rem; }
.footer-contact a { color: var(--footer-text); transition: color var(--transition); }
.footer-contact a:hover { color: var(--primary-color); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  color: var(--footer-text);
  font-size: 1rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-social a:hover { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }

.footer-heading {
  color: var(--footer-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--primary-color);
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: var(--footer-text);
  font-size: 0.87rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--primary-color); padding-left: 4px; }

/* 9. BOTTOM FOOTER */
.bottom-bar {
  background: var(--bottom-bar-bg);
  border-top: 1px solid #1c1c1c;
  margin-top: 2.5rem;
  padding: 1rem 0;
  font-size: 0.83rem;
}
.bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.bottom-bar a { color: var(--primary-color); }
.bottom-bar a:hover { text-decoration: underline; }

@media (max-width: 575.98px) {
  .bottom-bar-inner { flex-direction: column; text-align: center; }
}

/* =============================================================
   BACK TO TOP + TOASTS
   ============================================================= */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 1030;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mini-toast {
  background: #111;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.25s ease;
}
.mini-toast i { color: var(--primary-color); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =============================================================
   11. RESPONSIVE ADJUSTMENTS
   ============================================================= */

/* Tablet & below: search on its own row */
@media (max-width: 991.98px) {
  :root { --header-offset: 190px; }

  .header-search {
    order: 3;
    flex-basis: 100%;
  }
  .main-nav .navbar-collapse {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    padding: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-link {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid #f1f1f1;
  }
  .main-nav .navbar-nav > .nav-item:last-child .nav-link { border-bottom: 0; }
  .main-nav .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding-left: 1rem;
    background: var(--soft-bg);
  }
}

@media (max-width: 767.98px) {
  :root { --header-offset: 180px; }

  .announcement-bar { font-size: 0.72rem; }
  .action-label { display: none; }
  .action-btn { min-width: 40px; }
  .brand-logo-text { font-size: 1.25rem; }

  .hero-slide { height: 240px; }
  .hero-caption { max-width: 100%; }
  .hero-caption p { display: none; }
  .btn-hero { padding: 0.5rem 1.15rem; font-size: 0.88rem; }

  .product-section { padding: 1.75rem 0; }
  .reviews-section, .promo-section { padding: 2rem 0; }
}

@media (max-width: 575.98px) {
  .header-inner { gap: 0.5rem; }
  .search-btn span { display: none; }
  .section-title { font-size: 1.05rem; }
  .product-body { padding: 0.6rem 0.6rem 0.75rem; }
  .add-cart-btn { font-size: 0.8rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =============================================================
   SINGLE PRODUCT DETAILS PAGE (product.html)
   ============================================================= */

/* ---- Breadcrumb ---- */
.pdp-breadcrumb { padding-top: 1.1rem; }
.pdp-breadcrumb .breadcrumb { margin-bottom: 0.5rem; font-size: 0.85rem; }
.pdp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }
.pdp-breadcrumb .breadcrumb-item a { color: var(--text-muted); transition: color var(--transition); }
.pdp-breadcrumb .breadcrumb-item a:hover { color: var(--primary-color); }
.pdp-breadcrumb .breadcrumb-item.active { color: var(--text-dark); font-weight: 600; }

/* ---- Details wrapper ---- */
.pdp-details { padding: 0.75rem 0 2rem; }

/* ---- Gallery ---- */
.pdp-gallery { position: sticky; top: calc(var(--header-offset) - 40px); }
.pdp-stage {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.pdp-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.pdp-stage.zooming img { transform: scale(1.9); }
.pdp-stage .discount-badge { top: 12px; left: 12px; font-size: 0.8rem; padding: 0.25rem 0.55rem; }
.pdp-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
}

.pdp-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.pdp-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: var(--primary-border); }
.pdp-thumb.active { border-color: var(--primary-color); }

/* ---- Product info ---- */
.pdp-info { max-width: 560px; }
.pdp-title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.pdp-cat { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.pdp-cat span { font-weight: 600; color: var(--text-dark); }
.pdp-cat a { color: var(--primary-color); font-weight: 600; }
.pdp-cat a:hover { text-decoration: underline; }

.pdp-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.pdp-rating .stars { color: var(--primary-color); font-size: 1rem; letter-spacing: 2px; }
.pdp-rating-text { font-size: 0.88rem; color: var(--text-muted); }
.pdp-rating-text a { color: var(--text-muted); text-decoration: underline; }
.pdp-rating-text a:hover { color: var(--primary-color); }
.pdp-stock { font-size: 0.8rem; color: #16a34a; font-weight: 600; }
.pdp-stock i { margin-right: 2px; }

.pdp-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 0;
  margin-bottom: 0.4rem;
}
.pdp-price-now { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; color: var(--primary-color); }
.pdp-price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.pdp-price-off {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #16a34a;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.pdp-short { font-size: 0.95rem; color: #444; margin-bottom: 1rem; }
.pdp-divider { border-color: var(--border-color); margin: 1.1rem 0; }

.pdp-label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; }

/* ---- Quantity selector ---- */
.pdp-qty-row { margin-bottom: 1.1rem; }
.qty-selector {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 42px;
  border: 0;
  background: var(--soft-bg);
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.qty-btn:hover { background: var(--primary-color); color: #fff; }
.qty-input {
  width: 58px;
  border: 0;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.qty-input:focus { outline: 2px solid var(--primary-border); outline-offset: -2px; }

/* ---- Action buttons ---- */
.pdp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.pdp-btn {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.btn-buy {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.btn-buy:hover { background: #1f1f1f; color: #fff; }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
}
.btn-whatsapp:hover { background: #1ebe57; color: #fff; }
.btn-call {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn-call:hover { background: var(--primary-color); color: #fff; }

.pdp-wishlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.pdp-wishlist {
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}
.pdp-wishlist:hover { color: var(--primary-color); }
.pdp-wishlist.active { color: var(--primary-color); }
.pdp-sku { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Brand box ---- */
.pdp-brand { margin-bottom: 1.25rem; }
.brand-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 56px;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.brand-box:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.brand-box-name { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); letter-spacing: 0.02em; }
.brand-box img { max-height: 40px; width: auto; }

/* ---- Assurance strip ---- */
.pdp-assurance {
  border: 1px dashed var(--primary-border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--primary-soft);
}
.pdp-assurance li {
  font-size: 0.86rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0;
}
.pdp-assurance i { color: var(--primary-color); font-size: 1rem; }

/* ---- Big description tabs ---- */
.pdp-description { padding: 1.5rem 0; }
.pdp-tabs { border-bottom: 2px solid var(--border-color); gap: 0.25rem; }
.pdp-tabs .nav-link {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--menu-color);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.1rem;
}
.pdp-tabs .nav-link:hover { color: var(--primary-color); border-color: transparent; }
.pdp-tabs .nav-link.active {
  color: var(--primary-color);
  background: transparent;
  border-bottom-color: var(--primary-color);
}
.pdp-tab-content {
  border: 1px solid var(--border-color);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.5rem;
}
.pdp-tab-content p { font-size: 0.94rem; color: #444; }
.pdp-h2 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.75rem;
  padding-left: 0.7rem;
  position: relative;
}
.pdp-tab-content > .tab-pane > .pdp-h2:first-child { margin-top: 0; }
.pdp-h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.1em;
  background: var(--primary-color);
  border-radius: 2px;
}
.pdp-feature-list { list-style: none; padding-left: 0; margin-bottom: 0.5rem; }
.pdp-feature-list li {
  font-size: 0.92rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.28rem 0;
}
.pdp-feature-list i { color: var(--primary-color); margin-top: 0.15rem; }

/* ---- Spec table ---- */
.spec-table { margin-bottom: 0; }
.spec-table th,
.spec-table td { padding: 0.7rem 0.9rem; font-size: 0.9rem; vertical-align: top; }
.spec-table th {
  width: 38%;
  background: var(--soft-bg);
  color: var(--text-dark);
  font-weight: 600;
}
.spec-table tr { border-color: var(--border-color); }

/* ---- Reviews ---- */
.pdp-reviews { padding: 2rem 0; border-top: 1px solid var(--border-color); }
.review-summary {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--soft-bg);
}
.review-score { font-size: 3rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.review-score-stars { color: var(--primary-color); font-size: 1.1rem; letter-spacing: 2px; margin: 0.4rem 0; }
.review-score-count { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1rem; }
.review-bars li {
  display: grid;
  grid-template-columns: 34px 1fr 32px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.review-bars .bar {
  height: 8px;
  background: #e3e3e3;
  border-radius: 999px;
  overflow: hidden;
}
.review-bars .bar > span { display: block; height: 100%; background: var(--primary-color); }

.review-list { display: flex; flex-direction: column; gap: 1rem; }
.pdp-review-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pdp-review-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.pdp-review-head .review-avatar { width: 44px; height: 44px; }
.pdp-review-head > div { flex: 1 1 auto; }
.pdp-review-date { font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; }
.pdp-review-card .review-stars { font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 0.4rem; }
.pdp-review-card .review-text { font-size: 0.9rem; color: #444; margin: 0; }

.review-form {
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--soft-bg);
}
.review-form .form-control:focus,
.review-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(244, 135, 33, 0.2);
}

/* ---- Related products spacing ---- */
.related-section { border-top: 1px solid var(--border-color); }

/* ---- Product page responsive ---- */
@media (max-width: 991.98px) {
  .pdp-gallery { position: static; }
}
@media (max-width: 575.98px) {
  .pdp-actions { grid-template-columns: 1fr; }
  .pdp-btn { width: 100%; }
  .pdp-stage { cursor: default; }
  .review-form { padding: 1rem; }
}

/* =============================================================
   CHECKOUT PAGE (checkout.html)
   ============================================================= */
.checkout-section { padding: 1.5rem 0 3rem; }
.checkout-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.checkout-card h2 {
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  padding-left: 0.7rem;
  position: relative;
}
.checkout-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 4px;
  height: 1.1em;
  background: var(--primary-color);
  border-radius: 2px;
}
.checkout-form .form-control:focus,
.checkout-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(244, 135, 33, 0.2);
}
.checkout-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.checkout-form .req { color: #dc3545; }
.checkout-form .form-label { font-weight: 600; font-size: 0.88rem; }
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
.summary-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex: 0 0 auto;
}
.summary-item .si-name { font-size: 0.85rem; font-weight: 600; display: block; }
.summary-item .si-meta { font-size: 0.78rem; color: var(--text-muted); }
.summary-item .si-price { margin-left: auto; font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}
.summary-row.total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  border-top: 2px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.6rem;
}
.checkout-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.summary-empty {
  list-style: none;
  padding: 1rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.summary-empty i { color: var(--primary-color); margin-right: 0.35rem; }
.summary-empty a { color: var(--primary-color); font-weight: 600; }
#placeOrderBtn:disabled { opacity: 0.55; cursor: not-allowed; }
