/* ============================================================
   THE M SQUARE MARBLES — main.css
   Complete Responsive Stylesheet
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --gold:          #B8962E;
  --gold-light:    #D4AF5A;
  --gold-dark:     #8A6E1A;
  --charcoal:      #1A1612;
  --charcoal-2:    #252018;
  --cream:         #F8F5F0;
  --cream-dark:    #EDE9E2;
  --white:         #FFFFFF;
  --gray:          #6B6560;
  --gray-light:    #9A9590;
  --border:        rgba(0,0,0,0.08);
  --border-solid:  #E0D9D0;
  --shadow:        0 2px 20px rgba(0,0,0,0.07);
  --shadow-hover:  0 12px 40px rgba(0,0,0,0.14);
  --transition:    all 0.28s ease;
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', system-ui, sans-serif;
  --header-h:      76px;
  --header-h-sm:   64px;
  --container:     1240px;
  --px:            clamp(16px, 4vw, 40px);
}

/* ── Reset ────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Prevents horizontal overflow / zoom-out on mobile */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  /* Prevents rubber-band zoom on iOS */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 500;
}

/* ── Announcement Bar ─────────────────────────────────────── */
.announcement-bar {
  background: var(--charcoal);
  color: rgba(255,255,255,.78);
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 500;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  z-index: 200;
}
.announcement-bar em { color: var(--gold-light); font-style: normal; font-weight: 700; }
.ann-wrap { overflow: hidden; white-space: nowrap; }
.announcement-ticker {
  display: inline-flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  flex-wrap: nowrap;
}
.announcement-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-solid);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.09); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
  padding: 0 var(--px);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-image { height: 60px; width: auto; object-fit: contain; }
.logo-text { line-height: 1.2; }
.logo-main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--charcoal);
  display: block;
}
.logo-sub {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: 2px;
}

/* Desktop Nav */
nav { flex: 1; display: flex; justify-content: center; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}
.main-nav > li > a:hover,
.main-nav > li > a.active { color: var(--gold); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--border-solid);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 50;
}
.main-nav > li:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-solid);
  transition: background 0.15s, color 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--cream); color: var(--gold); }

/* Header Actions */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0;
}
.header-icon {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px !important;
  text-decoration: none !important;
  color: var(--charcoal) !important;
  border-radius: 6px !important;
  transition: var(--transition) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  position: relative;
}
.header-icon i {
  font-size: 17px !important;
  line-height: 1 !important;
  margin-bottom: 4px;
}
.header-icon .icon-label {
  font-size: 9px !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
.header-icon:hover { color: var(--gold) !important; background: var(--cream) !important; }

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26,22,18,0.97);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-nav.open {
  display: block;
  transform: translateX(0);
}
.mobile-nav-inner {
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-inner a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  letter-spacing: 1px;
  transition: color 0.2s;
}
.mobile-nav-inner a:hover { color: var(--gold-light); }
.mobile-nav-inner a.sub {
  font-size: 14px;
  font-family: var(--font-body);
  padding-left: 20px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}
.mobile-nav-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 28px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: white;
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: white;
}
.btn-gold-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: rgba(184,150,46,0.5);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
.btn-lg { padding: 16px 36px; font-size: 11px; }
.btn-sm { padding: 9px 18px; font-size: 9px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: clamp(48px, 8vw, 100px) 0; }

.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 60px);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  display: block;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.1;
}
.section-subtitle {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
}

/* ── Grid Helpers ─────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.text-center { text-align: center; }

/* ── Product Cards ────────────────────────────────────────── */
.product-card {
  background: white;
  border: 1px solid var(--border-solid);
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.07); }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--charcoal);
  color: white;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}
.product-badge.sale { background: var(--gold); }
.product-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,22,18,0.92);
  display: flex;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateY(0); }
.product-card-actions a,
.product-card-actions button {
  flex: 1;
  padding: 13px 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: white;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  background: transparent;
}
.product-card-actions a { border-right: 1px solid rgba(255,255,255,0.15); }
.product-card-actions a:hover,
.product-card-actions button:hover { background: var(--gold); }
.product-card-info { padding: 18px 16px; }
.product-category-tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.25;
}
.product-name a { color: var(--charcoal); }
.product-name a:hover { color: var(--gold); }
.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-price .original {
  font-size: 13px;
  color: var(--gray-light);
  text-decoration: line-through;
  font-weight: 400;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--charcoal);
  color: white;
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--gold);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  max-width: calc(100vw - 32px);
}
.toast.success { border-color: #4caf50; }
.toast.error   { border-color: #ef5350; }
@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── WhatsApp Float ───────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 997;
  transition: transform 0.3s, box-shadow 0.3s;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.6); }
.wa-float.pulse { animation: waPulse 2.5s ease 3; }
@keyframes waPulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.15); } }
.wa-float-tip {
  position: absolute;
  right: 64px;
  background: var(--charcoal);
  color: white;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 7px 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  border-radius: 2px;
}
.wa-float:hover .wa-float-tip { opacity: 1; }

/* ── Back To Top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 996;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); }

/* ── Scroll Animation ─────────────────────────────────────── */
[data-animate] { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }
[data-animate].in-view { opacity: 1; transform: none; }
[data-animate="left"]  { transform: none; }
[data-animate="right"] { transform: none; }
[data-animate="left"].in-view,
[data-animate="right"].in-view { transform: none; opacity: 1; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* ── Page Transition ──────────────────────────────────────── */
.page-enter { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--charcoal-2); color: rgba(255,255,255,0.75); }
.footer-top { padding: clamp(40px, 7vw, 80px) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.85; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.55);
  border-radius: 2px;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: white; }

.site-footer h4 {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-light); font-weight: 700; margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-links li a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-contact-item i { color: var(--gold-light); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.28); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── Shop / Category Page ─────────────────────────────────── */
.page-banner {
  background: var(--charcoal);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.page-banner h1 { font-size: clamp(28px, 5vw, 52px); color: white; }
.breadcrumb { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 10px; }
.breadcrumb a { color: rgba(255,255,255,0.4); }
.breadcrumb a:hover { color: var(--gold-light); }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.sidebar { background: var(--cream); padding: 28px; }
.sidebar h3 { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--charcoal); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-solid); }
.filter-group { margin-bottom: 24px; }
.filter-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--gray); cursor: pointer; }
.filter-item input[type="checkbox"] { accent-color: var(--gold); width: 15px; height: 15px; }
.filter-item:hover { color: var(--charcoal); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.shop-toolbar select { border: 1px solid var(--border-solid); padding: 9px 14px; font-size: 13px; background: white; color: var(--charcoal); }

/* ── Product Detail ───────────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery {}
.gallery-main { aspect-ratio: 1/1; overflow: hidden; background: var(--cream-dark); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s; }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-block {}
.product-info-block h1 { font-size: clamp(26px,4vw,40px); margin-bottom: 12px; }
.product-info-block .price { font-size: 24px; font-weight: 700; color: var(--charcoal); margin-bottom: 20px; }

/* ── Cart / Checkout ──────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); font-weight: 600; border-bottom: 2px solid var(--border-solid); padding: 10px 14px; text-align: left; }
.cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--border-solid); vertical-align: middle; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button { width: 28px; height: 28px; border: 1px solid var(--border-solid); background: white; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cart-qty button:hover { background: var(--gold); color: white; border-color: var(--gold); }
.cart-qty input { width: 40px; text-align: center; border: 1px solid var(--border-solid); padding: 4px; font-size: 14px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-solid);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border-solid);
  font-size: 13px;
  color: var(--charcoal);
  transition: var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

/* ── Alert ────────────────────────────────────────────────── */
.alert { padding: 14px 20px; font-size: 14px; border-radius: 2px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(76,175,80,.1); border: 1px solid rgba(76,175,80,.3); color: #2e7d32; }
.alert-error   { background: rgba(239,83,80,.1); border: 1px solid rgba(239,83,80,.3); color: #c62828; }
.alert-info    { background: rgba(33,150,243,.1); border: 1px solid rgba(33,150,243,.3); color: #1565c0; }

/* ── Blog ─────────────────────────────────────────────────── */
.blog-detail-content h2,h3 { font-family: var(--font-display); margin: 28px 0 14px; }
.blog-detail-content p { color: var(--gray); line-height: 1.9; margin-bottom: 18px; font-size: 15px; }
.blog-detail-content img { width: 100%; margin: 24px 0; }

/* ─────────────────────────────────────────────────────────── */
/* ══ RESPONSIVE BREAKPOINTS ══════════════════════════════════ */
/* ─────────────────────────────────────────────────────────── */

/* ── Large tablet (≤1024px) ───────────────────────────────── */
@media (max-width: 1024px) {
  .main-nav > li > a { padding: 10px 12px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .shop-layout { grid-template-columns: 200px 1fr; gap: 28px; }
  .product-detail-grid { gap: 36px; }
}

/* ── Tablet (≤900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
  /* Hide desktop nav, show hamburger */
  nav { display: none !important; }
  .hamburger { display: flex !important; }

  .header-icon .icon-label { display: none !important; }
  .header-icon { padding: 8px !important; }
  .header-icon i { margin-bottom: 0 !important; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
}

/* ── Mobile (≤640px) ──────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --header-h: var(--header-h-sm);
    --px: 16px;
  }

  .logo-image { height: 46px !important; }
  .logo-main { font-size: 16px; }

  .header-inner { height: var(--header-h-sm); gap: 8px; }

  /* Hide labels on mobile icons to save space */
  .header-icon .icon-label { display: none !important; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section { padding: 44px 0; }

  .btn-lg { padding: 13px 22px; font-size: 10px; }

  /* Announcement bar - keep single line */
  .announcement-bar { font-size: 10px; padding: 7px 0; }

  /* Cart table scroll on mobile */
  .cart-table-wrap { overflow-x: auto; }

  .shop-toolbar { gap: 10px; }
}

/* ── Small mobile (≤480px) ────────────────────────────────── */
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-name { font-size: 15px; }
  .product-price { font-size: 14px; }
  .product-card-info { padding: 12px; }

  .wa-float { bottom: 76px; right: 14px; width: 48px; height: 48px; font-size: 19px; }
  .back-to-top { bottom: 20px; right: 14px; width: 38px; height: 38px; }
}

/* ── Very small (≤360px) ──────────────────────────────────── */
@media (max-width: 360px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .btn { padding: 11px 18px; font-size: 9px; letter-spacing: 1.5px; }
  .header-inner { gap: 4px; }
}

/* ── Safe area support (notched phones) ───────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .back-to-top { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Mobile Slider Fix ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slider {
    height: 55vh !important;
    min-height: 300px !important;
    max-height: 460px !important;
  }
  .slide-content {
    padding: 16px 18px 32px !important;
    max-width: 100% !important;
  }
  .slide-title {
    font-size: clamp(22px, 6vw, 36px) !important;
    margin-bottom: 10px !important;
    line-height: 1.1 !important;
  }
  .slide-desc {
    font-size: 12px !important;
    margin-bottom: 16px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .slide-eyebrow {
    font-size: 9px !important;
    margin-bottom: 10px !important;
  }
  .slide-actions {
    gap: 8px !important;
  }
  .slide-actions .btn {
    padding: 10px 14px !important;
    font-size: 9px !important;
    letter-spacing: 1.5px !important;
  }
  .slide-prev, .slide-next {
    width: 38px !important;
    height: 38px !important;
    font-size: 13px !important;
  }
  .slide-prev { left: 10px !important; }
  .slide-next { right: 10px !important; }
  .slide-dots { bottom: 14px !important; right: 14px !important; }
}


/* ── Blog section on dark background ─────────────────────── */
.blog-on-dark .section-label { color: var(--gold-light) !important; }
.blog-on-dark .section-title { color: white !important; }
.blog-on-dark .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: white;
}
.blog-on-dark .btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}