/* ============================================
   VesteSport - Main Stylesheet
   ============================================ */

:root {
  --bg: #0C0C0C;
  --surface: #141414;
  --surface-2: #1A1A1A;
  --surface-3: #222222;
  --border: #2A2A2A;
  --border-light: #333333;
  --text: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --primary: #00C853;
  --primary-dark: #009624;
  --primary-light: #5EFC82;
  --accent: #FFD23F;
  --accent-2: #00E5A0;
}

::selection { background: var(--primary); color: black; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== DIAGONAL CLIP ===== */
.clip-diagonal { clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); }
.clip-diagonal-reverse { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%); }
.clip-angle { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
.clip-hero { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }

/* ===== STRIPE PATTERN ===== */
.stripe-pattern {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(0,200,83,0.03) 10px,
    rgba(0,200,83,0.03) 20px
  );
}
.speed-lines::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.02) 60px,
    rgba(255,255,255,0.02) 61px
  );
  pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
.text-stroke {
  -webkit-text-stroke: 2px var(--primary);
  color: transparent;
}

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #0C0C0C;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 16px 36px; border: none; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
}
.btn-cta:hover {
  background: #2AE066;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  transform: translateX(4px);
  color: #0C0C0C;
}
.btn-cta::after {
  content: '';
  width: 20px; height: 2px;
  background: #0C0C0C;
  transition: width 0.25s;
}
.btn-cta:hover::after { width: 30px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: white;
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 32px; cursor: pointer;
  border: 2px solid var(--border-light);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: white;
  transform: translateX(4px);
  color: white;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--team-color, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 1;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover {
  border-color: var(--team-color, var(--primary));
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-card:hover .card-overlay { opacity: 1; }
.product-card .product-img { transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

/* ===== TEAM CARD ===== */
.team-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.team-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--team-color, var(--primary));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.team-card:hover::after { transform: scaleX(1); }
.team-card:hover {
  border-color: var(--team-color, var(--primary));
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* ===== SECTION TAG ===== */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--primary);
}
.section-tag::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--primary);
}

/* ===== BADGE ===== */
.badge {
  font-family: 'Oswald', sans-serif;
  font-weight: 600; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 12px;
}

/* ===== PROMO BAR ===== */
.promo-bar {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.promo-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(0,0,0,0.1) 8px,
    rgba(0,0,0,0.1) 16px
  );
}

/* ===== SIZE BTN ===== */
.size-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light);
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s;
  background: transparent; color: var(--text-muted);
}
.size-btn:hover, .size-btn.active {
  border-color: var(--primary); color: var(--primary-light);
  background: rgba(0,200,83,0.1);
}

/* ===== NEWSLETTER INPUT ===== */
.nl-input {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 16px 20px; color: white; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; outline: none; transition: border-color 0.3s; width: 100%;
}
.nl-input:focus { border-color: var(--primary); }
.nl-input::placeholder { color: var(--text-muted); }

/* ===== NUMBER LABEL ===== */
.number-label {
  font-family: 'Oswald', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  color: transparent;
  line-height: 1;
  position: absolute;
  right: -10px;
  top: -20px;
  pointer-events: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== MARQUEE ===== */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { animation: marquee 25s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* ===== MOBILE MENU ===== */
.mobile-menu { transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-menu.open { transform: translateX(0); }

/* ===== PERSONALIZATION ===== */
.vestesport-personalize-wrap { margin-top: 16px; }

.personalize-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.3s;
  opacity: 0;
}
.personalize-panel.open {
  max-height: 200px;
  opacity: 1;
}
.personalize-input {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  padding: 10px 14px;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  text-transform: uppercase;
}
.personalize-input:focus {
  border-color: var(--primary);
}
.personalize-input::placeholder {
  color: #444;
  text-transform: none;
}
.personalize-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
  text-align: center;
}
.personalize-input[type="number"]::-webkit-outer-spin-button,
.personalize-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.personalize-label {
  display: block;
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-family: 'Oswald', sans-serif;
}
.btn-personalize {
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px dashed #333;
  color: #888;
  font-family: 'Oswald', sans-serif;
  font-weight: 500; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 14px; cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  justify-content: center;
}
.btn-personalize:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,200,83,0.05);
}
.btn-personalize.active {
  border-style: solid;
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,200,83,0.08);
}
.btn-personalize svg { width: 14px; height: 14px; }

.jersey-preview {
  display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 6px 14px;
  background: rgba(0,200,83,0.06);
  border: 1px solid rgba(0,200,83,0.15);
  min-height: 48px;
  justify-content: center;
}
.jersey-preview .preview-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}
.jersey-preview .preview-number {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  color: white;
  line-height: 1;
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.woocommerce ul.products li.product {
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  transition: all 0.35s ease;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.woocommerce ul.products li.product a img {
  margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  padding: 12px 16px 4px !important;
}

.woocommerce ul.products li.product .price {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: white !important;
  font-size: 1.3rem;
  padding: 0 16px;
}
.woocommerce ul.products li.product .price del {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: white;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  background: var(--primary) !important;
  color: #0C0C0C !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0 !important;
  padding: 12px 20px !important;
  margin: 12px 16px 16px !important;
  transition: all 0.25s;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: #2AE066 !important;
}

.woocommerce span.onsale {
  background: var(--primary) !important;
  color: #0C0C0C;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  border-radius: 0 !important;
  min-height: auto;
  min-width: auto;
  padding: 5px 12px;
  line-height: 1.5;
}

/* Single Product Overrides */
.woocommerce div.product .product_title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}
.woocommerce div.product p.price {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: white !important;
  font-size: 2rem !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--text-secondary);
}

.woocommerce .quantity .qty {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: white;
  font-family: 'Oswald', sans-serif;
  padding: 10px;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--primary) !important;
  color: #0C0C0C !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0 !important;
  border: none;
  padding: 14px 30px !important;
  transition: all 0.25s;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: #2AE066 !important;
  color: #0C0C0C !important;
}

/* WooCommerce tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
  background: transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 20px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Cart & Checkout */
.woocommerce-cart table.cart,
.woocommerce-checkout #order_review {
  background: var(--surface);
  border: 1px solid var(--border);
}
.woocommerce table.shop_table {
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
}
.woocommerce table.shop_table th {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border-color: var(--border) !important;
}
.woocommerce table.shop_table td {
  border-color: var(--border) !important;
  color: var(--text-secondary);
}

/* Star rating */
.woocommerce .star-rating {
  color: var(--accent) !important;
}

/* Messages */
.woocommerce-message,
.woocommerce-info {
  background: var(--surface) !important;
  border-top-color: var(--primary) !important;
  color: var(--text-secondary) !important;
}
.woocommerce-error {
  background: var(--surface) !important;
  border-top-color: #C62828 !important;
  color: var(--text-secondary) !important;
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: white !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
}
.woocommerce form .form-row label {
  color: var(--text-secondary) !important;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* ===== GALLERY THUMBNAILS ===== */
.gallery-thumb {
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-thumb.thumb-active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary);
}
.gallery-thumb:hover:not(.thumb-active) {
  border-color: var(--border-light);
}

/* ===== ACCORDION ===== */
.accordion-item {
  border-color: var(--border);
}
.accordion-btn:hover .accordion-icon {
  color: var(--primary);
}
.accordion-btn.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}
.accordion-content {
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== SINGLE PRODUCT CART OVERRIDES ===== */
.single-product-cart .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.single-product-cart .quantity .qty {
  background: var(--surface);
  border: 1px solid var(--border);
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  width: 70px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.single-product-cart .quantity .qty::-webkit-outer-spin-button,
.single-product-cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.single-product-cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary) !important;
  color: #0C0C0C !important;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 40px !important;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  transition: all 0.25s ease;
}
.single-product-cart .single_add_to_cart_button:hover {
  background: #2AE066 !important;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
  transform: translateX(3px);
}

/* ===== WC ORDERING SELECT ===== */
.wc-ordering-wrap .woocommerce-ordering select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 32px 10px 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.wc-ordering-wrap .woocommerce-ordering select:hover {
  border-color: var(--border-light);
  color: white;
}

/* ===== RELATED PRODUCTS SCROLL ===== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== WC REVIEW FORM DARK ===== */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.woocommerce #reviews #comments ol.commentlist li .meta {
  color: var(--text-muted);
}
.woocommerce #review_form #respond .comment-form-comment textarea {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: white !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
