﻿/* ========================================
   J&GM Jewelry - Main Stylesheet
   Scandinavian-inspired premium design
   ======================================== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2D2D2D;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: #555; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px; font-size: 15px; font-weight: 500;
  transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #9B7E3E; border-color: #9B7E3E; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-dark { background: #1A1D26; color: #fff; border-color: #1A1D26; }
.btn-dark:hover { background: #2D3140; border-color: #2D3140; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,29,38,0.3); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: #fff; color: #1A1D26; border-color: #fff; }
.btn-outline-dark { background: transparent; color: #1A1D26; border-color: #1A1D26; }
.btn-outline-dark:hover { background: #1A1D26; color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Announcement Bar */
.announcement-bar {
  background: #1A1D26; color: #fff; text-align: center; padding: 8px 16px;
  font-size: 13px; letter-spacing: 0.5px;
}

/* Header */
.site-header {
  background: #fff; padding: 0; border-bottom: 1px solid #f0f0f0;
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 32px;
}
.logo { text-align: center; line-height: 1; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 24px; color: #2563eb; letter-spacing: 4px; display: block; }
.logo-sub { font-size: 9px; color: #999; letter-spacing: 6px; display: block; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 14px; color: #555; font-weight: 400; transition: color 0.2s; position: relative; }
.main-nav a:hover, .main-nav a.active { color: #1A1D26; }
.main-nav a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: #2563eb; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: #fff;
  min-width: 200px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s; z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 13px; color: #555;
  transition: background 0.2s;
}
.dropdown-menu a:hover { background: #f9f9f9; color: #2563eb; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 20px; }
.search-toggle, .cart-icon {
  background: none; border: none; color: #333; cursor: pointer;
  position: relative; padding: 4px; transition: color 0.2s;
}
.search-toggle:hover, .cart-icon:hover { color: #2563eb; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: #2563eb; color: #fff; font-size: 10px; font-weight: 600;
  width: 18px; height: 18px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}

/* Mobile Menu */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: #333; }
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 320px; height: 100vh;
  background: #fff; z-index: 2000; transform: translateX(-100%);
  transition: transform 0.3s ease; box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid #eee; font-weight: 600; }
.mobile-menu-close { background: none; border: none; font-size: 20px; color: #999; }
.mobile-menu nav { padding: 16px 0; }
.mobile-menu nav a { display: block; padding: 14px 24px; font-size: 15px; color: #333; border-bottom: 1px solid #F3F5F6; }
.mobile-menu nav a:hover { background: #f9f9f9; }

/* Search Modal */
.search-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 3000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.search-modal.active { opacity: 1; visibility: visible; }
.search-modal-content { background: #fff; padding: 40px; border-radius: 12px; width: 90%; max-width: 600px; position: relative; }
.search-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; color: #999; cursor: pointer; }
.search-modal form { display: flex; gap: 12px; }
.search-modal input {
  flex: 1; padding: 16px 20px; font-size: 18px; border: 2px solid #e0e0e0;
  border-radius: 8px; outline: none; transition: border-color 0.2s;
}
.search-modal input:focus { border-color: #2563eb; }
.search-modal button {
  background: #2563eb; color: #fff; border: none; padding: 0 24px;
  border-radius: 8px; cursor: pointer; transition: background 0.2s;
}
.search-modal button:hover { background: #9B7E3E; }

/* Cart Sidebar */
.cart-sidebar-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); z-index: 1500;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-sidebar-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 90vw;
  height: 100vh; background: #fff; z-index: 1600;
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.cart-sidebar.active { transform: translateX(0); }
.cart-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px; border-bottom: 1px solid #eee;
}
.cart-sidebar-header h3 { font-family: 'Inter', sans-serif; font-size: 16px; }
.cart-sidebar-header button { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; }
.cart-sidebar-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-sidebar-items .cart-empty-msg { text-align: center; color: #999; padding: 40px 0; }
.sidebar-cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #F3F5F6; }
.sidebar-cart-info h4 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.sidebar-cart-info p { font-size: 12px; color: #999; }
.sidebar-cart-remove { background: none; border: none; color: #ccc; font-size: 14px; padding: 4px; transition: color 0.2s; }
.sidebar-cart-remove:hover { color: #e74c3c; }
.cart-sidebar-footer { padding: 20px 24px; border-top: 1px solid #eee; }
.cart-sidebar-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 16px; }
.cart-sidebar-footer .btn { margin-bottom: 8px; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #E8EFF1 0%, #D5E0E3 50%, #E0E8EB 100%);
  min-height: 80vh; display: flex; align-items: center; position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -5%; top: 10%;
  width: 50%; height: 80%; background: rgba(37,99,235,0.05); border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-tag {
  display: inline-block; background: rgba(37,99,235,0.1); color: #2563eb;
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  letter-spacing: 1px; margin-bottom: 24px; text-transform: uppercase;
}
.hero h1 { margin-bottom: 20px; color: #1A1D26; }
.hero p { font-size: 18px; color: #666; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Features Bar */
.features-bar { padding: 48px 0; background: #fff; border-bottom: 1px solid #f0f0f0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 16px; color: #2563eb; }
.feature-item h4 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #1A1D26; margin-bottom: 2px; }
.feature-item p { font-size: 12px; color: #999; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; color: #1A1D26; }
.section-header p { font-size: 16px; color: #888; }
.section-tag { color: #2563eb; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.section-cta { text-align: center; margin-top: 40px; }

/* Categories Section */
.categories-section { padding: 80px 0; background: #fff; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  text-align: center; padding: 32px 16px; border-radius: 12px;
  background: #F7F9FA; transition: all 0.3s; border: 1px solid transparent;
}
.category-card:hover { border-color: #2563eb; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.category-card-img { margin-bottom: 16px; }
.category-card h3 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: #1A1D26; }

/* Products Grid */
.featured-section, .new-arrivals-section { padding: 80px 0; }
.new-arrivals-section { background: #F7F9FA; }
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

/* Product Card */
.product-card { transition: transform 0.3s; }
.product-card:hover { transform: translateY(-6px); }
.product-card-image {
  position: relative; overflow: hidden; border-radius: 8px;
  background: #F3F5F6; aspect-ratio: 1; margin-bottom: 16px;
}
.product-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(135deg, #E8EFF1, #D5E0E3);
  transition: transform 0.5s;
}
.product-card:hover .product-img-placeholder { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: #c0392b; color: #fff; padding: 4px 10px;
  border-radius: 4px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.product-actions-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.05));
  display: flex; gap: 8px; opacity: 0; transform: translateY(10px);
  transition: all 0.3s;
}
.product-card:hover .product-actions-overlay { opacity: 1; transform: translateY(0); }
.btn-quick-add {
  flex: 1; padding: 10px; background: #fff; color: #1A1D26;
  border: none; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-quick-add:hover { background: #1A1D26; color: #fff; }
.btn-quick-buy {
  flex: 1; padding: 10px; background: #2563eb; color: #fff;
  border: none; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-quick-buy:hover { background: #9B7E3E; }
.product-card-info { padding: 0 4px; }
.product-category { font-size: 11px; color: #2563eb; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.product-name { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; margin: 4px 0 8px; color: #1A1D26; line-height: 1.3; }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-original { text-decoration: line-through; color: #bbb; font-size: 14px; }
.price-sale { color: #c0392b; font-size: 16px; font-weight: 600; }
.price-current { font-size: 16px; font-weight: 600; color: #1A1D26; }

/* Brand Story */
.brand-story { padding: 80px 0; background: #1A1D26; color: #fff; }
.brand-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.brand-story-image .brand-img-placeholder {
  background: rgba(255,255,255,0.05); border-radius: 16px;
  aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
}
.brand-story-content .section-tag { color: #2563eb; display: block; margin-bottom: 12px; }
.brand-story-content h2 { color: #fff; margin-bottom: 20px; }
.brand-story-content p { color: #aaa; margin-bottom: 16px; line-height: 1.8; }
.brand-story-content .btn { margin-top: 12px; }

/* Gallery */
.gallery-section { padding: 80px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { overflow: hidden; border-radius: 12px; }
.gallery-placeholder {
  background: linear-gradient(135deg, #E8EFF1, #D5E0E3);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 14px; transition: transform 0.5s;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }

/* Newsletter */
.newsletter { padding: 60px 0; background: #F7F9FA; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.newsletter h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 8px; }
.newsletter p { color: #888; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  padding: 14px 20px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 15px; min-width: 300px; transition: border-color 0.2s; outline: none;
}
.newsletter-form input:focus { border-color: #2563eb; }

/* Footer */
.site-footer { background: #1A1D26; color: #ccc; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #999; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #2563eb; }
.footer-about p { color: #999; font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #999; transition: all 0.2s; }
.footer-social a:hover { background: #2563eb; color: #fff; }
.footer-contact ul li {
  display: flex; gap: 10px; align-items: flex-start; color: #999; font-size: 14px; margin-bottom: 12px; line-height: 1.5;
}
.footer-contact ul li svg { flex-shrink: 0; margin-top: 3px; }

/* Payment Footer */
.footer-payment { text-align: center; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px; }
.footer-payment h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.payment-icons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; align-items: center; }
.payment-icon {
  background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 6px;
  display: flex; align-items: center; transition: background 0.2s;
}
.payment-icon:hover { background: rgba(255,255,255,0.1); }
.footer-bottom { text-align: center; }
.footer-bottom p { color: #666; font-size: 13px; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; background: #F7F9FA; border-bottom: 1px solid #f0f0f0; }
.breadcrumb, .breadcrumb a { font-size: 13px; color: #999; }
.breadcrumb a:hover { color: #2563eb; }
.breadcrumb span { margin: 0 4px; }

/* ========== SHOP PAGE ========== */
.shop-page { padding: 48px 0; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.shop-sidebar { }
.sidebar-widget { margin-bottom: 32px; }
.sidebar-widget h3 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #1A1D26; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.category-filter li { margin-bottom: 2px; }
.category-filter a { display: block; padding: 8px 12px; font-size: 14px; color: #666; border-radius: 6px; transition: all 0.2s; }
.category-filter a:hover, .category-filter a.active { color: #2563eb; background: rgba(37,99,235,0.05); }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-inputs input { width: 100%; padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 13px; outline: none; }
.price-inputs input:focus { border-color: #2563eb; }
.price-inputs span { color: #999; font-size: 13px; }
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.shop-header h2 { font-size: 28px; }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort label { font-size: 13px; color: #888; }
.shop-sort select { padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 13px; outline: none; cursor: pointer; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { margin-bottom: 16px; }
.empty-state h3 { font-family: 'Inter', sans-serif; font-size: 20px; margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; }

/* ========== PRODUCT DETAIL ========== */
.product-detail { padding: 48px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.product-detail-img-placeholder {
  width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #E8EFF1, #D5E0E3);
  border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.image-hint { color: #bbb; font-size: 13px; }

.product-category-tag { display: inline-block; color: #2563eb; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; margin-bottom: 8px; }
.product-info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.product-price-detail { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.price-original-large { text-decoration: line-through; color: #bbb; font-size: 20px; }
.price-sale-large { color: #c0392b; font-size: 28px; font-weight: 700; }
.price-current-large { font-size: 28px; font-weight: 700; color: #1A1D26; }
.price-save { background: #FFF5F5; color: #c0392b; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.product-short-desc { color: #666; line-height: 1.8; margin-bottom: 24px; }

.product-specs-mini { margin-bottom: 24px; }
.spec-item { font-size: 14px; color: #555; margin-bottom: 6px; }
.stock-in { color: #2ECC71; }
.stock-out { color: #e74c3c; }

.quantity-selector { display: flex; align-items: center; width: fit-content; margin-bottom: 20px; border: 2px solid #e0e0e0; border-radius: 6px; overflow: hidden; }
.quantity-selector button {
  width: 44px; height: 44px; border: none; background: #F3F5F6; font-size: 18px;
  transition: background 0.2s; display: flex; align-items: center; justify-content: center;
}
.quantity-selector button:hover { background: #e0e0e0; }
.quantity-selector input {
  width: 60px; text-align: center; border: none; font-size: 16px; font-weight: 600;
  background: #fff; outline: none; -moz-appearance: textfield;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-selector.small button { width: 36px; height: 36px; font-size: 14px; }
.quantity-selector.small input { width: 44px; font-size: 14px; }

.product-buttons { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.btn-add-cart { flex: 1; }
.btn-buy-now { flex: 1; }

.product-trust { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #888; }
.product-extra-actions { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #999; }
.share-link { padding: 4px 8px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 11px; transition: all 0.2s; }
.share-link:hover { border-color: #2563eb; color: #2563eb; }

/* Product Tabs */
.product-tabs { margin-bottom: 48px; border-bottom: 1px solid #e0e0e0; }
.tabs-nav { display: flex; gap: 0; }
.tab-btn {
  padding: 14px 24px; border: none; background: none; font-size: 14px; font-weight: 500;
  color: #999; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.tab-btn.active { color: #1A1D26; border-bottom-color: #2563eb; }
.tab-btn:hover { color: #1A1D26; }
.tab-content { display: none; padding: 24px 0; }
.tab-content.active { display: block; }
.product-description { max-width: 800px; line-height: 1.8; color: #555; }
.product-description ul { list-style: disc; padding-left: 20px; margin: 12px 0; }
.specs-table { width: 100%; max-width: 600px; }
.specs-table td { padding: 10px 16px; border-bottom: 1px solid #F3F5F6; font-size: 14px; }
.specs-table td:first-child { font-weight: 600; color: #333; width: 160px; }
.shipping-info h4 { font-family: 'Inter', sans-serif; font-size: 15px; margin-bottom: 8px; margin-top: 16px; }
.shipping-info p { font-size: 14px; color: #666; line-height: 1.8; }

.related-products { padding-top: 48px; border-top: 1px solid #f0f0f0; }
.related-products h2 { margin-bottom: 32px; }

/* ========== CART PAGE ========== */
.cart-page { padding: 48px 0; }
.cart-page h1 { margin-bottom: 32px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #f0f0f0;
}
.cart-img-placeholder {
  width: 80px; height: 80px; background: #F3F5F6; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-info h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.cart-item-info a:hover { color: #2563eb; }
.cart-item-price { font-size: 14px; color: #888; }
.cart-item-total { font-size: 16px; font-weight: 600; color: #1A1D26; }
.cart-item-remove button { background: none; border: none; color: #ccc; font-size: 16px; padding: 8px; transition: color 0.2s; }
.cart-item-remove button:hover { color: #e74c3c; }

.cart-summary {
  background: #F7F9FA; padding: 32px; border-radius: 12px; height: fit-content;
  position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 20px; font-size: 18px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.summary-row.total { font-size: 18px; font-weight: 700; padding-top: 12px; border-top: 2px solid #e0e0e0; margin-top: 12px; }
.summary-note { font-size: 12px; color: #999; margin-bottom: 20px; }
.summary-payment { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e0e0e0; }
.summary-payment span { font-size: 12px; color: #999; }
.summary-pay-icons { margin-top: 4px; font-size: 13px; color: #666; }

.empty-cart {
  text-align: center; padding: 80px 20px;
}
.empty-cart svg { margin-bottom: 20px; }
.empty-cart h2 { margin-bottom: 12px; }
.empty-cart p { margin-bottom: 24px; font-size: 16px; }

/* ========== CHECKOUT ========== */
.checkout-page { padding: 48px 0; }
.checkout-page h1 { margin-bottom: 32px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; }
.checkout-section { margin-bottom: 32px; background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #f0f0f0; }
.checkout-section h3 { font-family: 'Inter', sans-serif; font-size: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #2563eb; }
textarea { resize: vertical; }

/* Payment Options */
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-option {
  display: flex; align-items: center; padding: 16px 20px; border: 2px solid #e0e0e0; border-radius: 10px;
  cursor: pointer; transition: all 0.2s; gap: 14px; position: relative;
}
.payment-option:hover { border-color: #b0b0b0; }
.payment-option.active {
  border-color: #2563eb; background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.12);
}
.payment-option input[type="radio"] { accent-color: #2563eb; width: 18px; height: 18px; flex-shrink: 0; }
.payment-option-content { flex: 1; min-width: 0; }
.payment-option-name { font-size: 15px; font-weight: 600; display: block; color: #1A1D26; }
.payment-option-desc { font-size: 12px; color: #999; }
.payment-option .pay-icon-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.paypal-logo { height: 18px; }
.card-icons-small { font-size: 12px; color: #999; display: flex; gap: 6px; align-items: center; }
.card-icon-svg { display: block; }

.info-box { display: flex; gap: 12px; padding: 14px 16px; background: #F0F7FF; border-radius: 8px; font-size: 13px; color: #555; align-items: flex-start; }
.info-box svg { flex-shrink: 0; margin-top: 2px; }
.alert-error { background: #FEE2E2; color: #DC2626; padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }

/* Payment Security Note (green) */
.payment-note-success {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px; background: #f0fdf4; border-radius: 10px;
  border: 1px solid #bbf7d0; font-size: 13px; color: #166534;
  line-height: 1.6; margin-top: 16px;
}
.payment-note-success svg { flex-shrink: 0; margin-top: 1px; color: #22c55e; }
.payment-note-success strong { color: #15803d; }

/* Privacy Note */
.privacy-note {
  font-size: 12px; color: #999; line-height: 1.6; margin-top: 16px; text-align: center;
}
.privacy-note a { color: #2563eb; text-decoration: underline; }

/* Promo Code Section */
.promo-section { margin-bottom: 16px; }
.promo-section-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  cursor: pointer; font-size: 14px; font-weight: 600; color: #2563eb;
  user-select: none; transition: color 0.2s;
}
.promo-section-header:hover { color: #1A3F3C; }
.promo-section-header .promo-arrow { transition: transform 0.2s; font-size: 10px; }
.promo-section-header.expanded .promo-arrow { transform: rotate(180deg); }
.promo-section-body {
  display: none; padding: 0 0 12px 0;
}
.promo-section-body.show { display: block; }
.promo-input-group { display: flex; gap: 8px; }
.promo-input-group input {
  flex: 1; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color 0.2s;
}
.promo-input-group input:focus { border-color: #2563eb; }
.promo-input-group button {
  padding: 10px 20px; background: #1A1D26; color: #fff; border: none;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.promo-input-group button:hover { background: #2563eb; }
.promo-applied {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; font-size: 13px; color: #166534; margin-top: 8px;
}
.promo-applied button {
  background: none; border: none; color: #999; cursor: pointer; font-size: 16px;
  padding: 0 4px; line-height: 1;
}
.promo-applied button:hover { color: #e74c3c; }

/* Checkout Thumb */
.checkout-thumb {
  width: 50px; height: 50px; object-fit: cover; border-radius: 6px;
  background: #f3f5f6;
}

/* Checkout Sidebar */
.checkout-summary {
  background: #F7F9FA; padding: 32px; border-radius: 12px; position: sticky; top: 24px;
}
.checkout-summary h3 { margin-bottom: 20px; font-family: 'Inter', sans-serif; font-size: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.checkout-summary-items { margin-bottom: 16px; max-height: 320px; overflow-y: auto; }
.checkout-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.checkout-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.checkout-item .checkout-item-info { flex: 1; min-width: 0; }
.checkout-item .checkout-item-info span { display: block; }
.checkout-item .checkout-item-info span:first-child { font-weight: 500; color: #1A1D26; }
.checkout-item .checkout-item-info span:last-child { font-size: 12px; color: #999; }
.checkout-item-price { font-weight: 600; color: #1A1D26; white-space: nowrap; font-size: 14px; }
.mini-placeholder { width: 50px; height: 50px; background: #f0f0f0; border-radius: 6px; }
.summary-divider { height: 1px; background: #e0e0e0; margin: 16px 0; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; color: #555; }
.summary-row.total { font-size: 18px; font-weight: 700; color: #1A1D26; padding-top: 14px; border-top: 2px solid #2563eb; margin-top: 14px; }
.total-amount { font-size: 22px; color: #1A1D26; }
.total-amount small { font-size: 12px; color: #999; font-weight: 400; }
.checkout-trust { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.checkout-trust .trust-item.small { font-size: 11px; color: #999; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.checkout-pay-icons { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.checkout-pay-icons svg, .checkout-pay-icons .pay-icon-svg { height: 22px; border-radius: 3px; }
.pay-icon-svg { display: block; border-radius: 3px; }
.pay-icon { padding: 4px 8px; background: #e8e8e8; border-radius: 4px; font-size: 11px; font-weight: 600; color: #888; }

/* Payment Page Shared Styles */
.payment-page { padding: 48px 0; }
.payment-container {
  max-width: 640px; margin: 0 auto; background: #fff;
  border-radius: 16px; border: 1px solid #f0f0f0; overflow: hidden;
}
.payment-header {
  text-align: center; padding: 32px 32px 26px; background: #F7F9FA;
  border-bottom: 1px solid #f0f0f0;
}
.payment-header h2 { font-size: 22px; margin: 12px 0 4px; }
.payment-header p { font-size: 14px; color: #999; margin: 0; }
.payment-details { padding: 32px; }
.payment-total-section {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid #f0f0f0;
}
.payment-total-section span:first-child { font-size: 15px; font-weight: 600; color: #1A1D26; }
.payment-total { font-size: 22px; font-weight: 700; color: #1A1D26; }
.payment-total small { font-size: 12px; color: #999; font-weight: 400; }
.payment-items { margin-bottom: 24px; }
.payment-items h4 { font-size: 14px; margin-bottom: 10px; color: #555; }
.payment-item { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: #666; }
.payment-security {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  background: #f0fdf4; border-radius: 10px; border: 1px solid #bbf7d0;
  font-size: 13px; color: #166534; margin-top: 20px;
}
.payment-security svg { flex-shrink: 0; color: #22c55e; }
.payment-cancel { text-align: center; margin-top: 20px; }
.payment-cancel a { font-size: 13px; }
.payment-note { font-size: 13px; color: #999; text-align: center; margin-top: 8px; }

/* PayPal Simulation */
.paypal-simulation { margin-top: 24px; }
.paypal-login-box {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 24px; text-align: center;
}
.paypal-logo-box { margin-bottom: 12px; }
.paypal-email { font-size: 14px; color: #555; margin-bottom: 16px; }
.paypal-email strong { color: #1A1D26; }
.paypal-input-group { margin-bottom: 16px; }
.paypal-input {
  width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: 15px; outline: none; transition: border-color 0.2s;
}
.paypal-input:focus { border-color: #0070BA; }

/* Bank Details Box */
.bank-details-box {
  background: #fff; border: 2px solid #e0e0e0; border-radius: 12px;
  padding: 24px; margin: 24px 0;
}
.bank-details-box h4 { font-size: 15px; margin-bottom: 12px; color: #1A1D26; }
.bank-details-box > p { font-size: 13px; color: #999; margin-bottom: 16px; }
.bank-info-table { width: 100%; font-size: 14px; }
.bank-info-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.bank-info-table td:first-child { font-weight: 600; color: #555; width: 140px; }
.bank-info-table tr:last-child td { border-bottom: none; }
.bank-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 13px; color: #888; }

/* Card Payment Form */
.card-form-section { margin-top: 0; }
.card-icons-header { display: flex; gap: 8px; margin-bottom: 12px; justify-content: center; }
.card-icons-header svg { height: 22px; }
.card-input-wrapper { position: relative; }
.card-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.card-input-icon svg { height: 18px; display: block; }
.card-number-input { padding-left: 52px !important; }
.cvc-wrapper { display: flex; align-items: center; gap: 8px; position: relative; }
.cvc-wrapper input { flex: 1; }
.cvc-hint { flex-shrink: 0; cursor: help; }

/* Payment Icon SVG (small, header inline) */
.pay-icon-svg-sm { height: 14px; display: inline-block; vertical-align: middle; }
.pay-icon-svg-lg { height: 24px; display: block; }

/* ========== ORDER CONFIRMATION ========== */
.order-confirmation-page { padding: 80px 0; }
.confirmation-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: #fff; padding: 48px; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.confirmation-icon { margin-bottom: 20px; }
.confirmation-card h1 { margin-bottom: 8px; }
.confirmation-subtitle { font-size: 16px; margin-bottom: 32px; }
.confirmation-details {
  background: #F7F9FA; border-radius: 12px; padding: 24px;
  text-align: left; margin-bottom: 24px;
}
.confirmation-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.confirmation-row:last-child { border-bottom: none; }
.confirmation-message { font-size: 14px; color: #888; margin-bottom: 24px; }
.confirmation-actions { display: flex; gap: 12px; justify-content: center; }

/* ========== ABOUT PAGE ========== */
.about-page { padding: 48px 0 80px; }
.about-hero { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.about-hero h1 { margin: 12px 0 16px; }
.about-hero p { font-size: 17px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.about-img-placeholder {
  background: linear-gradient(135deg, #E8EFF1, #D5E0E3);
  border-radius: 16px; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
}
.about-content h2 { margin-bottom: 16px; margin-top: 24px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { margin-bottom: 16px; line-height: 1.8; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { text-align: center; padding: 32px 24px; border-radius: 12px; background: #F7F9FA; transition: all 0.3s; }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.value-card h3 { font-family: 'Inter', sans-serif; font-size: 16px; margin: 16px 0 8px; }
.value-card p { font-size: 14px; color: #888; line-height: 1.7; }

/* ========== CONTACT PAGE ========== */
.contact-page { padding: 48px 0 80px; }
.contact-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.contact-header h1 { margin-bottom: 12px; }
.contact-header p { font-size: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.contact-form-wrap { background: #fff; padding: 32px; border-radius: 12px; border: 1px solid #f0f0f0; }
.contact-info-card { background: #F7F9FA; padding: 32px; border-radius: 12px; }
.contact-info-card h3 { font-family: 'Inter', sans-serif; font-size: 16px; margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; font-size: 14px; color: #555; line-height: 1.6; }
.contact-info-item strong { display: block; color: #1A1D26; font-size: 13px; margin-bottom: 2px; }
.alert-success { background: #E8F5E9; color: #2E7D32; padding: 14px 16px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; }

/* ========== ERROR PAGES ========== */
.error-page { padding: 100px 0; text-align: center; }
.error-page h1 { font-size: 100px; color: #f0f0f0; line-height: 1; }
.error-page h2 { margin-bottom: 12px; }
.error-page p { margin-bottom: 32px; font-size: 16px; }
.error-actions { display: flex; gap: 12px; justify-content: center; }

/* ========== SEARCH RESULTS ========== */
.search-results-page { padding: 48px 0; }
.search-results-page h1 { margin-bottom: 8px; font-size: 28px; }
.results-count { color: #999; margin-bottom: 32px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .products-grid, .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .checkout-sidebar { order: -1; }
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .cart-item-total { display: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav, .header-actions .search-toggle { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero { min-height: 60vh; text-align: center; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .brand-story-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { min-width: unset; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 50px 1fr; }
  .cart-item-qty, .cart-item-remove { grid-column: 2; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .product-buttons { flex-direction: column; }
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .cart-sidebar { width: 100%; max-width: 100%; }
  .confirmation-card { padding: 24px; }
}

/* Utility animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease; }

/* Print styles */
@media print {
  .site-header, .announcement-bar, .mobile-menu, .cart-sidebar, .footer, .newsletter { display: none !important; }
}

/* ========================================
   Product Images (Real Product Photos)
   ======================================== */
.product-card-img {
  width: 100%;
  height: 109%;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px 8px 0 0;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f5f5f5;
}

.product-detail-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  object-position: top;
  border-radius: 8px;
  background: #f9f9f9;
  clip-path: inset(0 0 8% 0);
}

/* Cart item images */
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  clip-path: inset(0 0 8% 0);
}
.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* Sidebar cart thumbnails */
.sidebar-cart-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  clip-path: inset(0 0 8% 0);
}

/* Checkout item thumbnail (legacy override kept for cart sidebar) */
.cart-item-thumb-mirror {
  width: 48px; height: 48px; object-fit: cover; border-radius: 4px;
  clip-path: inset(0 0 8% 0);
}
