/* CSS Variables */
:root {
    --bg-dark: #121212;
    --bg-lighter: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --primary-orange: #ff5722;
    --primary-orange-hover: #e64a19;
    --border-dark: #333333;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header / Navigation - Classic (Top) */
.header-classic {
    background-color: transparent;
    padding: 2rem 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.header-classic .logo {
    flex-shrink: 0;
    margin-right: auto;
}

.header-classic .nav-classic {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    padding: 0;
    gap: 2rem;
}

.header-classic .nav-classic ul {
    gap: 2rem;
}

.header-classic .header-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.header-classic.hidden {
    transform: translateY(-120%);
}

/* Header / Navigation - Sticky Pill (On Scroll) */
.header-sticky {
    background-color: transparent;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
}

.header-sticky.active {
    transform: translateY(0);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Logo Image Sizing */
.logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.header-classic .logo-img {
    height: 4.5rem;
    width: auto;
}

.pill-logo .logo-img {
    height: 2rem;
    width: auto;
}

.logo-icon {
    color: var(--primary-orange);
    font-size: 1.6rem;
}

.flame-icon {
    color: var(--primary-orange);
    font-size: 1.8rem;
}

/* Classic Navigation */
.nav-classic {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-classic a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-classic a:hover {
    color: var(--primary-orange);
}

/* Pill Navigation (Sticky) - Contains logo, nav, and actions */
.nav-pill {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 2rem;
}

.pill-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.pill-logo .flame-icon {
    color: var(--primary-orange);
    font-size: 1.6rem;
}

.nav-pill nav {
    flex: 1;
    display: flex;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    gap: 0;
    backdrop-filter: none;
}

.nav-pill nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-pill nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-pill nav a:hover {
    color: var(--primary-orange);
}

.pill-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Pill Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    gap: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-orange);
}

.nav-phone {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--primary-orange);
}

.icon-btn svg {
    transition: transform 0.3s ease;
}

.icon-btn:hover svg {
    transform: scale(1.1);
}

/* Main Container */
main {
    padding: 3rem 5%;
    padding-top: 150px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-orange);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Grid */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    background-color: #4f4f4f;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.thumbnail-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    min-width: 0;
}

.image-thumbnails {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    flex: 1;
    scroll-behavior: smooth;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #4f4f4f;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.thumbnail:hover {
    border-color: var(--text-muted);
}

.thumbnail.active {
    border-color: var(--primary-orange);
}

.scroll-btn {
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    font-size: 1.2rem;
}

.scroll-btn:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--bg-dark);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-btn:disabled:hover {
    background-color: var(--bg-lighter);
    border-color: var(--border-dark);
    color: var(--text-light);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.product-header .vendor {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Features Section */
.features {
    background-color: var(--bg-lighter);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

.features h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-orange);
    color: var(--text-muted);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: var(--primary-orange);
    font-weight: bold;
    min-width: 20px;
}

/* Variants Section */
.variants {
    background-color: var(--bg-lighter);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

.variants h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.variant-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--border-dark);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.variant-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.variant-btn.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--bg-dark);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--primary-orange-hover);
}

.cta-button:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
}

/* Description Section */
.description {
    background-color: var(--bg-lighter);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    margin-top: 2rem;
}

.description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.description p {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Product Not Found */
.product-not-found {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-lighter);
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

.product-not-found h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.product-not-found p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.product-not-found a {
    color: var(--primary-orange);
    text-decoration: none;
}

.product-not-found a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 3rem 5%;
    border-top: 2px solid var(--primary-orange);
    margin-top: 4rem;
}

footer h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-classic {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
        position: static;
        transform: none;
    }

    .header-classic .nav-classic {
        position: static;
        transform: none;
        flex: 1;
    }

    .header-classic .nav-classic ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-classic.hidden {
        transform: none;
    }

    .header-sticky {
        transform: translateY(-120%);
    }

    .header-sticky.active {
        transform: translateY(0);
    }

    .nav-pill {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-pill nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-header h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 2rem 5%;
        padding-top: 130px;
    }

    .main-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .header-classic {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
        position: static;
        transform: none;
    }

    .header-classic .nav-classic {
        position: static;
        transform: none;
        flex: 1;
    }

    .header-classic .nav-classic ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-sticky {
        transform: translateY(-120%);
    }

    .header-sticky.active {
        transform: translateY(0);
    }

    .nav-pill {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .product-container {
        gap: 1rem;
    }

    main {
        padding: 1rem 5%;
        padding-top: 120px;
    }

    .main-image {
        height: 250px;
    }

    .variant-options {
        flex-direction: column;
    }

    .variant-btn {
        width: 100%;
    }

    .cta-button {
        width: 100%;
    }
}

/* Main Image Clickable Cursor */
#main-image {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

#main-image:hover {
    opacity: 0.9;
}

/* Fullscreen Modal Base */
.image-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

/* Modal Close Button */
.close-modal {
    position: absolute;
    top: 20px; right: 40px;
    font-size: 3rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s ease;
}
.close-modal:hover { color: var(--primary-orange); }

/* Image Wrapper (handles the dragging boundaries) */
.modal-content-wrapper {
    width: 90vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}
.modal-content-wrapper:active { cursor: grabbing; }

/* The Image itself */
#modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

/* Zoom Slider Controls */
.zoom-controls {
    position: absolute;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10000;
}

.zoom-icon {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    user-select: none;
}

/* Custom Range Slider Styling */
#zoom-slider {
    -webkit-appearance: none;
    width: 200px;
    height: 4px;
    background: #555;
    border-radius: 2px;
    outline: none;
}
#zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    transition: transform 0.1s;
}
#zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* HubSpot Form Modal */
.hubspot-form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.hubspot-form-modal.active {
    display: flex;
    opacity: 1;
}

.hubspot-form-container {
    background: var(--bg-lighter);
    border: 1px solid rgba(255, 87, 34, 0.2);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.hubspot-form-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hubspot-form-close:hover {
    color: var(--primary-orange);
}

#hubspot-form-container {
    margin-top: 2rem;
}

/* Field Styling */
.hs-form-field {
    margin-bottom: 1.5rem;
}

.hs-form-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hs-input {
    width: 100% !important;
    background: var(--bg-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 15px !important;
    color: #fff !important;
    font-family: var(--font-sans) !important;
    border-radius: 2px !important;
    transition: border-color 0.3s ease;
}

.hs-input:focus {
    outline: none !important;
    border-color: var(--primary-orange) !important;
}

/* Submit Button Styling */
.hs-submit input {
    background-color: var(--primary-orange) !important;
    color: #fff !important;
    border: none !important;
    padding: 1rem 2rem !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.3s ease !important;
    margin-top: 1rem;
}

.hs-submit input:hover {
    background-color: var(--primary-orange-hover) !important;
}

/* Error messages */
.hs-error-msgs label {
    color: #ff3333 !important;
    font-size: 0.7rem !important;
    margin-top: 5px;
    text-transform: none !important;
}

@media (max-width: 768px) {
    .hubspot-form-container {
        padding: 1.5rem;
        margin: 0;
    }

    .hubspot-form-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
}


/* Breadcrumb Mobile Fix */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.75rem; /* Smaller text for mobile */
        margin-bottom: 1.5rem;
        line-height: 1.4;
        display: block;
        word-wrap: break-word; /* Prevents long titles from pushing off screen */
    }

    .breadcrumb a, .breadcrumb span {
        display: inline; /* Keeps them flowing like text */
    }
}

@media (max-width: 480px) {
    main {
        /* Reduce top padding if the header is overlapping too much */
        padding-top: 100px !important; 
    }
    
    .breadcrumb {
        font-size: 0.7rem;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.03); /* Optional: subtle box to define the area */
        border-radius: 4px;
    }
}