/* Product Page - Premium Fashion Layout */
.product-page {
min-height: 100vh;
font-family: var(--product-font);
background-color: var(--product-bg-color);
}

/* Product Page Floating Notice Styles */
.single-product .woocommerce-message,
.single-product .woocommerce-error,
.single-product .woocommerce-info {
position: fixed;
top: 100px;
right: 20px;
padding: 16px 24px;
z-index: 999999;
max-width: 400px;
font-size: 14px;
animation: slideIn 0.3s ease;
border-radius: 4px;
color: #fff;
}

.single-product .woocommerce-message {
background: #111331;
}

.single-product .woocommerce-error {
background: #c62828;
}

.single-product .woocommerce-info {
background: #1565c0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Cart page notices — scoped to avoid affecting other pages */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info {
    position: static;
    margin: 20px;
}

/* Breadcrumb */
.breadcrumb-area {
    background: #f9f9f9;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-box ul li {
    font-size: 13px;
    color: #888;
}

.breadcrumb-box ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-box ul li a:hover {
    color: #333;
}

.breadcrumb-box ul li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #ccc;
}

/* Product Detail Area */
.product-detail-area {
    padding: 50px 0 100px;
}

/* Product Wrapper */
.product-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Custom Gallery */
.custom-gallery {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
}

.thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 667px;
    overflow-y: auto;
}

.thumbs::-webkit-scrollbar {
    width: 4px;
}

.thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumb {
    width: 80px !important;
    min-width: 80px !important;
    height: 107px !important;
    min-height: 107px !important;
    object-fit: cover !important;
    object-position: center center !important;
    cursor: pointer;
    border: 2px solid #eee;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 4px;
    background: #f5f5f5;
    display: block !important;
    flex-shrink: 0;
    aspect-ratio: 3 / 4 !important;
}

.thumb:hover {
    opacity: 0.9;
    border-color: #ccc;
}

.thumb.active {
    border: 2px solid #333;
    opacity: 1;
}

.main-image-wrapper {
    width: 500px;
    aspect-ratio: 3 / 4;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    max-width: 500px;
    padding-top: 10px;
}

.product-title {
font-size: 28px;
font-weight: 400;
letter-spacing: 0.5px;
line-height: 1.2;
margin: 0 0 15px;
color: var(--product-title-color);
}

.product-meta-top {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-meta-top .sku {
    display: block;
    margin-bottom: 5px;
}

.product-meta-top .posted_in,
.product-meta-top .tagged_as {
    display: block;
    margin-bottom: 3px;
}

.product-meta-top a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.product-meta-top a:hover {
    color: #333;
}

.product-price {
font-size: 28px;
font-weight: 500;
margin-bottom: 20px;
color: var(--product-price-color);
}

.product-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
}

.product-price del {
    font-size: 18px;
    color: #999;
    margin-right: 10px;
    font-weight: 400;
}

.product-price del .woocommerce-Price-amount {
    text-decoration: line-through;
}

.product-price del {
    opacity: 0.7;
}

.product-price ins {
    text-decoration: none;
}

.product-price .amount {
    color: var(--product-sale-price-color);
}

.product-short-desc {
font-size: 15px;
line-height: 1.7;
margin-bottom: 25px;
padding-bottom: 25px;
border-bottom: 1px solid #eee;
color: var(--product-desc-color);
}

.product-short-desc p {
    margin: 0;
}

/* Variation Groups */
.variation-group {
    margin-bottom: 25px;
}

.variation-label {
font-size: 14px;
color: var(--product-title-color);
margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variation-label .selected-value {
    color: #999;
    font-weight: 400;
}

.variation-label .size-color-hint {
    font-size: 12px;
    color: #e67e22;
    font-weight: 400;
}

/* Size Options */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    min-width: 55px;
    height: 48px;
    padding: 0 20px;
    background: var(--product-size-btn-bg);
    border: 1px solid var(--product-size-btn-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--product-size-btn-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover {
    border-color: var(--product-title-color);
    background: #fafafa;
}

.size-btn.selected {
    background: var(--product-selected-bg);
    color: var(--product-selected-text);
    border-color: var(--product-selected-bg);
}

.size-btn.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5 !important;
    border-color: #ddd !important;
}

.size-btn.out-of-stock,
.size-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    position: relative;
    background: #f5f5f5 !important;
}

.size-btn.pending-color {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
    background: #f0f0f0 !important;
}

.size-btn.out-of-stock::after,
.size-btn:disabled::after,
.size-btn.pending-color::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #999;
    transform: rotate(-10deg);
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-swatch {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 1px #ddd;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch:hover {
    box-shadow: 0 0 0 2px #999;
    transform: scale(1.1);
}

.color-swatch.selected {
    box-shadow: 0 0 0 2px #333;
}

.color-swatch.selected .color-check {
    display: block;
}

.color-check {
    display: none;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.color-swatch.out-of-stock,
.color-swatch:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    position: relative;
}

.color-swatch.out-of-stock::after,
.color-swatch:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 2px;
    background: #999;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Stock Indicator */
.stock-indicator {
    width: 100%;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.stock-indicator.low-stock {
    color: #e67e22;
}

.stock-indicator.out-of-stock {
    color: #e74c3c;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
width: 44px;
height: 50px;
border: none;
font-size: 20px;
cursor: pointer;
transition: background 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
background: var(--product-qty-btn-bg);
color: var(--product-qty-btn-text);
}

.qty-btn:hover {
    background: #eee;
}

.qty-input {
    width: 50px;
    height: 50px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    -moz-appearance: textfield;
    background: #fff;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Add to Cart Button */
.add-to-cart-btn {
    flex: 1;
    height: 52px;
    padding: 0 30px;
    background: var(--product-btn-bg);
    color: var(--product-btn-text);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: var(--product-btn-hover-bg);
}

.add-to-cart-btn i {
    font-size: 16px;
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
}

.add-to-cart-btn.out-of-stock {
    background: #999 !important;
}

/* Wishlist Button */
.product-actions .wishlist-btn {
    width: 52px;
    height: 52px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--product-wishlist-bg, #ffffff) !important;
    border-color: var(--product-wishlist-border, #dddddd) !important;
    color: var(--product-wishlist-icon, #333333) !important;
}

.product-actions .wishlist-btn:hover {
    border-color: var(--product-wishlist-icon-active, #c09578) !important;
}

.product-actions .wishlist-btn:hover i {
    color: var(--product-wishlist-icon-active, #c09578);
}

.product-actions .wishlist-btn.in-wishlist {
    border-color: var(--product-wishlist-icon-active, #c09578) !important;
    color: var(--product-wishlist-icon-active, #c09578) !important;
    background: transparent !important;
}

.product-actions .wishlist-btn.in-wishlist:hover {
    background: rgba(192, 149, 120, 0.08) !important;
}

.product-actions .wishlist-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Product Full Description */
.product-full-description {
    margin-top: 10px;
}

.product-full-description h3 {
font-size: 16px;
font-weight: 600;
margin: 0 0 15px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--product-desc-title-color);
}

.product-full-description p,
.product-full-description div {
color: var(--product-desc-color);
}

.product-full-description p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 15px;
}

.product-full-description ul,
.product-full-description ol {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 15px 20px;
}

.product-full-description li {
    margin-bottom: 5px;
}


.wc-native-variations-wrapper {
display: none !important;
position: absolute !important;
left: -9999px !important;
opacity: 0 !important;
height: 0 !important;
overflow: hidden !important;
pointer-events: none !important;
}

.wishlist-btn__label {
display: none !important;
}

/* WooCommerce Variations Form - Hide Default Elements */
.variations_form table.variations {
display: none !important;
}

.variations_form .variations {
display: none !important;
}

.variations_form .variations_button {
display: none !important;
}

.variations_form .single_variation_wrap {
display: none !important;
}

.variations_form .single_add_to_cart_button {
display: none !important;
}

.variations_form .woocommerce-variation-add-to-cart {
display: none !important;
}

.variations_form .reset_variations {
display: none !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-wrapper {
        gap: 50px;
    }
    
    .custom-gallery {
        width: 480px;
    }
    
    .main-image {
        width: 400px;
    }
}

@media (max-width: 992px) {
    .product-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .product-info {
        max-width: 100%;
        width: 100%;
    }
    
    .custom-gallery {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .product-detail-area {
        padding: 30px 0 60px;
    }
    
    .breadcrumb-box ul li {
        font-size: 12px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .wishlist-btn {
        width: 52px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 22px;
    }
    
    .product-short-desc {
        font-size: 14px;
    }
    
    .size-btn {
        min-width: 48px;
        height: 44px;
        padding: 0 15px;
        font-size: 13px;
    }
    
    .color-swatch {
        width: 36px;
        height: 36px;
    }
    
    .add-to-cart-btn {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    /* Mobile Gallery */
    .custom-gallery {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    
    .thumb {
        min-width: 60px;
        width: 60px;
        height: 75px;
    }
    
    .main-image {
        width: 100%;
    }
}

/* Cross-sells Section */
.product-crosssells {
    padding: 50px 0;
    border-top: 1px solid #eee;
}

.product-crosssells .container {
    max-width: 1200px;
}

.crosssell-title {
    margin: 0 0 25px;
    text-align: center;
    letter-spacing: 1px;
}

.crosssell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.crosssell-card {
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crosssell-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.crosssell-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.crosssell-image {
    position: relative;
    aspect-ratio: 1/1.3;
    overflow: hidden;
    background: #f5f5f5;
}

.crosssell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.crosssell-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    z-index: 2;
}

.crosssell-badge.sale {
    background: #c09578;
}

.crosssell-info {
    padding: 10px;
    border-top: 1px solid;
}

.crosssell-name {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 5px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crosssell-price {
    font-size: 13px;
    font-weight: 600;
}

.crosssell-price del {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}

.crosssell-price del .amount {
    text-decoration: line-through;
}

.crosssell-price ins {
    text-decoration: none;
}

@media (max-width: 992px) {
    .crosssell-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .crosssell-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .crosssell-title {
        font-size: 20px;
    }
    
    .crosssell-info {
        padding: 12px;
    }
    
    .crosssell-name {
        font-size: 12px;
    }
    
    .crosssell-price {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .crosssell-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ============================================
   IMAGE ZOOM & LIGHTBOX STYLES
   ============================================ */

.main-image-wrapper {
    position: relative;
    width: 500px;
}

.main-image-container {
    width: 500px;
    height: 667px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: zoom-in;
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
    display: block;
    transform-origin: center center;
}

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

.zoom-hint {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-container:hover .zoom-hint {
    opacity: 1;
}

.zoom-hint svg {
    opacity: 0.7;
}

.zoom-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    z-index: 10;
}

.zoom-fullscreen-btn:hover {
    background: #fff;
    color: #333;
    transform: scale(1.1);
}

/* Lightbox Modal */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-image-container {
    max-width: 85vw;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 8px;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive adjustments for gallery */
@media (max-width: 1200px) {
    .main-image-wrapper {
        width: 480px;
    }
    
    .main-image-container {
        width: 480px;
        height: 600px;
    }
}

@media (max-width: 992px) {
    .main-image-wrapper {
        width: 100%;
        max-width: 500px;
    }
    
    .main-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4/5;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
}
