* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Suisse', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color:#fafff0;  /* Updated background color */
    color: #4a4a4a;
    line-height: 1;
    cursor: default;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease;
}

body.catalog-hover, body.info-hover {
    background-color: #0095ff;
}

/* When catalog or info is hovered, make all text and borders white */
body.catalog-hover .header,
body.catalog-hover .grid-cell,
body.catalog-hover .grid-cell.section-title,
body.info-hover .header,
body.info-hover .grid-cell,
body.info-hover .grid-cell.section-title {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.catalog-hover .logo,
body.catalog-hover .nav-item,
body.catalog-hover .info-link,
body.catalog-hover .product-number,
body.catalog-hover .grid-cell,
body.catalog-hover .grid-cell.has-content,
body.catalog-hover .grid-cell.section-title,
body.info-hover .logo,
body.info-hover .nav-item,
body.info-hover .info-link,
body.info-hover .product-number,
body.info-hover .grid-cell,
body.info-hover .grid-cell.has-content,
body.info-hover .grid-cell.section-title {
    color: #ffffff !important;
}

body.catalog-hover .grid-cell,
body.info-hover .grid-cell {
    background-color: transparent !important;
}

body.catalog-hover .grid-cell.section-title,
body.info-hover .grid-cell.section-title {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
}

body.catalog-hover .grid-cell:hover,
body.info-hover .grid-cell:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.catalog-hover .nav-item:hover,
body.catalog-hover .info-link:hover,
body.info-hover .nav-item:hover,
body.info-hover .info-link:hover {
    color: #0095ff !important;
    opacity: 0.7 !important;
}

.container {
    width: 100%;
    padding: 20px;
}

/* Header - Simplified */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(74, 74, 74, 0.1);
}

.logo {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    color: #4a4a4a;
    opacity: 1;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #4a4a4a;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    padding: 8px 16px;
    background-color: transparent;
    border: none;
}

.nav-item:hover {
    color: #ff0000;
}

.nav-item:active {
    transform: scale(0.98);
}

.info-link {
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px;
    background-color: transparent;
    border: none;
}

.info-link:hover {
    color: #4a4a4a;
}

/* Star-shaped Info Panel */
.info-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 500px;
    height: 300px;  /* Increased height for longer bio */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.info-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.star-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #55d800;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: 0 10px 40px -5px rgba(74, 74, 74, 0.15);
}

.info-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    text-align: right;
    padding: 20px;
}

.info-panel h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: lowercase;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: #Ffffff;
}

.info-divider {
    width: 60px;
    height: 0px;
    background: #FFffff;
    margin: 0 auto 15px;
    opacity: 0.2;
}

.info-panel p {
    font-size: 11px;
    line-height: 1.6;
    color: #FFffff;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.info-panel p strong {
    font-weight: 600;
  color: #ffffff
}

.info-footer {
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: -0.01em;
    font-weight: 600;
    opacity: 0.9;
  color: #ffffff
}

/* Hide the old overlay completely */
.image-overlay {
    display: none !important;
}

/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    margin: 0 -20px;
    padding: 0 20px 50px; /* Added bottom padding for expanded captions */
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.grid-cell {
    aspect-ratio: 1;
    border-right: 1px solid rgba(74, 74, 74, 0.08);
    border-bottom: 1px solid rgba(74, 74, 74, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: rgba(74, 74, 74, 0.35);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;  /* Changed from hidden to visible for expansion */
    min-height: calc((100vw - 40px) / 8);
    background-color: transparent;
}

.grid-cell:nth-child(8n) {
    border-right: none;
}

.grid-cell:hover {
    background-color: rgba(74, 74, 74, 0.02);
    z-index: 10;
}

.grid-cell.has-content {
    color: rgba(74, 74, 74, 0.6);
    font-weight: 500;
}

.grid-cell.section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 74, 74, 0.02) 0%, rgba(74, 74, 74, 0.04) 100%);
    color: #4a4a4a;
    cursor: pointer;
    border-right: 1px solid rgba(74, 74, 74, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.grid-cell.section-title:hover {
    background: linear-gradient(135deg, rgba(74, 74, 74, 0.04) 0%, rgba(74, 74, 74, 0.06) 100%);
    opacity: 1;
}

/* Hide cells based on filter */
.grid-cell.hidden {
    opacity: 0.05;
    pointer-events: none;
    filter: blur(2px);
}

/* Product number */
.product-number {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: -0.02em;
    opacity: 0.7;
}

/* Product images */
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background-color: #fafff0;
    filter: brightness(0.98);
    transform: scale(1);
}

.grid-cell:hover .product-image,
.grid-cell.image-visible .product-image {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1.02);
}

.grid-cell:hover .product-number,
.grid-cell.image-visible .product-number {
    opacity: 0;
    transform: scale(0.9);
}

/* Expanded state for grid cells */
.grid-cell.expanded {
    z-index: 50;
    overflow: visible;
}

.grid-cell.expanded .product-image {
    position: absolute;
    width: 130%;
    height: 130%;
    z-index: 51;
    box-shadow: 0 15px 50px -10px rgba(255, 20, 147, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contemporary caption style - FIXED Z-INDEX */
.image-caption {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 52; /* Higher than the expanded image (z-index: 51) */
}

.grid-cell.expanded .image-caption {
    opacity: 1;
    bottom: -35px;
}

/* Section hover effect */
.section-hover-active[data-active-section] .grid-cell:not([data-section]) .product-image,
.section-hover-active[data-active-section] .grid-cell:not(.image-visible) .product-image {
    opacity: 0 !important;
    transform: scale(1) !important;
}

.section-hover-active[data-active-section] .grid-cell.image-visible .product-image {
    opacity: 1 !important;
    transform: scale(1.02) !important;
}

.section-hover-active[data-active-section] .grid-cell.image-visible .product-number {
    opacity: 0 !important;
    transform: scale(0.9) !important;
}

/* Loading animation */
@keyframes imageReveal {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
        filter: blur(0);
    }
}

.grid-cell.animating .product-image {
    animation: imageReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .grid-cell {
        min-height: calc((100vw - 40px) / 6);
    }
    
    .grid-cell:nth-child(8n) {
        border-right: 1px solid rgba(74, 74, 74, 0.08);
    }
    
    .grid-cell:nth-child(6n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-cell {
        min-height: calc((100vw - 40px) / 4);
        font-size: 10px;
    }
    
    .grid-cell:nth-child(6n) {
        border-right: 1px solid rgba(74, 74, 74, 0.08);
    }
    
    .grid-cell:nth-child(4n) {
        border-right: none;
    }
    
    .grid-cell.section-title {
        font-size: 10px;
        padding: 15px;
    }
    
    .product-number {
        font-size: 10px;
    }
    
    .header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .info-panel {
        width: 90vw;
        height: auto;
        min-height: 300px;
        right: 5vw;
        left: 5vw;
        top: 60px;
    }
    
    .info-content {
        width: 90%;
        padding: 30px 20px;
    }
    
    .image-caption {
        font-size: 9px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-cell {
        min-height: calc((100vw - 40px) / 3);
    }
    
    .grid-cell:nth-child(4n) {
        border-right: 1px solid rgba(74, 74, 74, 0.08);
    }
    
    .grid-cell:nth-child(3n) {
        border-right: none;
    }
    
    .info-panel {
        width: 95vw;
        right: 2.5vw;
        left: 2.5vw;
    }
    
    .info-content {
        font-size: 10px;
    }
    
    .info-panel p {
        font-size: 10px;
    }
    
    .container {
        padding: 15px;
    }
}

/* Selection styling */
::selection {
    background-color: rgba(74, 74, 74, 0.08);
    color: #4a4a4a;
}

::-moz-selection {
    background-color: rgba(74, 74, 74, 0.08);
    color: #4a4a4a;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(74, 74, 74, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 74, 74, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 74, 74, 0.15);
}/* Audio toggle button */
.audio-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.audio-toggle:hover {
    color: #4a4a4a;
}

.audio-toggle:active {
    transform: scale(0.95);
}

.audio-toggle svg {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s ease;
}

/* Muted state styling */
body.audio-muted .sound-on {
    display: none;
}

body.audio-muted .sound-off {
    display: block !important;
}

/* Audio hover state - blue background with white text */
body.audio-hover {
    background-color: #0095ff !important;
    transition: background-color 0.3s ease;
}

body.audio-hover * {
    color: #ffffff !important;
}

body.audio-hover .grid-cell {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.audio-hover .header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.audio-hover .nav-item,
body.audio-hover .info-link,
body.audio-hover .audio-toggle,
body.audio-hover .product-number,
body.audio-hover .grid-cell,
body.audio-hover .grid-cell.has-content,
body.audio-hover .grid-cell.section-title {
    color: #ffffff !important;
}

body.audio-hover .grid-cell {
    background-color: transparent !important;
}

body.audio-hover .grid-cell.section-title {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
}

body.audio-hover .grid-cell:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

body.audio-hover .nav-item:hover,
body.audio-hover .info-link:hover,
body.audio-hover .audio-toggle:hover {
    color: #ffffff !important;
    opacity: 0.7 !important;
}

/* Dark mode adjustments - combined states */
body.catalog-hover .audio-toggle,
body.info-hover .audio-toggle {
    color: #ffffff !important;
}

body.catalog-hover .audio-toggle:hover,
body.info-hover .audio-toggle:hover {
    color: #0095ff !important;
    opacity: 0.7 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-controls {
        gap: 10px;
    }
    
    .audio-toggle {
        padding: 6px;
    }
    
    .audio-toggle svg {
        width: 16px;
        height: 16px;
    }
}/* Header controls container */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row; /* Ensure horizontal layout */
}

/* If you need to ensure they stay side by side on mobile too */
@media (max-width: 768px) {
    .header-controls {
        gap: 10px;
        flex-direction: row; /* Keep horizontal on mobile */
    }
    
    .header {
        flex-wrap: nowrap; /* Prevent wrapping */
        gap: 10px; /* Reduce gap if needed */
    }
}