/* ===== MERCHANDISE PAGE STYLES - GALLERY GRID FORMAT ===== */

/* Hero Section */
.merchandise-hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-off-black) 100%);
    overflow: hidden;
}

.merchandise-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.merchandise-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.merchandise-hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.merchandise-hero-description {
    font-size: 1.2rem;
    color: var(--color-gray-light);
    line-height: 1.8;
}

/* ===== MODERN FILTER SECTION - PROFESSIONAL REDESIGN ===== */
.merchandise-filter-section {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 59, 59, 0.15);
    padding: 25px 0;
    transition: all 0.3s ease;
}

.merchandise-filter-section.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Filter Header with Label and Count */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label i {
    color: var(--color-red);
    font-size: 0.9rem;
    background: rgba(255, 59, 59, 0.1);
    padding: 5px;
    border-radius: 8px;
}

.filter-count {
    font-size: 0.7rem;
    color: var(--color-gray-mid);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Filter Tabs Wrapper - For Scroll on Mobile */
.filter-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs-wrapper::-webkit-scrollbar {
    height: 3px;
}

.filter-tabs-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.filter-tabs-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-red);
    border-radius: 10px;
}

/* Modern Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 5px;
    min-width: max-content;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 59, 59, 0.2);
    color: var(--color-gray-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.filter-tab i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.filter-tab:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    background: rgba(255, 59, 59, 0.05);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

.filter-tab.active i {
    opacity: 1;
}

/* Active Filters Display */
.active-filters {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 59, 59, 0.15);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.active-filters-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.active-filters-label i {
    color: var(--color-red);
    font-size: 0.7rem;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: var(--color-red);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}

.active-filter-badge i {
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-filter-badge i:hover {
    color: white;
    background: var(--color-red);
    border-radius: 50%;
}

.clear-filters-btn {
    background: transparent;
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: var(--color-gray-light);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-filters-btn:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

/* Responsive Filter Section */
@media (max-width: 992px) {
    .merchandise-filter-section {
        top: 70px;
        padding: 20px 0;
    }
    
    .filter-header {
        margin-bottom: 12px;
    }
    
    .filter-label {
        font-size: 0.75rem;
    }
    
    .filter-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* Mobile Filter Bar - Modern Dropdown Style */
@media (max-width: 768px) {
    .merchandise-filter-section {
        position: sticky;
        top: 60px;
        z-index: 100;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 0;
        border-bottom: none;
    }
    
    /* Mobile Filter Container */
    .merchandise-filter-section .container {
        padding: 0;
    }
    
    /* Mobile Filter Bar - Horizontal Scroll with Gradient */
    .filter-group {
        margin: 0;
        padding: 0;
        border-bottom: none;
        position: relative;
    }
    
    /* Mobile Filter Header - Collapsible */
    .filter-header {
        padding: 12px 16px;
        margin: 0;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255, 59, 59, 0.1);
        transition: all 0.3s ease;
    }
    
    .filter-header.active {
        background: rgba(255, 59, 59, 0.05);
        border-bottom-color: rgba(255, 59, 59, 0.3);
    }
    
    .filter-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-gray-light);
        text-transform: uppercase;
        letter-spacing: 1px;
        gap: 8px;
    }
    
    .filter-label i {
        font-size: 0.85rem;
        background: rgba(255, 59, 59, 0.15);
        padding: 6px;
        border-radius: 10px;
    }
    
    .filter-count {
        font-size: 0.65rem;
        padding: 4px 10px;
        background: rgba(255, 59, 59, 0.15);
        color: var(--color-red);
        border-radius: 20px;
    }
    
    /* Mobile Filter Tabs Container - Smooth Scroll */
    .filter-tabs-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(0, 0, 0, 0.3);
    }
    
    .filter-group.open .filter-tabs-wrapper {
        max-height: 250px;
        overflow-y: auto;
    }
    
    /* Custom Scrollbar for Mobile */
    .filter-tabs-wrapper::-webkit-scrollbar {
        width: 3px;
    }
    
    .filter-tabs-wrapper::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .filter-tabs-wrapper::-webkit-scrollbar-thumb {
        background: var(--color-red);
        border-radius: 10px;
    }
    
    /* Mobile Filter Tabs - Grid Layout */
    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        padding: 16px;
        flex-wrap: wrap;
        min-width: auto;
    }
    
    .filter-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 59, 59, 0.15);
        color: var(--color-gray-light);
        padding: 10px 12px;
        border-radius: 30px;
        font-size: 0.75rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: normal;
        text-align: center;
        backdrop-filter: blur(5px);
    }
    
    .filter-tab i {
        font-size: 0.7rem;
        opacity: 0.7;
    }
    
    .filter-tab:hover {
        background: rgba(255, 59, 59, 0.1);
        border-color: var(--color-red);
        transform: translateY(-1px);
    }
    
    .filter-tab.active {
        background: var(--color-red);
        border-color: var(--color-red);
        color: white;
        box-shadow: 0 2px 10px rgba(255, 59, 59, 0.3);
    }
    
    .filter-tab.active i {
        opacity: 1;
    }
    
    /* Mobile Active Filters - Chip Style */
    .active-filters {
        padding: 12px 16px;
        margin: 0;
        background: rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 59, 59, 0.1);
        border-bottom: 1px solid rgba(255, 59, 59, 0.1);
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .active-filters-label {
        font-size: 0.7rem;
        padding: 4px 0;
    }
    
    .active-filter-badge {
        padding: 5px 12px;
        font-size: 0.7rem;
        background: rgba(255, 59, 59, 0.12);
        border-color: rgba(255, 59, 59, 0.3);
        border-radius: 25px;
    }
    
    .clear-filters-btn {
        padding: 5px 12px;
        font-size: 0.7rem;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .clear-filters-btn:hover {
        background: var(--color-red);
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .filter-tabs {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 6px;
        padding: 12px;
    }
    
    .filter-tab {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
    
    .filter-header {
        padding: 10px 14px;
    }
    
    .filter-label {
        font-size: 0.7rem;
    }
    
    .filter-label i {
        font-size: 0.75rem;
        padding: 5px;
    }
    
    .filter-count {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .active-filters {
        padding: 10px 14px;
        gap: 6px;
    }
    
    .active-filter-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}

/* Extra Small Mobile (up to 380px) */
@media (max-width: 380px) {
    .filter-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 0.7rem;
        justify-content: center;
    }
}

/* Landscape Mode on Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .merchandise-filter-section {
        top: 55px;
    }
    
    .filter-tabs-wrapper {
        max-height: 180px !important;
    }
    
    .filter-tabs {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        padding: 12px;
    }
    
    .filter-tab {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

/* Scrolled State on Mobile */
@media (max-width: 768px) {
    .merchandise-filter-section.scrolled {
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .merchandise-filter-section.scrolled .filter-header {
        padding: 8px 16px;
    }
    
    .merchandise-filter-section.scrolled .filter-tab {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

/* Touch-Friendly Active States */
@media (max-width: 768px) {
    .filter-tab:active {
        transform: scale(0.96);
        transition: transform 0.05s ease;
    }
    
    .filter-header:active {
        background: rgba(255, 59, 59, 0.08);
    }
}

/* ===== MERCHANDISE GALLERY GRID ===== */
.merchandise-grid-section {
    padding: 60px 0;
    background: var(--color-black);
}

.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

/* Merchandise Card */
.merchandise-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid rgba(255, 59, 59, 0.1);
    transition: var(--transition-base);
}

.merchandise-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-red);
    box-shadow: 0 30px 40px -20px rgba(255, 59, 59, 0.3);
}

.merchandise-card {
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.merchandise-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.merchandise-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.merchandise-item:hover .merchandise-image {
    transform: scale(1.05);
}

/* Content Overlay - Always Visible */
.merchandise-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--color-white);
}

/* Meta Information Inside Overlay */
.merchandise-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.merchandise-category {
    font-size: 0.7rem;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background: rgba(255, 59, 59, 0.15);
    padding: 3px 8px;
    border-radius: 20px;
}

.merchandise-client-badge {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-gray-light);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.merchandise-client-badge i {
    font-size: 0.6rem;
    color: var(--color-red);
}

.merchandise-year {
    font-size: 0.65rem;
    color: var(--color-gray-light);
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 20px;
}

.merchandise-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-white);
    line-height: 1.3;
}

.merchandise-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid rgba(255, 59, 59, 0.25);
    border-radius: 10px;
    color: var(--color-gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots {
    color: var(--color-gray-mid);
    padding: 0 8px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--color-red);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--color-gray-light);
    margin-bottom: 30px;
}

/* ===== CTA SECTION ===== */
.merchandise-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-off-black) 0%, var(--color-black) 100%);
    border-top: 1px solid rgba(255, 59, 59, 0.1);
}

.merchandise-cta .cta-content h2 {
    margin-bottom: 20px;
}

.merchandise-cta .cta-content p {
    color: var(--color-gray-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (768px to 992px) */
@media (max-width: 992px) {
    .merchandise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        margin: var(--space-md) 0;
    }
    
    .merchandise-item {
        border-radius: 16px;
    }
    
    .merchandise-content {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .merchandise-item:hover {
        transform: translateY(-5px);
    }
    
    .merchandise-title {
        font-size: 0.9rem;
    }
    
    .merchandise-description {
        font-size: 0.75rem;
       /*  -webkit-line-clamp: 1; */
    }
    
    .merchandise-filter-section {
        top: 70px;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .merchandise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        margin: var(--space-md) auto;
    }
    
    .merchandise-item {
        border-radius: 14px;
    }
    
    .merchandise-content {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .merchandise-title {
        font-size: 0.85rem;
    }
    
    .merchandise-description {
        display: none;
    }
    
    .merchandise-meta {
        gap: 4px;
    }
    
    .merchandise-category,
    .merchandise-client-badge,
    .merchandise-year {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .merchandise-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin: var(--space-md) auto;
        max-width: 400px;
    }
    
    .merchandise-item {
        border-radius: 14px;
        aspect-ratio: 4/3;
    }
    
    .merchandise-content {
        padding: var(--space-xs) var(--space-md);
    }
    
    .merchandise-title {
        font-size: 0.9rem;
    }
    
    .merchandise-description {
        font-size: 0.75rem;
        /* -webkit-line-clamp: 1; */
    }
    
    /* Touch-friendly hover effect for mobile */
    .merchandise-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Small Mobile (320px to 479px) */
@media (max-width: 479px) {
    .merchandise-grid {
        gap: var(--space-sm);
        margin: var(--space-sm) auto;
        padding: 0 var(--space-sm);
    }
    
    .merchandise-item {
        border-radius: 12px;
        aspect-ratio: 4/3;
    }
    
    .merchandise-content {
        padding: calc(var(--space-xs) * 0.75) var(--space-sm);
    }
    
    .merchandise-title {
        font-size: 0.8rem;
    }
    
    .merchandise-category,
    .merchandise-client-badge,
    .merchandise-year {
        font-size: 0.55rem;
        padding: 2px 5px;
    }
}

/* Extra Small Mobile (up to 320px) */
@media (max-width: 320px) {
    .merchandise-grid {
        gap: var(--space-xs);
        padding: 0 var(--space-xs);
    }
    
    .merchandise-item {
        border-radius: 10px;
    }
    
    .merchandise-content {
        padding: 4px 8px;
    }
    
    .merchandise-title {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }
    
    .merchandise-category,
    .merchandise-client-badge,
    .merchandise-year {
        font-size: 0.5rem;
        padding: 1px 4px;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .merchandise-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        margin: var(--space-sm) 0;
    }
    
    .merchandise-item {
        aspect-ratio: 16/9;
        border-radius: 12px;
    }
    
    .merchandise-content {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .merchandise-description {
        display: none;
    }
}

/* High-resolution screens (1400px and above) */
@media (min-width: 1400px) {
    .merchandise-grid {
        gap: var(--space-lg);
        margin: var(--space-xl) 0;
    }
    
    .merchandise-item {
        border-radius: 24px;
    }
    
    .merchandise-content {
        padding: var(--space-md) var(--space-lg);
    }
    
    .merchandise-title {
        font-size: 1.2rem;
    }
    
    .merchandise-description {
        font-size: 0.9rem;
    }
    
    .merchandise-category,
    .merchandise-client-badge,
    .merchandise-year {
        font-size: 0.75rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.merchandise-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Lightbox Custom Styling */
.lightboxOverlay {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.lightbox .lb-image {
    border-radius: 8px;
    border: 2px solid rgba(255, 59, 59, 0.3);
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-data .lb-caption {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-light);
}

.lb-data .lb-number {
    font-size: 0.85rem;
    color: var(--color-gray-mid);
}

.lb-data .lb-close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lb-data .lb-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
        .merchandise-popup button {
            position: fixed !important;
        }
        
        .merchandise-popup button:first-child {
            left: 10px !important;
            right: auto !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            padding: 8px 14px !important;
            font-size: 20px !important;
        }
        
        .merchandise-popup button:nth-child(2) {
            right: 10px !important;
            left: auto !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            padding: 8px 14px !important;
            font-size: 20px !important;
        }
        
        .merchandise-popup button:last-child {
            top: 20px !important;
            right: 20px !important;
            left: auto !important;
            font-size: 30px !important;
        }
        
        .merchandise-popup img {
            max-height: 70vh !important;
        }
    }
    
    /* Smooth transition for image changes */
    .merchandise-popup img {
        transition: opacity 0.3s ease;
    }

/* Stagger animation delay for grid items */
.merchandise-item:nth-child(1) { animation-delay: 0.05s; }
.merchandise-item:nth-child(2) { animation-delay: 0.1s; }
.merchandise-item:nth-child(3) { animation-delay: 0.15s; }
.merchandise-item:nth-child(4) { animation-delay: 0.2s; }
.merchandise-item:nth-child(5) { animation-delay: 0.25s; }
.merchandise-item:nth-child(6) { animation-delay: 0.3s; }
.merchandise-item:nth-child(7) { animation-delay: 0.35s; }
.merchandise-item:nth-child(8) { animation-delay: 0.4s; }
.merchandise-item:nth-child(9) { animation-delay: 0.45s; }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-off-black);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Pattern (subtle) */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 59, 59, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Footer Grid - Desktop Default */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

/* Footer Grid - Desktop Default */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

/* Footer Info Section */
.footer-info {
  max-width: 350px;
}

.footer-info .logo {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  transition: var(--transition-base);
}

.footer-info .logo:hover {
  color: var(--color-red);
}

.footer-info p {
  color: var(--color-gray-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.footer-legal {
  color: var(--color-gray-mid);
  font-size: 0.85rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Links Sections */
.footer-links h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition-base);
}

.footer-links h4:hover::after {
  width: 50px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
  transition: var(--transition-fast);
}

.footer-links a {
  color: var(--color-gray-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--color-red);
  transform: translateX(8px);
}

/* Arrow animation on hover */
.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: var(--transition-fast);
  color: var(--color-red);
}

.footer-links a:hover::before {
  opacity: 1;
  left: -25px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
  .footer {
    padding: calc(var(--space-xl) * 1.2) 0 var(--space-xl);
  }
  
  .footer-grid {
    gap: calc(var(--space-lg) * 1.2);
  }
  
  .footer-info {
    max-width: 400px;
  }
  
  .footer-info .logo {
    font-size: 2.2rem;
  }
  
  .footer-info p {
    font-size: 1rem;
  }
  
  .footer-links h4 {
    font-size: 1.2rem;
  }
  
  .footer-links a {
    font-size: 1rem;
  }
}

/* Standard Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .footer-grid {
    gap: var(--space-md);
  }
  
  .footer-info {
    max-width: 320px;
  }
}

/* Small Desktop / Large Tablet (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .footer {
    padding: calc(var(--space-xl) * 0.9) 0 var(--space-lg);
  }
  
  .footer-grid {
    gap: var(--space-md);
  }
  
  .footer-info {
    max-width: 300px;
  }
  
  .footer-info .logo {
    font-size: 1.8rem;
  }
  
  .footer-info p {
    font-size: 0.9rem;
  }
  
  .footer-links h4 {
    font-size: 1rem;
    margin-bottom: calc(var(--space-md) * 0.8);
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .footer {
    padding: calc(var(--space-xl) * 0.8) 0 var(--space-lg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-md);
  }
  
  .footer-info {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--space-md);
  }
  
  .footer-info .logo {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
  }
  
  .footer-links h4:hover::after {
    width: 60px;
  }
  
  .footer-links a:hover {
    transform: translateY(-2px) translateX(0);
  }
  
  .footer-links a::before {
    display: none; /* Remove arrow on tablet for cleaner look */
  }
  
  .footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--space-md);
  }
}

/* Mobile Landscape (480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .footer {
    padding: calc(var(--space-xl) * 0.7) 0 var(--space-md);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .footer-info {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
    margin-bottom: var(--space-md);
  }
  
  .footer-info .logo {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
  }
  
  .footer-info p {
    font-size: 0.9rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links h4 {
    font-size: 1rem;
    margin-bottom: calc(var(--space-md) * 0.7);
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
  }
  
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links li {
    margin-bottom: calc(var(--space-sm) * 0.8);
  }
  
  .footer-links a {
    font-size: 0.9rem;
  }
  
  .footer-links a:hover {
    transform: translateY(-2px) translateX(0);
    color: var(--color-red);
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.8rem;
  }
}

/* Mobile Portrait (up to 479px) */
@media (max-width: 479px) {
  .footer {
    padding: calc(var(--space-xl) * 0.6) 0 var(--space-sm);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-info {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-info .logo {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
  }
  
  .footer-info p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
    padding: 0 var(--space-sm);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links h4 {
    font-size: 1rem;
    margin-bottom: calc(var(--space-md) * 0.6);
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
  }
  
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links li {
    margin-bottom: calc(var(--space-sm) * 0.7);
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .footer-links a:hover {
    transform: translateY(-2px) translateX(0);
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-legal {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    font-size: 0.75rem;
  }
}

/* Very Small Mobile (up to 360px) */
@media (max-width: 360px) {
  .footer {
    padding: calc(var(--space-xl) * 0.5) 0 var(--space-sm);
  }
  
  .footer-info .logo {
    font-size: 1.5rem;
  }
  
  .footer-info p {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
  
  .footer-links h4 {
    font-size: 0.95rem;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .footer-legal {
    font-size: 0.7rem;
  }
}

/* Landscape Mode on Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .footer {
    padding: var(--space-md) 0;
  }
  
  .footer-grid {
    gap: var(--space-md);
  }
  
  .footer-info {
    max-width: 300px;
  }
  
  .footer-info p {
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
  }
}

/* High-resolution screens (4K and above) */
@media (min-width: 2560px) {
  .footer {
    padding: calc(var(--space-2xl)) 0 calc(var(--space-xl) * 1.5);
  }
  
  .footer-grid {
    max-width: 1600px;
    margin: 0 auto;
    gap: calc(var(--space-xl) * 1.5);
  }
  
  .footer-info {
    max-width: 500px;
  }
  
  .footer-info .logo {
    font-size: 2.8rem;
  }
  
  .footer-info p {
    font-size: 1.2rem;
    line-height: 2;
  }
  
  .footer-links h4 {
    font-size: 1.5rem;
  }
  
  .footer-links a {
    font-size: 1.2rem;
  }
  
  .footer-legal {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .footer {
    background: none;
    border-top: 1px solid #000;
    color: #000;
    padding: 2rem 0;
  }
  
  .footer a {
    color: #000 !important;
    text-decoration: underline;
  }
  
  .footer::before,
  .footer-links h4::after,
  .footer-links a::before {
    display: none;
  }
}
