/*
Theme Name: Sprinkle Sisters
Theme URI: https://sprinklesisters.com
Author: Sprinkle Sisters
Author URI: https://sprinklesisters.com
Description: Artisanal sweets and sprinkles theme with animated pill background and playful design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sprinkle-sisters
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/
/* Custom Product Page Layout */

:root {
    --color-bg:           #F8EDE3;
    --color-primary:      #5C4033;
    --color-secondary:    #6B5244;
    --color-accent:       #D97757;
    --color-pink:         #DB0087;
    --color-pink-light:   #FFC5E9;
    --color-yellow-light: #FFF0B5;
    --color-yellow:       #FFDF5E;
    --color-border:       #EDE0D7;
    --color-white-70:     rgba(255, 255, 255, 0.70);

    --font-display: 'Fredoka One', cursive;
    --font-body:    'Nunito', sans-serif;

    --radius-card:  1.5rem;   /* 24px */
    --radius-pill:  9999px;

    --max-width:    80rem;    /* 1280px / screen-xl */
    --px:           1.5rem;   /* 24px horizontal padding */

    --transition-colors: color 0.2s ease, background-color 0.2s ease;
    --transition-all:    all 0.2s ease;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background-color: var(--color-pink);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition-all);
    text-decoration: none;
}


.btn-primary:hover {
    background-color: var(--color-yellow);
    color: var(--color-primary);
}

.custom-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.custom-product-container {
    display: flex;
    gap: 40px;
}

/* LEFT: Gallery */
.custom-product-gallery {
    flex: 1;
    max-width: 50%;
}

.custom-main-image {
    width: 100%;
    background-color: #d9d9d9;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-thumbnail-row {
    display: flex;
    gap: 12px;
}

.custom-thumbnail {
    flex: 1;
    aspect-ratio: 1 / 1;
    background-color: #d9d9d9;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT: Product Info */
.custom-product-info {
    flex: 1;
    max-width: 50%;
    /* display: flex; */
    flex-direction: column;
    justify-content: space-between;
}

.custom-title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.custom-product-title {
    font-size: 32px;
    font-weight: 400;
    margin: 0;
    color: #000;
}

.custom-product-price {
    font-size: 28px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
}

.custom-product-price .woocommerce-Price-amount {
    font-size: 28px;
}

.custom-product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}

.custom-product-description p {
    margin-bottom: 20px;
}

/* Add to Cart Button */
.custom-add-to-cart {
    margin-top: auto;
}

.custom-add-to-cart .cart {
    display: block;
}



/* Hide quantity selector if you want just the button like the image */
.custom-add-to-cart .quantity {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-product-container {
        flex-direction: column;
    }
    
    .custom-product-gallery,
    .custom-product-info {
        max-width: 100%;
    }
    
    .custom-title-price-row {
        flex-direction: column;
        gap: 10px;
    }
}

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

.woocommerce-product-gallery .flex-control-thumbs li {
    display: block;
    flex: 0 0 auto;
    margin: 0;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    cursor: pointer;
    display: block;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

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