/* 
 * Single Product Page - Custom User Design 
 * Adapted to Theme Variables
 */

/* Main Container - The Glass Card */
.single-product-container {
    max-width: 1200px;
    width: 95%;
    margin: 40px auto;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;

    /* Glassmorphism */
    background: var(--layer-1);
    /* Theme Variable */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--shadow-float);
    position: relative;
    z-index: 10;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-frame {
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    height: auto;
    /* Natural height */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: auto !important;
}

.image-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* ... (skipping unchanged lines) ... */

button.single_add_to_cart_button {
    flex: 1;
    padding: 20px;
    background: #007AFF !important;
    /* User requested specific blue */
    color: white;
    border: none;
    border-radius: 50px !important;
    /* More pill-shaped/modern as per trend, or user didn't specify exact value so I'll try a cleaner look */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    min-width: 200px;
}

.thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb {
    flex: 0 0 80px;
    /* Fixed width thumbnails */
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.thumb:hover {
    border-color: var(--glass-border);
}

.thumb.active {
    border-color: var(--color-primary);
    /* Theme Variable */
    transform: translateY(-2px);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Product Info */
.product-info {
    padding-top: 10px;
}

.brand-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
    color: var(--text-dim);
}

.brand-tag a {
    color: inherit;
    text-decoration: none;
}

h1.product_title {
    font-family: var(--font-family-base);
    /* Theme Font */
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.price {
    font-size: 1.8rem;
    font-weight: 400;
    /* Lighter weight as per design */
    margin-bottom: 24px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price del {
    color: var(--text-dim);
    font-size: 1.2rem;
}

.price ins {
    text-decoration: none;
}

/* Stock */
.stock-status-wrapper {
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.stock.in-stock {
    color: var(--color-success);
}

.stock.out-of-stock {
    color: var(--color-danger);
}

/* Hide default WooCommerce stock text (duplicates our custom one) */
p.stock {
    display: none !important;
}

.description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Controls / Variations (Visual Styling for standard WC forms) */
.variations {
    width: 100%;
    margin-bottom: 20px;
}

.variations td {
    display: block;
    padding: 5px 0;
}

.variations label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-primary);
}

.variations select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
}

/* Add to Cart */
.add-to-cart-wrapper form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.quantity {
    flex: 0 0 80px;
}

.quantity input {
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom Qty Buttons */
.qty-btn-wrapper {
    display: flex;
    align-items: center;
    background: var(--layer-1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    /* Smooth pill shape */
    padding: 4px;
    height: 50px;
    /* Fixed height */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qty-control {
    width: 32px;
    height: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.2) !important;
    /* Slight visibility */
    color: var(--color-primary) !important;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-control:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

button.single_add_to_cart_button {
    flex: 1;
    padding: 20px;
    background: #007AFF !important;
    /* User requested specific blue */
    color: white;
    border: none;
    border-radius: 8px !important;
    /* User asked for border radius, assuming a slight reduction or standard rounded rect */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    min-width: 200px;
}

button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background: #0062cc !important;
    /* Darker blue on hover */
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 900px) {
    .single-product-container {
        grid-template-columns: 1fr;
        padding: 0 !important;
        /* Zero padding on container */
        margin: 0 !important;
        width: 100% !important;
        gap: 15px;
        /* Tighter gap */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none;
    }

    .product-info {
        background: var(--layer-1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        /* Only top border maybe? or full */
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 15px !important;
        /* Reduced padding */
        box-shadow: var(--shadow-float);
        margin: 0 10px 20px 10px;
        /* Small side margins */
    }

    .image-frame {
        border-radius: 0 0 20px 20px;
        /* Rounded bottom only? Or just 0 if full bleed requested. Let's keep 20px but tighter */
        min-height: auto;
        aspect-ratio: 1/1;
        margin-bottom: 0;
    }

    /* Ensure image fills width if container has 0 padding */
    .product-gallery {
        gap: 10px;
    }

    h1.product_title {
        font-size: 1.5rem !important;
        /* Even smaller */
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .price {
        font-size: 1.2rem !important;
        margin-bottom: 12px;
    }

    .description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .thumbnails {
        padding-left: 10px;
    }

    /* Smaller add to cart area */
    .add-to-cart-wrapper form.cart {
        gap: 10px;
    }

    button.single_add_to_cart_button {
        min-width: auto;
        padding: 15px;
        font-size: 0.9rem;
    }

    .quantity input {
        height: 50px;
    }

    .qty-btn-wrapper button {
        width: 30px;
    }
}