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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666;
  --accent: #4ecdc4;
  --accent-hover: #45b7af;
  --sale-badge: #e74c3c;
  --sale-text: #2ecc71;
  --sold-out-bg: #333;
  --border: #2a2a2a;
  --cart-bg: #111;
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #e8e8e8;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #999;
  --accent: #3ba89f;
  --accent-hover: #2f9189;
  --sale-badge: #e74c3c;
  --sale-text: #27ae60;
  --sold-out-bg: #ddd;
  --border: #ddd;
  --cart-bg: #f0f0f0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.header-left {
  display: flex;
  z-index: 1;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

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

.search-toggle, .cart-btn, .theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}

.search-toggle:hover, .cart-btn:hover, .theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  z-index: 1;
}

.discord-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #5865F2;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.discord-btn svg {
  flex-shrink: 0;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-secondary);
}

.search-bar.active {
  max-height: 80px;
  padding: 12px 0;
}

.search-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar-inner input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar-inner input:focus {
  border-color: var(--accent);
}

.search-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

main {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.collection-header {
  text-align: center;
  padding: 40px 0 32px;
}

.collection-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}

.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.product-card .sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--sale-badge);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.product-card .image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
  line-height: 1;
  padding: 0;
}
.product-card:hover .card-img-nav { opacity: 1; }
.card-img-nav:hover { background: rgba(0, 0, 0, 0.75); }
.card-img-prev { left: 8px; }
.card-img-next { right: 8px; }

.card-img-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .card-img-dots { opacity: 1; }
.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.2s;
}
.card-dot.active {
  background: white;
}

.modal-img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
}
.modal-img-nav:hover { background: rgba(0, 0, 0, 0.8); }
.modal-img-prev { left: 12px; }
.modal-img-next { right: 12px; }

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

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

.product-card .image-wrap .no-image {
  color: var(--text-muted);
  font-size: 14px;
}

.product-card .card-body {
  padding: 16px;
}

.product-card .card-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text-primary);
}

.product-card .price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-card .sale-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--sale-text);
}

.product-card .original-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .add-to-cart-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.product-card .add-to-cart-btn.available {
  background: var(--accent);
  color: var(--bg-primary);
}

.product-card .add-to-cart-btn.available:hover {
  background: var(--accent-hover);
}

.product-card .add-to-cart-btn.sold-out {
  background: var(--sold-out-bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 16px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  pointer-events: none;
}

.cart-drawer.active {
  pointer-events: all;
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-drawer.active .cart-drawer-overlay {
  opacity: 1;
}

.cart-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--cart-bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.active .cart-drawer-content {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
}

.cart-drawer-close {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-secondary);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 13px;
  margin-bottom: 4px;
}

.cart-item-info .cart-item-price {
  font-size: 14px;
  color: var(--sale-text);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty span {
  font-size: 13px;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.cart-item-remove:hover {
  color: var(--sale-badge);
}

.cart-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

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

.coupon-section {
  margin-bottom: 14px;
}

.coupon-input-row {
  display: flex;
  gap: 8px;
}

.coupon-input-row input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.coupon-input-row input::placeholder {
  text-transform: none;
  letter-spacing: 0;
}

.apply-coupon-btn {
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

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

.apply-coupon-btn.remove-coupon {
  background: #ef4444;
}

.apply-coupon-btn.remove-coupon:hover {
  background: #dc2626;
}

.coupon-message {
  margin-top: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}

.coupon-message.success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.coupon-message.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.cart-totals-breakdown {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.cart-subtotal-row,
.cart-discount-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cart-discount-row {
  color: #4ade80;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

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

.footer-col h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s;
  margin-bottom: 0;
}

.social-links a:hover { background: var(--accent); color: var(--bg-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--accent);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-cart-btn {
  background: var(--bg-primary);
  color: var(--accent);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.toast-cart-btn:hover { opacity: 0.85; }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal.active {
  pointer-events: all;
}

.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-modal.active .product-modal-overlay {
  opacity: 1;
}

.product-modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1;
}

.product-modal.active .product-modal-content {
  transform: scale(1);
  opacity: 1;
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.2s;
}

.product-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.product-modal-body {
  display: flex;
  gap: 0;
}

.product-modal-image {
  flex: 1;
  min-height: 360px;
  background: var(--bg-secondary);
  border-radius: 16px 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-modal-image .no-image-lg {
  color: var(--text-muted);
  font-size: 16px;
}

.product-modal-info {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-modal-badge {
  display: inline-block;
  width: fit-content;
  background: var(--sale-badge);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-modal-info h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.product-modal-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-modal-sale {
  font-size: 28px;
  font-weight: 700;
  color: var(--sale-text);
}

.product-modal-original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-modal-discount {
  background: rgba(231, 76, 60, 0.15);
  color: var(--sale-text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-modal-details {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-value {
  font-size: 13px;
  font-weight: 600;
}

.detail-value.in-stock {
  color: var(--accent);
}

.detail-value.sold-out {
  color: var(--sale-badge);
}

.detail-value.savings {
  color: var(--accent);
}

.product-modal-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-modal-qty label {
  font-size: 13px;
  color: var(--text-secondary);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-controls button:hover {
  background: var(--border);
}

.qty-controls span {
  font-size: 15px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}

.product-modal-cart-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.product-modal-cart-btn.available {
  background: var(--accent);
  color: var(--bg-primary);
}

.product-modal-cart-btn.available:hover {
  background: var(--accent-hover);
}

.product-modal-cart-btn.sold-out {
  background: var(--sold-out-bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.product-modal-link-btn {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--accent);
  margin-top: 8px;
}

.product-modal-link-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.announcement-bar {
  background: var(--accent);
  color: var(--bg-primary);
  text-align: center;
  padding: 10px 40px 10px 16px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  letter-spacing: 0.5px;
}
.announcement-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--bg-primary);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
}
.announcement-close:hover { opacity: 1; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.filter-sort select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.filter-sort select:focus { border-color: var(--accent); }

.recently-viewed {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.recently-viewed h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-align: center;
}
.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.recently-viewed-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}
.recently-viewed-card:hover { transform: translateY(-2px); }
.recently-viewed-card .rv-image {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.recently-viewed-card .rv-image img { width: 100%; height: 100%; object-fit: cover; }
.recently-viewed-card .rv-info { padding: 10px; }
.recently-viewed-card .rv-info h4 { font-size: 12px; margin-bottom: 4px; }
.recently-viewed-card .rv-info span { font-size: 13px; font-weight: 600; color: var(--sale-text); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.pagination button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pagination button.active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination .page-info { font-size: 13px; color: var(--text-secondary); }

.modal-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  background: var(--bg-secondary);
  border-radius: 0 0 0 16px;
}
.modal-gallery-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
}
.modal-gallery-thumbs img:hover { opacity: 0.9; }
.modal-gallery-thumbs img.active {
  border-color: var(--accent);
  opacity: 1;
}

@media (max-width: 768px) {
  .product-modal-body { flex-direction: column; }
  .product-modal-image { min-height: 240px; max-height: 300px; border-radius: 16px 16px 0 0; }
  .product-modal-info { padding: 20px; }
  .product-modal-info h2 { font-size: 20px; }
  .product-modal-sale { font-size: 22px; }
  .product-modal-original { font-size: 15px; }
  .modal-gallery-thumbs { border-radius: 0; }
  .product-modal-content { max-height: 95vh; border-radius: 12px; }
  .product-modal { padding: 10px; }
  .product-modal-close { top: 10px; right: 10px; }
  .product-modal-details { padding: 12px 0; gap: 8px; }
  .product-modal-qty { flex-wrap: wrap; gap: 8px; }
  .modal-img-nav { width: 34px; height: 34px; font-size: 20px; }
  .modal-img-prev { left: 8px; }
  .modal-img-next { right: 8px; }

  .card-img-nav { opacity: 0.8; width: 28px; height: 28px; font-size: 16px; }
  .card-img-dots { opacity: 1; }
  .card-img-prev { left: 4px; }
  .card-img-next { right: 4px; }

  .logo { font-size: 22px; letter-spacing: 2px; }
  .collection-header { padding: 24px 0 20px; }
  .collection-header h1 { font-size: 26px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .card-body { padding: 12px; }
  .product-card .card-body h3 { font-size: 12px; }
  .product-card .sale-price { font-size: 14px; }
  .product-card .original-price { font-size: 11px; }
  .product-card .add-to-cart-btn { padding: 8px; font-size: 11px; letter-spacing: 1px; }
  .cart-drawer-content { width: 100vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .filter-sort { width: 100%; }
  .filter-sort select { width: 100%; }
  .recently-viewed { padding: 24px 0 40px; margin-top: 24px; }
  .recently-viewed h2 { font-size: 22px; margin-bottom: 16px; }
  .recently-viewed-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  footer { padding: 32px 16px 20px; }
  .footer-col h3 { font-size: 20px; }
  .footer-col h4 { font-size: 12px; }
  .footer-col p, .footer-col a { font-size: 12px; }
  .pagination { gap: 4px; padding: 24px 0; }
  .pagination button { padding: 8px 12px; font-size: 12px; }
  .cart-drawer-header { padding: 16px; }
  .cart-items { padding: 12px 16px; }
  .cart-footer { padding: 16px; }
  .cart-item img { width: 56px; height: 56px; }
  .announcement-bar { font-size: 12px; padding: 8px 36px 8px 12px; }
  .search-bar-inner { padding: 0 16px; }
  .checkout-success-content { padding: 28px 20px; }
  .checkout-success-content h2 { font-size: 24px; }
  .discord-btn span { display: none; }
  .discord-btn { padding: 8px; min-width: auto; }
}

@media (max-width: 480px) {
  .header-inner { padding: 10px 12px; gap: 4px; }
  .header-left { width: auto; }
  .header-right { gap: 2px; }
  main { padding: 0 10px; }
  .logo { font-size: 18px; letter-spacing: 1px; }
  .collection-header { padding: 16px 0 14px; }
  .collection-header h1 { font-size: 22px; letter-spacing: 2px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card { border-radius: 8px; }
  .product-card .card-body { padding: 8px; }
  .product-card .card-body h3 { font-size: 11px; margin-bottom: 4px; }
  .product-card .sale-price { font-size: 13px; }
  .product-card .original-price { font-size: 10px; }
  .product-card .add-to-cart-btn { padding: 7px; font-size: 10px; border-radius: 6px; }
  .product-card .sale-badge { font-size: 9px; padding: 3px 7px; top: 8px; left: 8px; }
  .filter-btn { padding: 6px 12px; font-size: 12px; }
  .product-modal-image { min-height: 200px; max-height: 260px; }
  .product-modal-info { padding: 16px; gap: 12px; }
  .product-modal-info h2 { font-size: 18px; }
  .product-modal-sale { font-size: 20px; }
  .product-modal-cart-btn { padding: 12px; font-size: 13px; }
  .qty-controls button { width: 28px; height: 28px; font-size: 14px; }
  .qty-controls { gap: 8px; }
  .recently-viewed-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .recently-viewed-card .rv-info { padding: 8px; }
  .recently-viewed-card .rv-info h4 { font-size: 11px; }
  .recently-viewed-card .rv-info span { font-size: 12px; }
  .search-toggle, .cart-btn, .theme-toggle { padding: 6px; }
  .toast { font-size: 12px; padding: 10px 18px; bottom: 16px; }
  .modal-gallery-thumbs { gap: 6px; padding: 6px; }
  .modal-gallery-thumbs img { width: 44px; height: 44px; }
}

.checkout-success-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.checkout-success-content {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

.checkout-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.checkout-success-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.checkout-success-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.checkout-success-total {
  font-size: 18px !important;
  font-weight: 700;
  color: var(--accent) !important;
  margin: 12px 0 16px !important;
}

.checkout-success-items {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 24px;
  max-height: 200px;
  overflow-y: auto;
}

.checkout-success-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.checkout-success-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

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