/* --- VARIABLES --- */
:root {
    --primary: #000000;
    --accent: #3BB54A; /* Green for Buy/Stock */
    --gold: #DC9814;
    --gray: #f4f4f4;
    --text: #333333;
    --border: #e1e1e1;
    --font-main: 'Montserrat', sans-serif;
}

/* --- GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text); background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER & TOP BAR --- */
.top-bar { background: var(--gray); padding: 10px 0; font-size: 0.85rem; text-align: center; font-weight: 600; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
.top-bar .top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}
.top-bar .phone-number {
    font-weight: 800; /* BOLD */
}
.top-bar .free-ship-notice { color: var(--accent); font-weight: 800; }

.product-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Left side slightly wider for gallery */
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 20px;
}

/* --- NEW GALLERY LAYOUT (Matches Reference) --- */
.woocommerce-product-gallery { position: sticky; top: 20px; }
.flex-viewport { 
    border: 1px solid #eee; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 10px; 
    position: relative;
}
.wp-post-image { width: 100%; height: auto; cursor: crosshair; }

.flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.flex-control-thumbs li { width: 25%; cursor: pointer; }
.flex-control-thumbs img {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: 0.2s;
    opacity: 0.6;
}
.flex-control-thumbs img:hover, .flex-control-thumbs img.flex-active {
    border-color: var(--primary);
    opacity: 1;
}

/* --- DETAILS COLUMN --- */
.product-title { font-size: 2rem; line-height: 1.2; margin-bottom: 10px; font-weight: 700; }
.sale-tag { background: var(--accent); color: #fff; padding: 2px 8px; font-size: 0.8rem; font-weight: bold; border-radius: 3px; vertical-align: middle; margin-left: 10px; }

/* Dynamic Price Area */
.price-area { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; flex-wrap: wrap; }
.old-price { font-size: 1.1rem; color: #aaa; text-decoration: line-through; margin-left: 10px; font-weight: 400; }

/* Short Description List */
.short-desc-box { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.gl-list li { margin-bottom: 5px; font-size: 0.95rem; position: relative; padding-left: 15px; }
.gl-list li::before { content: "•"; position: absolute; left: 0; font-weight: bold; }

/* --- FORM STYLES --- */
.option-group { margin-bottom: 20px; }
.option-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.85rem; text-transform: uppercase; }

/* Square Buttons (Size/Custom) */
.selector-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.selector-buttons input { display: none; }
.selector-buttons span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    background: #fff;
    min-width: 45px;
    text-align: center;
}
.selector-buttons input:checked + span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.hidden-inputs { display: none; gap: 10px; margin-bottom: 15px; }
.hidden-inputs input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

/* Delivery Toggle Form */
.delivery-form { background: #f9f9f9; padding: 15px; border-radius: 5px; border: 1px solid #eee; margin-bottom: 20px; }
.delivery-note { font-size: 0.8rem; color: var(--accent); margin-top: 5px; font-weight: 600; display: block;}

/* Add to Cart Area */
.action-row { display: flex; gap: 15px; margin-top: 20px; }
#quantity { width: 60px; text-align: center; font-weight: 700; border: 1px solid #ccc; border-radius: 4px; }
.btn-whatsapp {
    flex-grow: 1;
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-whatsapp:hover { background: #2e963b; }

/* --- TABS & FOOTNOTE --- */
.tabs-section { margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.wc-tabs { display: flex; gap: 25px; border-bottom: 1px solid #eee; margin-bottom: 25px; padding-left: 0; }
.wc-tabs li { list-style: none; cursor: pointer; font-weight: 600; color: #888; padding-bottom: 10px; border-bottom: 3px solid transparent; }
.wc-tabs li.active { color: var(--primary); border-color: var(--gold); }

.desc-content h2 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 10px; }
.desc-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.desc-content p { color: #555; margin-bottom: 30px; }

/* Care Icons */
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; padding-top: 20px; border-top: 2px solid #000; }
.care-col h5 { font-weight: 800; margin-bottom: 15px; font-size: 0.9rem; }
.care-list-icons li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #444; font-size: 0.9rem; }
.care-list-icons img { width: 24px; height: 24px; }
.care-list-text li { text-transform: uppercase; font-size: 0.9rem; margin-bottom: 8px; }

/* --- TRUST WIDGETS (Bottom) --- */
.below-content { background: #f9f9f9; padding: 40px 0; margin-top: 60px; border-top: 1px solid #eee; }
.widget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.widget-title { display: block; font-weight: 800; margin-bottom: 10px; font-size: 1.1rem; text-transform: uppercase; }
.widget p { color: #666; font-size: 0.9rem; }
.widget .ri { font-size: 2rem; color: var(--accent); margin-top: 10px; display: block; }

/* Mobile */
@media (max-width: 768px) {
    .product-container { grid-template-columns: 1fr; gap: 20px; }
    .woocommerce-product-gallery {
        position: relative; /* Disables the sticky behavior on mobile */
        top: auto;
    }
    .care-grid, .widget-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* --- BREADCRUMBS --- */
.woocommerce-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 0.9rem;
    color: #555;
}
.woocommerce-breadcrumb a:hover {
    color: var(--gold);
}
.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}