/* Product Detail Page - Clean Implementation */
/* COMPLETELY INDEPENDENT - OVERRIDES ALL style.css RULES */

/* CRITICAL: Override ALL style.css rules that might interfere */
.product-detail-page .product-image,
.product-detail-page .image-item,
.product-detail-page .image-gallery,
.product-detail-page .product-images-column,
.product-images-column .product-image,
.product-images-column .image-item .product-image,
.image-gallery .product-image,
.image-item .product-image {
    /* Reset everything from style.css */
    position: static !important;
    aspect-ratio: 1 / 1 !important;
    overflow: visible !important;
    background: transparent !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Reset navigation buttons from any style.css interference */
.image-nav-btn,
.product-images-column .image-nav-btn {
    position: absolute !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.image-pagination,
.product-images-column .image-pagination {
    position: absolute !important;
    display: flex !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    /* Padding will be set in mobile media query */
}

.product-detail-page .product-image img,
.product-images-column .product-image,
.image-item .product-image {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
    position: static !important;
    overflow: visible !important;
}

.product-detail-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(5rem, 7vh, 6rem) 0 clamp(4rem, 6vh, 6rem) 0;
    background: #ffffff;
    position: relative;
}

.product-breadcrumb {
    position: fixed;
    top: clamp(60px, 8vh, 80px);
    left: 0;
    right: 0;
    width: 100vw;
    height: clamp(2.5rem, 4vw, 3.5rem);
    margin: 0;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    z-index: 1001;
    background: #ffffff;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.product-breadcrumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #000000;
    z-index: 1;
}

.product-breadcrumb a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.product-breadcrumb a:hover {
    opacity: 0.7;
}

.product-breadcrumb span {
    color: #666666;
    margin: 0 clamp(0.25rem, 0.5vw, 0.5rem);
}

/* Main Layout - Two Columns */
.product-detail-layout {
    display: grid;
    grid-template-columns: 50vw 1fr;
    gap: 0;
    position: relative;
    margin-left: calc((100vw - min(100vw, 1600px)) / -2);
    width: 100vw;
    max-width: none;
}

@media (max-width: 1600px) {
    .product-detail-layout {
        margin-left: 0;
        width: 100%;
        grid-template-columns: 50% 1fr;
    }
}

/* Vertical Divider Line */
.product-detail-layout::before {
    content: '';
    position: fixed;
    left: calc(50% - 0.5px);
    top: calc(clamp(60px, 8vh, 80px) + clamp(2.5rem, 4vw, 3.5rem));
    height: var(--line-height, auto);
    width: 1px;
    background-color: #000000;
    z-index: 998;
    pointer-events: none;
    box-sizing: border-box;
}

/* Left Column - Images with Independent Scroll */
.product-images-column {
    position: sticky;
    top: calc(clamp(60px, 8vh, 80px) + clamp(2.5rem, 4vw, 3.5rem));
    height: calc(100vh - clamp(60px, 8vh, 80px) - clamp(2.5rem, 4vw, 3.5rem));
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    align-self: start;
    position: relative;
}

.images-scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(2rem, 3vw, 3rem) 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    scroll-behavior: smooth;
}

.images-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}

.image-item {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    margin-top: clamp(1rem, 1.5vw, 1.5rem);
    position: relative;
    line-height: 0;
    font-size: 0;
}

.image-item:first-child {
    margin-top: 0;
}

/* Override ALL style.css rules for product images */
.image-item .product-image,
.product-images-column .product-image,
.image-gallery .product-image {
    width: 70% !important;
    max-width: 70% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
    vertical-align: top !important;
    line-height: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.image-divider {
    display: none !important;
}

.favorite-button {
    position: absolute;
    top: clamp(0.5rem, 0.8vw, 0.75rem);
    right: clamp(2rem, 3vw, 3rem);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 10;
    width: clamp(24px, 2.5vw, 28px);
    height: clamp(24px, 2.5vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    line-height: 0;
}

.favorite-button:hover {
    opacity: 0.7;
}

.favorite-icon {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(0);
    transition: filter 0.3s ease;
    object-fit: contain;
}

.favorite-button.active .favorite-icon,
.favorite-button:hover .favorite-icon {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(90deg);
}

/* Right Column - Product Info */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: clamp(0rem, 0.5vw, 0.5rem) clamp(2rem, 3vw, 3rem);
    background: #ffffff;
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.product-title {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    margin: 0;
    line-height: 1.4;
    padding: clamp(0.5rem, 0.8vw, 0.75rem) 0;
    text-align: center;
}

.product-price {
    font-family: 'Arial', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: #000000;
    margin: 0;
    padding: clamp(0.25rem, 0.5vw, 0.5rem) 0;
    text-align: center;
}

.price-new {
    color: #000000;
}

.price-old {
    color: #999999;
    text-decoration: line-through;
    margin-right: clamp(0.5rem, 0.8vw, 0.75rem);
}

.product-description {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-bottom: 1px solid #000000;
    text-align: center;
}

.color-thumbnails {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 1vw, 1rem);
    flex-wrap: wrap;
    padding: clamp(1rem, 1.5vw, 1.5rem) 0;
    margin: 0;
}

.thumbnail-item {
    flex-shrink: 0;
}

.thumbnail {
    width: clamp(60px, 5vw, 80px);
    height: clamp(60px, 5vw, 80px);
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: border-color 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #000000;
    border-width: 2px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #999999;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-section {
    margin: 0;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-bottom: 1px solid #000000;
}

.gender-buttons {
    display: flex;
    gap: clamp(0.5rem, 0.8vw, 0.75rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.gender-btn {
    padding: clamp(8px, 1vw, 12px) clamp(16px, 2vw, 24px);
    background: transparent;
    border: 1px solid #000000;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-btn:hover,
.gender-btn.active {
    background: #000000;
    color: #ffffff;
}

.size-selector {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    flex-wrap: wrap;
}

.size-selector label {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.size-selector select {
    padding: clamp(8px, 1vw, 12px) clamp(16px, 2vw, 24px);
    border: 1px solid #000000;
    background: transparent;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: #000000;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(12px, 1.5vw, 16px) center;
    padding-right: clamp(32px, 4vw, 40px);
    min-width: clamp(150px, 15vw, 200px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.size-selector select.error {
    border-color: #d32f2f;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.size-error-message {
    margin-top: clamp(8px, 1vw, 12px);
    padding: clamp(8px, 1vw, 12px);
    background-color: #ffebee;
    border: 1px solid #d32f2f;
    border-radius: 2px;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.65rem, 0.85vw, 0.75rem);
    color: #d32f2f;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.size-guide {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: #000000;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.size-guide:hover {
    opacity: 0.7;
}

.delivery {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: #000000;
    margin: 0;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-bottom: 1px solid #000000;
}

.add-to-cart {
    width: 100%;
    padding: clamp(14px, 2vw, 18px) clamp(24px, 3vw, 32px);
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.add-to-cart:hover {
    background: #333333;
    border-color: #333333;
}

.find-store {
    display: block;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: #000000;
    text-decoration: underline;
    margin: 0;
    padding: clamp(1.5rem, 2vw, 2rem);
    border-bottom: 1px solid #000000;
    transition: opacity 0.3s ease;
}

.find-store:hover {
    opacity: 0.7;
}

.info-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-item {
    border-bottom: 1px solid #000000;
}


.info-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 1.5vw, 1.5rem) 0;
    background: transparent;
    border: none;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.3s ease;
}

.info-toggle:hover {
    opacity: 0.7;
}

.info-toggle i {
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    transition: transform 0.3s ease;
}

.info-item.active .info-toggle i {
    transform: rotate(180deg);
}

.info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.info-item.active .info-content {
    max-height: 1000px;
    padding-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.info-content p {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: #000000;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-detail-page {
        padding: 0;
        max-width: 100%;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr !important;
        margin-left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-detail-layout::before {
        display: none !important;
    }
    
    .image-divider {
        display: none !important;
    }
    
    /* Images Section - Horizontal Scroll */
    .product-images-column {
        position: relative !important;
        height: 100vw !important;
        min-height: 100vw !important;
        max-height: 100vw !important;
        top: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
        order: 1;
    }
    
    .images-scroll-wrapper {
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        height: 100vw !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        touch-action: pan-x !important;
        overscroll-behavior-x: contain !important;
        position: relative !important;
    }
    
    .images-scroll-wrapper::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .image-gallery {
        display: flex !important;
        flex-direction: row !important;
        width: max-content !important;
        min-width: max-content !important;
        height: 100vw !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .image-item {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        height: 100vw !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    .image-item .product-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        pointer-events: none !important;
        user-select: none !important;
        -webkit-user-drag: none !important;
    }
    
    /* Ensure scroll wrapper is scrollable */
    .product-images-column {
        touch-action: pan-x !important;
    }
    
    /* Product Info Section */
    .product-info-column {
        padding: 1.5rem 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        order: 2;
        position: relative;
    }
    
    .favorite-button {
        position: absolute !important;
        top: 1.5rem !important;
        right: 1.5rem !important;
        z-index: 100;
        width: 28px !important;
        height: 28px !important;
    }
    
    .product-title {
        padding: 0.5rem 0 !important;
        text-align: left !important;
        font-size: 0.875rem !important;
        margin: 0 !important;
    }
    
    .product-price {
        text-align: left !important;
        font-size: 1.25rem !important;
        margin: 0 !important;
        padding: 0.25rem 0 !important;
    }
    
    .product-description {
        text-align: left !important;
        padding: 1.5rem 0 !important;
        margin: 0 !important;
        font-size: 0.875rem !important;
    }
    
    .color-thumbnails {
        padding: 1rem 0 !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }
    
    .thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
    
    .size-section {
        padding: 1.5rem 0 !important;
        margin: 0 !important;
    }
    
    .gender-buttons {
        margin-bottom: 1rem !important;
        gap: 0.5rem !important;
    }
    
    .gender-btn {
        padding: 8px 16px !important;
        font-size: 0.7rem !important;
    }
    
    .size-selector {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        width: 100%;
    }
    
    .size-selector label {
        font-size: 0.7rem !important;
    }
    
    .size-selector select {
        width: 100% !important;
        min-width: auto !important;
        font-size: 0.7rem !important;
        padding: 8px 40px 8px 16px !important;
    }
    
    .delivery {
        padding: 1.5rem 0 !important;
        margin: 0 !important;
        font-size: 0.7rem !important;
    }
    
    .add-to-cart {
        margin: 0.5rem 0 0 0 !important;
        padding: 14px 24px !important;
        font-size: 0.75rem !important;
        width: 100% !important;
    }
    
    .find-store {
        padding: 1.5rem 0 !important;
        margin: 0 !important;
        font-size: 0.7rem !important;
        text-align: center !important;
    }
    
    .info-sections {
        margin: 0 !important;
    }
    
    .info-toggle {
        padding: 1rem 0 !important;
        font-size: 0.7rem !important;
    }
    
    .info-content p {
        font-size: 0.7rem !important;
    }
    
    /* Image Navigation Buttons - Mobile Only */
    .product-images-column .image-nav-btn {
        position: absolute !important;
        top: 50vw !important;
        transform: translateY(-50%) !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid #000000 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 1000 !important;
        transition: all 0.3s ease !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: auto !important;
    }
    
    .product-images-column .image-nav-btn:hover {
        background: #000000 !important;
    }
    
    .product-images-column .image-nav-btn i {
        font-size: 14px !important;
        color: #000000 !important;
    }
    
    .product-images-column .image-nav-btn:hover i {
        color: #ffffff !important;
    }
    
    .product-images-column .image-nav-prev {
        left: 0.75rem !important;
    }
    
    .product-images-column .image-nav-next {
        right: 0.75rem !important;
    }
    
    /* Pagination Dots - Mobile Only */
    .product-images-column .image-pagination {
        position: absolute !important;
        top: calc(100vw - 2.5rem) !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        gap: 0.5rem !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        padding: 0.5rem 1rem !important;
        border-radius: 20px !important;
        pointer-events: auto !important;
        width: auto !important;
        max-width: 90% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .pagination-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        border: none !important;
        background: #cccccc !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .pagination-dot.active {
        background: #000000 !important;
        width: 24px !important;
        border-radius: 4px !important;
    }
}

/* Desktop Navigation Buttons */
.desktop-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
}

.desktop-nav-btn:hover {
    background: #000000 !important;
}

.desktop-nav-btn i {
    font-size: 18px !important;
    color: #000000 !important;
}

.desktop-nav-btn:hover i {
    color: #ffffff !important;
}

.desktop-nav-btn.image-nav-prev {
    left: clamp(1rem, 2vw, 2rem) !important;
}

.desktop-nav-btn.image-nav-next {
    right: auto !important;
    left: calc(50% - 60px) !important;
}

/* Show desktop nav buttons on desktop */
@media (min-width: 769px) {
    .desktop-nav-btn {
        display: flex !important;
    }
    
    .mobile-nav-btn,
    .image-pagination {
        display: none !important;
    }
}

/* Hide desktop nav buttons on mobile */
@media (max-width: 768px) {
    .desktop-nav-btn {
        display: none !important;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-detail-layout {
        margin-left: 0;
        width: 100%;
        grid-template-columns: 50% 1fr;
    }
    
    .product-images-column {
        height: calc(100vh - clamp(60px, 8vh, 80px) - clamp(2.5rem, 4vw, 3.5rem));
    }
}

/* Size Guide Popup */
.size-guide-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.size-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.size-guide-content {
    position: relative;
    background: #ffffff;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 3rem 3rem 3rem;
    box-sizing: border-box;
    z-index: 10001;
    border-radius: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.size-guide-content::-webkit-scrollbar {
    display: none;
}

.size-guide-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    color: #000000;
    transition: opacity 0.3s ease;
}

.size-guide-close:hover {
    opacity: 0.7;
}

.size-guide-title {
    font-family: 'Arial', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    margin: 0 0 2rem 0;
    text-align: center;
}

.size-guide-section {
    margin-bottom: 2rem;
}

.size-guide-section:last-child {
    margin-bottom: 0;
}

.size-guide-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    margin: 0 0 1.5rem 0;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
}

.size-guide-table thead {
    border-bottom: 1px solid #000000;
}

.size-guide-table th {
    text-align: left;
    padding: 1rem 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    border-bottom: 1px solid #000000;
}

.size-guide-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    color: #000000;
}

.size-guide-table tbody tr:last-child td {
    border-bottom: none;
}

.size-guide-table tbody tr:hover {
    background: #f8f8f8;
}

/* Mobile Responsive for Size Guide */
@media (max-width: 768px) {
    .size-guide-popup {
        padding: 1rem;
    }
    
    .size-guide-content {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        max-height: 90vh;
        width: 98%;
        border-radius: 0;
    }
    
    .size-guide-section {
        margin-bottom: 1.5rem;
    }
    
    .size-guide-title {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .size-guide-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .size-guide-table {
        font-size: 0.75rem;
    }
    
    .size-guide-table th,
    .size-guide-table td {
        padding: 0.75rem 0.25rem;
    }
}