/* ======================================
   CATALOG PAGE STYLES
   ====================================== */

.catalog-hero {
    height: 60vh;
    min-height: 500px;
    background: url('../content/hero/hero-2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    padding-top: 80px;
}

.catalog-hero .hero-content {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(195, 167, 98, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 60px 80px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.catalog-subtitle {
    font-size: 1.5rem;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Category Navigation */
.catalog-navigation {
    padding: 15px 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 90px;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-nav-compact {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-dropdown {
    position: relative;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn i:first-child {
    font-size: 1.1rem;
    color: var(--color-accent);
}

.category-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.category-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.category-btn:hover i {
    color: var(--color-white);
}

.category-dropdown:hover .category-btn i:last-child {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    min-width: 600px;
    z-index: 51;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Add padding area to prevent menu from closing */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.category-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: grid;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-column h5 {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-column a {
    display: block;
    padding: 6px 10px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-column a:hover {
    background: rgba(195, 167, 98, 0.1);
    color: var(--color-accent);
    padding-left: 15px;
}

@media (max-width: 768px) {
    .catalog-navigation {
        top: 70px;
        padding: 10px 0;
    }

    .category-nav-compact {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        position: fixed;
        top: 140px;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        grid-template-columns: 1fr;
        gap: 15px;
        transform: none;
        border-radius: 0;
        padding: 15px;
    }

    /* Mobile: show dropdown on click, not hover */
    .category-dropdown:hover .dropdown-menu {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .dropdown-menu.active {
        display: grid !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .dropdown-column h5 {
        font-size: 0.85rem;
    }

    .dropdown-column a {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}

.btn-filter {
    padding: 12px 30px;
    border: none;
    background: transparent;
    color: var(--color-dark);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-filter:hover {
    background: rgba(195, 167, 98, 0.1);
    color: var(--color-accent);
}

.btn-filter.active {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(195, 167, 98, 0.4);
}

/* Catalog Hierarchy */
.catalog-main-header {
    font-size: 3rem;
    text-align: center;
    margin: 15px 0 10px;
    font-family: "Philosopher", serif;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 8px;
}

.catalog-main-header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-accent);
}

.catalog-sub-header {
    font-size: 2rem;
    margin: 12px 0 8px;
    color: var(--color-accent);
    font-family: "Philosopher", serif;
    border-left: 5px solid var(--color-accent);
    padding-left: 20px;
}

.catalog-group {
    margin-bottom: 25px;
}

.catalog-subgroup {
    margin-bottom: 15px;
}

/* Reset section padding for catalog sections */
.catalog-section {
    padding: 0;
    position: relative;
}

/* Interactive Catalog Map */
.interactive-catalog-map {
    padding: 25px 0 20px;
    background: var(--color-bg);
}

.map-slider-container {
    position: relative;
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

.map-slides {
    position: relative;
    width: 100%;
    overflow: visible;
}

.interactive-map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
}

.interactive-map-wrapper.active {
    display: block;
}

.map-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: var(--color-accent);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.map-nav-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.map-nav-btn.prev {
    left: -25px;
}

.map-nav-btn.next {
    right: -25px;
}

.map-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.map-dots .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(195, 167, 98, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-dots .dot:hover {
    background: rgba(195, 167, 98, 0.6);
    transform: scale(1.15);
}

.map-dots .dot.active {
    background: var(--color-accent);
    width: 40px;
    border-radius: 8px;
}

.catalog-map-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 15px;
}

.hotspot {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(195, 167, 98, 0.7);
    animation: pulse 2s infinite;
}

.hotspot-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(195, 167, 98, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(195, 167, 98, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(195, 167, 98, 0);
    }
}

.hotspot-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-dark);
}

/* Hotspot Preview Card */
.hotspot-preview {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 180px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: all 0.25s ease;
    overflow: hidden;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.hotspot-preview::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--color-white);
}

.hotspot-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hotspot-preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.hotspot-preview-content {
    width: 100%;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hotspot-preview-title {
    display: none;
}

.hotspot-preview-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hotspot-preview-action i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.hotspot:hover .hotspot-preview {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.hotspot:hover {
    z-index: 1000;
}

.hotspot:hover .hotspot-preview-action i {
    transform: translateX(3px);
}

.hotspot:hover .hotspot-pulse {
    background: var(--color-accent-dark);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Catalog Section Titles (override style.css) */
.catalog-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--color-dark);
    opacity: 0.8;
    position: relative;
    display: inline-block;
}

/* Remove underline from catalog section titles */
.catalog-section .section-title:after {
    display: none;
}

/* Product Sliders */
.slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.product-grid {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-behavior: smooth;

    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--color-accent);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.slider-btn:hover {
    opacity: 1;
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: -10px;
}

.slider-btn.next {
    right: -10px;
}

.product-card {
    flex: 0 0 calc(20% - 10px);
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-img {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

/* Removed product-info as titles are now gone from cards */


/* Responsive */
@media (max-width: 1400px) {
    .product-card {
        flex: 0 0 calc(25% - 9px);
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(33.33% - 8px);
    }
}

@media (max-width: 768px) {
    .catalog-main-header {
        font-size: 2.2rem;
        margin: 10px 0 8px;
        padding-bottom: 6px;
    }

    .catalog-sub-header {
        font-size: 1.6rem;
        margin: 10px 0 6px;
    }

    .catalog-hero {
        height: 50vh;
        min-height: 400px;
    }

    .catalog-hero .hero-content {
        padding: 40px 20px;
        margin: 0 15px;
    }

    .slider-wrapper {
        padding: 0 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .slider-btn.prev {
        left: -5px;
    }

    .slider-btn.next {
        right: -5px;
    }

    .product-grid {
        gap: 10px;
        padding: 10px 5px 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .product-card {
        scroll-snap-align: start;
        flex: 0 0 calc(46% - 5px);
        border-radius: 10px;
    }

    .product-img {
        aspect-ratio: 1 / 1;
        padding: 10px;
    }

    .catalog-group {
        margin-bottom: 15px;
    }

    .catalog-subgroup {
        margin-bottom: 12px;
    }

    /* Interactive map mobile */
    .interactive-catalog-map {
        padding: 25px 0;
    }

    .map-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .map-nav-btn.prev {
        left: -15px;
    }

    .map-nav-btn.next {
        right: -15px;
    }

    .map-dots {
        margin-top: 20px;
        gap: 12px;
    }

    .map-dots .dot {
        width: 14px;
        height: 14px;
    }

    .map-dots .dot.active {
        width: 32px;
    }

    .hotspot {
        width: 50px;
        height: 50px;
    }

    .hotspot-pulse {
        width: 14px;
        height: 14px;
    }

    .hotspot-pulse::before {
        width: 7px;
        height: 7px;
    }

    .hotspot-preview {
        width: 160px;
        bottom: 35px;
    }

    .hotspot-preview-image {
        height: 180px;
        padding: 15px;
    }

    .hotspot-preview-content {
        padding: 8px 12px;
    }

    .hotspot-preview-action {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 calc(46% - 5px);
    }

    .catalog-hero {
        min-height: 300px;
    }

    .catalog-hero .hero-content h1 {
        font-size: 2.5rem;
    }
}