/* ========== GLOBAL VARIABLES ========== */
:root {
  --primary-blue: #2673B8;
  --background-base: #eeeeee;
  --surface-light: #F0F3F7;
  --accent-white: #F7F9FC;
  --text-primary: #1A2332;
  --text-body: #5A6B7F;
  --text-muted: #7A8A9E;
  --border-color: #D4DCE6;
  --border-light: #E3E9F0;
  --whatsapp-green: #25D366;
}

/* ========== GLOBAL RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--background-base);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-y pinch-zoom;
}

body.lightbox-open {
    overflow: hidden;
}

/* ========== PAGE LOADER ========== */
.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    z-index: 9999;
    gap: 10px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 700;
    letter-spacing: clamp(1.5px, 0.4vw, 2.5px);
    color: var(--text-primary);
}

.loader-subtext {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.5rem, 0.8vw, 0.65rem);
    font-weight: 500;
    letter-spacing: clamp(0.8px, 0.25vw, 1.5px);
    color: var(--primary-blue);
    text-transform: uppercase;
}

body.loaded .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========== SITE WRAPPER ========== */
.site-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded .site-wrapper {
    opacity: 1;
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(37, 211, 102, 0.25);
    z-index: 9998;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    touch-action: manipulation;
}

.whatsapp-float:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.35);
}

.whatsapp-float i {
    color: white;
    font-size: 24px;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--whatsapp-green);
    border-radius: 50%;
    opacity: 0;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ========== IMAGE LIGHTBOX ========== */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    touch-action: manipulation;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    touch-action: manipulation;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    z-index: 10002;
}

.lightbox-zoom-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-zoom-hint.show {
    opacity: 1;
}

/* ========== PRODUCT DETAIL PAGE STYLES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.product-detail-section {
    background: var(--background-base);
    padding: clamp(5rem, 6vw, 6.5rem) 0 clamp(1.5rem, 2.5vw, 2.5rem);
    min-height: 50vh;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.55rem, 0.7vw, 0.65rem) clamp(0.9rem, 1.3vw, 1.1rem);
    margin-bottom: clamp(1.2rem, 2vw, 1.6rem);
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.6rem, 0.75vw, 0.65rem);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    touch-action: manipulation;
}

.back-button i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.back-button:hover {
    background: var(--text-primary);
    color: var(--accent-white);
    border-color: var(--text-primary);
    transform: translateX(-3px);
}

.back-button:hover i {
    transform: translateX(-3px);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 3vw, 3rem);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    box-shadow: 0 3px 15px rgba(26, 35, 50, 0.05);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--border-light);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.04);
}

.image-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    pointer-events: none;
    z-index: 10;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}

.thumbnail {
    position: relative;
    padding-top: 100%;
    background: var(--border-light);
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.thumbnail.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(38, 115, 184, 0.2);
}

.thumbnail:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2vw, 1.6rem);
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.product-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.8rem, 0.95vw, 0.88rem);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.product-description {
    background: var(--accent-white);
    border: 1px solid var(--border-light);
    border-radius: 7px;
    padding: clamp(1rem, 1.5vw, 1.3rem);
}

.description-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 0.88vw, 0.8rem);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
}

.description-text {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.75rem, 0.88vw, 0.8rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-body);
    letter-spacing: 0.1px;
}

.specifications {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-light);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.specifications tr {
    border-bottom: 1px solid var(--border-color);
}

.specifications tr:last-child {
    border-bottom: none;
}

.specifications td {
    padding: clamp(0.7rem, 1vw, 0.9rem) clamp(0.9rem, 1.3vw, 1.1rem);
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.7rem, 0.82vw, 0.75rem);
}

.specifications td:first-child {
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: clamp(0.65rem, 0.75vw, 0.68rem);
    letter-spacing: 0.7px;
    width: 35%;
    background: rgba(38, 115, 184, 0.05);
}

.specifications td:last-child {
    font-weight: 500;
    color: var(--text-body);
    letter-spacing: 0.1px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-top: auto;
}

.action-btn {
    padding: clamp(0.8rem, 1vw, 0.9rem) clamp(1rem, 1.5vw, 1.3rem);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.68rem, 0.8vw, 0.73rem);
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    touch-action: manipulation;
}

.action-btn i {
    font-size: clamp(0.9rem, 1.05vw, 1rem);
}

.call-btn {
    background: var(--surface-light);
    color: var(--text-body);
}

.call-btn:hover {
    background: var(--text-primary);
    color: var(--accent-white);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 35, 50, 0.12);
}

.whatsapp-btn {
    background: var(--whatsapp-green);
    color: white;
    border-color: var(--whatsapp-green);
}

.whatsapp-btn:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

/* ========== BEST SELLERS SECTION ========== */
.best-sellers-section {
    background: var(--background-base);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 3vw, 2.8rem);
}

.section-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.65rem, 0.8vw, 0.7rem);
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 0.7rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    line-height: 1.2;
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(0.9rem, 1.3vw, 1.2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.bestseller-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    touch-action: manipulation;
}

.bestseller-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.bestseller-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(26, 35, 50, 0.12);
    border-color: var(--primary-blue);
}

.bestseller-card:hover::before {
    transform: scaleX(1);
}

.bestseller-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--border-light);
}

.bestseller-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bestseller-card:hover .bestseller-image {
    transform: scale(1.06);
}

.bestseller-name {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 0.9vw, 0.83rem);
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--text-primary);
    text-align: center;
    padding: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.bestseller-card:hover .bestseller-name {
    color: var(--primary-blue);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 991px) {
    .product-detail-section {
        padding: clamp(4.5rem, 5.5vw, 5.5rem) 0 clamp(1.5rem, 2.5vw, 2rem);
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .specifications td:first-child {
        width: 40%;
    }

    .best-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-layout {
        padding: clamp(1.2rem, 4vw, 1.5rem);
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .product-actions {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .specifications td {
        font-size: 0.68rem;
        padding: 0.65rem 0.8rem;
    }

    .specifications td:first-child {
        font-size: 0.6rem;
    }

    .best-sellers-grid {
        gap: 0.9rem;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float i {
        font-size: 21px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-layout {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    opacity: 0;
}

section {
    scroll-margin-top: 70px;
}

#whyChooseComponent,
#footerComponent {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}