/* Single Product Page Styles - Custom Design Implementation */

/* Product Page Header Styling - Homepage Style with Custom Colors */
.single-product .site-header {
    background-color: #EEEEEE !important;
    box-shadow: none !important;
    position: sticky !important;
    top: 0 !important;
    /* Stick right after top bar */
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: 1px solid #000000;
}

/* Top bar remains unchanged for consistency */
.single-product .top-bar {
    background-color: #0B926A;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

/* Product Page Header Text Black */
.single-product .primary-menu li a {
    color: #000000 !important;
    font-family: sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.single-product .primary-menu li a:hover {
    color: #0B926A !important;
}

.single-product .header-actions a {
    color: #000000 !important;
}

.single-product .header-actions a:hover {
    color: #0B926A !important;
}

.single-product .toggle-menu {
    color: #000000 !important;
}

.single-product .toggle-menu:hover {
    color: #0B926A !important;
}

/* Ensure cart count badge remains visible */
.single-product .cart-count {
    background-color: #0B926A !important;
    color: white !important;
}

/* Logo text styling for product page */
.single-product .logo-text {
    color: #0B926A;
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* Search dropdown styling for product page */
.single-product .search-dropdown {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.single-product .search-input {
    color: #333;
}

.single-product .search-btn {
    background-color: #0B926A;
    color: white;
}

/* Mobile menu styling for product page */
.single-product .mobile-menu {
    background-color: white;
}

.single-product .mobile-nav a {
    color: #333 !important;
}

.single-product .mobile-nav a:hover {
    color: #0B926A !important;
}

/* Adjust main content to account for absolute header */
.single-product .single-product-layout {
    margin-top: 0;
    /* No extra margin needed with sticky header */
}

/* Single Product Layout */
.single-product-layout {
    padding: 60px 0;
    background-color: white;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Images Gallery - Responsive Layout */
.product-images-gallery {
    width: 100%;
}

@media (min-width: 1024px) {
    .product-images-gallery {
        position: sticky !important;
        top: 100px !important;
        align-self: start !important;
    }
}

/* Desktop Gallery - Advanced Slider Layout */
.desktop-gallery {
    display: block;
    position: relative;
    max-width: 100%;
}

/* Desktop Slider Wrapper */
.desktop-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

/* Desktop Main Image Container */
.desktop-main-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* Square aspect ratio */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    cursor: pointer;
}

.desktop-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.desktop-main-image:hover img {
    transform: scale(1.05);
}

/* Desktop Slider Navigation - Elegant Hover Effect */
.desktop-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.desktop-slider-wrapper:hover .desktop-slider-nav {
    opacity: 1;
}

.desktop-slider-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(11, 146, 106, 0.95) 0%, rgba(8, 107, 78, 0.95) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.desktop-slider-btn:hover {
    background: linear-gradient(135deg, rgba(11, 146, 106, 1) 0%, rgba(8, 107, 78, 1) 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(11, 146, 106, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.desktop-slider-btn:active {
    transform: scale(0.95);
}

/* Desktop Slider Dots - Modern Design */
.desktop-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.desktop-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.desktop-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.desktop-dot.active {
    background: #0B926A;
    border-color: white;
    width: 12px;
    height: 12px;
}

/* Hide dots if only one image */
.desktop-slider-dots:has(.desktop-dot:only-child) {
    display: none;
}

/* Mobile Gallery - Hidden by default */
.mobile-gallery {
    display: none;
}

/* Mobile Slider Styles */
.mobile-slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-slider {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.mobile-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.mobile-slider .slide.active {
    opacity: 1;
}

.mobile-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    font-size: 16px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 20px;
    position: relative;
    z-index: 5;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dddddd;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Larger hit area for mobile */
.slider-dots .dot::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

.slider-dots .dot.active {
    background: #0B926A;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(11, 146, 106, 0.4);
}

.slider-dots .dot:hover {
    background: #0B926A;
    opacity: 0.8;
}

.product-images-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Old Main Product Image and Secondary Images - Removed for Desktop Slider */

/* Product Details */
.product-details {
    padding-left: 40px;
    max-width: 600px;
}

/* Best Seller Badge */
.best-seller-badge {
    margin-bottom: 20px;
}

.best-seller-text {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    text-transform: uppercase;
    color: #666;
    display: inline-block;
}

/* Product Title */
.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
    word-break: break-word;
}

/* Product Price Section */
.product-price-section {
    margin-bottom: 15px;
}

.price-display {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-display .sale-price,
.price-display .regular-price {
    text-decoration: none;
    margin: 0;
}

.price-display .sale-price del,
.price-display .regular-price del {
    display: none;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-rating .fas.fa-star,
.product-rating .far.fa-star {
    color: #ffd700;
    font-size: 14px;
}

.rating-count {
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
    color: #666;
}

/* Tax Info */
.tax-info {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Product Divider */
.product-divider {
    border-top: 1px solid #B3B3B3;
    margin: 20px 0;
}

/* Color Section */
.color-section {
    margin-bottom: 20px;
}

.color-label {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.selected-color-name {
    color: #666;
    text-transform: capitalize;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 37px;
    height: 37px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

.color-option:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Description Section */
.description-section {
    margin-bottom: 20px;
}

.description-title {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.description-text {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Full description styling with proper WordPress content formatting */
.description-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.description-text ul,
.description-text ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.description-text li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.description-text h1,
.description-text h2,
.description-text h3,
.description-text h4,
.description-text h5,
.description-text h6 {
    color: #333;
    margin: 20px 0 10px 0;
    font-family: 'Cormorant Garamond', serif;
}

.description-text strong,
.description-text b {
    font-weight: 600;
    color: #333;
}

.description-text em,
.description-text i {
    font-style: italic;
}

.description-text a {
    color: #0B926A;
    text-decoration: none;
}

.description-text a:hover {
    text-decoration: underline;
}

.description-text blockquote {
    border-left: 4px solid #0B926A;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* Size Section */
.size-section {
    margin-bottom: 20px;
}

.size-label {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.size-dropdown {
    width: 100% !important;
    max-width: 457px;
    height: 44px;
    border: 1px solid #888888;
    border-radius: 4px;
    padding: 0 15px;
    box-sizing: border-box !important;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    color: #666;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
    display: block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px !important;
}

.size-dropdown:focus {
    border-color: #333;
}

.size-dropdown option {
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 30px;
}

.quantity-label {
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    color: #333;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.quantity-controls {
    display: flex;
    align-items: center;
    width: 120px;
    border: 1px solid #888888;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 35px;
    height: 42px;
    border: none;
    background-color: #f5f5f5;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 50px;
    height: 42px;
    border: none;
    text-align: center;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333;
    outline: none;
    background-color: white;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-to-cart-btn {
    width: 100%;
    max-width: 460px;
    /* Same width as buy now button */
    height: 48px;
    /* Increased height for better text display */
    padding: 14px 40px;
    /* Proper padding for text visibility */
    font-size: 16px;
    /* Exact match homepage hero button */
    font-weight: 600;
    /* Exact match homepage hero button */
    letter-spacing: 1px;
    /* Exact match homepage hero button */
    border-radius: 0;
    /* Exact match homepage hero button */
    background-color: #00b894;
    /* Exact match homepage hero button */
    border: none;
    /* Exact match homepage hero button */
    color: white;
    /* Exact match homepage hero button */
    text-decoration: none;
    /* Exact match homepage hero button */
    display: inline-flex;
    /* Changed to flex for better text centering */
    align-items: center;
    /* Center text vertically */
    justify-content: center;
    /* Center text horizontally */
    transition: all 0.3s ease;
    /* Exact match homepage hero button */
    font-family: sans-serif;
    /* Exact match homepage hero button */
    text-transform: uppercase;
    /* Exact match homepage hero button */
    cursor: pointer;
    font-style: normal;
}

.add-to-cart-btn:hover {
    /* Exact match homepage hero button hover */
    background-color: #01a884;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

.buy-now-btn {
    width: 100%;
    max-width: 460px;
    /* Maintain same width */
    height: 48px;
    /* Increased height for better text display */
    padding: 14px 40px;
    /* Proper padding for text visibility */
    font-size: 16px;
    /* Exact match homepage hero button */
    font-weight: 600;
    /* Exact match homepage hero button */
    letter-spacing: 1px;
    /* Exact match homepage hero button */
    border-radius: 0;
    /* Exact match homepage hero button */
    background-color: #00b894;
    /* Exact match homepage hero button */
    border: none;
    /* Exact match homepage hero button */
    color: white;
    /* Exact match homepage hero button */
    text-decoration: none;
    /* Exact match homepage hero button */
    display: inline-flex;
    /* Changed to flex for better text centering */
    align-items: center;
    /* Center text vertically */
    justify-content: center;
    /* Center text horizontally */
    transition: all 0.3s ease;
    /* Exact match homepage hero button */
    font-family: sans-serif;
    /* Exact match homepage hero button */
    text-transform: uppercase;
    /* Exact match homepage hero button */
    cursor: pointer;
    font-style: normal;
}

.buy-now-btn:hover {
    /* Exact match homepage hero button hover */
    background-color: #01a884;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

/* Out of Stock */
.out-of-stock {
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    text-align: center;
    font-family: 'Century Gothic', sans-serif;
}

.out-of-stock p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-wrapper {
        gap: 40px;
    }

    .desktop-slider-wrapper {
        max-width: 600px;
    }

    .product-details {
        padding-left: 20px;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
        max-width: 400px;
        height: 46px;
        padding: 12px 35px;
    }

    .size-dropdown {
        width: 100%;
        max-width: 400px;
    }

    /* Header responsive on product page */
    .single-product .single-product-layout {
        margin-top: 0;
    }
}

@media (max-width: 992px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-details {
        padding-left: 0;
        max-width: 100%;
        text-align: left !important;
        overflow-x: hidden !important;
    }

    .desktop-slider-wrapper {
        max-width: 500px;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
        max-width: 400px;
        height: 46px;
        padding: 12px 30px;
    }

    .size-dropdown {
        width: 100%;
        max-width: 400px;
    }

    /* Header responsive - mobile menu active */
    .single-product .single-product-layout {
        margin-top: 0;
    }
}

@media (max-width: 768px) {

    /* Hide top bar on mobile for single product pages */
    .single-product .top-bar {
        display: none !important;
    }

    /* Adjust header positioning since top bar is hidden */
    .single-product .site-header {
        position: sticky !important;
        top: 0 !important;
    }

    /* Mobile Gallery Layout */
    .desktop-gallery {
        display: none !important;
    }

    .mobile-gallery {
        display: block !important;
    }

    .mobile-slider {
        height: 350px;
    }

    /* Show slider controls on mobile */
    .slider-nav {
        display: flex !important;
    }

    .slider-dots {
        display: flex !important;
    }

    .single-product-layout {
        padding: 40px 0;
    }

    .product-title {
        font-size: 22px;
    }

    .price-display {
        font-size: 18px;
    }

    .color-option {
        width: 35px;
        height: 35px;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px;
        height: 44px;
        padding: 12px 25px;
    }

    .size-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        height: 46px !important;
        font-size: 16px !important;
        /* Prevent iOS zoom and improve readability */
    }

    /* Header responsive - mobile stacked layout */
    .single-product .single-product-layout {
        margin-top: 90px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Mobile slider adjustments for small screens */
    .mobile-slider {
        height: 300px;
    }

    /* Show slider controls on small mobile devices */
    .slider-nav,
    .slider-dots {
        display: flex !important;
    }

    /* Related products - smaller cards for very small screens */
    .product-page-related .product-image {
        max-width: 100%;
    }

    .product-page-related .related-products-grid {
        gap: 12px;
    }

    .product-page-related .product-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .product-page-related .product-price {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .product-page-related .btn-shop {
        width: 90px;
        height: 28px;
        padding: 5px 10px;
        font-size: 8px;
        gap: 3px;
    }

    .product-page-related .btn-shop .shop-icon {
        width: 10px;
        height: 9px;
    }

    .product-title {
        font-size: 20px;
    }

    .price-display {
        font-size: 16px;
    }

    .best-seller-text,
    .color-label,
    .size-label,
    .quantity-label,
    .description-title {
        font-size: 14px;
    }

    .description-text {
        font-size: 14px;
    }

    .color-option {
        width: 32px;
        height: 32px;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        font-size: 13px;
        height: 42px;
        padding: 11px 20px;
    }

    .size-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        height: 46px !important;
        font-size: 16px !important;
        /* Prevent iOS zoom */
    }

    .quantity-controls {
        width: 100px;
    }

    .quantity-btn {
        width: 30px;
        height: 38px;
        font-size: 14px;
    }

    .quantity-input {
        width: 40px;
        height: 38px;
        font-size: 14px;
    }

    /* Header responsive - smallest screens */
    .single-product .single-product-layout {
        margin-top: 0;
    }
}

/* Product Page Related Section - Exact Featured Watches Styling */
.product-page-related {
    padding: 80px 0 60px;
    background: #F8F8F8;
    border-bottom: 1px solid #f0f0f0;
}

.product-page-related .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-page-related .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.product-page-related .section-title {
    font-size: 50px;
    font-weight: 300;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cormorant Garamond', serif;
}

.product-page-related .section-subtitle {
    font-size: 16px;
    color: #666666;
    margin: 0;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.product-page-related .related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .product-page-related .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.product-page-related .related-product-card {
    background: transparent;
    border: none;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-page-related .related-product-card:hover {
    transform: translateY(-5px);
}

.product-page-related .related-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-page-related .product-image {
    margin-bottom: 20px;
    padding: 0;
    background-color: #ffffff;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 97%;
    /* Aspect ratio 412:400 */
    overflow: hidden;
    position: relative;
}

.product-page-related .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-page-related .product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Legacy styles commented out 
.product-page-related .product-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .product-page-related .product-title {
        font-size: 20px;
    }
}
*/

.product-page-related .product-title a {
    color: #000000;
    text-decoration: none;
}

/* Legacy styles commented out
.product-page-related .product-price {
    font-size: 22px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 15px;
    font-family: 'Century Gothic', sans-serif;
}

@media (min-width: 1024px) {
    .product-page-related .product-price {
        font-size: 20px;
    }
}
*/

/* Legacy styles commented out
.product-page-related .btn-shop {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Century Gothic', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    min-width: 120px;
    white-space: nowrap;
}

.product-page-related .btn-shop:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.product-page-related .btn-shop:hover .shop-icon {
    filter: brightness(1) invert(1) !important;
}

.product-page-related .btn-shop:hover .btn-text {
    color: #ffffff !important;
}

.product-page-related .btn-shop .btn-text {
    display: inline-block;
    color: #000000 !important;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.product-page-related .btn-shop .shop-icon {
    display: inline-block;
    width: 21.75px;
    height: 21.75px;
    margin-right: 8px;
    background-image: url('../Images/Icons/basket.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    filter: brightness(0) !important;
}
*/





/* Additional Responsive Design for Related Section */
@media (max-width: 480px) {
    .product-page-related .product-image {
        max-width: 100%;
    }
}

/* Image Lightbox Modal */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #0B926A;
}

/* FINAL AGGRESSIVE MOBILE OVERFLOW FIX */
@media (max-width: 768px) {

    html,
    body.single-product {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
    }

    .product-wrapper,
    .product-details,
    .product-form,
    .size-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-align: left !important;
    }

    .size-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 15px 0 !important;
        font-size: 16px !important;
        height: 48px !important;
    }
}

/* Lightbox responsive design */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .close-lightbox {
        top: -35px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .close-lightbox {
        top: -30px;
        font-size: 20px;
    }
}