@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0f172a;
  --secondary: #334155;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --bg: #fafafa;
  --bg-light: #f1f5f9;
  --bg-alt: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 10px 40px rgba(15,23,42,0.08);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */
.announcement-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

#main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
}

.logo span { color: var(--accent); }

nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: var(--transition);
}

nav a:hover::after { width: 100%; }
nav a:hover { color: var(--accent); }

.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-icons a {
  position: relative;
  color: var(--primary);
  font-size: 1.1rem;
}

.header-icons a:hover { color: var(--accent); }

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--primary);
  padding: 4px;
}

/* ==================== CHECKOUT HEADER ==================== */
.checkout-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.back-to-cart {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

.back-to-cart:hover { color: var(--accent); }

.secure-badge {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Split layout - image left, content right panel */
.hero-alt {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 70vh;
  align-items: stretch;
}

.hero-alt .hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 60px 0 50px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  order: 2;
}

.hero-alt .hero-image-wrap {
  position: relative;
  order: 1;
  overflow: hidden;
}

.hero-alt .hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-alt .hero-tag {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero-alt h1 {
  font-size: 3.2rem;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: 1px;
  line-height: 1.2;
}

.hero-alt p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-alt .btn-primary {
  background: var(--primary);
}

.hero-alt .btn-primary:hover {
  background: var(--accent);
}

.hero-alt .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-alt .btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.hero-alt .hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.hero-alt .hero-image {
  display: none;
}

.hero-alt::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 60px;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.75rem;
}

.btn-block { width: 100%; }

/* ==================== SECTIONS ==================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.section-header-alt h2 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ==================== PRODUCT GRID ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

.product-card .product-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 3/4;
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  z-index: 2;
}

.product-card .badge.sale { background: var(--error); }

.product-card .quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}

.product-card:hover .quick-add {
  transform: translateY(0);
}

.product-info {
  padding: 20px 0 0;
  background: transparent;
}

.product-info h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-info .price {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.product-info .price .original {
  text-decoration: line-through;
  color: var(--text-light);
  margin-left: 8px;
  font-weight: 400;
}

/* ==================== CATEGORIES ==================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.08); }

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(15,23,42,0.8) 100%);
}

.category-card .category-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  color: #fff;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.category-card .shop-link {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ==================== FEATURES ==================== */
.features {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.feature-item .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-item h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==================== NEWSLETTER ==================== */
.newsletter {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.newsletter p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-form button {
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

.newsletter-form button:hover { background: #d48272; }

/* ==================== FOOTER ==================== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.payment-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-icons span {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: 500;
}

/* ==================== SHOP PAGE ==================== */
.page-banner {
  background: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
}

.page-banner .breadcrumb a:hover { color: var(--accent); }

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  padding: 50px 0;
}

.shop-sidebar h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.shop-sidebar .filter-group { margin-bottom: 30px; }

.shop-sidebar label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}

.shop-sidebar input[type="checkbox"] { accent-color: var(--accent); }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.shop-toolbar .result-count {
  font-size: 0.85rem;
  color: var(--text-light);
}

.shop-toolbar select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 50px 0;
}

.product-gallery .main-image {
  background: var(--bg-light);
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery .thumbnails {
  display: flex;
  gap: 10px;
}

.product-gallery .thumbnails img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.product-gallery .thumbnails img:hover,
.product-gallery .thumbnails img.active {
  border-color: var(--accent);
}

.product-details h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.product-details .price-display {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.product-details .description {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.size-selector, .color-selector {
  margin-bottom: 24px;
}

.size-selector label, .color-selector label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.size-options, .color-options { display: flex; gap: 8px; }

.size-options button {
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.size-options button:hover,
.size-options button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.color-options button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-options button.active { border-color: var(--primary); }

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.quantity-selector label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 16px;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.quantity-selector input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  font-size: 0.9rem;
  outline: none;
}

.add-to-cart-section {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.product-meta p { margin-bottom: 8px; }
.product-meta strong { color: var(--text); }

/* ==================== CART ==================== */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.cart-table th {
  text-align: left;
  padding: 16px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary);
}

.cart-table td {
  padding: 24px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-item-info img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.cart-item-info h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.cart-item-info .variant {
  font-size: 0.82rem;
  color: var(--text-light);
  display: block;
  margin-top: 4px;
}

.cart-qty {
  display: flex;
  align-items: center;
}

.cart-qty button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  font-size: 0.9rem;
}

.cart-qty button:hover {
  background: var(--bg-light);
}

.cart-qty input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  font-size: 0.85rem;
  outline: none;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  transition: var(--transition);
  text-decoration: underline;
}

.remove-btn:hover { color: var(--error); }

.cart-summary {
  max-width: 400px;
  margin-left: auto;
  background: var(--bg-light);
  padding: 30px;
}

.cart-summary h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.cart-summary .summary-row.total {
  font-weight: 600;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

/* ==================== CHECKOUT ==================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 20px 0 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-section {
  margin-bottom: 36px;
}

.checkout-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.order-summary-toggle {
  display: none;
}

.order-summary-box {
  background: var(--bg-light);
  padding: 30px;
  position: sticky;
  top: 100px;
}

/* ==================== POLICY PAGES ==================== */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.policy-page h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.policy-page .last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.policy-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 14px;
}

.policy-page h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.policy-page p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 14px;
  color: var(--text);
}

.policy-page ul, .policy-page ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.policy-page ul { list-style: disc; }
.policy-page ol { list-style: decimal; }

.policy-page li {
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.policy-page a { color: var(--accent); text-decoration: underline; }
.policy-page a:hover { color: var(--secondary); }

/* ==================== CONTACT / ABOUT ==================== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.about-section img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 0;
  text-align: center;
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}

.contact-info-box {
  margin-bottom: 30px;
}

.contact-info-box h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.contact-info-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* ==================== FAQ ==================== */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--text);
}

.faq-question .icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ==================== EMPTY CART ==================== */
.empty-cart {
  text-align: center;
  padding: 80px 0;
}

.empty-cart h2 { margin-bottom: 12px; }

.empty-cart p {
  color: var(--text-light);
  margin-bottom: 30px;
}

/* ==================== ACTIVE NAV LINK ==================== */
nav a.active { color: var(--accent); }
nav a.active::after { width: 100%; }

/* ==================== MOBILE NAV (SLIDE-IN) ==================== */
.mobile-nav-close { display: none; }
.mobile-nav-overlay { display: none; }

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

  .checkout-header-right { gap: 12px; }
  .back-to-cart span { display: none; }
  .back-to-cart { font-size: 1.1rem; }
  .secure-badge span { display: none; }
  .secure-badge { font-size: 1.1rem; }

  #main-nav {
    position: fixed;
    left: auto;
    transform: none;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    padding: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  #main-nav.active { right: 0; }

  #main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 60px 0 20px;
  }

  #main-nav ul li {
    border-bottom: 1px solid var(--border);
  }

  #main-nav a {
    display: block;
    padding: 16px 24px;
    font-size: 0.92rem;
  }

  #main-nav a:hover, #main-nav a.active {
    background: var(--bg-light);
    color: var(--accent);
  }

  #main-nav a::after { display: none; }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text);
    z-index: 10;
    transition: var(--transition);
  }

  .mobile-nav-close:hover {
    background: var(--bg-light);
    color: var(--accent);
  }

  .mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-alt .hero-content { padding: 0 40px 0 36px; }
  .hero-alt h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 0;
  }
  .hero-alt {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh 1fr;
    min-height: auto;
  }
  .hero-alt .hero-image-wrap {
    min-height: 45vh;
    position: relative;
  }
  .hero-alt .hero-image-wrap img {
    position: absolute;
  }
  .hero-alt .hero-content {
    padding: 40px 24px 50px;
  }
  .hero-alt h1 { font-size: 2rem; }
  .hero-alt p { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-alt .hero-btns { gap: 10px; }
  .hero:not(.hero-alt) .hero-content {
    max-width: 100%;
    padding: 0 24px;
    margin: 0 auto;
  }
  .hero-image { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { height: 250px; }

  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-wrapper { order: -1; }

  .order-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-bottom: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--accent);
  }

  .order-summary-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .order-summary-toggle .toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
  }

  .order-summary-toggle.active .toggle-arrow {
    transform: rotate(180deg);
  }

  .order-summary-toggle .toggle-total {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
  }

  .order-summary-box {
    position: static;
    margin: 0 0 24px;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-top: none;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .order-summary-box.open {
    max-height: 600px;
    padding: 20px;
  }
  .about-section { grid-template-columns: 1fr; }
  .about-section img { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .cart-table thead { display: none; }
  .cart-table tbody { display: block; }
  .cart-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .cart-table td { border: none; padding: 0; }

  .cart-table td:first-child { width: 100%; margin-bottom: 14px; }
  .cart-item-info img { width: 80px; height: 100px; border-radius: 6px; }

  .cart-price-cell,
  .cart-qty-cell,
  .cart-remove-cell {
    display: flex;
    align-items: center;
  }
  .cart-price-cell { font-weight: 600; margin-right: auto; }
  .cart-qty-cell { margin: 0 16px; }
  .cart-remove-cell { }
  .cart-total-cell { display: none; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }

  .page-banner h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.6rem; }

  .product-details h1 { font-size: 1.5rem; }
  .product-gallery .thumbnails img { width: 60px; height: 75px; }

  .form-row { grid-template-columns: 1fr; }

}

@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .logo { font-size: 1.3rem; }
  .container { padding: 0 16px; }
  .announcement-bar { font-size: 0.7rem; padding: 6px 0; }

  .hero { padding: 40px 0; }
  .hero-content { padding: 0 16px; }
  .hero h1 { font-size: 1.6rem; margin-bottom: 14px; }
  .hero-tag { font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 14px; }
  .hero p { font-size: 0.88rem; margin-bottom: 22px; line-height: 1.7; }
  .hero .btn {
    display: block;
    width: 100%;
    margin: 0 0 14px 0 !important;
  }
  .btn { padding: 12px 24px; font-size: 0.75rem; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-info h3 { font-size: 0.82rem; }
  .product-info .price { font-size: 0.82rem; }

  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 50px 0; }

  .category-card { height: 200px; }
  .category-card h3 { font-size: 1.2rem; }

  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) { display: none; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
