:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --accent-gold: #f0c040;
  --accent-orange: #ff6b35;
  --accent-red: #e74c3c;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0b0;
  --text-muted: #6c6c80;
  --border-color: #2a2a4a;
  --btn-primary: #f0c040;
  --btn-primary-hover: #ffd660;
  --btn-secondary: #2a2a4a;
  --btn-secondary-hover: #3a3a5a;
  --success-green: #2ecc71;
  --nav-height: 70px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.lang-globe-icon {
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 4px;
}

.lang-switcher {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.lang-switcher:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.lang-switcher option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.top-bar a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.top-bar a:hover {
  color: var(--accent-gold);
}

.top-bar .email {
  color: var(--text-muted);
}

/* ========== HEADER / NAV ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a.active::after {
  width: 100%;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.logo span {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  position: relative;
  background: var(--btn-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 18px;
}

.cart-btn:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(240, 192, 64, 0.03) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ========== SECTION TITLE ========== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-title h2 {
  font-size: 24px;
  font-weight: 700;
}

.section-title .highlight {
  color: var(--accent-gold);
}

.view-all {
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 500;
  transition: opacity var(--transition);
}

.view-all:hover {
  opacity: 0.8;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 192, 64, 0.3);
  box-shadow: var(--shadow-lg);
}

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.bestseller {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
}

.badge.new-arrival {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
}

.badge.hot {
  background: linear-gradient(135deg, var(--accent-orange), #e65c00);
  color: #fff;
}

.product-card .image-wrap {
  position: relative;
  padding-top: 100%;
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-card .image-wrap img {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .image-wrap img {
  transform: scale(1.05);
}

/* Brand Icon Inline (next to product name) */
.brand-icon-inline {
  margin-right: 8px;
  font-size: 18px;
  color: var(--accent-gold);
  vertical-align: middle;
}

.product-name .brand-icon-inline {
  font-size: 26px;
}

.name .brand-icon-inline {
  font-size: 16px;
}

.product-card .quick-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}

.product-card:hover .quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.quick-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 15, 26, 0.85);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.quick-actions button:hover {
  background: var(--accent-gold);
  color: #1a1a2e;
}

.product-card .info {
  padding: 16px;
}

.product-card .info .name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
  min-height: 44px;
}

.product-card:hover .info .name {
  color: var(--accent-gold);
}

.product-card .info .price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card .info .price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
}

.product-card .info .price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .info .price-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(231, 76, 60, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-card .add-to-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card .add-to-cart-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1a1a2e;
}

.product-card .add-to-cart-btn.in-cart {
  background: var(--success-green);
  border-color: var(--success-green);
  color: #fff;
}

/* ========== FEATURES STRIP ========== */
.features-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
  margin-bottom: 60px;
}

.features-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
}

.feature-item .icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--accent-gold);
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about .logo {
  margin-bottom: 16px;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom .social-links {
  display: flex;
  gap: 16px;
}

.footer-bottom .social-links a {
  color: var(--text-muted);
  transition: color var(--transition);
  font-size: 18px;
}

.footer-bottom .social-links a:hover {
  color: var(--accent-gold);
}

/* =====================================================
   PRODUCT DETAIL PAGE
   ===================================================== */
.breadcrumb {
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb span {
  color: var(--text-primary);
}

.product-detail {
  padding-bottom: 60px;
}

.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-gallery {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}

.product-gallery .main-image {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.product-gallery .main-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.product-gallery .thumbnails {
  display: flex;
  gap: 12px;
}

.product-gallery .thumbnails .thumb {
  width: 80px;
  height: 80px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}

.product-gallery .thumbnails .thumb:hover,
.product-gallery .thumbnails .thumb.active {
  border-color: var(--accent-gold);
}

.product-gallery .thumbnails .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info .product-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.product-info .price-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.product-info .price-block .current-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-gold);
}

.product-info .price-block .original-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-info .price-block .discount-tag {
  background: rgba(231, 76, 60, 0.15);
  color: var(--accent-red);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.product-info .stock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.product-info .stock-status.in-stock {
  color: var(--success-green);
}

.product-info .stock-status.out-of-stock {
  color: var(--accent-red);
}

.product-info .stock-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.product-info .stock-status.in-stock .dot {
  background: var(--success-green);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.product-info .stock-status.out-of-stock .dot {
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

.product-info .sku-info {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.product-info .sku-info span {
  color: var(--text-secondary);
}

.product-info .sku-info strong {
  color: var(--text-primary);
  font-weight: 600;
}

.product-info .action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #1a1a2e;
  flex: 1;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 192, 64, 0.3);
}

.btn-secondary {
  background: var(--btn-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  flex: 1;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--accent-gold);
}

.btn-wishlist {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 18px;
}

.btn-wishlist:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(231, 76, 60, 0.1);
}

/* ========== ORDER FORM ========== */
.order-form {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: var(--accent-red);
  margin-left: 2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.form-error {
  display: none;
  font-size: 12px;
  color: var(--accent-red);
  margin-top: 4px;
}

.form-group.has-error .form-input {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-group.has-error .form-error {
  display: block;
}

/* Range Hint & Price Calc */
.range-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== POLICY / CONTENT PAGES ========== */
.page-content {
  padding: 20px 0 80px;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(135deg, #fff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-body {
  max-width: 860px;
}

.page-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.page-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.page-body ul,
.page-body ol {
  margin: 12px 0 20px;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.page-body li {
  margin-bottom: 6px;
}

.page-body li strong {
  color: var(--text-primary);
}

.policy-link {
  color: var(--accent-gold);
  font-weight: 600;
  transition: opacity var(--transition);
}

.policy-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.page-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.page-feature {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.page-feature:hover {
  border-color: rgba(240, 192, 64, 0.3);
  transform: translateY(-3px);
}

.pf-icon {
  font-size: 24px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.page-feature h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-feature p {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 26px;
  }

  .page-features {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER CONTACT INFO ========== */
.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-contact-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.footer-contact-info p i {
  color: var(--accent-gold);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-info p a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-contact-info p a:hover {
  color: var(--accent-gold);
}

.footer-about p {
  margin-bottom: 0;
}

/* ========== CART PAGE ========== */
.cart-section {
  padding: 20px 0 80px;
  min-height: 60vh;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* Cart Empty State */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}

.cart-empty-icon {
  font-size: 56px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cart-empty h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
}

/* Cart Header */
.cart-header {
  margin-bottom: 24px;
}

.cart-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.cart-header-count {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Cart Items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.cart-item:hover {
  border-color: rgba(240, 192, 64, 0.2);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-name:hover {
  color: var(--accent-gold);
}

.cart-item-brand {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cart-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-item-meta i {
  font-size: 10px;
  color: var(--accent-gold);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
}

/* Quantity Controls */
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all var(--transition);
}

.qty-btn:hover {
  background: var(--accent-gold);
  color: #1a1a2e;
}

.qty-value {
  width: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-primary);
  height: 34px;
  line-height: 34px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.cart-item-total {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
  transition: all var(--transition);
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent-red);
}

/* Cart Sidebar */
.cart-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.cart-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.cart-summary-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.cart-summary-total {
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.cart-summary-total span:last-child {
  color: var(--accent-gold);
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  margin-top: 20px;
  border-radius: var(--radius-sm);
}

.cart-continue-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.cart-continue-link:hover {
  color: var(--accent-gold);
}

.cart-continue-link i {
  margin-right: 6px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-info {
    flex: 1 1 calc(100% - 100px);
  }

  .cart-item-qty {
    margin-left: 96px;
  }

  .cart-item-total {
    min-width: auto;
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cart-item-img {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .cart-item-info {
    flex: none;
  }

  .cart-item-name {
    white-space: normal;
  }

  .cart-item-qty {
    margin: 0 auto;
  }

  .cart-item-total {
    text-align: center;
  }

  .cart-item-remove {
    margin: 0 auto;
  }
}

/* ========== CONTACT PAGE ========== */
.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  transition: all var(--transition);
  text-align: center;
}

.contact-card:hover {
  border-color: rgba(240, 192, 64, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(240, 192, 64, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-gold);
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.contact-card:hover .contact-icon {
  background: rgba(240, 192, 64, 0.2);
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-card p a {
  color: var(--accent-gold);
  font-weight: 600;
  transition: opacity var(--transition);
}

.contact-card p a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-sub {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-top: 6px !important;
}

@media (max-width: 768px) {
  .contact-info-side {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-card {
    padding: 24px 20px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .contact-info-side {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== CHECKOUT SECTION ========== */
.checkout-section {
  padding: 20px 0 60px;
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.checkout-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.checkout-product-preview {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.checkout-product-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.checkout-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-product-detail h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.checkout-product-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.checkout-product-meta strong {
  color: var(--text-primary);
}

.checkout-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.checkout-info-item {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-info-label {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.checkout-info-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
}

/* Checkout Cart Items (from cart mode) */
.checkout-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.checkout-cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.checkout-cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.checkout-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-cart-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-cart-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.checkout-cart-item-info .checkout-product-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.checkout-cart-item-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* Checkout Form Fields (cart mode) */
.checkout-form-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.checkout-form-fields .form-group {
  margin-bottom: 16px;
}

.checkout-form-fields .form-group:last-child {
  margin-bottom: 0;
}

/* Checkout Right Cards */
.checkout-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.checkout-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Coupon */
.coupon-row {
  display: flex;
  gap: 10px;
}

.coupon-input {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coupon-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.12);
}

.coupon-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
}

.btn-coupon {
  padding: 12px 22px;
  background: var(--btn-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-coupon:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1a1a2e;
}

.coupon-message {
  display: none;
  font-size: 13px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.coupon-message.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  color: var(--success-green);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.coupon-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.coupon-message i {
  margin-right: 6px;
}

.coupon-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--success-green);
}

.coupon-applied i {
  margin-right: 6px;
}

.coupon-discount-amount {
  font-weight: 800;
  font-size: 15px;
}

/* Payment */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.payment-option:hover {
  border-color: rgba(240, 192, 64, 0.4);
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
}

.payment-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  transform: scale(0);
  transition: transform var(--transition);
}

.payment-option input[type="radio"]:checked ~ .payment-radio {
  border-color: var(--accent-gold);
}

.payment-option input[type="radio"]:checked ~ .payment-radio::after {
  transform: scale(1);
}

.payment-option input[type="radio"]:checked ~ .payment-info .payment-name {
  color: var(--accent-gold);
}

.payment-option:has(input[type="radio"]:checked) {
  border-color: var(--accent-gold);
  background: rgba(240, 192, 64, 0.06);
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.payment-name {
  font-size: 15px;
  font-weight: 700;
  transition: color var(--transition);
}

.payment-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.payment-icon {
  font-size: 24px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.payment-option:has(input[type="radio"]:checked) .payment-icon {
  color: var(--accent-gold);
}

.payment-error {
  display: none;
  font-size: 13px;
  color: var(--accent-red);
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius-sm);
}

/* Total Card */
.checkout-total-card {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.checkout-total-row + .checkout-total-row {
  border-top: 1px solid var(--border-color);
}

.checkout-total-final {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 16px 0;
}

.checkout-total-final span:last-child {
  color: var(--accent-gold);
}

.text-success {
  color: var(--success-green) !important;
  font-weight: 700;
}

.btn-place-order {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #1a1a2e;
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: all var(--transition);
  margin-top: 4px;
}

.btn-place-order:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240, 192, 64, 0.35);
}

.btn-place-order:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-place-order i {
  margin-right: 8px;
}

.checkout-secure-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.checkout-secure-note i {
  margin-right: 4px;
}

@media (max-width: 900px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
  }

  .checkout-total-card {
    position: static;
  }
}

@media (max-width: 480px) {
  .checkout-product-preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .checkout-product-img {
    width: 120px;
    height: 120px;
  }

  .coupon-row {
    flex-direction: column;
  }

  .btn-coupon {
    width: 100%;
  }
}

/* Tabs */
.product-tabs {
  margin-top: 24px;
}

.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.tab-nav button {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.tab-nav button::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition);
}

.tab-nav button:hover {
  color: var(--accent-gold);
}

.tab-nav button.active {
  color: var(--accent-gold);
}

.tab-nav button.active::after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
}

.specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 180px;
}

.specs-table td:last-child {
  color: var(--text-primary);
}

/* Related products in detail page */
.related-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.all-products-section {
  padding: 40px 0 60px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .product-detail .container {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .features-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .features-strip .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .product-info .product-name {
    font-size: 22px;
  }

  .product-info .price-block .current-price {
    font-size: 26px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .specs-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card .info {
    padding: 12px;
  }

  .product-card .info .name {
    font-size: 13px;
    min-height: auto;
  }

  .product-card .info .price-current {
    font-size: 16px;
  }

  .product-card .info .price-original {
    font-size: 12px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--success-green);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast .toast-icon {
  color: var(--success-green);
  font-size: 20px;
}

/* Loading shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-secondary) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
