@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bs-orange-50: #FFF5F2;
    --bs-orange-100: #FFE6DB;
    --bs-orange-200: #FFCBB3;
    --bs-orange-300: #FFAE8C;
    --bs-orange-400: #FF7D4D;
    --bs-orange-500: #FF4500;
    --bs-orange-600: #E63E00;
    --bs-orange-700: #BF3400;
    --bs-orange-800: #992900;
    --bs-orange-900: #731F00;

    --bs-cyan-50: #ecfeff;
    --bs-cyan-100: #cffafe;
    --bs-cyan-200: #a5f3fc;
    --bs-cyan-300: #67e8f9;
    --bs-cyan-400: #22d3ee;
    --bs-cyan-500: #06b6d4;
    --bs-cyan-600: #0891b2;
    --bs-cyan-700: #0e7490;
    --bs-cyan-800: #155e75;
    --bs-cyan-900: #164e63;

    --bs-gray-50: #f9fafb;
    --bs-gray-100: #f3f4f6;
    --bs-gray-200: #e5e7eb;
    --bs-gray-300: #d1d5db;
    --bs-gray-400: #9ca3af;
    --bs-gray-500: #6b7280;
    --bs-gray-600: #4b5563;
    --bs-gray-700: #374151;
    --bs-gray-800: #1f2937;
    --bs-gray-900: #0a0a0a;

    /* Theme Variables */
    --bs-primary: var(--bs-orange-500);
    --bs-primary-hover: var(--bs-orange-400);
    --bs-primary-active: var(--bs-orange-600);

    --bs-neutral: var(--bs-gray-100);
    --bs-surface: var(--bs-gray-50);
    --bs-text: var(--bs-gray-900);
    --bs-muted: rgba(var(--bs-text).rgb, 0.2);
    --bs-border: var(--bs-gray-200);


    --bg-body: #f8f8f8;
    --bg-surface: #ffffff;
    --bg-surface-secondary: #f9fafb;
    --text-main: var(--bs-dark);
    --text-muted: #6b7280;
    --border-color: #e5e7eb;

    color: var(--bs-text);
    background-color: var(--bg-body);
}

html.dark {
    --bs-primary: var(--bs-cyan-500);

    --bs-primary-hover: var(--bs-cyan-400);
    --bs-primary-active: var(--bs-cyan-600);

    --bs-neutral: var(--bs-gray-800);
    --bs-surface: var(--bs-gray-900);
    --bs-text: var(--bs-gray-100);
    --bs-muted: rgba(var(--bs-text).rgb, 0.2);
    --bs-border: var(--bs-gray-600);

    --bs-light: #f3f4f6;
    --bs-dark: #0a0a0a;

    --bg-body: #0a0a0a;
    --bg-surface: #171717;
    --bg-surface-secondary: #262626;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #404040;
}

/* Custom Selection Color */
::selection {
    background-color: var(--bs-primary);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--bs-primary);
    color: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bs-neutral);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Overrides for Tailwind classes */
html.dark .bg-white {
    background-color: var(--bs-neutral);
    color: var(--text-main);
}

html.dark .bg-white\/95 {
    background-color: rgba(23, 23, 23, 0.95);
    color: var(--text-main);
}

html.dark .bg-gray-50 {
    background-color: var(--bg-surface-secondary);
}

html.dark .bg-gray-100 {
    background-color: #333333;
}

html.dark .text-gray-500,
html.dark .text-gray-600,
html.dark .text-gray-700,
html.dark .text-gray-800,
html.dark .text-gray-900 {
    color: var(--text-muted);
}

html.dark .text-black {
    color: #ffffff;
}

html.dark .group:hover .group-hover\:text-black {
    color: #ffffff;
}

html.dark .border-gray-100,
html.dark .border-gray-200 {
    border-color: var(--border-color);
}

html.dark input,
html.dark select,
html.dark textarea {
    background-color: var(--bg-surface-secondary);
    border-color: var(--border-color);
    color: var(--text-main);
}

html.dark .shadow-lg,
html.dark .shadow-2xl {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

html.dark .hover\:shadow-orange-600\/20:hover {
    box-shadow: 0 10px 15px -3px rgba(6, 181, 212, 0.5), 0 4px 6px -2px rgba(6, 181, 212, 0.3);
}

/* Dark mode specific text color overrides */
html.dark .text-orange-600 {
    color: var(--bs-primary);
}

html.dark .hover\:text-orange-600:hover {
    color: var(--bs-primary);
}

html.dark .group:hover .group-hover\:text-orange-600 {
    color: var(--bs-primary);
}

html.dark .group:focus-within .group-focus-within\:text-orange-600 {
    color: var(--bs-primary);
}

html.dark .bg-orange-600 {
    background-color: var(--bs-primary);
}

html.dark .hover\:bg-orange-600:hover {
    background-color: var(--bs-primary);
}

html.dark .group:hover .group-hover\:bg-orange-600 {
    background-color: var(--bs-primary);
}

html.dark .group:focus-within .group-focus-within\:bg-orange-600 {
    background-color: var(--bs-primary);
}

html.dark .border-orange-600 {
    border-color: var(--bs-primary);
}

html.dark .hover\:border-orange-600:hover {
    border-color: var(--bs-primary);
}

html.dark .border-b-orange-600 {
    border-color: var(--bs-primary);
}

html.dark .hover\:border-b-orange-600:hover {
    border-color: var(--bs-primary);
}

html.dark .border-l-orange-600 {
    border-color: var(--bs-primary);
}

html.dark .accent-orange-600 {
    accent-color: var(--bs-primary);
}

html.dark input.peer:checked + .peer-checked\:border-orange-600{
    border-color: var(--bs-primary);
}
html.dark input.peer:checked + .peer-checked\:bg-orange-50{
    background-color: rgb(from var(--bs-primary) r g b / 0.15);
}

html.dark .bg-orange-50{
    background-color: rgb(from var(--bs-primary) r g b / 0.15);
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
    border-color: var(--bs-primary);
}

.heading-font {
    font-family: 'Orbitron', sans-serif;
}

.skew-btn {
    transform: skewX(-15deg);
}

.skew-btn>span {
    display: inline-block;
    transform: skewX(15deg);
}

/* Web Component styles */
product-card {
    display: block;
    height: 100%;
}

nav-menu {
    display: block;
}

site-footer {
    display: block;
}

categories-grid {
    display: block;
}

bike-selector {
    display: block;
}

sidebar-filters {
    display: block;
}

/* Product Cards */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Index specific */
.hero-clip {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.racing-border {
    position: relative;
}

.racing-border::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--bs-primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 25s linear infinite;
}

/* Gallery (product_detail) specific */
.gallery-container .main-image-container {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
}

.gallery-container .thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
    position: relative;
}

.gallery-container .thumbnail.active,
.gallery-container .thumbnail:hover {
    border-color: var(--bs-primary);
}

.video-thumbnail::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Double Range Slider Inputs */
.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    pointer-events: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    height: 24px;
    width: 24px;
    cursor: pointer;
    border-radius: 50%;
}

.range-input::-moz-range-thumb {
    pointer-events: auto;
    height: 24px;
    width: 24px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
}

/* Custom Themed Checkbox */
.bs-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transform: skewX(-10deg);
    transition: all 0.2s ease;
}

.bs-checkbox:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.bs-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(10deg);
}

/* Custom Themed Radio */
.bs-radio {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 2px;
    /* Slight round but keeping it boxy for the brand */
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transform: skewX(-10deg);
    transition: all 0.2s ease;
}

.bs-radio:checked {
    border-color: var(--bs-primary);
}

.bs-radio:checked::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--bs-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

form ul.errorlist li{
    font-size: 10px;
    color: #b91c1c;
}

.hide-scrollbar{
  &::-webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar for Firefox */
  scrollbar-width: none;

  /* Hide scrollbar for IE and Edge */
  -ms-overflow-style: none;
}
.related-widget-wrapper{
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Product image placeholder.
 *
 * Product thumbnails are object-fit: cover so real photographs fill the card
 * without letterboxing. The placeholder is a drawing, not a photograph -
 * cropping it cuts into the frame and the label - so it alone is contained,
 * and given a little breathing room inside the card. */
img[src$="product-placeholder.svg"] {
    object-fit: contain !important;
    padding: 12%;
    opacity: 0.85;
}
