/* Single Product Page Styles */

/* ===== Variables ===== */
:root {
    --primary-blue: #1B5A9B;
    --light-blue: #A3DEFF;
    --gradient-blue: linear-gradient(270deg, #294AFF 0%, #1FD3FF 100%);
    --text-gray: #8B8B8B;
    --border-gray: #E4E4E4;
    --white: #FFFFFF;
    --container-max-width: 1458px;
    --content-padding: 40px;
}

/* ===== Main Container ===== */
.single-product-page {
    padding-top: 80px;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.product-main-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 40px 60px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.product-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ===== Product Gallery Section ===== */
.product-gallery-section {
    position: sticky;
    top: 20px;
}

.product-gallery-section .woocommerce-product-gallery {
    position: relative;
}

.product-gallery-section img {
    width: 100%;
    height: auto;
    max-height: 564px;
    object-fit: contain;
    border-radius: 8px;
}

/* WooCommerce Gallery Overrides */
.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce-product-gallery__image {
    margin-bottom: 20px;
}

.flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.flex-control-thumbs li {
    flex: 1;
    max-width: 100px;
}

/* ===== Product Info Section ===== */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Product Badges */
.product-badges {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
}

.badge-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.badge-item span {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 22px;
    white-space: nowrap;
}

/* Product Title */
.store-product-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 50px;
    line-height: 60px;
    color: var(--primary-blue);
    margin: 0 0 40px 0;
}

/* Pricing */
.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.old-price {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    line-height: 36px;
    color: var(--primary-blue);
    text-decoration: line-through;
}

.current-price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 67px;
    line-height: 81px;
    color: var(--primary-blue);
}

.current-price .woocommerce-Price-amount {
    display: block;
}

.payment-info {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    line-height: 36px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Add to Cart */
.product-add-to-cart {
    margin-top: 20px;
}

.product-add-to-cart .single_add_to_cart_button {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 18px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 256px;
    text-align: center;
}

.product-add-to-cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 74, 255, 0.3);
}

.product-add-to-cart .quantity {
    margin-bottom: 20px;
}

.product-add-to-cart .quantity input {
    width: 80px;
    height: 50px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
}

/* ===== Product Description Section ===== */
.product-description-section {
    max-width: var(--container-max-width);
    margin: 80px auto 0;
    padding: 0 20px;
}

.product-description-section .section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.icon-wrapper {
    width: 61px;
    height: 61px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 41px;
    color: var(--primary-blue);
    margin: 0;
}

.description-content {
    margin-top: 60px;
}

.description-highlight {
    margin-bottom: 40px;
}

.description-highlight h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 23px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.description-highlight p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-gray);
}

.description-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    margin-top: 60px;
}

.column-divider {
    width: 1px;
    background: var(--border-gray);
    height: 400px;
    align-self: start;
}

.column-left, .column-right {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #333;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.product-specs li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

/* ===== Related Products Section ===== */
.related-products-section {
    max-width: var(--container-max-width);
    margin: 120px auto 80px;
    padding: 0 20px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px;
    background: var(--light-blue);
    border-radius: 138px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 19px;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.section-header-center h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 41px;
    color: var(--primary-blue);
    margin: 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.products-grid[data-columns="4"] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}


/* ===== Mobile Responsive Styles ===== */
@media (max-width: 768px) {
    /* Main Container */
    .single-product-page {
        padding-top: 20px;
    }
    
    .product-main-container {
        padding: 20px;
        border-radius: 0;
        margin: 0 10px;
    }
    
    .product-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Gallery */
    .product-gallery-section {
        position: relative;
        top: auto;
    }
    
    .product-gallery-section img {
        max-height: 400px;
    }
    
    /* Product Info */
    .product-badges {
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 16px;
    }
    
    .badge-item span {
        font-size: 14px;
    }
    
    .store-product-title {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 24px;
    }
    
    /* Pricing */
    .old-price {
        font-size: 20px;
        line-height: 24px;
    }
    
    .current-price {
        font-size: 36px;
        line-height: 44px;
    }
    
    .payment-info {
        font-size: 18px;
        line-height: 24px;
    }
    
    /* Add to Cart Button */
    .product-add-to-cart .single_add_to_cart_button {
        width: 100%;
        min-width: unset;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    /* Description Section */
    .product-description-section {
        margin-top: 40px;
        padding: 0 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .description-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .column-divider {
        display: none;
    }
    
    .description-highlight h3 {
        font-size: 18px;
    }
    
    /* Related Products */
    .related-products-section {
        margin: 60px auto 40px;
        padding: 0 16px;
    }
    
    .section-header-center h2 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .products-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-main-container {
        padding: 30px 40px;
    }
    
    .product-content-wrapper {
        gap: 40px;
    }
    
    .store-product-title {
        font-size: 36px;
        line-height: 44px;
    }
    
    .current-price {
        font-size: 48px;
        line-height: 58px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-main-container {
        margin: 0;
        border-radius: 0;
    }
    
    .store-product-title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .current-price {
        font-size: 28px;
        line-height: 36px;
    }
    
    .payment-info {
        font-size: 16px;
        line-height: 20px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .flex-control-thumbs {
        flex-wrap: wrap;
    }
    
    .flex-control-thumbs li {
        max-width: 60px;
    }
}

.custom-add-to-cart-button {
    background: var(--gradient-blue);
    color: white !important;
    border: none;
    padding: 18px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 256px;
    text-align: center;
    width: 100%;
    display: block;
    text-decoration: none;
    box-shadow: none;
}

.custom-add-to-cart-button:hover {
    background: var(--gradient-blue);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 74, 255, 0.3);
    text-decoration: none;
}

.custom-add-to-cart-button:focus {
    background: var(--gradient-blue);
    color: white !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 74, 255, 0.3);
}

/* Custom quantity input styling */
.custom-cart-form .quantity input {
    width: 80px;
    height: 50px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-add-to-cart-button {
        min-width: unset;
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* ===== WhatsApp Contact Section ===== */
.whatsapp-contact-section {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8fffe 0%, #f0faf9 100%);
    border: 1px solid #e0f2f1;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whatsapp-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
}

/* Contact Message */
.contact-message {
    margin-bottom: 20px;
}

.contact-message h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--primary-blue);
    margin: 0 0 8px 0;
}

.contact-message p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: var(--text-gray);
    margin: 0;
}

/* WhatsApp Button */
.whatsapp-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.2);
    cursor: pointer;
    min-width: 200px;
}

.whatsapp-contact-button:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.whatsapp-contact-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-button:active {
    transform: translateY(0);
}

/* WhatsApp Icon */
.whatsapp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== Mobile Responsive Styles ===== */
@media (max-width: 768px) {
    .whatsapp-contact-section {
        margin: 24px 0;
        padding: 20px 16px;
        border-radius: 8px;
    }
    
    .contact-message h3 {
        font-size: 18px;
        line-height: 22px;
    }
    
    .contact-message p {
        font-size: 14px;
        line-height: 18px;
    }
    
    .whatsapp-contact-button {
        padding: 14px 24px;
        font-size: 15px;
        min-width: 180px;
        gap: 10px;
    }
    
    .whatsapp-icon {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .whatsapp-contact-section {
        margin: 20px 0;
        padding: 16px 12px;
    }
    
    .contact-message h3 {
        font-size: 16px;
        line-height: 20px;
    }
    
    .contact-message p {
        font-size: 13px;
        line-height: 16px;
    }
    
    .whatsapp-contact-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        min-width: unset;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-contact-section {
        padding: 22px;
    }
    
    .contact-message h3 {
        font-size: 19px;
        line-height: 23px;
    }
    
    .whatsapp-contact-button {
        padding: 15px 28px;
        min-width: 190px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .whatsapp-contact-section {
        border: 2px solid #128C7E;
        background: white;
    }
    
    .whatsapp-contact-button {
        border: 2px solid #25D366;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-contact-button {
        transition: none;
    }
    
    .whatsapp-contact-button:hover {
        transform: none;
    }
}