/* ============================================
   Yung Kayo Shop — Carti-Style Merch Store
   ============================================ */

/* ===== FONT VARIABLES ===== */
:root {
  --font-brand: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
  --font-nav: 'Oswald', sans-serif;
  --font-display: 'Righteous', Impact, sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #000;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ===== NAVIGATION ===== */
.shop-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: #000;
  border-bottom: 1px solid #1a1a1a;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.nav-dropdown-btn:hover { opacity: 0.7; }

.nav-dropdown-btn svg {
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-btn svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #111;
  border: 1px solid #222;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
  color: #fff;
  background: #1a1a1a;
  border-left: 2px solid #22c55e;
  padding-left: 18px;
}

/* Nav Logo */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-text {
  font-family: 'Righteous', 'Bebas Neue', Impact, 'Arial Black', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #fff;
  padding: 8px 28px;
  border: 2px solid #22c55e;
  border-radius: 50px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.nav-logo-text:hover {
  background: rgba(0, 0, 0, 0.95);
  border-color: #22c55e;
  transform: scale(1.02);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  transition: opacity 0.2s;
}

.nav-icon-btn:hover { opacity: 0.7; }

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: #22c55e;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-badge.empty { display: none; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 999;
  padding: 40px 30px;
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu-section {
  margin-bottom: 32px;
}

.mobile-menu-heading {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.18);
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 400;
  color: #ccc;
  border-bottom: 1px solid #111;
  transition: color 0.15s;
}

.mobile-menu a:hover { color: #22c55e; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
}

.search-overlay.open { display: flex; }

.search-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid #444;
  padding: 16px 0;
  font-family: var(--font-nav);
  font-size: 18px;
  color: #fff;
  outline: none;
}

.search-input::placeholder { color: #555; }
.search-input:focus { border-bottom-color: #22c55e; }

.search-close {
  background: none;
  border: none;
  color: #888;
  transition: color 0.2s;
}

.search-close:hover { color: #fff; }

.search-results {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
  cursor: pointer;
  transition: opacity 0.15s;
}

.search-result-item:hover { opacity: 0.7; }

.search-result-img {
  width: 60px;
  height: 60px;
  background: #111;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.search-result-price {
  font-size: 13px;
  color: #888;
}

/* ===== SHOP HERO VIDEO ===== */
.shop-hero {
  position: relative;
  height: 45vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shop-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,1) 100%
  );
  z-index: 1;
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.shop-hero-title {
  font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Black', sans-serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.shop-hero-sub {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .shop-hero {
    height: 35vh;
    min-height: 220px;
  }

  .shop-hero-title {
    font-size: clamp(32px, 7vw, 56px);
    letter-spacing: 3px;
    margin-bottom: 12px;
  }

  .shop-hero-sub {
    font-size: clamp(10px, 1.3vw, 12px);
    letter-spacing: 1px;
  }
}

/* ===== PRODUCT GRID ===== */
.shop-main {
  padding: 40px 40px 80px;
  min-height: 60vh;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.product-card {
  cursor: pointer;
  transition: opacity 0.2s;
}

.product-card:hover { opacity: 0.85; }

.product-img {
  aspect-ratio: 1;
  background: #111;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.product-card:hover .product-img {
  border-color: rgba(34, 197, 94, 0.25);
}

.product-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-inner {
  transform: scale(1.03);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
}

.product-price {
  font-size: 13px;
  font-weight: 400;
  color: #fff;
}

.shop-empty {
  text-align: center;
  padding: 80px 0;
}

.shop-empty p {
  color: #555;
  font-size: 14px;
}

/* ===== FOOTER ===== */
.shop-footer {
  padding: 40px;
  border-top: 1px solid rgba(34, 197, 94, 0.08);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-family: var(--font-nav);
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-social a {
  color: #555;
  transition: color 0.15s;
}

.footer-social a:hover { color: #22c55e; }

.footer-copyright {
  font-size: 11px;
  color: #444;
  letter-spacing: 0.5px;
}

.footer-copyright a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copyright a:hover {
  color: #888;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

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

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cart-close {
  background: none;
  border: none;
  color: #888;
  transition: color 0.2s;
}

.cart-close:hover { color: #fff; }

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

.cart-items::-webkit-scrollbar { width: 2px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb { background: #333; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #1a1a1a;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: #111;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 11px;
  color: #666;
  margin-bottom: 10px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #333;
  padding: 2px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.cart-item-qty button:hover { color: #fff; }

.cart-item-qty span {
  font-size: 12px;
  color: #fff;
  min-width: 16px;
  text-align: center;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 500;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #555;
  font-size: 11px;
  text-decoration: underline;
  margin-top: 6px;
  transition: color 0.15s;
}

.cart-item-remove:hover { color: #fff; }

.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-empty p {
  color: #555;
  font-size: 13px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #1a1a1a;
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-tax-note {
  font-size: 11px;
  color: #666;
  margin-bottom: 16px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: #22c55e;
  color: #000;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.cart-checkout-btn:hover { opacity: 0.85; }

/* ===== QUICK VIEW MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.quick-view-modal {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  max-width: 860px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  z-index: 2;
  transition: color 0.2s;
}

.modal-close:hover { color: #fff; }

.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.qv-image {
  aspect-ratio: 1;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qv-info {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qv-info h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qv-price {
  font-size: 16px;
  font-weight: 400;
  color: #ccc;
}

.qv-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

.qv-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qv-size-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #333;
  background: none;
  color: #999;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qv-size-btn:hover {
  border-color: #666;
  color: #fff;
}

.qv-size-btn.selected {
  background: #22c55e;
  border-color: #22c55e;
  color: #000;
}

.qv-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #333;
  padding: 4px;
  width: fit-content;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: #888;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.qty-btn:hover { color: #fff; }

#qtyDisplay {
  font-size: 14px;
  color: #fff;
  min-width: 20px;
  text-align: center;
}

.qv-add-btn {
  width: 100%;
  padding: 16px;
  background: #22c55e;
  color: #000;
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.qv-add-btn:hover { opacity: 0.85; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #22c55e;
  color: #000;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 500;
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-left { display: none; }
  .nav-right { display: none; }
  .mobile-toggle { display: flex; }

  .shop-nav {
    padding: 0 20px;
    justify-content: space-between;
  }

  .nav-logo {
    position: static;
    transform: none;
  }

  .shop-main {
    padding: 24px 16px 60px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .product-name { font-size: 11px; }
  .product-price { font-size: 11px; }

  .cart-drawer { width: 100%; }

  .qv-grid { grid-template-columns: 1fr; }
  .qv-image { max-height: 350px; }
  .qv-info { padding: 24px 20px; }

  .shop-footer { padding: 30px 20px; }
  .footer-links { gap: 16px; }
}

@media (max-width: 480px) {
  .product-grid {
    gap: 14px 10px;
  }

  .product-name { font-size: 10px; }
  .product-price { font-size: 10px; }
}

/* ===== CHECKOUT OVERLAY ===== */
.co-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: #0a0a0a;
  border-left: 1px solid #1a1a1a;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.co-overlay.open {
  transform: translateX(0);
}

/* Header */
.co-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
  position: relative;
}

.co-header h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.co-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #888;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.co-back:hover { color: #fff; }

.co-close {
  background: none;
  border: none;
  color: #888;
  transition: color 0.2s;
}

.co-close:hover { color: #fff; }

/* Scrollable Body */
.co-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 32px;
}

.co-body::-webkit-scrollbar { width: 2px; }
.co-body::-webkit-scrollbar-track { background: transparent; }
.co-body::-webkit-scrollbar-thumb { background: #333; }

/* Sections */
.co-section {
  padding: 20px 0;
  border-bottom: 1px solid #1a1a1a;
}

.co-section:last-of-type {
  border-bottom: none;
}

.co-section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}

/* Order Summary Items */
.co-order-items {
  margin-bottom: 16px;
}

.co-order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.co-order-item + .co-order-item {
  border-top: 1px solid #111;
}

.co-order-img {
  width: 48px;
  height: 48px;
  background: #111;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.co-order-qty-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #22c55e;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.co-order-info {
  flex: 1;
  min-width: 0;
}

.co-order-name {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-order-variant {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

.co-order-price {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

/* Totals */
.co-totals {
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}

.co-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
  padding: 4px 0;
}

.co-total-final {
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid #1a1a1a;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.co-shipping-value {
  color: #22c55e;
  font-weight: 500;
}

/* Form Fields */
.co-field {
  margin-bottom: 14px;
}

.co-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.co-optional {
  color: #555;
  font-weight: 400;
}

.co-field input,
.co-field select {
  width: 100%;
  padding: 12px 14px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.co-field input::placeholder {
  color: #444;
}

.co-field input:focus,
.co-field select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.co-field input.co-input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.co-field-error {
  display: none;
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
}

.co-field-error.show {
  display: block;
}

.co-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.co-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Payment Method Selection */
.co-payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .co-payment-methods {
    grid-template-columns: 1fr;
  }
}

.co-payment-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: #111;
  border: 1px solid #333;
  color: #888;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.co-payment-method-btn:hover {
  border-color: #555;
  color: #bbb;
}

.co-payment-method-btn.active {
  background: #1a1a1a;
  border-color: #22c55e;
  color: #22c55e;
}

.co-payment-method-btn svg {
  flex-shrink: 0;
}

.co-payment-form {
  margin-top: 20px;
}

/* Stripe Elements Styling */
.co-stripe-element {
  padding: 12px 14px;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s;
}

.co-stripe-element:focus {
  border-color: #22c55e;
  outline: none;
}

.co-stripe-element--invalid {
  border-color: #ef4444;
}

.co-paypal-note {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 12px;
}

/* Payment Icons */
.co-payment-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.co-pay-icon {
  padding: 4px 10px;
  background: #111;
  border: 1px solid #333;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.5px;
}

/* Place Order Button */
.co-place-order {
  width: 100%;
  padding: 16px;
  background: #22c55e;
  color: #000;
  border: none;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 8px;
}

.co-place-order:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.co-place-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.co-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #555;
  margin-top: 12px;
  text-align: center;
}

.co-secure-note svg {
  flex-shrink: 0;
}

/* Success State */
.co-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}

.co-success.show {
  display: block;
}

.co-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #22c55e;
}

.co-success h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.co-success-order-id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #22c55e;
  margin-bottom: 16px;
}

.co-success-msg {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 8px;
}

.co-success-email {
  font-size: 12px;
  color: #555;
  margin-bottom: 32px;
}

.co-continue-btn {
  padding: 14px 40px;
  background: transparent;
  color: #fff;
  border: 1px solid #333;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.co-continue-btn:hover {
  border-color: #22c55e;
  color: #22c55e;
}

/* Hide form when success shows */
.co-form.hidden {
  display: none;
}

/* Checkout Responsive */
@media (max-width: 768px) {
  .co-overlay {
    width: 100%;
  }

  .co-body {
    padding: 0 16px 24px;
  }

  .co-header {
    padding: 16px;
  }

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

/* ===== CHATBOX ===== */
.chat-toggle {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  background: #4ade80;
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

.chat-badge.hidden {
  display: none;
}

.chatbox {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9500;
  width: 370px;
  max-height: 520px;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatboxIn 0.35s ease;
}

.chatbox.open {
  display: flex;
}

@keyframes chatboxIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #22c55e;
  color: white;
  flex-shrink: 0;
}

.chatbox-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbox-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbox-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.chatbox-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  opacity: 0.85;
}

.chatbox-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

.chatbox-close {
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
  transition: opacity 0.2s;
}

.chatbox-close:hover {
  opacity: 1;
}

.chatbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 320px;
}

.chatbox-messages::-webkit-scrollbar {
  width: 3px;
}

.chatbox-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbox-messages::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 3px;
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.bot .chat-bubble {
  background: #1a1a1a;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
  background: #22c55e;
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbox-quick-replies {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
  flex-wrap: wrap;
}

.quick-reply {
  padding: 6px 12px;
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 20px;
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-reply:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}

.chatbox-input {
  display: flex;
  padding: 12px 14px;
  gap: 8px;
  border-top: 1px solid #1a1a1a;
  background: #0a0a0a;
  flex-shrink: 0;
}

.chatbox-input input {
  flex: 1;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.chatbox-input input::placeholder {
  color: #666;
}

.chatbox-input input:focus {
  border-color: #22c55e;
}

.chatbox-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #22c55e;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbox-input button:hover {
  background: #4ade80;
  transform: scale(1.05);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #1a1a1a;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .chatbox {
    bottom: 100px;
  }
  .chat-toggle {
    bottom: 100px;
  }
}

@media (max-width: 480px) {
  .chatbox {
    bottom: 100px;
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(85vh - 100px);
    border-radius: 12px 12px 0 0;
  }
  .chat-toggle {
    bottom: 100px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}
