/* ==========================================================================
   HOMEPAGE SWIMLANE UI (AMAZON STYLE) & SLIDER MOTORS
   ========================================================================== */

body {
    background-color: #f1f3f6;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 75px; /* Space for the fixed footer */
}

.storefront-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

/* --- AMAZON-STYLE AUTO-RESIZING HERO CAROUSEL (2/3RD SCREEN SPACE CONSTRAINT) --- */
.hero-banner-container {
    position: relative;
    width: 100%;
    max-height: 400px; /* Restricts the banner from bloating vertically on tall viewports */
    height: 55vh;      /* Dynamically targets roughly 2/3rds of standard mobile/tablet viewport spaces */
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.hero-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
}

/* Auto-Resizing Core Implementation with Object Aspect Protection */
.hero-slide img, .hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Protects technical gear & helmets from clipping or vertical distortion */
}

/* Navigation System Overlay */
.hero-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background: #ffffff;
    width: 18px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- HORIZONTAL SWIMLANES (SLIDERS) --- */
.swimlane-section {
    background: #ffffff;
    margin-bottom: 10px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: block !important; /* Explicit rule: Always keeps all three sections uniformly visible on layout initialization */
}

.section-header {
    padding: 0 15px;
    margin-bottom: 12px;
}

.section-header h2 {
    margin: 0;
    font-size: 16px;
    color: #111111;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}

/* The Horizontal Slider Core Track */
.swimlane {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 15px 12px 15px;
    scrollbar-width: none; /* Hide scrollbars for clean track look on Firefox */
}

.swimlane::-webkit-scrollbar {
    display: none; /* Hide scrollbars for clean track look on Safari and Chrome */
}

/* Circle Profile Category Item Sliders */
.category-card {
    flex: 0 0 85px;
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
}

.category-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

.category-card span {
    display: block;
    font-size: 11px;
    color: #212121;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Rectangular Product Profile Card Sliders */
.product-card {
    flex: 0 0 135px; /* Width of the item card */
    scroll-snap-align: start;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 8px;
}

.product-title {
    font-size: 12px;
    color: #007185; /* Amazon blue link color */
    line-height: 1.4;
    height: 34px; /* Secure vertical height bounds exactly matching 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: #b12704; /* Amazon red price color */
    margin-top: auto;
}

.product-mrp {
    font-size: 11px;
    color: #565959;
    text-decoration: line-through;
    margin-left: 4px;
}

/* Empty State Message Text Styles */
.empty-placeholder-text {
    color: #888888;
    font-style: italic;
    font-size: 13px;
    padding: 10px 0;
}

/* --- FLOATING CART ELEMENT --- */
#floating-cart {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-svg {
    fill: white;
    width: 28px;
    height: 28px;
}

/* --- BOTTOM STICKY PERSISTENT FOOTER OVERRIDES --- */
.fixed-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 65px !important;
    background-color: #ffffff !important;
    border-top: 1px solid #eeeeee !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 999999 !important; /* Forces layout context overlay elevation safely over products */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure links within footer preserve alignment boxes */
.fixed-footer a {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #333 !important;
    height: 100%;
}

.fixed-footer img {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 2px;
}

.fixed-footer i.fa {
    font-size: 30px !important; /* Specifically target User profile font icon weights */
}

.fixed-footer span {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}