/* ============================================
   PRODUCT PAGE STYLES - AKASCO
   ============================================ */

/* Product Layout - Gallery Larger, Info Smaller */
.product-layout {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 50px !important;
}

/* ============================================
   PRODUCT GALLERY - Main Image Top, Thumbnails Bottom with Scroll
   ============================================ */

.product-gallery-wrapper {
    width: 100%;
}

.product-main-image {
    width: 100%;
    background: #F9F9F9;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 5px;
}

.product-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.active {
    border-color: #C5A572;
}

/* Scrollbar */
.product-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-radius: 4px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #C5A572;
    border-radius: 4px;
}

/* ============================================
   PRICE STYLES - RED SALE PRICE + CENTERED STRIKETHROUGH
   ============================================ */

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}

/* Regular price - with centered strikethrough */
.product-price del {
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    color: #9B9B9B !important;
    font-size: 18px !important;
    font-weight: 400 !important;
}

.product-price del::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #9B9B9B;
    transform: translateY(-50%);
}

/* Sale price - RED */
.product-price ins {
    text-decoration: none !important;
    color: #E53E3E !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.product-price ins span,
.product-price ins .woocommerce-Price-amount {
    color: #E53E3E !important;
}

/* ============================================
   VARIATION BUTTONS - BIGGER
   ============================================ */

.variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.variation-triangle {
    background: #FFFFFF;
    border: 1px solid #D4A373;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    min-width: 80px;
    text-align: center;
}

.variation-triangle:hover {
    background: #D4A373;
    color: #FFFFFF;
}

.variation-triangle.selected {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

/* ============================================
   OUT OF STOCK - CROSS LINE ON VARIATION
   ============================================ */

.variation-triangle.out-of-stock,
.variation-triangle.variation-out-of-stock,
.variation-triangle.disabled {
    position: relative;
    opacity: 0.6;
    background: #F5F5F5;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.variation-triangle.out-of-stock::after,
.variation-triangle.variation-out-of-stock::after,
.variation-triangle.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 2px;
    background: #E53E3E;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* ============================================
   FIX MOBILE PRODUCT PAGE
   ============================================ */

@media (max-width: 768px) {
    .product-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .product-images-side,
    .product-info-side {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-title {
        font-size: 22px !important;
    }
    
    .product-price ins {
        font-size: 20px !important;
    }
    
    .product-price del {
        font-size: 14px !important;
    }
    
    .variation-buttons {
        gap: 10px;
    }
    
    .variation-triangle {
        padding: 8px 16px !important;
        font-size: 12px !important;
        min-width: 60px;
    }
    
    .trust-badges {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .product-thumb {
        width: 60px;
        height: 60px;
    }
    
    .product-main-image {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-thumb {
        width: 55px;
        height: 55px;
    }
    
    .product-title {
        font-size: 20px !important;
    }
}

/* ============================================
   FIX GALLERY WIDTH - PREVENT OVERLAP
   ============================================ */

.product-images-side {
    width: 100%;
    max-width: 100%;
}

.product-gallery-wrapper {
    width: 100%;
    max-width: 100%;
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #F9F9F9;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 5px;
}

.product-thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
}

@media (max-width: 768px) {
    .product-main-image {
        max-width: 100%;
        min-height: 300px;
    }
    
    .product-thumbnails {
        max-width: 100%;
    }
    
    .product-thumb {
        width: 60px;
        height: 60px;
    }
}

.paypal-payin3-message {
    background: #F8F8F8;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 15px 0 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #E8E8E8;
}

.paypal-payin3-text strong {
    color: #C5A572;
    font-weight: 700;
}

.paypal-payin3-link {
    text-decoration: none;
    color: #4A4A4A;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.paypal-payin3-link:hover {
    color: #003087;
}

.paypal-payin3-logo {
    height: 14px;
    width: auto;
    vertical-align: middle;
}

.info-icon {
    font-size: 10px;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .paypal-payin3-message {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}



/* Make add to cart button full width */
.single_add_to_cart_button,
.cart button,
.product .add_to_cart_button {
    width: 100% !important;
}

/* ============================================
   PRODUCT PAGE - QUANTITY BOX STYLING
   ============================================ */

/* Quantity wrapper on product page */
.single-product .quantity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F9F9F9;
    border: 1px solid #E0E0E0;
    border-radius: 30px;
    padding: 4px 12px;
}

/* Quantity input field */
.single-product .quantity .qty {
    width: 60px !important;
    height: 44px !important;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1A1A1A;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

/* Remove spinner buttons */
.single-product .quantity .qty::-webkit-inner-spin-button,
.single-product .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Quantity buttons (+ / -) */
.single-product .quantity .plus,
.single-product .quantity .minus {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 500;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-product .quantity .plus:hover,
.single-product .quantity .minus:hover {
    background: #C5A572;
    border-color: #C5A572;
    color: #FFFFFF;
}

/* Mobile */
@media (max-width: 768px) {
    .single-product .quantity {
        padding: 2px 10px;
    }
    
    .single-product .quantity .qty {
        width: 50px !important;
        height: 38px !important;
        font-size: 14px;
    }
    
    .single-product .quantity .plus,
    .single-product .quantity .minus {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

