/**
 * Rudy Project Official Theme Stylesheet
 * Faithfully mirrors https://www.rudyprojectna.com/ (Shopify Impulse Theme)
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400;1,700;1,900&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --rudy-orange: #ed7006;
    --rudy-orange-hover: #d36100;
    --color-body-bg: #ffffff;
    --color-text-main: #111111;
    --color-text-muted: #555555;
    --color-border: #e8e8e8;
    --color-dark: #000000;
    --color-card-bg: #f9f9f9;
}

body {
    background-color: var(--color-body-bg);
    color: var(--color-text-main);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.02em;
}

/* Rudy Brand Colors */
.text-rudy { color: var(--rudy-orange); }
.bg-rudy { background-color: var(--rudy-orange); }
.border-rudy { border-color: var(--rudy-orange); }

/* Buttons matching NA official site: Sharp/Square (0px radius), bold, uppercase */
.btn-rudy-primary {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 0px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
}
.btn-rudy-primary:hover {
    background-color: var(--rudy-orange);
    border-color: var(--rudy-orange);
    color: #ffffff;
}

.btn-rudy-white {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 0px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}
.btn-rudy-white:hover {
    background-color: var(--rudy-orange);
    border-color: var(--rudy-orange);
    color: #ffffff;
}

.btn-rudy-accent {
    background-color: var(--rudy-orange);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 0px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-rudy-accent:hover {
    background-color: var(--rudy-orange-hover);
    color: #ffffff;
}

/* Product Cards */
.official-product-card {
    background-color: #ffffff;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.official-product-card:hover {
    border-color: #eaeaea;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-image-box {
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-box img {
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}
.official-product-card:hover .product-image-box img {
    transform: scale(1.04);
}

/* Hero Slideshow */
.hero-slider-item {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 540px;
    display: flex;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-slider-item {
        min-height: 660px;
    }
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}

/* Nav styles */
.site-nav-link {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
    position: relative;
    padding: 24px 16px;
    display: inline-block;
    transition: color 0.2s ease;
}
.site-nav-link:hover, .site-nav-link.active {
    color: var(--rudy-orange);
}
.site-nav-link::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--rudy-orange);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.site-nav-link:hover::after, .site-nav-link.active::after {
    transform: scaleX(1);
}

/* Slide-out Cart Drawer (Matching Impulse theme) */
#cart-drawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #ffffff;
    color: #111111;
}
#cart-drawer.open {
    transform: translateX(0);
}

/* Swatches */
.swatch-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #dcdcdc;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.swatch-circle:hover, .swatch-circle.active {
    border-color: #000000;
    transform: scale(1.15);
}
