.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--off-white);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  margin-bottom: 4px;
}
.product-name {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
  flex: 1;
}
.product-name a { color: var(--navy); }
.product-name a:hover { color: var(--gold); }

.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.price-now { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.price-old { font-size: 0.95rem; color: var(--mid-gray); text-decoration: line-through; }

.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; font-size: 14px; padding: 10px 12px; }

.btn-cart {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-cart:hover { background: var(--navy-light); color: var(--white); }
.btn-view {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-view:hover { background: var(--navy); color: var(--white); }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }

.shop-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--light-gray); }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin: 0 -10px;
  transition: background var(--transition);
}
.filter-option:hover { background: var(--off-white); }
.filter-option input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.filter-option.active { font-weight: 600; color: var(--navy); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-count { font-size: 15px; color: var(--text-light); }
.shop-sort select { padding: 8px 14px; border: 2px solid var(--light-gray); border-radius: var(--radius); font-size: 15px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.footer {
  background: var(--navy);
  color: #b0c0d0;
  padding: 56px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tagline { color: var(--gold); }
.footer-desc { font-size: 15px; line-height: 1.7; color: #8a9bb0; max-width: 280px; }
.footer-title { font-family: var(--font-sans); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--white); margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #8a9bb0; font-size: 15px; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 15px; color: #8a9bb0; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-contact a { color: #8a9bb0; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 14px; color: #6a7a8a; margin: 0; }
.footer-disclaimer { font-size: 13px; color: #5a6a7a; text-align: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.05); }

.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3f63 60%, #0d2236 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,151,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 14px; }
.hero-title { font-size: 2.6rem; color: var(--white); margin-bottom: 18px; line-height: 1.25; }
.hero-title span { color: var(--gold); }
.hero-desc { font-size: 17px; color: #8ab0cc; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; }
.hero-image img { max-width: 420px; width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--gold); font-family: var(--font); }
.stat-lbl { font-size: 13px; color: #8ab0cc; }

.brands-strip {
  background: var(--off-white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding: 24px 0;
}
.brands-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.brand-tag {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mid-gray);
  letter-spacing: 1px;
  transition: color var(--transition);
  cursor: pointer;
  text-transform: uppercase;
}
.brand-tag:hover { color: var(--navy); }

.category-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.cat-tab {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--light-gray);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.cat-tab:hover, .cat-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-box {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.feature-box:hover { border-bottom-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-box h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-box p { font-size: 14px; color: var(--text-light); margin: 0; }

.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail-img {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-img img { max-width: 360px; width: 100%; object-fit: contain; }
.product-detail-brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.product-detail-name { font-size: 1.8rem; margin-bottom: 12px; }
.product-detail-price { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-detail-old { font-size: 1.1rem; color: var(--mid-gray); text-decoration: line-through; margin-bottom: 20px; }
.product-detail-desc { font-size: 16px; color: var(--text-light); margin-bottom: 28px; line-height: 1.8; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--light-gray); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 40px; height: 44px; background: var(--off-white); border: none; font-size: 20px; cursor: pointer; color: var(--navy); transition: background var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--light-gray); }
.qty-input { width: 56px; height: 44px; text-align: center; border: none; border-left: 2px solid var(--light-gray); border-right: 2px solid var(--light-gray); font-size: 16px; font-weight: 600; color: var(--navy); background: var(--white); }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 14px 16px; text-align: left; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); border-bottom: 2px solid var(--light-gray); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--light-gray); vertical-align: middle; font-size: 15px; }
.cart-item-img { width: 72px; height: 72px; object-fit: contain; background: var(--off-white); border-radius: var(--radius); padding: 8px; }
.cart-item-name { font-weight: 600; color: var(--navy); font-size: 15px; }
.cart-item-brand { font-size: 13px; color: var(--mid-gray); }
.remove-btn { background: none; border: none; color: var(--mid-gray); cursor: pointer; font-size: 18px; transition: color var(--transition); padding: 4px; }
.remove-btn:hover { color: var(--danger); }

.order-summary {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--light-gray);
}
.order-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--light-gray); font-size: 15px; }
.order-line:last-child { border-bottom: none; }
.order-total { font-size: 1.2rem; font-weight: 700; color: var(--navy); }

.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 36px; align-items: start; }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #8ab0cc; font-size: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 12px; font-size: 14px; color: #8ab0cc; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: #8ab0cc; }

.blog-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px; }
.blog-meta { font-size: 13px; color: var(--mid-gray); margin-bottom: 8px; }
.blog-card-title { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card-title a { color: var(--navy); }
.blog-card-title a:hover { color: var(--gold); }
.blog-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.6; }

.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--navy); }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 10px; color: var(--dark-gray); }
.legal-content p { font-size: 16px; color: var(--text); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px 24px; }
.legal-content ul li { font-size: 16px; color: var(--text); margin-bottom: 6px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--mid-gray);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--danger); }
.modal-title { font-size: 1.5rem; margin-bottom: 6px; }
.modal-subtitle { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--light-gray); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.35s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 18px; }

.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); padding: 0; }
.admin-sidebar-header { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-header .logo-name { color: var(--white); font-size: 1.1rem; }
.admin-sidebar-header .logo-tagline { color: var(--gold); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 13px 20px; color: #8ab0cc; font-size: 15px; border-left: 3px solid transparent; transition: all var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.07); color: var(--white); border-left-color: var(--gold); }
.admin-nav .nav-icon { font-size: 18px; width: 20px; text-align: center; }
.admin-main { background: var(--off-white); padding: 32px; }
.admin-header { margin-bottom: 28px; }
.admin-title { font-size: 1.6rem; margin-bottom: 4px; }
.admin-subtitle { color: var(--text-light); font-size: 15px; }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.admin-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--light-gray); display: flex; align-items: center; justify-content: space-between; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 12px 14px; text-align: left; background: var(--off-white); font-weight: 700; color: var(--text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off-white); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.stat-card-num { font-size: 1.8rem; font-weight: 700; color: var(--navy); font-family: var(--font); }
.stat-card-lbl { font-size: 13px; color: var(--text-light); margin-top: 4px; }

.stock-badge { padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.in-stock { background: #d4edda; color: #155724; }
.low-stock { background: #fff3cd; color: #856404; }
.out-stock { background: #f8d7da; color: #721c24; }

@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }
  #cart-full > div { grid-template-columns: 1fr !important; }
  .order-summary { margin-top: 0; }
}

@media (max-width: 768px) {
  .product-actions { flex-direction: column; gap: 8px; }
  .product-actions .btn { width: 100%; justify-content: center; }
  .qty-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .qty-row .btn { width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .hero-stats { justify-content: space-around; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout > div:last-child { order: -1; }
  .modal-box { padding: 24px 18px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-sort select { width: 100%; }
  .blog-post-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .hero-section { padding: 36px 0; }
  .hero-title { font-size: 1.6rem; }
  .hero-label { font-size: 12px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .stat-num { font-size: 1.4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .cart-table { font-size: 13px; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
  .cart-item-img { width: 52px; height: 52px; }
  .cart-item-name { font-size: 13px; }
  .qty-control { width: 100px !important; }
  .qty-input { width: 36px !important; }
  .qty-btn { width: 32px; font-size: 16px; }
  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: 1.5rem; }
  .breadcrumb { flex-wrap: wrap; justify-content: center; font-size: 12px; }
  .product-card-body { padding: 12px; }
  .price-now { font-size: 1.1rem; }
  .product-detail-name { font-size: 1.4rem; }
  .product-detail-price { font-size: 1.6rem; }
  .section-header h2 { font-size: 1.4rem; }
  .category-tabs { gap: 6px; }
  .cat-tab { padding: 8px 14px; font-size: 13px; }
  .brands-inner { gap: 24px; }
  .brand-tag { font-size: 0.95rem; }
  .filter-option { font-size: 14px; }
  .sidebar-title { font-size: 13px; }
  .order-summary { padding: 16px; }
  .order-summary h3 { font-size: 1.1rem; }
  .tabs { gap: 0; }
  .tab-btn { padding: 10px 16px; font-size: 14px; }
  .form-control { font-size: 16px; }
  .btn { font-size: 15px; padding: 12px 20px; }
  .btn-sm { font-size: 13px; padding: 7px 14px; }
  .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; font-size: 14px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-actions { flex-direction: row; }
  .product-actions .btn { font-size: 12px; padding: 8px 8px; }
  .btn-cart svg { display: none; }
}
