/* Catalog Styles */
.catalog-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Quicksand', sans-serif;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3rem;
    color: #2a110a;
    font-weight: 700;
}

.catalog-header p {
    font-size: 18px;
    color: #666;
}

/* Filter Toolbar */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    background: #faf9f6;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #efebe0;
    align-items: center;
    justify-content: center;
}

.toolbar-group {
    display: flex;
    flex-direction: column;
}

.toolbar-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.catalog-input, .catalog-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    min-width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.catalog-input:focus, .catalog-select:focus {
    border-color: #d1b266;
}

.btn-reset {
    background: transparent;
    border: 1px solid #d1b266;
    color: #d1b266;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    height: 42px; /* Match input height */
    margin-top: auto;
}

.btn-reset:hover {
    background: #d1b266;
    color: white;
}

/* Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 30px;
}

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

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card - 7thfloor Style */
.catalog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.catalog-card:hover .card-title {
    color: #d1b266;
}

.card-img-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    margin-bottom: 15px;
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: contain; /* Ensures image is not cut off */
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Times New Roman', serif !important;
    font-size: 1.6rem !important;
    color: #2a110a !important;
    margin: 0 0 5px 0 !important;
    font-weight: bold !important;
    transition: color 0.2s;
}

.card-desc {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 0.9rem !important;
    color: #8c7335 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #888;
    font-size: 18px;
    background: #faf9f6;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-group, .catalog-input, .catalog-select, .btn-reset {
        width: 100%;
    }
}

/* Video Carousel Hero */
.video-carousel-hero {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    isolation: isolate; /* Ensures mix-blend-mode blends with the videos, not the page background */
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    object-fit: cover;
}

.hero-video.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    mix-blend-mode: difference;
    color: white;
    filter: grayscale(100%) contrast(1000%); /* Forces the difference blend to be strictly black or white, avoiding weird inverted colors */
}

.hero-title {
    font-size: 6rem;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    letter-spacing: 5px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Text Logo */
.mivan-text-logo {
    font-family: 'Times New Roman', Times, serif;
    font-size: 64px !important; /* Extremely large and forced */
    font-weight: 700 !important;
    color: #eadd9a !important; /* Pale yellow/gold from the screenshot */
    letter-spacing: 2px !important;
    line-height: 1 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    padding-top: 10px !important;
}

/* 7th Floor Style Filters */
.catalog-toolbar-7th {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gama-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.gama-btn:hover {
    border-color: #000;
}

.gama-btn.active {
    background: #000;
    color: #fff !important;
    border-color: #000;
}

.filters-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-pill-container, .select-pill-container {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    height: 52px;
    background: #fff;
    padding: 0 24px;
    position: relative;
    transition: border-color 0.2s ease;
}

.search-pill-container:focus-within, .select-pill-container:hover {
    border-color: #000;
}

.search-icon {
    color: #666;
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

#catalog-search {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 220px;
    color: #333;
    font-weight: 500;
}

#catalog-search::placeholder {
    color: #999;
}

.select-pill-container {
    padding-right: 0;
}

.select-pill-container select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 0 45px 0 24px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    height: 100%;
}

.dropdown-icon {
    position: absolute;
    right: 20px;
    pointer-events: none;
    color: #666;
    width: 20px;
    height: 20px;
}

@media (max-width: 850px) {
    .catalog-toolbar-7th {
        flex-direction: column;
        align-items: flex-start;
    }
    .filters-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* --- Product Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-box {
    background-color: #fcfcfc;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(234, 221, 154, 0.2);
}

.modal-overlay.active .modal-content-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #8c7335;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.modal-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 70%);
    border-radius: 8px;
    padding: 20px;
}

.modal-image-col img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.modal-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-subtitle {
    font-family: 'Times New Roman', serif !important;
    color: #8c7335 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 25px !important;
    margin-top: 5px !important;
}

.modal-title {
    font-family: 'Times New Roman', serif !important;
    color: #2a110a !important;
    font-size: 2.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    font-weight: bold !important;
}

.modal-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    font-family: 'Times New Roman', serif;
    color: #8c7335;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.format-pill {
    background-color: transparent;
    border: 1px solid #8c7335;
    color: #8c7335;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.modal-ingredients {
    color: #222;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .modal-image-col img {
        max-height: 300px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
}

#responsive-menu-pro-button, #responsive-menu-pro-container { display: none !important; }


/* Language Switcher Mobile Fix */


@media (max-width: 768px) {
    
}

/* Language Switcher Styling */
.lang-switcher {
    position: absolute; 
    right: 100px; 
    top: 25px; 
    font-family: 'Times New Roman', serif; 
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.lang-switcher a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    transition: color 0.2s;
}

.lang-switcher a.lang-active, .lang-switcher a:hover {
    color: #eadd9a !important;
}

@media (max-width: 768px) {
    .lang-switcher {
        right: 15px;
        top: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px 20px;
        text-align: center;
    }
    .lang-switcher a {
        font-size: 1.2rem !important;
        padding: 4px;
        display: block; /* makes touch target bigger */
    }
}
