/* ========== WooCommerce Single Product Page ========== */

.single-product-wrapper {
    background: #ffffff;
    padding: 40px 0 60px;
}

/* Product Title - Top of page */
.single-product-wrapper > .container > .product-title,
.single-product-wrapper > .container-fluid > .product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Product Meta Line: Rating, SKU, Stock */
.product-meta-line {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-meta-line .product-rating {
    display: flex;
    align-items: center;
}

.product-meta-line .product-rating .star-rating {
    font-size: 14px;
    margin: 0;
}

.product-meta-line .product-sku-inline {
    font-size: 13px;
    color: #666;
}

.product-meta-line .sku-label {
    font-weight: 600;
    margin-right: 5px;
}

.product-meta-line .sku-value {
    color: #333;
}

.product-meta-line .product-stock-status .in-stock {
    color: #4caf50;
    font-weight: 600;
    font-size: 13px;
}

.product-meta-line .product-stock-status .out-of-stock {
    color: #e74c3c;
    font-weight: 600;
    font-size: 13px;
}

/* Product Main Row */
.product-main-row {
    margin-bottom: 50px;
}

/* Gallery - WooCommerce Native */
.product-gallery-wrapper {
    position: sticky;
    top: 120px;
}

.product-gallery-wrapper .woocommerce-product-gallery {
    margin: 0;
    width: 100% !important;
}

.product-gallery-wrapper .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.product-gallery-wrapper .woocommerce-product-gallery__image {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-gallery-wrapper .woocommerce-product-gallery__image a {
    display: block;
}

.product-gallery-wrapper .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-gallery-wrapper .flex-control-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.product-gallery-wrapper .flex-control-thumbs li {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.product-gallery-wrapper .flex-control-thumbs li:hover,
.product-gallery-wrapper .flex-control-thumbs li .flex-active {
    border-color: #4caf50;
}

.product-gallery-wrapper .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.product-gallery-wrapper .flex-control-thumbs li img.flex-active,
.product-gallery-wrapper .flex-control-thumbs li:hover img {
    opacity: 1;
}

/* Zoom icon */
.product-gallery-wrapper .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Info */
.product-info-wrapper {
    padding-left: 30px;
}

.product-info-wrapper .product-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-info-wrapper .product-price {
    font-size: 22px;
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 25px;
}

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

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

.product-info-wrapper .product-price .price-tax-note {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.product-short-description {
    margin-bottom: 30px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.product-short-description p {
    margin-bottom: 15px;
}

/* Variations */
.product-variations,
.product-add-to-cart {
    margin-bottom: 25px;
}

.product-variations table.variations {
    width: 100%;
    margin-bottom: 20px;
}

.product-variations table.variations tr {
    display: block;
    margin-bottom: 15px;
}

.product-variations table.variations td.label {
    display: block;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 8px;
    font-size: 14px;
}

.product-variations table.variations td.label label {
    margin: 0;
}

.product-variations table.variations td.value {
    display: block;
}

.product-variations table.variations select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    background: #fff;
    cursor: pointer;
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.product-variations table.variations select:focus {
    outline: none;
    border-color: #4caf50;
}

/* Quantity and Add to Cart */
.product-add-to-cart .cart,
.product-variations .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-add-to-cart .quantity,
.product-variations .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.product-add-to-cart .quantity input.qty,
.product-variations .quantity input.qty {
    width: 50px;
    height: 44px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-add-to-cart .quantity input.qty::-webkit-outer-spin-button,
.product-add-to-cart .quantity input.qty::-webkit-inner-spin-button,
.product-variations .quantity input.qty::-webkit-outer-spin-button,
.product-variations .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-add-to-cart .cart,
.product-variations .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 15px;
}

.product-add-to-cart .quantity,
.product-variations .quantity {
    flex-shrink: 0;
}

.single_add_to_cart_button {
    background: #4caf50 !important;
    color: #ffffff !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    flex: 1 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single_add_to_cart_button:hover {
    background: #43a047 !important;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.product-meta .meta-label {
    color: #666;
}

.product-meta .meta-value,
.product-meta .meta-value a {
    color: #4caf50;
    text-decoration: none;
}

.product-meta .meta-value a:hover {
    text-decoration: underline;
}

/* Trust Box */
.product-trust-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-trust-box .trust-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.product-trust-box .trust-item:last-child {
    margin-bottom: 0;
}

.product-trust-box .trust-icon {
    color: #4caf50;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-trust-box .trust-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.product-trust-box .trust-text strong {
    color: #1e3a5f;
}

/* Customer Support Box */
.product-support-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-support-box .support-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    flex-shrink: 0;
}

.product-support-box .support-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.product-support-box .support-text span {
    display: block;
}

.product-support-box .support-text strong {
    color: #1e3a5f;
}

.product-support-box .support-text a {
    color: #4caf50;
    font-weight: 700;
    text-decoration: none;
}

.product-support-box .support-text a:hover {
    text-decoration: underline;
}

/* Social Share */
.product-social-share {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.product-social-share .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-social-share .share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.product-social-share .share-facebook {
    background: #1877f2;
}

.product-social-share .share-whatsapp {
    background: #25d366;
}

/* Product Meta Bottom */
.product-meta-bottom {
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.product-meta-bottom .meta-item {
    margin-bottom: 8px;
    color: #666;
}

.product-meta-bottom .meta-label {
    color: #666;
}

.product-meta-bottom .meta-item a {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
}

.product-meta-bottom .meta-item a:hover {
    color: #4caf50;
}

/* ========== Product Tabs - Vertical Layout ========== */
.product-tabs-wrapper {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.product-tabs-wrapper .woocommerce-tabs {
    margin: 0;
    display: flex;
    gap: 40px;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: none;
    flex-shrink: 0;
    width: 220px;
    border-right: 2px solid #eee;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-left: 3px solid transparent;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 20px 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    border-bottom: none;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li a:hover {
    color: #4caf50;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li.active {
    border-left-color: #4caf50;
    background: #f8f9fa;
}

.product-tabs-wrapper .woocommerce-tabs ul.tabs li.active a {
    color: #1e3a5f;
}

.product-tabs-wrapper .woocommerce-tabs .panel {
    padding: 0;
    flex: 1;
}

.product-tabs-wrapper .woocommerce-tabs .panel h2 {
    display: none;
}

.product-tabs-wrapper .woocommerce-tabs .panel p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* Responsive - Stack tabs on mobile */
@media (max-width: 767px) {
    .product-tabs-wrapper .woocommerce-tabs {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-tabs-wrapper .woocommerce-tabs ul.tabs {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 2px solid #eee;
        gap: 0;
    }
    
    .product-tabs-wrapper .woocommerce-tabs ul.tabs li {
        border-left: none;
        border-bottom: 3px solid transparent;
        margin-bottom: -2px;
    }
    
    .product-tabs-wrapper .woocommerce-tabs ul.tabs li.active {
        border-left-color: transparent;
        border-bottom-color: #4caf50;
        background: none;
    }
    
    .product-tabs-wrapper .woocommerce-tabs ul.tabs li a {
        padding: 12px 15px;
    }
}

/* Additional Info Table */
.product-tabs-wrapper .shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.product-tabs-wrapper .shop_attributes th,
.product-tabs-wrapper .shop_attributes td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.product-tabs-wrapper .shop_attributes th {
    text-align: left;
    font-weight: 600;
    color: #2d2d2d;
    width: 30%;
}

.product-tabs-wrapper .shop_attributes td {
    color: #666;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .product-info-wrapper {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .single-product-wrapper > .container > .product-title,
    .single-product-wrapper > .container-fluid > .product-title {
        font-size: 24px;
    }
    
    .product-gallery-wrapper {
        position: static;
    }
    
    .product-support-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .single-product-wrapper {
        padding: 20px 0 40px;
    }
    
    .single-product-wrapper > .container > .product-title,
    .single-product-wrapper > .container-fluid > .product-title {
        font-size: 20px;
    }
    
    .product-meta-line {
        gap: 12px;
    }
    
    .product-info-wrapper .product-price {
        font-size: 20px;
    }
    
    .product-tabs-wrapper .woocommerce-tabs ul.tabs {
        gap: 20px;
    }
    
    .product-tabs-wrapper .woocommerce-tabs ul.tabs li a {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .product-thumb {
        width: 60px;
        height: 60px;
    }
    
    .product-trust-box {
        padding: 15px;
    }
    
    .product-social-share {
        justify-content: center;
    }
}

/* ========== Legacy Section Styles (keep for compatibility) ========== */

/* ========== Section 2: Gallery + Benefits ========== */
.product-section-2 {
    background: #e8e8e8;
    padding: 80px 0;
}

.product-images-display {
    position: relative;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-image-item {
    flex: 1;
    min-width: 150px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.decorative-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: #c8e6c9;
    border-radius: 50% 40% 60% 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.product-benefits-content {
    padding-left: 40px;
}

.product-benefits-content h2,
.product-benefits-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d2d2d;
}

.product-benefits-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-benefits-content ul li {
    background: #e8f5e9;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #2d2d2d;
}

.product-benefits-content p {
    margin-top: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #555555;
}

.product-purchase-section {
    margin-top: 40px;
    padding-left: 40px;
}

.product-meta-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-price-wrapper {
    margin: 0;
}

.product-price-wrapper .price {
    font-size: 28px;
    font-weight: 700;
    color: #4caf50;
    line-height: 1;
}

.product-price-wrapper .price del {
    font-size: 20px;
    color: #999999;
    margin-right: 10px;
}

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

.product-sku-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
}

.sku-label {
    font-weight: 600;
    text-transform: uppercase;
}

.sku-value {
    font-family: monospace;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-add-to-cart-wrapper .cart {
    width: 100%;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
}

.quantity-wrapper .input-text.qty {
    width: 80px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.quantity-wrapper .input-text.qty:focus {
    outline: none;
    border-color: #4caf50;
}

.single_add_to_cart_button {
    background: #4caf50 !important;
    color: #ffffff !important;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.single_add_to_cart_button:hover {
    background: #45a049 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.single_add_to_cart_button:active {
    transform: translateY(0);
}

/* ========== Section 3: Images + Labels ========== */
.product-section-3 {
    background: #ffffff;
    padding: 80px 0;
}

.product-images-display-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-image-item-left {
    flex: 1;
    min-width: 150px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-image-item-left img {
    width: 100%;
    height: auto;
    display: block;
}

.product-labels-content {
    padding-left: 40px;
    margin-bottom: 30px;
}

.product-labels-content h2,
.product-labels-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d2d2d;
}

.product-labels-list {
    padding-left: 40px;
}

.product-label-item {
    background: #e8f5e9;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #2d2d2d;
    font-weight: 500;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .product-section-1,
    .product-section-2,
    .product-section-3 {
        padding: 60px 0;
    }

    .product-section-1 .product-text-content,
    .product-benefits-content,
    .product-labels-content {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .product-section-1 .product-text-content h2,
    .product-section-1 .product-text-content h3,
    .product-benefits-content h2,
    .product-benefits-content h3,
    .product-labels-content h2,
    .product-labels-content h3 {
        font-size: 28px;
    }

    .decorative-blob {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 767px) {
    .product-section-1,
    .product-section-2,
    .product-section-3 {
        padding: 40px 0;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .product-images-display,
    .product-images-display-left {
        flex-direction: column;
    }

    .decorative-blob {
        width: 250px;
        height: 250px;
    }
}
