:root {
    --primary-color: #F8931F;
    --secondary-color: #032A55;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --nav-height: 100px;
    --bg-light: #F5F5F5;

    /* Hero Headers Sizes */
    --hero-h1-size: 150px;
    --hero-h2-size: 45px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

input,
button,
textarea,
select {
    font-family: inherit;
}

body {
    background-color: var(--text-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    z-index: 1000;
    color: var(--text-light);
    padding-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease, padding 0.3s ease, height 0.3s ease;
}

.main-header.nav-hidden {
    transform: translateY(-100%);
}


body:has(.main-nav.active) .main-header.nav-hidden {
    transform: translateY(0);
}

.main-header.scrolled,
.main-header.header-solid {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 0;
    height: 80px;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(120px, 25vw, 700px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
    height: 100%;
}


.logo {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-img {
    height: clamp(40px, 5vw, 60px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}


.main-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 35px);
}

.main-nav a {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active-nav {
    color: var(--primary-color);
}

.search-icon {
    font-size: 18px;
    background: white;
    color: var(--secondary-color);
    width: 35px;
    height: 35px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.search-icon:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}


.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    position: absolute;
    right: 45px;
    transform-origin: right center;
    transform: scaleX(0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-box.active {
    transform: scaleX(1);
    opacity: 1;
    visibility: visible;
}

.search-box input {
    height: 35px;
    width: 200px;
    border: none;
    border-radius: 20px;
    padding: 0 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-box input::placeholder {
    color: #999;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(248, 147, 31, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 147, 31, 0.6);
}


.productos-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #777;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


#hero-bg-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

#hero-bg-transition.active {
    opacity: 1;
}


.expansion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-nav-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-prev,
.hero-next {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.hero-prev:hover,
.hero-next:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}


.hero-text-container {
    flex: 0 0 50%;
    color: var(--text-light);
    padding-left: 40px;
    margin-top: 80px;
}

.hero-text-container h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: var(--hero-h2-size, 45px);
    font-weight: 400;
    margin-bottom: -5px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.hero-text-container h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: var(--hero-h1-size, 150px);
    font-weight: 400;
    line-height: 0.8;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-text-container.revealed h1,
.hero-text-container.revealed h2 {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-text-container.revealed h1 {
    transition-delay: 0.1s;
}


.hero-text-container .btn-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-image: url('../img/logo_nav/botton_pincel1.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    color: white;
    font-weight: 600;
    padding: 10px 45px;
    font-size: 17px;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: none;
    min-width: 170px;
    height: 62px;
}

.hero-text-container .btn-more:hover {
    transform: translateY(-2px) scale(1.05);
    color: white;
}


.hero-slider-container {
    flex-shrink: 0;
    width: 620px;
    margin-top: 22vh;
}

.hero-swiper {
    width: 100%;
    height: 230px;
    opacity: 0;
    visibility: hidden;
}

.hero-swiper.swiper-initialized {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.product-card {
    width: 190px;
    height: 220px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: transparent;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card.card-revealed {
    animation: cardsOpening 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardsOpening {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-label {
    display: none;
}


.product-card {
    pointer-events: auto;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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


.product-card.active-card {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


.product-card:not(.active-card) {
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:not(.active-card):hover {
    opacity: 1;
}

.product-card:not(.active-card):hover .card-img-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}


.product-card.card-click-effect {
    animation: cardPulse 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes cardPulse {
    0% {
        transform: scale(1.05);

    }

    40% {
        transform: scale(0.92);

    }

    100% {
        transform: scale(1.05);
    }
}


@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.6;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    animation: bounce 1.6s ease-in-out infinite;
}

.scroll-hint span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.scroll-hint i {
    font-size: 18px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .scroll-hint {
        bottom: 18px;
    }

    .scroll-hint span {
        font-size: 11px;
    }

    .scroll-hint i {
        font-size: 15px;
    }
}


.product-line-tag,
.product-category-name {
    display: none;
}


.product-details-extra {
    display: block;
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        padding: 40px 20px;
        padding-top: 100px;
    }

    .hero-text-container {
        width: 100%;
        padding-left: 0;
    }

    .hero-text-container h1 {
        font-size: 50px;
    }

    .hero-text-container h2 {
        font-size: 24px;
    }

    .hero-slider-container {
        flex: unset;
        width: 100%;
        max-width: 100%;
    }

    .hero-swiper {
        width: 100%;
        height: 160px;
    }

    .product-card {
        width: 110px;
        height: 155px;
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .productos-hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 70px 15px 25px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-text-container {
        width: 100%;
        padding-left: 0;
        margin-bottom: 20px;
    }

    .hero-text-container h1 {
        font-size: 45px;
        line-height: 1;
        margin-bottom: 10px;
    }

    .hero-text-container h2 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .hero-text-container .btn-more {
        margin: 0 auto;
        display: table;
        padding: 10px 24px;
        font-size: 14px;
    }

    .hero-swiper {
        width: 100%;
        height: 140px;
        margin-top: 20px;
    }

    .product-card {
        width: 90px;
        height: 130px;
        border-radius: 12px;
    }

    .hero-prev,
    .hero-next {
        display: flex !important;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text-container h1 {
        font-size: 30px;
    }

    .hero-text-container h2 {
        font-size: 16px;
    }

    .hero-swiper {
        height: 130px;
    }

    .product-card {
        width: 90px;
        height: 120px;
        border-radius: 12px;
    }
}



.mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001;
}


@media (max-width: 992px) {
    .main-nav ul {
        gap: 12px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .logo-img {
        height: 48px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        justify-content: space-between;
        gap: 0;
    }

    .logo {
        margin-top: 0;
        gap: 10px;
    }

    .logo-img {
        height: 44px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    /* Overlay oscuro al abrir menú móvil */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: -1;
    }

    .main-nav.active::before {
        opacity: 1;
        visibility: visible;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 85vw);
        height: 100vh;
        background-color: var(--secondary-color);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding-top: 90px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 0 20px;
    }

    .main-nav a {
        font-size: 16px;
        letter-spacing: 0.05em;
    }

    .btn-contact {
        display: inline-block;
        padding: 12px 30px;
    }

}






.products-layout {
    background-color: #fff;
    padding: 60px 0;
}

.products-wrapper-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 40px;
}

.sidebar-categories {
    flex: 0 0 280px;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.main-products-content {
    flex: 1;
}


.sidebar-line-item {
    margin-bottom: 20px;
}

.sidebar-line-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-line-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.sidebar-line-header i {
    font-size: 14px;
    color: #ccc;
    transition: transform 0.3s ease;
}

.sidebar-line-item.active .sidebar-line-header {
    border-bottom-color: transparent;
}

.sidebar-line-item.active .sidebar-line-header h3 {
    color: var(--secondary-color);
}

.sidebar-line-item.active .sidebar-line-header i {
    transform: rotate(180deg);
}

.sidebar-line-header:hover h3 {
    color: var(--primary-color);
}

.sidebar-categories-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    padding-left: 15px;
}

.sidebar-line-item.active .sidebar-categories-list {
    max-height: 1000px;
    padding-top: 15px;
    padding-bottom: 10px;
}

.category-filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-filter-item:hover {
    color: var(--primary-color);
}

.category-filter-item .custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.category-filter-item.active .custom-checkbox {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}


.category-filter-item.active .custom-checkbox::after {
    content: none;
}

.category-filter-item.active {
    font-weight: 700;
}


.dynamic-products-section {
    padding: 0;
    max-width: none;
    margin: 0;
    background-color: transparent;
    min-height: 400px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dynamic-products-section.loading {
    opacity: 0;
    transform: translateY(10px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
}

.product-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.product-img-wrapper {
    background-color: #F8F4F4;
    padding: 25px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px;
    border-radius: 15px;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.product-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.btn-product {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(248, 147, 31, 0.3);
}

.btn-product:hover {
    background-color: #e57d10;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(248, 147, 31, 0.4);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .products-layout {
        padding: 40px 0;
    }

    .products-wrapper-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .sidebar-categories {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 10px;
    }

    .sidebar-line-header {
        padding: 12px 15px;
        background: #fdfdfd;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .sidebar-line-item.active .sidebar-line-header {
        background: var(--secondary-color);
        border-color: var(--secondary-color);
        color: white;
    }

    .sidebar-line-item.active .sidebar-line-header h3 {
        color: white;
    }

    .sidebar-line-item.active .sidebar-line-header i {
        color: white;
    }

    .sidebar-categories-list {
        display: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 5px 15px;
        max-height: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .sidebar-categories-list::-webkit-scrollbar {
        display: none;

    }

    .sidebar-line-item.active .sidebar-categories-list {
        display: flex;
        max-height: none;
    }

    .category-filter-item {
        margin-bottom: 0;
        background: #f1f1f1;
        padding: 8px 18px;
        border-radius: 20px;
        white-space: nowrap;
        flex-shrink: 0;
        border: 1px solid transparent;
        font-size: 13px;
    }

    .category-filter-item.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .category-filter-item .custom-checkbox {
        display: none;
    }
}

@media (max-width: 992px) {
    .sidebar-line-item:not(.active) {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-item {
        padding: 8px;
    }

    .product-img-wrapper {
        padding: 10px;
        margin: 0;
        border-radius: 10px;
    }

    .product-details-extra {
        display: block;
        margin-top: 5px;
    }

    .product-name {
        display: block;
        font-size: 14px;
        margin-top: 5px;
        color: var(--text-dark);
        line-height: 1.2;
    }

    .product-brand {
        display: block;
        font-size: 11px;
        margin-top: 2px;
        color: #777;
    }

    .product-line-tag {
        display: block;
        font-size: 10px;
        color: var(--secondary-color);
        opacity: 0.7;
        text-transform: uppercase;
        margin-top: 5px;
    }

    .product-category-name {
        font-size: 13px;
        margin-top: 2px;
        color: var(--text-dark);
        font-weight: 600;
    }

    .product-name {
        font-size: 14px;
        margin-top: 8px;
    }

    .product-brand {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .btn-product {
        display: block;
        width: 100%;
        padding: 8px;
        font-size: 12px;
        margin-top: 12px;
        text-align: center;
    }
}


.product-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-viewer.active {
    visibility: visible;
    opacity: 1;
}

.viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 42, 85, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    z-index: 10;
    transform: scale(0.7);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-viewer.active .viewer-content {
    transform: scale(1);
}

.viewer-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background-color: white;
    padding: 20px;
}

.viewer-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 20;
}

.viewer-close:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #e57d10;
}

.product-img-wrapper {
    cursor: zoom-in;
}

body.viewer-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .viewer-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}



@media (min-width: 1440px) {

    .products-wrapper-container,
    .header-container,
    .hero-content {
        max-width: 1560px;
    }
}

@media (min-width: 1800px) {

    .products-wrapper-container,
    .header-container,
    .hero-content {
        max-width: 1760px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sidebar-categories {
        flex: 0 0 320px;
    }

    .hero-text-container h1 {
        font-size: 180px;
    }
}

@media (min-width: 2560px) {

    .products-wrapper-container,
    .header-container,
    .hero-content {
        max-width: 2400px;
    }

    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .sidebar-categories {
        flex: 0 0 400px;
    }

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

    .hero-text-container h1 {
        font-size: 240px;
    }
}