/* Store Page Specific Styles */

/* Text color helper classes */
.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}

/* Store page container override - 1600px width */
.breadcrumb-nav .container,
.bundles-section .container,
.products-section .container,
.store-disclaimer .container {
    max-width: 1600px;
    padding: 0 20px;
}

/* Breadcrumb Navigation for Store */
.breadcrumb-nav {
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    padding: 18px 0;
    margin-top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #6B7280;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb-link:hover {
    color: var(--primary-red);
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.15);
}

.breadcrumb-separator {
    color: #D1D5DB;
    font-size: 16px;
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    display: inline-flex;
    align-items: center;
}

/* Store Navigation Override */
.store-nav {
    background: var(--pure-white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.store-nav .nav-brand a {
    text-decoration: none;
}

/* Slim Store Header */
.store-header-slim {
    background: #FEF2F2;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-container {
    display: flex;
    align-items: stretch;
    height: 320px;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.1);
    border-left: 4px solid var(--primary-red);
}

/* Left Section - Store Details (35%) */
.store-details-section {
    width: 35%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--pure-white);
    z-index: 2;
}

.store-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 0;
    color: var(--primary-black);
    line-height: 1;
}

.store-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--dark-grey);
    font-size: 14px;
}

.store-info-item i {
    color: var(--primary-red);
    width: 20px;
}

.store-info-item a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.3s;
}

.store-info-item a:hover {
    color: var(--primary-red);
}

.status-badge {
    background: #10B981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.store-stats-mini {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-mini strong {
    font-size: 18px;
    color: var(--primary-red);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stat-mini span {
    font-size: 11px;
    color: var(--medium-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Center - Logo Circle */
.store-logo-center {
    position: absolute;
    left: calc(35% - 60px);
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    z-index: 10;
}

.store-logo-center img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 10px 30px rgba(220, 38, 38, 0.25),
        0 20px 60px rgba(220, 38, 38, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border: 3px solid white;
}

.store-logo-center .logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-black));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(220, 38, 38, 0.25),
        0 20px 60px rgba(220, 38, 38, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.store-logo-center .logo-placeholder span {
    font-size: 48px;
    font-family: 'Bebas Neue', sans-serif;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Right Section - Banner (65%) */
.store-banner-section {
    width: 65%;
    position: relative;
    overflow: hidden;
}

.store-banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--primary-red) 0%,
        var(--primary-black) 50%,
        var(--primary-red) 100%);
    background-size: 200% 200%;
    animation: gradientSlide 8s ease infinite;
    position: relative;
}

.banner-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: none;
}

@media (max-width: 768px) {
    .banner-gradient::after {
        display: block;
    }

    /* Store header mobile padding */
    .store-header-slim {
        padding: 20px 15px;
    }

    .header-container {
        border-radius: 10px;
    }

    /* Store disclaimer mobile padding */
    .store-disclaimer {
        padding: 20px 0;
    }

    .store-disclaimer .container {
        padding: 0 15px !important;
    }

    /* Breadcrumb mobile styles */
    .breadcrumb-nav {
        padding: 14px 0;
    }

    .breadcrumb {
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb-link {
        font-size: 12px;
        padding: 5px 10px;
        flex-shrink: 0;
    }

    .breadcrumb-separator {
        font-size: 14px;
        flex-shrink: 0;
    }

    .breadcrumb-current {
        font-size: 12px;
        padding: 5px 11px;
        flex-shrink: 0;
    }
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Product Order Section for Bulk Ordering */
.product-order-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-grey);
    color: var(--dark-grey);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-red);
    color: white;
}

.qty-field {
    width: 60px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
    background: white;
}

.qty-field:focus {
    outline: none;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.price-label {
    font-size: 12px;
    color: var(--medium-grey);
}

.btn-buy-now {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    text-decoration: none;
    margin-top: 15px;
}

.btn-buy-now:hover {
    background: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
    color: white;
}

.btn-buy-now.disabled {
    background: var(--medium-grey);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-buy-now.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Bundles Section */
.bundles-section {
    background: var(--light-grey);
    padding: 60px 0;
}

@media (max-width: 768px) {
    .bundles-section {
        padding: 40px 0;
    }

    .btn-buy-now {
        padding: 9px 12px;
        font-size: 13px;
        border-radius: 8px;
        margin-top: 12px;
    }

    .btn-buy-now i {
        font-size: 13px;
    }

    /* Bundle card mobile styles */
    .bundle-content h3 {
        font-size: 20px;
    }

    .bundle-description {
        font-size: 13px;
    }

    .bundle-products-list {
        padding: 15px;
        min-height: 240px;
    }

    .bundle-includes-title {
        font-size: 13px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .bundle-product-item {
        font-size: 12px;
        padding: 5px 0;
        gap: 8px;
    }

    .bundle-product-item .product-name {
        font-size: 12px;
    }

    .bundle-product-item .product-thumb {
        width: 30px;
        height: 30px;
    }

    .bundle-product-item .product-qty {
        font-size: 12px;
    }

    .bundle-badge {
        padding: 8px 20px !important;
        font-size: 12px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .bundles-section {
        padding: 30px 0;
    }

    /* Smaller mobile styles for bundle cards */
    .bundle-content h3 {
        font-size: 18px;
    }

    .bundle-content {
        padding: 20px 15px;
    }

    .bundle-description {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .bundle-products-list {
        padding: 12px;
        min-height: 220px;
    }

    .bundle-includes-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .bundle-includes-title i {
        font-size: 16px;
    }

    .bundle-product-item {
        font-size: 11px;
        padding: 4px 0;
    }

    .bundle-product-item .product-name {
        font-size: 11px;
        line-height: 1.3;
    }

    .bundle-product-item .product-thumb {
        width: 28px;
        height: 28px;
    }

    .bundle-product-item .product-qty {
        font-size: 11px;
        font-weight: 500;
    }

    .bundle-badge {
        padding: 6px 15px !important;
        font-size: 11px;
        top: 10px;
        right: 10px;
    }

    .bundle-pricing {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .bundle-pricing .original-price {
        font-size: 12px;
    }

    .bundle-pricing .bundle-price {
        font-size: 18px;
    }

    .btn-buy-now {
        padding: 7px 10px;
        font-size: 12px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .btn-buy-now i {
        font-size: 11px;
    }
}

.bundles-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .bundles-slider {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .bundles-slider {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
}

.bundle-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.bundle-card .bundle-badge,
.bundle-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10B981 !important;
    color: white;
    padding: 10px 50px !important;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    animation: pulse 2s infinite;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    line-height: 1.2;
}

/* Bundle Products List Styles */
.bundle-products-list {
    padding: 20px;
    background: white !important;
    background-color: white !important;
    min-height: 280px;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.bundle-includes-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bundle-includes-title i {
    color: var(--primary-red);
    font-size: 18px;
}

.bundle-product-items {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
}

.bundle-product-items li {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.bundle-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--dark-grey);
    transition: all 0.2s;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.bundle-product-item:hover {
    padding-left: 5px;
    color: var(--primary-black);
}

.bundle-product-item:last-child {
    border-bottom: none !important;
}

.bundle-product-item:first-child {
    border-top: none !important;
}

/* Product Thumbnail Styles */
.bundle-product-item .product-thumb {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bundle-product-item .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bundle-product-item .product-thumb i {
    font-size: 16px;
    color: #9ca3af;
}

/* Quantity Style */
.bundle-product-item .product-qty {
    font-weight: 600;
    color: var(--primary-red);
    margin-right: 3px;
}

.bundle-product-item.fixed i {
    color: #10b981;
}

.bundle-product-item.choice i {
    color: #f59e0b;
}

.bundle-product-item.regular i {
    color: var(--primary-red);
}

.bundle-product-item.more i {
    color: #6b7280;
}

.bundle-product-item .product-name {
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

.bundle-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.bundle-placeholder i {
    font-size: 64px;
    color: var(--medium-grey);
    display: block;
    margin-bottom: 10px;
}

.bundle-placeholder p {
    color: var(--medium-grey);
    font-size: 14px;
    margin: 0;
}

.bundle-content {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none !important;
    border-top: none !important;
}

.bundle-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-black);
    text-align: center;
    width: 100%;
}

.bundle-description {
    color: var(--medium-grey);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
}

.bundle-products {
    display: inline-block;
    background: var(--light-grey);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.bundle-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.original-price {
    font-size: 18px;
    color: var(--medium-grey);
    text-decoration: line-through;
}

.bundle-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
}

.btn-add-bundle {
    width: 100%;
}

/* Products Section Controls */
.products-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sort-dropdown {
    position: relative;
}

.sort-dropdown select {
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23374151' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: var(--transition);
}

.sort-dropdown select:hover {
    border-color: var(--primary-red);
}

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--light-grey);
    padding: 5px;
    border-radius: 10px;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--medium-grey);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.view-btn.active {
    background: white;
    color: var(--primary-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-btn:hover:not(.active) {
    color: var(--primary-black);
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    border-radius: 15px;
}

.products-grid.list-view .product-card-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

.products-grid.list-view .product-description {
    -webkit-line-clamp: 3;
}

.products-grid.list-view .btn-add-cart {
    width: auto;
    padding: 12px 30px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--medium-grey);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--medium-grey);
}

/* Store Disclaimer */
.store-disclaimer {
    background: #FEF2F2;
    padding: 10px 0;
    margin-top: -10px;
}

.store-disclaimer .container {
    max-width: 1600px;
    padding: 0;
}

.disclaimer-box {
    background: white;
    border-left: 4px solid var(--primary-red);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.disclaimer-box i {
    font-size: 24px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.disclaimer-box p {
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Out of Stock State */
.product-badge.out-of-stock {
    background: var(--dark-grey);
}

.btn-add-cart.disabled {
    background: var(--medium-grey);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-add-cart.disabled:hover {
    transform: none;
    background: var(--medium-grey);
}

/* Product Hover Effects */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

/* Mobile Responsive for Store Header */
@media (max-width: 1024px) {
    .store-header-slim {
        /* Mobile styles */
    }

    .header-container {
        height: auto;
        flex-direction: column;
        position: relative;
    }

    .store-details-section {
        width: 100%;
        padding: 30px;
        order: 2;
        text-align: left;
        position: relative;
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: flex-start;
    }

    .store-banner-section {
        width: 100%;
        height: 200px;
        order: 1;
        position: relative;
    }

    .store-logo-center {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 80px;
        height: 80px;
        z-index: 2;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .store-details-wrapper {
        flex: 1;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .store-name {
        font-size: 28px;
        text-align: left;
        margin-bottom: 10px;
    }

    .store-info-item {
        justify-content: flex-start;
    }

    .store-stats-mini {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .store-header-slim {
        /* Small mobile styles */
    }

    .header-container {
        flex-direction: column;
    }

    .store-details-section {
        padding: 20px;
        background: white;
        display: flex;
        gap: 15px;
        align-items: center;
        justify-content: flex-start;
    }

    .store-banner-section {
        height: 180px;
    }

    .store-logo-center {
        width: 70px;
        height: 70px;
    }

    .store-logo-center .logo-placeholder span {
        font-size: 32px;
    }

    .store-name {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .store-info-item {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .store-stats-mini {
        gap: 20px;
        margin-top: 15px;
        padding-top: 15px;
    }

    .stat-mini strong {
        font-size: 18px;
    }

    .stat-mini span {
        font-size: 10px;
    }
    
    .bundles-slider {
        grid-template-columns: 1fr;
    }
    
    .products-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .sort-dropdown,
    .view-toggle {
        width: 100%;
    }
    
    .sort-dropdown select {
        width: 100%;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-card-image {
        width: 100%;
        height: 250px;
    }
    
    .categories-bar {
        top: 60px;
    }
}

@media (max-width: 480px) {
    /* Store disclaimer mobile padding */
    .store-disclaimer {
        padding: 15px 10px;
    }

    .disclaimer-box {
        margin: 0 10px;
        padding: 15px;
    }

    .store-banner-section {
        height: 150px;
    }

    .store-details-section {
        padding: 15px;
        gap: 12px;
    }

    .store-logo-center {
        width: 60px;
        height: 60px;
    }

    .store-logo-center .logo-placeholder span {
        font-size: 26px;
    }

    .store-name {
        font-size: 22px;
    }

    .store-info-item {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .store-stats-mini {
        gap: 12px;
        flex-wrap: wrap;
    }

    .stat-mini strong {
        font-size: 16px;
    }

    .stat-mini span {
        font-size: 9px;
    }

    .stat-mini {
        flex: 0 0 auto;
        min-width: 50px;
    }
}

/* Loading Animation for Products */
.product-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.product-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-grey);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Size Guide Section */
.size-guide-section {
    background: #FEF2F2;
    padding: 60px 0;
}

.size-guide-section .container {
    max-width: 1600px;
    padding: 0 20px;
}

.size-guide-content {
    max-width: 1600px;
    margin: 0 auto;
}

/* Size Tabs */
.size-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.size-tab {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.size-tab i {
    font-size: 18px;
}

.size-tab:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.size-tab.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* Size Table */
.size-table-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.size-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.size-table thead {
    background: linear-gradient(135deg, var(--primary-red), var(--hover-red));
    color: white;
}

.size-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.size-table th:first-child {
    border-radius: 10px 0 0 0;
}

.size-table th:last-child {
    border-radius: 0 10px 0 0;
}

.size-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.size-table tbody tr:hover {
    background: rgba(220, 38, 38, 0.05);
}

.size-table td {
    padding: 15px;
    font-size: 15px;
    color: var(--dark-grey);
}

.size-table td:first-child {
    font-weight: 600;
    color: var(--primary-black);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
}

/* Extended sizes styling */
.extended-size {
    background: rgba(220, 38, 38, 0.02);
}

.extended-size td:first-child {
    color: var(--primary-red);
}

/* Size Availability Notice */
.size-availability {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10B981;
    border-radius: 8px;
}

.size-availability p {
    margin: 0;
    color: var(--dark-grey);
    font-size: 14px;
}

.size-availability strong {
    color: #10B981;
}

/* Measurement Section */
.measure-section {
    margin-top: 40px;
}

.measure-title {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--primary-black);
}

.measure-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.measure-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.measure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
}

.measure-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--hover-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.measure-icon i {
    font-size: 24px;
    color: white;
}

.measure-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-black);
}

.measure-card p {
    font-size: 14px;
    color: var(--medium-grey);
    line-height: 1.6;
}

/* Size Tips */
.size-tips {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-icon i {
    font-size: 20px;
    color: var(--primary-red);
}

.size-tips p {
    margin: 0;
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .size-guide-section {
        padding: 40px 0;
    }

    .size-guide-section .container {
        padding: 0 15px;
    }

    .size-tabs {
        gap: 8px;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .size-tab {
        padding: 12px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 110px;
        max-width: 140px;
        justify-content: center;
    }

    .size-table-container {
        padding: 15px;
        overflow-x: auto;
        border-radius: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .size-table {
        min-width: 380px;
        font-size: 12px;
        width: 100%;
    }

    .size-table th {
        padding: 8px 6px;
        font-size: 11px;
    }

    .size-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .size-table td:first-child {
        font-size: 14px;
    }

    .measure-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .measure-card {
        padding: 20px 15px;
    }

    .measure-icon {
        width: 50px;
        height: 50px;
    }

    .measure-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .size-guide-section {
        padding: 30px 0;
    }

    .size-guide-section .container {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .size-tabs {
        gap: 6px;
        margin-bottom: 25px;
        flex-direction: row;
        justify-content: space-between;
    }

    .size-tab {
        padding: 10px 12px;
        font-size: 11px;
        border-radius: 25px;
        flex: 1;
        max-width: none;
        min-width: 90px;
    }

    .size-tab i {
        font-size: 14px;
    }

    .size-table-container {
        padding: 8px;
        margin-bottom: 25px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .size-table {
        min-width: 300px;
        width: 100%;
    }

    .size-table th {
        padding: 5px 2px;
        font-size: 9px;
        line-height: 1.1;
        text-align: center;
    }

    .size-table td {
        padding: 5px 2px;
        font-size: 10px;
        line-height: 1.1;
        text-align: center;
    }

    .size-table td:first-child {
        font-size: 11px;
        font-weight: 700;
        padding-left: 4px;
    }

    .measure-section {
        margin-top: 25px;
    }

    .measure-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .measure-cards {
        gap: 12px;
    }

    .measure-card {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .measure-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 10px;
    }

    .measure-icon i {
        font-size: 18px;
    }

    .measure-card h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .measure-card p {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Extra compact table for very small screens */
    .size-table-container {
        max-width: 100vw;
        box-sizing: border-box;
    }

    .size-table {
        width: 100%;
        min-width: unset;
        table-layout: fixed;
    }

    .size-table th:first-child,
    .size-table td:first-child {
        width: 15%;
        min-width: 35px;
    }

    .size-table th:nth-child(2),
    .size-table td:nth-child(2) {
        width: 21%;
        min-width: 50px;
    }

    .size-table th:nth-child(3),
    .size-table td:nth-child(3) {
        width: 21%;
        min-width: 50px;
    }

    .size-table th:nth-child(4),
    .size-table td:nth-child(4) {
        width: 21%;
        min-width: 50px;
    }

    .size-table th:nth-child(5),
    .size-table td:nth-child(5) {
        width: 22%;
        min-width: 50px;
    }

    .size-tips {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        border-radius: 12px;
        margin-top: 20px;
    }

    .tip-icon {
        margin: 0 auto 10px;
        width: 35px;
        height: 35px;
    }

    .tip-icon i {
        font-size: 16px;
    }

    .size-tips p {
        font-size: 12px;
        line-height: 1.4;
    }

    .size-availability {
        margin-top: 15px;
        padding: 12px 15px;
        border-radius: 8px;
    }

    .size-availability p {
        font-size: 12px;
    }
}