/* =============================================
   BluePetal Pharma – Main Stylesheet
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0a1628;
  --blue-mid:    #1a3c6e;
  --blue-bright: #2980b9;
  --blue-light:  #e8f4fd;
  --accent:      #2ecc71;
  --white:       #ffffff;
  --grey-light:  #f4f6f9;
  --grey-mid:    #dde3ec;
  --grey-text:   #555f6e;
  --text-dark:   #1a1a2e;
  --danger:      #c0392b;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.16);
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--grey-light); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 4px; }

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: var(--blue-dark);
  color: #cdd6e8;
  font-size: 0.82rem;
  padding: 0.45rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar i { margin-right: 0.35rem; color: var(--accent); }
.topbar-right { display: flex; gap: 0.9rem; align-items: center; }
.topbar-right a {
  color: #aab6cc;
  font-size: 0.78rem;
  transition: color var(--transition);
}
.topbar-right a:hover { color: var(--white); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(41,128,185,0.35);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 1.35rem; font-weight: 800; color: var(--blue-mid); letter-spacing: -0.3px; }
.logo-sub  { font-size: 0.75rem; font-weight: 600; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 1.5px; }

/* Search */
.header-search {
  flex: 1;
  display: flex;
  max-width: 520px;
  border: 2px solid var(--grey-mid);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--blue-bright); }
.header-search input {
  flex: 1; border: none; outline: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  background: var(--white);
}
.header-search button {
  background: var(--blue-mid);
  border: none; color: var(--white);
  padding: 0 1.1rem;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--blue-bright); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.action-icon {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-mid);
  font-size: 1.05rem;
  transition: background var(--transition), color var(--transition);
}
.action-icon:hover { background: var(--blue-light); color: var(--blue-bright); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 0.65rem; font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Header contact strip */
.header-contact {
  background: var(--blue-light);
  text-align: center;
  font-size: 0.82rem;
  color: var(--grey-text);
  padding: 0.3rem;
}
.header-contact strong { color: var(--blue-mid); }

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
  background: var(--blue-mid);
  position: relative;
  z-index: 999;
}
.main-nav ul {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  color: #c8d8ee;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 0.85rem;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.main-nav ul li a i { font-size: 0.7rem; margin-left: 3px; }

/* Dropdown — controlled ONLY by JS (.open class). Hover is fully disabled. */
.has-dropdown .dropdown,
.has-dropdown:hover .dropdown {
  display: none !important;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 190px;
  z-index: 100;
}
.has-dropdown.open .dropdown {
  display: block !important;
  pointer-events: auto;
}
.dropdown li a {
  color: var(--text-dark) !important;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-left: 3px solid transparent;
  display: block;
}
.dropdown li a:hover {
  background: var(--blue-light) !important;
  border-left-color: var(--blue-bright);
  color: var(--blue-mid) !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-dark {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}
.btn-dark:hover { background: var(--blue-mid); border-color: var(--blue-mid); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-bright));
  color: var(--white);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
  box-shadow: 0 4px 16px rgba(41,128,185,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--blue-mid);
  border-color: var(--blue-mid);
}
.btn-outline:hover { background: var(--blue-mid); color: var(--white); }
.btn-full { width: 100%; }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #a93226; }

/* =============================================
   HERO BANNERS
   ============================================= */
.hero-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.banner-card {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  min-height: 180px;
}
.banner-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(41,128,185,0.3), transparent 60%);
}
.banner-text { position: relative; z-index: 1; }
.banner-text h2 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 1rem; color: #e8f0f8; }
.banner-img { position: relative; z-index: 1; flex-shrink: 0; }
.banner-icon { font-size: 4rem; color: rgba(255,255,255,0.18); }

/* =============================================
   CATEGORIES SECTION
   ============================================= */
.categories-section {
  max-width: 1300px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 2rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.category-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-bright));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.category-card:hover { border-color: var(--blue-bright); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-card:hover::after { transform: scaleX(1); }
.cat-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}
.cat-trust {
  font-size: 0.7rem;
  color: var(--grey-text);
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.category-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.category-card p { font-size: 0.82rem; color: var(--grey-text); }

/* =============================================
   WHY US
   ============================================= */
.why-us {
  background: var(--grey-light);
  padding: 3rem 2rem;
  margin-top: 2rem;
}
.why-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.3rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-card i {
  font-size: 2.2rem;
  color: var(--blue-bright);
  margin-bottom: 1rem;
  display: block;
}
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--blue-dark); }
.why-card p { font-size: 0.83rem; color: var(--grey-text); line-height: 1.6; }

/* =============================================
   SHOP PAGE
   ============================================= */
.shop-section {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 2rem 3rem;
}
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}
.shop-sidebar {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 130px;
}
.shop-sidebar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-light);
}
.cat-filter-list li { margin-bottom: 0.2rem; }
.cat-filter-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--grey-text);
  transition: all var(--transition);
}
.cat-filter-list a:hover,
.cat-filter-list a.active {
  background: var(--blue-light);
  color: var(--blue-mid);
  font-weight: 600;
}
.price-range input[type="range"] {
  width: 100%;
  accent-color: var(--blue-bright);
  margin: 0.5rem 0;
}
.price-range p { font-size: 0.83rem; color: var(--grey-text); }

.shop-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.shop-header-bar h2 { font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); }
.shop-header-bar select {
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  color: var(--grey-text);
  outline: none;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

/* Product Card */
.product-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-img {
  background: linear-gradient(135deg, var(--blue-light), #d0e8f6);
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: var(--blue-mid);
  position: relative;
}
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue-bright);
  color: var(--white);
  font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--blue-bright); margin-bottom: 0.3rem;
}
.product-name {
  font-size: 0.95rem; font-weight: 700; color: var(--blue-dark);
  margin-bottom: 0.3rem; line-height: 1.3;
}
.product-desc { font-size: 0.8rem; color: var(--grey-text); line-height: 1.5; flex: 1; margin-bottom: 0.8rem; }
.product-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem;
  margin-top: auto;
}
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--blue-mid); }
.add-to-cart-btn {
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.35rem;
  transition: background var(--transition), transform var(--transition);
}
.add-to-cart-btn:hover { background: var(--blue-bright); transform: scale(1.04); }
.add-to-cart-btn.added { background: var(--accent); }

/* Cart flash toast */
.cart-toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: flex; align-items: center; gap: 0.5rem;
  animation: slideInToast 0.3s ease, fadeOutToast 0.4s 2.2s ease forwards;
}
@keyframes slideInToast { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeOutToast { to { opacity:0; transform:translateY(10px); } }

/* =============================================
   CART PAGE
   ============================================= */
.cart-section {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 2rem 3rem;
}
.page-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: start;
}

/* Cart items */
.cart-items-container {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--grey-mid);
  transition: background var(--transition);
}
.cart-item:hover { background: var(--grey-light); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-light), #d0e8f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--blue-mid);
  flex-shrink: 0;
}
.cart-item-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.2rem; }
.cart-item-info p { font-size: 0.8rem; color: var(--grey-text); margin-bottom: 0.5rem; }
.cart-item-price { font-weight: 700; color: var(--blue-mid); font-size: 0.95rem; }
.cart-qty {
  display: flex; align-items: center; gap: 0.4rem;
}
.cart-qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--grey-mid);
  border-radius: 50%;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-mid);
  transition: all var(--transition);
}
.cart-qty button:hover { background: var(--blue-mid); color: var(--white); border-color: var(--blue-mid); }
.cart-qty span { font-weight: 700; min-width: 22px; text-align: center; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.remove-item {
  background: none; border: none;
  color: #aaa; font-size: 0.75rem;
  display: flex; align-items: center; gap: 0.3rem;
  transition: color var(--transition);
}
.remove-item:hover { color: var(--danger); }

.cart-empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--grey-text);
}
.cart-empty i { font-size: 3.5rem; color: var(--grey-mid); margin-bottom: 1rem; display: block; }
.cart-empty p { margin-bottom: 1.5rem; }

/* Cart Sidebar */
.cart-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.order-summary {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}
.order-summary h3 {
  font-size: 1rem; font-weight: 700; color: var(--blue-dark);
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--blue-light);
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; padding: 0.4rem 0;
  color: var(--grey-text);
}
.total-row {
  font-size: 1rem; font-weight: 700;
  color: var(--blue-dark);
  border-top: 2px solid var(--blue-light);
  margin-top: 0.5rem; padding-top: 0.6rem;
}

/* Checkout Form */
.checkout-form-box {
  background: var(--white);
  border: 2px solid var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.checkout-form-box h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--blue-dark);
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.checkout-form-box h3 i { color: var(--blue-bright); }
.form-note {
  font-size: 0.8rem; color: var(--grey-text);
  margin-bottom: 1.2rem; line-height: 1.6;
}
.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block;
  font-size: 0.82rem; font-weight: 600;
  color: var(--blue-dark); margin-bottom: 0.3rem;
}
.required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.12);
}
.form-group textarea { resize: vertical; min-height: 70px; }

.form-notice {
  background: #e8f8f0;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: #1e7a47;
  margin-bottom: 1rem;
  display: flex; gap: 0.5rem; align-items: flex-start;
  line-height: 1.5;
}
.form-notice i { margin-top: 2px; flex-shrink: 0; }

/* Success Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.7);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes popIn { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
.modal-icon { font-size: 4rem; margin-bottom: 1rem; }
.modal-icon.success { color: var(--accent); }
.modal-box h2 { font-size: 1.4rem; margin-bottom: 0.7rem; color: var(--blue-dark); }
.modal-box p { font-size: 0.9rem; color: var(--grey-text); margin-bottom: 0.5rem; line-height: 1.6; }
.modal-ref { font-size: 0.82rem; color: #999; margin-top: 0.5rem; margin-bottom: 1.5rem; }

/* =============================================
   INNER PAGES
   ============================================= */
.inner-page {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 2rem 3rem;
}
.inner-container { max-width: 960px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.contact-info h2 { font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.8rem; }
.contact-info p { color: var(--grey-text); margin-bottom: 1.2rem; font-size: 0.9rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.2rem;
}
.contact-item i {
  font-size: 1.3rem; color: var(--blue-bright);
  margin-top: 3px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.9rem; color: var(--blue-dark); margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.85rem; color: var(--grey-text); margin: 0; }
.contact-form-box {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.contact-form-box h2 { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1.2rem; }

/* Policy Pages */
.policy-page h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--blue-mid);
  margin: 1.5rem 0 0.5rem;
}
.policy-page p { font-size: 0.9rem; color: var(--grey-text); margin-bottom: 0.8rem; line-height: 1.7; }
.policy-page ul, .policy-page ol {
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 0.8rem;
  line-height: 2;
}
.policy-date { font-size: 0.82rem; color: #aaa; margin-bottom: 1.5rem; }

/* FAQ */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-question {
  width: 100%; background: var(--white);
  border: none; padding: 1rem 1.3rem;
  text-align: left; font-size: 0.95rem; font-weight: 600;
  color: var(--blue-dark);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--blue-light); }
.faq-question i { transition: transform var(--transition); color: var(--blue-bright); }
.faq-item.open .faq-question { background: var(--blue-light); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.3rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0.8rem 1.3rem 1rem; }
.faq-answer p { font-size: 0.88rem; color: var(--grey-text); line-height: 1.7; }
.faq-answer a { color: var(--blue-bright); text-decoration: underline; }

/* Tracking */
.tracking-box {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.tracking-icon { font-size: 3.5rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; display: block; }
.tracking-box h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.tracking-box p { color: #c8d8ee; font-size: 0.9rem; margin-bottom: 1.5rem; }
.tracking-form { display: flex; gap: 0.8rem; max-width: 480px; margin: 0 auto; }
.tracking-form input {
  flex: 1; border: none; outline: none;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}
.tracking-result {
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: #e8f4fd;
}
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.delivery-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.delivery-card i { font-size: 2rem; color: var(--blue-bright); margin-bottom: 0.7rem; display: block; }
.delivery-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.4rem; }
.delivery-card p { font-size: 0.83rem; color: var(--grey-text); line-height: 1.7; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--blue-dark);
  color: #c8d8ee;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .logo { margin-bottom: 0.8rem; }
.footer-brand .logo-main { color: var(--white); }
.footer-brand p { font-size: 0.83rem; color: #8fa3bc; line-height: 1.7; }
.footer-links h4 {
  font-size: 0.88rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-links ul li { margin-bottom: 0.4rem; }
.footer-links ul li a {
  font-size: 0.83rem; color: #8fa3bc;
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--white); }
.social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #c8d8ee;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--blue-bright); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.8rem;
  color: #6a82a0;
}

/* =============================================
   LOADING OVERLAY (for geo-check)
   ============================================= */
#geoLoader {
  position: fixed; inset: 0;
  background: var(--blue-dark);
  z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white);
  gap: 1.2rem;
}
#geoLoader .spin {
  width: 50px; height: 50px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: var(--blue-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#geoLoader p { font-size: 0.9rem; color: #8fa3bc; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero-banners { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar { font-size: 0.75rem; }
  .topbar-right { display: none; }
  .header-inner { flex-wrap: wrap; gap: 0.8rem; }
  .header-search { order: 3; max-width: 100%; width: 100%; }
  .hero-banners { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav ul { overflow-x: auto; flex-wrap: nowrap; }
  .main-nav ul li a { font-size: 0.78rem; padding: 0.6rem 0.65rem; }
  .products-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}

/* =============================================
   ENHANCED HERO BANNERS (v2)
   ============================================= */
.hero-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1300px;
  margin: 1.5rem auto;
  padding: 0 2rem;
}
.banner-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #daeeff 100%);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid #c8e0f4;
  overflow: hidden;
  position: relative;
  min-height: 190px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.banner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.banner-icon-small {
  width: 32px; height: 32px;
  background: var(--blue-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.banner-text { flex: 1; }
.banner-text h2 {
  font-size: 1rem; font-weight: 800; line-height: 1.4;
  margin-bottom: 1rem; color: var(--blue-dark);
}
.banner-img-wrap { flex-shrink: 0; }
.banner-pill-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #fff, #ddf0ff);
  box-shadow: 0 6px 20px rgba(41,128,185,0.2);
}
.banner-big-icon { font-size: 2.5rem; color: var(--blue-mid); }
.banner-pill-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* =============================================
   PROMO CATEGORY CARDS (Big Blue Cards)
   ============================================= */
.categories-section { max-width: 1300px; margin: 2.5rem auto; padding: 0 2rem; }

.promo-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.promo-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text-dark);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 320px;
}
.promo-cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* White card (sale) has coloured title */
.promo-sale h3 { color: var(--blue-dark); font-size: 1.6rem; font-weight: 900; line-height: 1.1; margin: 0.6rem 0 0.5rem; text-transform: uppercase; }
/* Blue cards */
.promo-blue { background: linear-gradient(160deg, #0a1628 0%, #1a3c6e 60%, #2980b9 100%); color: #fff; border-color: transparent; }
.promo-blue h3 { color: #fff; font-size: 1.3rem; font-weight: 900; line-height: 1.15; margin: 0.6rem 0 0.5rem; text-transform: uppercase; }
.promo-blue p  { color: #b8d4ee; font-size: 0.82rem; }

.promo-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.5rem; margin-bottom: 0.2rem;
}
.promo-safe-badge {
  font-size: 0.68rem; font-weight: 700;
  color: var(--blue-mid); letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 0.3rem;
  flex-shrink: 0;
}
.promo-blue .promo-safe-badge { color: #8dc6e8; }
.promo-trust-badge {
  font-size: 0.62rem; font-weight: 700; color: var(--blue-mid);
  text-align: right; line-height: 1.4;
  background: #e8f4fd; border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
  flex-shrink: 0;
}
.promo-blue .promo-trust-badge { background: rgba(255,255,255,0.12); color: #c8e0f0; }
.stars { color: #f39c12; letter-spacing: 1px; }

.promo-features {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin: 0.6rem 0; flex: 1;
}
.promo-features span {
  font-size: 0.7rem; color: var(--grey-text);
  display: flex; align-items: center; gap: 0.35rem;
}
.promo-features span i { color: var(--blue-bright); font-size: 0.65rem; }
.promo-blue .promo-features span { color: #8dc6e8; }
.promo-blue .promo-features span i { color: #5ba8d4; }

.promo-footer-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  background: var(--blue-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0.6rem -1.2rem -1.2rem;
  padding: 0.5rem 1rem;
}
.promo-footer-bar span {
  font-size: 0.6rem; color: #8dc6e8; font-weight: 600;
  display: flex; align-items: center; gap: 0.3rem;
}
.promo-footer-bar span i { color: #5ba8d4; }

/* Pill stack (sale card) */
.promo-pill-stack {
  display: flex; gap: 0.4rem; margin: 0.5rem 0;
}
.pill-box {
  width: 40px; height: 48px;
  background: linear-gradient(160deg, #1a3c6e, #2980b9);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

/* Med image (blue cards) */
.promo-med-img {
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  margin-top: auto; margin-bottom: 0.5rem;
}
.promo-med-img i { font-size: 2rem; color: #c8e0f0; }
.promo-med-label { font-size: 0.8rem; font-weight: 700; color: #e8f4fd; line-height: 1.3; }

/* =============================================
   LATEST PRODUCTS SLIDER
   ============================================= */
.latest-section {
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.latest-slider-wrap {
  display: flex; align-items: center; gap: 0.6rem;
  position: relative; overflow: hidden;
}
.latest-slider {
  display: flex; gap: 1rem;
  transition: transform 0.4s ease;
  flex: 1;
  overflow: hidden;
}
.latest-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-width: calc(25% - 0.75rem);
  flex-shrink: 0;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.latest-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.latest-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.68rem; font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  color: #fff;
}
.latest-badge.hot       { background: #e74c3c; }
.latest-badge.sold-out  { background: #e74c3c; }
.latest-img {
  height: 110px;
  background: linear-gradient(135deg, #eef6ff, #d0e8f6);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--blue-mid);
  margin-bottom: 0.7rem;
}
.latest-card h4 { font-size: 0.82rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 0.4rem; line-height: 1.4; }
.latest-price   { font-size: 0.88rem; font-weight: 700; color: var(--blue-mid); margin-bottom: 0.2rem; }
.latest-stars   { color: #ccc; font-size: 0.8rem; letter-spacing: 2px; }

.slider-arrow {
  background: var(--blue-mid);
  color: #fff; border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background var(--transition);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--blue-bright); }
.slider-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1rem; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grey-mid); cursor: pointer;
  transition: background var(--transition);
}
.slider-dot.active { background: var(--blue-bright); }

/* =============================================
   TOP 5 BESTSELLERS
   ============================================= */
.bestsellers-section {
  background: var(--grey-light);
  padding: 3rem 2rem;
  margin: 2rem 0;
}
.bestseller-tabs {
  display: flex; gap: 0; justify-content: center;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.bs-tab {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem; font-weight: 600;
  color: var(--grey-text);
  cursor: pointer;
  transition: all var(--transition);
  border-right: none;
}
.bs-tab:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.bs-tab:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--grey-mid); }
.bs-tab.active, .bs-tab:hover { background: var(--blue-mid); color: #fff; border-color: var(--blue-mid); }

.bestseller-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.bs-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: relative;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.bs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bs-badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  color: #fff; margin-bottom: 0.5rem;
}
.bs-sale { background: #e67e22; }
.bs-hot  { background: #e74c3c; }
.bs-img {
  height: 100px;
  background: linear-gradient(135deg, #eef6ff, #d0e8f6);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--blue-mid);
  margin-bottom: 0.7rem;
}
.bs-card h4   { font-size: 0.78rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 0.3rem; line-height: 1.4; }
.bs-price     { font-size: 0.82rem; font-weight: 700; color: var(--blue-mid); margin-bottom: 0.4rem; }
.bs-stars     { color: #ccc; font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 0.6rem; }
.btn-sm       { padding: 0.35rem 0.9rem; font-size: 0.75rem; }

/* =============================================
   FEATURED PRODUCTS
   ============================================= */
.featured-section {
  max-width: 1300px;
  margin: 2.5rem auto;
  padding: 0 2rem 3rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.featured-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.featured-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-badge {
  display: inline-block;
  background: #e74c3c; color: #fff;
  font-size: 0.65rem; font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.feat-img {
  height: 100px;
  background: linear-gradient(135deg, #eef6ff, #d0e8f6);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--blue-mid);
  margin-bottom: 0.7rem;
}
.featured-card h4 { font-size: 0.78rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 0.3rem; line-height: 1.4; }
.feat-price       { font-size: 0.82rem; font-weight: 700; color: var(--blue-mid); margin-bottom: 0.2rem; }
.feat-stars       { color: #ccc; font-size: 0.75rem; letter-spacing: 2px; }

/* =============================================
   RESPONSIVE – new sections
   ============================================= */
@media (max-width: 1100px) {
  .promo-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .bestseller-grid        { grid-template-columns: repeat(3, 1fr); }
  .featured-grid          { grid-template-columns: repeat(3, 1fr); }
  .latest-card            { min-width: calc(33.33% - 0.75rem); }
}
@media (max-width: 900px) {
  .hero-banners           { grid-template-columns: 1fr; }
  .promo-categories-grid  { grid-template-columns: repeat(2, 1fr); }
  .bestseller-grid        { grid-template-columns: repeat(2, 1fr); }
  .featured-grid          { grid-template-columns: repeat(2, 1fr); }
  .latest-card            { min-width: calc(50% - 0.5rem); }
}
@media (max-width: 600px) {
  .promo-categories-grid  { grid-template-columns: 1fr; }
  .bestseller-grid        { grid-template-columns: repeat(2, 1fr); }
  .featured-grid          { grid-template-columns: repeat(2, 1fr); }
  .latest-card            { min-width: calc(100% - 0px); }
  .bestseller-tabs        { flex-direction: column; align-items: center; }
  .bs-tab { border-radius: var(--radius) !important; border-right: 1px solid var(--grey-mid) !important; width: 100%; text-align: center; }
}

/* =============================================
   PRODUCT CARDS – real image support
   ============================================= */
.product-img {
  background: #f0f7ff;
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.prod-real-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}
.product-card:hover .prod-real-img { transform: scale(1.04); }
.prod-icon-fallback {
  font-size: 4rem;
  color: var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.prod-icon-fallback i { font-size: 4rem; color: var(--blue-mid); }
.prod-stock {
  font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.in-stock  { color: #27ae60; }
.out-stock { color: var(--danger); }
.product-price {
  font-size: 0.92rem; font-weight: 800; color: var(--blue-mid);
  line-height: 1.3;
}
.prod-card-actions {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.7rem;
}
.prod-card-actions .btn-sm { flex: 1; text-align: center; }
.add-to-cart-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-mid); color: #fff;
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.add-to-cart-btn:hover { background: var(--blue-bright); transform: scale(1.08); }
.add-to-cart-btn.added { background: var(--accent); }

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */
.breadcrumb-bar {
  background: var(--grey-light);
  border-bottom: 1px solid var(--grey-mid);
  padding: 0.55rem 0;
  font-size: 0.82rem;
  color: var(--grey-text);
}
.breadcrumb-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--blue-bright); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner i { font-size: 0.65rem; color: #aaa; }

.product-detail-section {
  max-width: 1300px; margin: 2rem auto; padding: 0 2rem 3rem;
}
.product-detail-inner {
  display: grid; grid-template-columns: 480px 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

/* Image col */
.pd-image-col { display: flex; flex-direction: column; gap: 1.2rem; }
.pd-image-box {
  border: 1px solid var(--grey-mid); border-radius: var(--radius-lg);
  overflow: hidden; background: #f8fbff;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.pd-image-box img { width: 100%; height: 360px; object-fit: contain; padding: 1rem; }
.pd-icon-fallback { font-size: 8rem; }
.pd-trust-badges {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.trust-badge {
  background: var(--blue-light);
  border: 1px solid #c8e0f4;
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--blue-mid);
  display: flex; align-items: center; gap: 0.4rem;
  text-align: center;
}
.trust-badge i { font-size: 0.9rem; }

/* Info col */
.pd-category {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--blue-bright); margin-bottom: 0.4rem;
}
.pd-title {
  font-size: 1.5rem; font-weight: 800; color: var(--blue-dark);
  line-height: 1.3; margin-bottom: 0.8rem;
}
.pd-stock {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 700; color: #27ae60;
  margin-bottom: 1rem;
}
.pd-features {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 1rem;
}
.pd-feature-item {
  font-size: 0.88rem; color: var(--text-dark); line-height: 1.5;
}
.pd-meta-table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.pd-meta-table td {
  padding: 0.35rem 0.6rem; font-size: 0.85rem;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey-text);
}
.pd-meta-table td:first-child { width: 140px; font-weight: 600; color: var(--text-dark); }
.pd-meta-table td strong { color: var(--blue-mid); }

.pd-price-range { margin: 0.8rem 0 1rem; }
.pd-price {
  font-size: 1.6rem; font-weight: 900; color: var(--blue-dark);
}
.pd-price-total { font-size: 1rem; font-weight: 600; color: var(--blue-mid); margin-left: 0.5rem; }

.pd-label {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 0.5rem;
}
.pack-options {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem;
}
.pack-btn {
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--grey-mid);
  border-radius: var(--radius);
  background: var(--white); font-size: 0.85rem; font-weight: 600;
  color: var(--grey-text); cursor: pointer;
  transition: all var(--transition);
}
.pack-btn:hover  { border-color: var(--blue-bright); color: var(--blue-bright); }
.pack-btn.active { border-color: var(--blue-mid); background: var(--blue-mid); color: #fff; }

.pd-qty-row { margin-bottom: 1.2rem; }
.pd-qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 2px solid var(--grey-mid); border-radius: var(--radius);
  overflow: hidden;
}
.pd-qty button {
  width: 38px; height: 38px; border: none;
  background: var(--grey-light); font-size: 1.1rem; font-weight: 700;
  color: var(--blue-mid); cursor: pointer;
  transition: background var(--transition);
}
.pd-qty button:hover { background: var(--blue-light); }
.pd-qty span { width: 48px; text-align: center; font-weight: 700; font-size: 1rem; }

.pd-actions { display: flex; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pd-atc { flex: 1; min-width: 160px; font-size: 1rem; padding: 0.75rem 1.5rem; }
.pd-wish { padding: 0.75rem 1.2rem; }

.pd-sku { font-size: 0.78rem; color: #aaa; }

/* Tabs */
.pd-tabs-section { border-top: 2px solid var(--grey-mid); padding-top: 2rem; }
.pd-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--grey-mid); margin-bottom: 1.5rem; }
.pd-tab {
  padding: 0.65rem 1.5rem;
  border: none; background: transparent;
  font-size: 0.9rem; font-weight: 600; color: var(--grey-text);
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all var(--transition);
}
.pd-tab:hover  { color: var(--blue-mid); }
.pd-tab.active { color: var(--blue-mid); border-bottom-color: var(--blue-mid); }

.pd-tab-content { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.pd-desc-text {
  font-size: 0.9rem; color: var(--grey-text); line-height: 1.9;
  max-width: 860px;
}
.pd-desc-text strong { color: var(--blue-dark); }

.pd-info-table { border-collapse: collapse; width: 100%; max-width: 600px; }
.pd-info-table tr { border-bottom: 1px solid var(--grey-mid); }
.pd-info-table th {
  text-align: left; padding: 0.6rem 1rem;
  font-size: 0.85rem; font-weight: 700;
  background: var(--grey-light); color: var(--blue-dark);
  width: 180px;
}
.pd-info-table td { padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--grey-text); }

/* ── Responsive product detail ── */
@media (max-width: 960px) {
  .product-detail-inner { grid-template-columns: 1fr; }
  .pd-image-box { min-height: 260px; }
}
@media (max-width: 600px) {
  .pd-trust-badges { grid-template-columns: 1fr 1fr; }
  .pd-title { font-size: 1.2rem; }
}

/* Product card as anchor tag */
a.product-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
a.product-card-link:hover { text-decoration: none; color: inherit; }

/* =============================================
   PRODUCT CARD IMAGE FIX
   ============================================= */
.product-img {
  background: #f0f7ff;
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-img img.prod-real-img {
  width: 100% !important;
  height: 200px !important;
  object-fit: contain !important;
  padding: 0.5rem !important;
  display: block !important;
}
.product-img .prod-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-img .prod-icon-fallback i { font-size: 4rem; color: var(--blue-mid); }

/* Latest slider card images */
.latest-img img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 0.5rem;
}

/* Bestseller / Featured card images */
.bs-img img, .feat-img img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 0.5rem;
}

/* =============================================
   DESCRIPTION HEADING STYLES (product detail)
   ============================================= */
.pd-desc-text p { margin-bottom: 0.8rem; }
.pd-desc-text .desc-heading {
  display: block;
  font-weight: 800;
  color: #0a1628 !important;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Promo category card real images */
.promo-med-img img {
  width: 70px;
  height: 55px;
  object-fit: contain;
  border-radius: 6px;
}
.promo-pill-stack img {
  width: 60px; height: 50px;
  object-fit: contain;
  border-radius: 4px;
}
/* Latest slider card real images */
.latest-img {
  padding: 0 !important;
  overflow: hidden;
}
.latest-img img {
  width: 100%; height: 110px;
  object-fit: contain;
  padding: 0.4rem;
}
/* Bestseller card real images */
.bs-img {
  padding: 0 !important;
  overflow: hidden;
}
.bs-img img {
  width: 100%; height: 100px;
  object-fit: contain;
  padding: 0.4rem;
}
/* Featured card real images */
.feat-img {
  padding: 0 !important;
  overflow: hidden;
}
.feat-img img {
  width: 100%; height: 100px;
  object-fit: contain;
  padding: 0.4rem;
}

/* =============================================
   REAL LOGO IMAGE
   ============================================= */
.site-logo-img {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  /* No filter — keep original colors, works on dark background */
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
a.logo { display: flex; align-items: center; text-decoration: none; }

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
#langSwitcher {
  position: relative;
  z-index: 1100;
}
#langDisplay {
  background: transparent;
  border: 1.5px solid var(--grey-mid);
  border-radius: 50px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: all var(--transition);
}
#langDisplay:hover {
  background: var(--blue-light);
  border-color: var(--blue-bright);
}
#langMenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  list-style: none;
  padding: 0.4rem 0;
  animation: fadeIn 0.15s ease;
}
#langMenu li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-size: 0.87rem;
  color: var(--text-dark);
  transition: background var(--transition);
}
#langMenu li:hover {
  background: var(--blue-light);
  color: var(--blue-mid);
}
.lang-flag { font-size: 1.1rem; }
.lang-name { font-weight: 500; }
