/* ==========================================================================
   🏋️‍♂️ IRON PULSE SUITE — MASTER CLEAN STYLESHEET
   ========================================================================== */

/* --- 🌌 BASE CONFIGURATIONS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
}

/* --- 🏙️ MASTER TOP SEARCH HEADER ACTIONS BAR (STICKY FROZEN) --- */
.gym-master-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.gym-top-action-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gym-logo-branding-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 160px;
}

.gym-brand-logo-area {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.gym-brand-logo-area span {
    color: #ea580c;
}

.gym-header-merchant-logo {
    height: 55px;
    max-width: 180px;
    object-fit: contain;
    margin-top: 4px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.05));
}

/* 🔍 TRIPLE MATRIX PILL SEARCH COMPONENT */
.gym-search-matrix-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 650px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background-color: #f9fafb;
    overflow: hidden;
    height: 44px;
    padding-right: 4px;
}

.gym-search-dropdown-selector {
    border: none;
    background-color: transparent;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    outline: none;
    cursor: pointer;
    border-right: 1px solid #e5e7eb;
    height: 60%;
    text-transform: uppercase;
}

.gym-search-input-field {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    padding: 0 16px;
    font-size: 14px;
    color: #111827;
    outline: none;
}

.gym-search-trigger-circle {
    background-color: #ea580c;
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

.gym-search-trigger-circle:hover {
    background-color: #c2410c;
}

.gym-header-cart-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f3f4f6;
    padding: 10px 16px;
    border-radius: 9999px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.gym-cart-icon-emoji {
    font-size: 16px;
}

.gym-cart-counter-pill {
    background-color: #111827;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

/* --- 📁 HORIZONTAL DYNAMIC CATEGORIES NAVIGATION STRIP --- */
.gym-category-nav-strip {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 12px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    position: fixed;
    top: 98px;
    left: 0;
    z-index: 1900;
}

.gym-category-nav-strip::-webkit-scrollbar {
    display: none;
}

.gym-nav-category-link {
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.gym-nav-category-link:hover {
    color: #ea580c;
    border-bottom-color: #ea580c;
}

/* --- 📦 MAIN WORKSPACE CANVAS WRAPPER --- */
.gym-main-workspace {
    max-width: 1400px;
    margin: 0 auto;
    padding: 175px 24px 80px 24px;
    text-align: left;
}

/* --- 🏙️ PREMIUM HERO JUMBOTRON CARD --- */
.gym-premium-hero-jumbotron {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 40px auto;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.gym-hero-content-core {
    max-width: 850px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gym-hero-main-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.gym-hero-description-paragraph {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    line-height: 1.6;
    max-width: 750px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.gym-shelf-row-section {
    margin-bottom: 48px;
    width: 100%;
}

.gym-section-title-line {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* --- 🛒 4-COLUMN RESPONSIVE EQUIPMENT SHOWCASE GRID --- */
.gym-equipment-grid {
    display: grid;
    /* 🎯 CRITICAL FIX: Explicitly locked to max 4 columns on desktop monitors */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

@media (max-width: 1200px) {
    .gym-equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gym-product-showcase-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.gym-product-showcase-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    border-color: #e5e7eb;
}

.gym-image-frame {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    border-bottom: 1px solid #f9fafb;
}

.gym-image-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gym-discount-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
}

.gym-new-arrival-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: #111827;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.gym-card-meta-pane {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.gym-card-merchant-brand {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gym-card-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    min-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gym-card-pricing-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.gym-slash-old-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    font-family: monospace;
}

.gym-bold-active-price {
    font-size: 16px;
    font-weight: 800;
    color: #0284c7;
    font-family: monospace;
}

.gym-flat-add-to-bag-btn {
    background-color: #111827;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-align: center;
    margin-top: auto;
    transition: background 0.2s;
}

.gym-product-showcase-card:hover .gym-flat-add-to-bag-btn {
    background-color: #ea580c;
}

/* --- 🏙️ CORPORATE MIDNIGHT-BLACK STORE FOOTER --- */
.premium-corporate-footer {
    background-color: #0b0b0c;
    color: #ffffff;
    border-top: 1px solid #1f2937;
    width: 100%;
    padding: 64px 40px;
    margin-top: 80px;
}

.footer-master-flex-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.footer-left-contacts-pane {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
}

.footer-section-headline {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-nav-root-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s;
}
.footer-nav-root-link:hover {
    color: #ea580c;
}

.footer-contact-data-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #9ca3af;
}

.footer-social-networks-rail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}

.social-glyph-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.2s, color 0.2s;
}
.social-glyph-link:hover {
    color: #ea580c;
    transform: scale(1.1);
}

.footer-right-subscribe-pane {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
}

.footer-newsletter-input {
    background-color: #1f1f22;
    border: 1px solid #333336;
    padding: 14px 16px;
    font-size: 13px;
    color: #ffffff;
    outline: none;
    border-radius: 4px;
    width: 100%;
}

.footer-subscribe-action-btn {
    background-color: #0c2333;
    border: 1px solid #16364d;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    align-self: flex-start;
}

.footer-utility-link-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.footer-sub-text-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: underline;
}

/* 🛒 PREMIUM SHOPPING BAG PREVIEW MODAL OVERLAY */
.gym-cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
}

.gym-cart-drawer-box {
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gym-drawer-close-trigger {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
}

.gym-drawer-headline-title {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    color: #111827;
    border-bottom: 2px solid #ea580c;
    padding-bottom: 8px;
    text-align: left;
}

.gym-drawer-items-list-container {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.gym-drawer-invoice-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    margin-bottom: 24px;
}

.gym-drawer-invoice-label {
    font-size: 13px;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
}

.gym-drawer-invoice-price-tag {
    font-size: 20px;
    font-weight: 900;
    color: #0284c7;
    font-family: monospace;
}

.gym-drawer-dispatch-commit-btn {
    width: 100%;
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.gym-empty-catalog-fallback {
    text-align: center;
    color: #9ca3af;
    padding: 100px 0;
    font-size: 15px;
    font-weight: 600;
}

/* ==========================================================================
   🎯 COMBINED MASTER MOBILE RESPONSIVE BLOCKS (HIGH-DENSITY GRID UPGRADE)
   ========================================================================== */
@media (max-width: 768px) {
    .gym-top-action-row {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .gym-search-matrix-container {
        width: 100%;
        max-width: 100%;
    }
    .gym-main-workspace {
        padding: 180px 12px 60px 12px;
    }
    .gym-premium-hero-jumbotron {
        min-height: 220px;
        padding: 24px 16px;
        margin-bottom: 24px;
        border-radius: 8px;
    }
    .gym-hero-main-title {
        font-size: 24px;
    }
    .gym-hero-description-paragraph {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Forces exactly 2 product pictures/cards per row on mobile screens */
    .gym-equipment-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    .gym-product-showcase-card {
        border-radius: 6px;
        border: 1px solid #f3f4f6;
        box-shadow: none;
    }

    .gym-image-frame {
        padding: 8px;
        aspect-ratio: 1.1 / 1;
    }

    .gym-card-meta-pane {
        padding: 10px 8px;
        gap: 2px;
    }

    .gym-card-item-title {
        font-size: 12px;
        min-height: 34px;
    }

    .gym-card-pricing-block {
        gap: 6px;
    }

    .gym-bold-active-price {
        font-size: 14px;
    }

    .gym-flat-add-to-bag-btn {
        padding: 10px 6px;
        font-size: 11px;
    }

    /* Footer Mobile Rescaling Optimization */
    .premium-corporate-footer {
        padding: 40px 16px;
    }
    .footer-master-flex-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-newsletter-form {
        max-width: 100%;
    }
}
