/**
 * Product Template V1 Styles
 * Clean, responsive design using flexbox/grid - no inline styles
 *
 * @package WeGrowMagic
 */

/* ============================================
   Main Container
   ============================================ */
.wgm-product--v1 {
    padding: 0;
    margin: 0;
}

.wgm-product-v1__main {
    background: white;
    border-bottom-right-radius: 50px;
    border-bottom-left-radius: 50px;
    padding: 50px;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 670px 1fr;
    gap: 49px;
    align-items: start;
}

/* ============================================
   Gallery Section (Left)
   ============================================ */
.wgm-product-v1__gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wgm-product-v1__main-image {
    width: 670px;
    height: 670px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.wgm-product-v1__main-image-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Thumbnails Grid */
.wgm-product-v1__thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.wgm-product-v1__thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background: #EE5656;
    transition: opacity 0.3s;
}

.wgm-product-v1__thumb:hover {
    opacity: 0.8;
}

.wgm-product-v1__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Product Details Section (Right)
   ============================================ */
.wgm-product-v1__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 611px;
}

/* ============================================
   Header Section (Rating, Title, Tagline)
   ============================================ */
.wgm-product-v1__header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wgm-product-v1__header-top {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.wgm-product-v1__header-title-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Rating */
.wgm-product-v1__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wgm-product-v1__stars {
    display: flex;
    gap: 1.61px;
    align-items: center;
}

.wgm-product-v1__rating-text {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 19.20px;
}

/* Title */
.wgm-product-v1__title {
    color: black;
    font-size: 36px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 43.20px;
    margin: 0;
}

/* Tagline */
.wgm-product-v1__tagline {
    color: black;
    font-size: 18px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 27px;
}

/* Divider */
.wgm-product-v1__divider {
    height: 0;
    border-top: 0.50px solid black;
    opacity: 0.50;
    margin: 0;
}

/* Description */
.wgm-product-v1__description {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wgm-product-v1__description-text {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

/* ============================================
   Perfect For Section
   ============================================ */
.wgm-product-v1__perfect-for {
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wgm-product-v1__perfect-for-title {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

.wgm-product-v1__perfect-for-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wgm-product-v1__perfect-for-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wgm-product-v1__perfect-for-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.wgm-product-v1__perfect-for-text {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.wgm-product-v1__strain {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wgm-product-v1__strain-label {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.wgm-product-v1__strain-text {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

/* ============================================
   Variation Selectors
   ============================================ */
.wgm-product-v1__selector-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: visible !important;
    position: relative;
}

.wgm-product-v1__selector-label {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

.wgm-product-v1__path-selector,
.wgm-product-v1__dose-selector,
.wgm-product-v1__supply-selector {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    overflow: visible !important;
    position: relative;
}

/* Path Selector - 4 column grid */
.wgm-product-v1__path-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    width: 86%;
}

.wgm-product-v1__path-btn {
    width: 123px;
    min-width: 123px;
    max-width: 123px;
}

/* Variation Buttons */
.wgm-product-v1__path-btn,
.wgm-product-v1__dose-btn,
.wgm-product-v1__supply-btn {
    position: relative;
    min-width: 96px;
    height: 40px;
    padding: 8px 15px;
    background: white;
    border: 0.50px solid black;
    border-radius: 5px;
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: visible;
}

/* Dose button - match V5 style (flex column with amount on top, label below) */
.wgm-product-v1__dose-btn {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 60px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
}

.wgm-product-v1__dose-label {
    color: #748093;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.wgm-product-v1__dose-btn.active .wgm-product-v1__dose-label {
    color: #fff;
}

/* Path buttons specific width */
.wgm-product-v1__path-btn {
    width: 123px;
    min-width: 123px;
    max-width: 123px;
}

/* Path button text */
.wgm-product-v1__path-btn-text {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-left: 0;
    transition: margin-left 0.2s;
}

/* Path button - center text when no image */
.wgm-product-v1__path-btn {
    justify-content: flex-start;
    padding-left: 12px;
    padding-right: 12px;
}

/* Path button color classes - for microdose template (no images, just colors) */
.wgm-product-v1__path-btn--mindful.active {
    background: #FFD700 !important; /* Yellow */
    border: 2px solid black !important;
    color: black !important;
}

.wgm-product-v1__path-btn--energy.active {
    background: #1670a9 !important; /* Blue */
    border: 2px solid black !important;
    color: white !important;
}

.wgm-product-v1__path-btn--calm.active {
    background: #4CAF50 !important; /* Green */
    border: 2px solid black !important;
    color: white !important;
}

.wgm-product-v1__path-btn--balanced.active {
    background: #87CEEB !important; /* Light Blue */
    border: 2px solid black !important;
    color: black !important;
}

/* Checkmark icon for selected path buttons */
.wgm-product-v1__path-btn-checkmark {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    z-index: 3;
}

/* Checkmark color based on background - dark backgrounds use white checkmark */
.wgm-product-v1__path-btn--energy.active .wgm-product-v1__path-btn-checkmark path,
.wgm-product-v1__path-btn--calm.active .wgm-product-v1__path-btn-checkmark path {
    stroke: white !important;
}

/* Checkmark color for light backgrounds - use black checkmark */
.wgm-product-v1__path-btn--mindful.active .wgm-product-v1__path-btn-checkmark path,
.wgm-product-v1__path-btn--balanced.active .wgm-product-v1__path-btn-checkmark path {
    stroke: black !important;
}

/* Ensure checkmark is visible */
.wgm-product-v1__path-btn-checkmark {
    display: block !important;
}

/* When checkmark is present, add left margin to text */
.wgm-product-v1__path-btn.active .wgm-product-v1__path-btn-text {
    margin-left: 24px;
}

.wgm-product-v1__path-btn.active,
.wgm-product-v1__dose-btn.active,
.wgm-product-v1__supply-btn.active {
    background: #12679C;
    border-color: #12679C;
    color: white;
}

/* Path buttons use color-coded backgrounds (overridden by specific color classes) */
.wgm-product-v1__path-btn.active:not(.wgm-product-v1__path-btn--mindful):not(.wgm-product-v1__path-btn--energy):not(.wgm-product-v1__path-btn--calm):not(.wgm-product-v1__path-btn--balanced) {
    background: #12679C;
    border-color: #12679C;
    color: white;
}

.wgm-product-v1__path-btn:hover,
.wgm-product-v1__dose-btn:hover,
.wgm-product-v1__supply-btn:hover {
    opacity: 0.8;
}

/* Dose button - match V5 style (flex column with amount on top, label below) */
.wgm-product-v1__dose-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 60px;
    padding: 10px 15px;
    text-align: center;
}

.wgm-product-v1__dose-label {
    color: #748093;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.2;
}

.wgm-product-v1__dose-btn.active .wgm-product-v1__dose-label {
    color: #fff;
}

/* Price display for powders (example3 class) */
.wgm-product-v1__dose-btn .example3 {
    color: #748093;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.2;
}

.wgm-product-v1__dose-btn.active .example3 {
    color: #fff;
}

/* Dose Tooltip - Hidden */
.wgm-product-v1__dose-tooltip {
    display: none !important;
}

.wgm-product-v1__dose-tooltip::after {
    display: none !important;
}

.wgm-product-v1__dose-btn:hover .wgm-product-v1__dose-tooltip {
    display: none !important;
}


.wgm-product-v1__dose-badge {
    position: absolute;
    top: -14px;
    left: 43%;
    transform: translateX(-50%);
    min-width: 89px;
    height: 20px;
    /* width: 45px; */
    padding: 5px 6px;
    background: #3E98BE;
    border-radius: 4px;
    color: white;
    font-size: 8px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    /* clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); */
}

.wgm-product-v1__dose-badge--popular {
    background: #3E98BE;
}

.wgm-product-v1__dose-badge--saving {
    background: #D12C76;
}

/* Supply Badge */
.wgm-product-v1__supply-badge {
    position: absolute;
    top: -14px;
    left: 43%;
    transform: translateX(-50%);
    min-width: 71px;
    height: 20px;
    padding: 5px 6px;
    background: #3E98BE;
    border-radius: 4px;
    color: white;
    font-size: 6px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}

/* ============================================
   Quantity Selector
   ============================================ */
.wgm-product-v1__quantity-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wgm-product-v1__quantity-label {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

.wgm-product-v1__quantity {
    display: inline-flex;
    padding: 2px;
    background: white;
    border-radius: 4px;
    border: 0.50px solid black;
    align-items: center;
    gap: 24px;
    width: fit-content;
}

.wgm-product-v1__qty-minus,
.wgm-product-v1__qty-plus {
    padding: 4px;
    background: #12679C;
    border-radius: 2px;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.wgm-product-v1__qty-minus:hover,
.wgm-product-v1__qty-plus:hover {
    background: #0A4280;
}

.wgm-product-v1__qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    color: black;
    font-size: 20px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 30px;
}

.wgm-product-v1__qty-input::-webkit-inner-spin-button,
.wgm-product-v1__qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
   Price & Total
   ============================================ */
.wgm-product-v1__price-row {
    padding-top: 12px;
    border-top: 1px solid #DCDFE1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.wgm-product-v1__price-label {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 24px;
}

.wgm-product-v1__total-price {
    flex: 1;
    text-align: right;
    color: black;
    font-size: 18px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 27px;
}

.wgm-product-v1__price-placeholder {
    display: inline;
}

.wgm-product-v1__variation-price {
    display: none;
}

/* ============================================
   Add to Cart Button
   ============================================ */
.wgm-product-v1__cart-form {
    margin: 0;
}

.wgm-product-v1__add-to-cart-btn {
    width: 601px;
    height: 70px;
    padding: 12px 20px;
    background: #12679C;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 18px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 21.60px;
    cursor: pointer;
    transition: background 0.3s;
}

.wgm-product-v1__add-to-cart-btn:hover {
    background: #0A4280;
}

.wgm-product-v1__add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Variety Pack
   ============================================ */
.wgm-product-v1__variety-pack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wgm-product-v1__variety-pack-title {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

.wgm-product-v1__variety-pack-card {
    padding: 16px;
    background: #F5F7F9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wgm-product-v1__variety-pack-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wgm-product-v1__variety-pack-image {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.wgm-product-v1__variety-pack-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wgm-product-v1__variety-pack-name {
    color: black;
    font-size: 22px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 28px;
    margin: 0;
}

.wgm-product-v1__variety-pack-savings {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.wgm-product-v1__variety-pack-name:hover,
.wgm-product-v1__variety-pack-name:focus {
    opacity: 0.7;
    text-decoration: underline;
}

.wgm-product-v1__variety-pack-name:active {
    opacity: 0.5;
}

.wgm-product-v1__variety-pack-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.wgm-product-v1__variety-pack-price {
    color: black;
    font-size: 18px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 24px;
}

.wgm-product-v1__variety-pack-price del {
    color: #999;
    font-weight: 500;
    margin-right: 8px;
}

.wgm-product-v1__variety-pack-price ins {
    text-decoration: none;
}

.wgm-product-v1__add-variety {
    width: 89px;
    height: 36px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #12679C;
    color: #12679C;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 16.80px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.wgm-product-v1__add-variety:hover {
    background: #12679C;
    color: white;
}

/* ============================================
   Accordions
   ============================================ */
.wgm-product-v1__accordions {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e6edf3;
}

.wgm-product-v1__accordion-item {
    padding: 14px 0;
    border-bottom: 1px solid #e6edf3;
}

.wgm-product-v1__accordion-item:last-child {
    border-bottom: none;
}

.wgm-product-v1__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    gap: 16px;
}

.wgm-product-v1__accordion-title {
    color: black;
    font-size: 18px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 27px;
    flex: 1;
    margin: 0;
}

.wgm-product-v1__accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wgm-product-v1__accordion-icon svg {
    display: block;
    width: 15px;
    height: 15px;
}

.wgm-product-v1__accordion-icon .wgm-accordion-minus {
    display: none;
}

.wgm-product-v1__accordion-item.active .wgm-product-v1__accordion-icon .wgm-accordion-plus {
    display: none;
}

.wgm-product-v1__accordion-item.active .wgm-product-v1__accordion-icon .wgm-accordion-minus {
    display: block;
}

.wgm-product-v1__accordion-content {
    display: none;
    padding-top: 16px;
    padding-bottom: 16px;
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.wgm-product-v1__accordion-content p {
    margin: 0 0 12px 0;
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.wgm-product-v1__accordion-content p:last-child {
    margin-bottom: 0;
}

.wgm-product-v1__accordion-item.active .wgm-product-v1__accordion-content {
    display: block;
}

/* ============================================
   Notice (Admin)
   ============================================ */
.wgm-product-v1__notice {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    margin: 20px 0;
    color: #856404;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    line-height: 1.5;
}

/* ============================================
   Hide WooCommerce Variation Form (but keep functional)
   ============================================ */
.wgm-product-v1__variations {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 0 !important;
}

.wgm-product-v1__variations .variations {
    display: none !important;
}

.wgm-product-v1__variations .variations select {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: visible !important;
    display: block !important;
}

/* ============================================
   Debug Info (Admin Only)
   ============================================ */
.wgm-product-v1__debug {
    padding: 15px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 12px;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
    .wgm-product-v1__main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }
    
    .wgm-product-v1__gallery {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .wgm-product-v1__main-image {
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .wgm-product-v1__details {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .wgm-product-v1__add-to-cart-btn {
        width: 100%;
        max-width: 600px;
    }
    
    .wgm-product-v1__perfect-for {
        width: 100%;
    }
    
    .wgm-product-v1__path-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .wgm-product-v1__main {
        padding: 20px 15px 40px;
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
        gap: 30px;
    }

    .wgm-product-v1__path-selector {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0px;
        width: 100%;
    }
    
    .wgm-product-v1__gallery {
        width: 100%;
    }
    
    .wgm-product-v1__main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-height: 400px;
    }
    
    .wgm-product-v1__thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .wgm-product-v1__thumb {
        aspect-ratio: 1;
    }
    
    .wgm-product-v1__details {
        width: 100%;
        gap: 20px;
    }
    
    .wgm-product-v1__header {
        gap: 15px;
    }
    
    .wgm-product-v1__title {
        font-size: 28px;
        line-height: 34px;
    }
    
    .wgm-product-v1__tagline {
        font-size: 16px;
        line-height: 24px;
    }
    
    .wgm-product-v1__perfect-for {
        width: 100%;
    }
    
    .wgm-product-v1__path-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .wgm-product-v1__path-btn {
        width: 81px;
        min-width: 75px;
        max-width: 75px;
        height: 59px;
        padding: 0;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
        border-radius: 3.79px;
    }
    
    .wgm-product-v1__path-btn-text {
        position: static;
        align-self: flex-start;
        margin-left: 16px;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 21px;
        z-index: 2;
        order: 2;
    }
    
    .wgm-product-v1__path-btn-image {
        position: static;
        align-self: flex-start;
        margin-left: 6px;
        margin-top: -4px;
        width: 69px;
        height: 46px;
        object-fit: contain;
        z-index: 1;
        transform: none;
        order: 1;
        flex-shrink: 0;
    }
    
    .wgm-product-v1__path-btn--has-image {
        padding-right: 0;
    }
    
    .wgm-product-v1__dose-btn {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 12px;
        padding-bottom: 8px;
        min-height: 38px;
        width: 100%;
        min-width: auto;
        font-size: 14px;
    }
    
    .wgm-product-v1__dose-badge {
        order: -1;
        margin-bottom: 4px;
        margin-top: 0px;
        align-self: center;
        left: 50%
    }
    
    .wgm-product-v1__supply-btn {
        width: 100%;
        min-width: auto;
        font-size: 14px;
        padding: 8px 12px;
        height: 38px;
    }
    
    .wgm-product-v1__quantity {
        width: 100%;
        max-width: 200px;
    }
    
    .wgm-product-v1__add-to-cart-btn {
        width: 100%;
        height: 60px;
        font-size: 16px;
    }
    
    .wgm-product-v1__price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wgm-product-v1__total-price {
        text-align: left;
        width: 100%;
    }
    
    .wgm-product-v1__variety-pack-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wgm-product-v1__variety-pack-image {
        width: 80px;
        height: 80px;
    }
    
    .wgm-product-v1__variety-pack-name {
        font-size: 22px;
        line-height: 30px;
    }
    
    .wgm-product-v1__variety-pack-savings {
        font-size: 16px;
        line-height: 24px;
    }
    
    .wgm-product-v1__add-variety {
        width: 100%;
        margin-top: 10px;
    }
    .wgm-product-v1__dose-selector{
        width: 104%;
        gap:4px;
    }
    
    .wgm-product-v1__accordion-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .wgm-product-v1__accordion-content {
        font-size: 14px;
        line-height: 20px;
    }
    
    .wgm-product-v1__dose-btn {
        position: relative;
        min-width: 76px;
        height: 40px;
        padding: 8px 4px;
        background: white;
        border: 0.50px solid black;
        border-radius: 5px;
        color: black;
        font-size: 16px;
        font-family: 'General Sans', sans-serif;
        font-weight: 500;
        line-height: 24px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        overflow: visible;
    }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .wgm-product-v1__main {
        padding: 15px 12px 30px;
    }
    
    .wgm-product-v1__title {
        font-size: 24px;
        line-height: 30px;
    }
    
    .wgm-product-v1__tagline {
        font-size: 14px;
        line-height: 20px;
    }
    
    .wgm-product-v1__path-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .wgm-product-v1__path-btn {
        width: 81px;
        min-width: 75px;
        max-width: 75px;
        height: 59px;
        padding: 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
        border-radius: 3.79px;
    }
    
    .wgm-product-v1__path-btn-text {
        position: static;
        align-self: center;
        margin-left: 0px;
        margin-bottom: 0px;
        font-size: 14px;
        line-height: 21px;
        z-index: 2;
        order: 2;
        margin-top: 0px;
    }
    
    .wgm-product-v1__path-btn-image {
        position: static;
        align-self: center;
        margin-left: 0px;
        margin-top: -4px;
        width: 69px;
        height: 46px;
        object-fit: contain;
        z-index: 1;
        transform: none;
        order: 1;
        flex-shrink: 0;
    }
    
    .wgm-product-v1__path-btn--has-image {
        padding-right: 0;
    }
    
    .wgm-product-v1__dose-btn {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 7px;
        padding-bottom: 6px;
        min-height: 36px;
        font-size: 14px;
    }
    
    .wgm-product-v1__dose-badge {
        order: -1;
        margin-bottom: 4px;
        margin-top: -20px;
        align-self: center;
    }
    
    .wgm-product-v1__supply-btn {
        font-size: 14px;
        padding: 6px 10px;
        height: 36px;
    }
    
    .wgm-product-v1__add-to-cart-btn {
        height: 56px;
        font-size: 15px;
    }
    
    .wgm-product-v1__thumbnails {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .wgm-product-v1__thumb {
        flex: 0 0 80px;
        width: 80px;
        min-width: 80px;
    }
}

/* ============================================
   Template Parts - Difference Section
   ============================================ */
.wgm-product-v1__difference {
    width: 100%;
    max-width: 1440px;
    margin: 50px auto 0;
    background: white;
    padding: 50px;
}

.wgm-product-v1__difference-inner {
    display: grid;
    grid-template-columns: 547px 1fr;
    gap: 112px;
    align-items: start;
}

.wgm-product-v1__difference-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wgm-product-v1__difference-title {
    color: black;
    font-size: 48px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 57.60px;
    margin: 0 0 18px 0;
}

.wgm-product-v1__difference-description {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    margin: 0 0 39px 0;
    width: 296px;
}

.wgm-product-v1__difference-subtitle {
    color: black;
    font-size: 22px;
    font-family: 'General Sans', sans-serif;
    font-style: italic;
    font-weight: 500;
    line-height: 33px;
    margin: 0 0 51px 0;
}

.wgm-product-v1__difference-main-desc {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    width: 573px;
}

.wgm-product-v1__difference-stats {
    display: flex;
    flex-direction: column;
    gap: 29px;
}

.wgm-product-v1__difference-stat {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.wgm-product-v1__difference-stat-image {
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #F5F7F9;
}

.wgm-product-v1__difference-stat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wgm-product-v1__difference-stat-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    font-family: 'General Sans', sans-serif;
}

.wgm-product-v1__difference-stat-content {
    flex: 1;
    min-width: 0;
}

.wgm-product-v1__difference-stat-title {
    color: black;
    font-size: 22px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 33px;
    margin: 0 0 8px 0;
}

.wgm-product-v1__difference-stat-desc {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    max-width: 345px;
}

/* ============================================
   Template Parts - Protocol Section
   ============================================ */
.wgm-product-v1__protocol {
    width: 100%;
    max-width: 100%;
    background: #12679C;
    margin: 0 auto;
    padding: 54px 0px 70px;
}

.wgm-product-v1__protocol-inner {
    display: flex;
    flex-direction: column;
    gap: 37px;
}
.wgm-product-v1__timeline-inner,
.wgm-product-v1__faq .wgm-product-v1__faq-inner,
.wgm-product-v1__protocol-inner  {
    max-width: 1140px;
    margin: auto;
}

.wgm-product-v1__difference-inner {
    max-width: 1160px;
    margin: auto;
}

.wgm-product-v1__protocol-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wgm-product-v1__protocol-header-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wgm-product-v1__protocol-title {
    color: white;
    font-size: 48px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 57.60px;
    margin: 0 0 18px 0;
}

.wgm-product-v1__protocol-subtitle {
    color: white;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    width: 296px;
}

.wgm-product-v1__protocol-button {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid white;
    color: white;
    font-size: 20px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    flex-shrink: 0;
}

.wgm-product-v1__protocol-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wgm-product-v1__protocol-cards {
    display: grid;
    grid-template-columns: repeat(3, 367px);
    gap: 19px;
}

.wgm-product-v1__protocol-card {
    width: 367px;
    height: 399px;
    background: white;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.wgm-product-v1__protocol-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wgm-product-v1__protocol-card-overlay {
    position: absolute;
    left: 15px;
    bottom: 15px;
    width: 337px;
    height: 45px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(17.75px);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
}

.wgm-product-v1__protocol-card-overlay:hover {
    opacity: 0.9;
}

.wgm-product-v1__protocol-card-overlay[aria-expanded="true"] {
    opacity: 1;
    transform: translateY(-47px);
}

.wgm-product-v1__protocol-card:nth-child(2) .wgm-product-v1__protocol-card-overlay[aria-expanded="true"] {
    transform: translateY(-68px);
}

.wgm-product-v1__protocol-card-name {
    color: white;
    font-size: 17px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 20.40px;
}

.wgm-product-v1__protocol-card-toggle {
    color: white;
    font-size: 17px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 20.40px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.wgm-product-v1__protocol-card-overlay[aria-expanded="true"] .wgm-product-v1__protocol-card-toggle {
    transform: rotate(45deg);
}

.wgm-product-v1__protocol-card-content {
    position: absolute;
    left: 15px;
    bottom: 15px;
    width: 337px;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(17.75px);
    border-radius: 4px;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    z-index: 9;
    opacity: 0;
}

.wgm-product-v1__protocol-card-content[aria-hidden="false"] {
    max-height: 100%;
    padding: 12px;
    opacity: 1;
}

.wgm-product-v1__protocol-card-description {
    color: #fff;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   Template Parts - Timeline Section
   ============================================ */
.wgm-product-v1__timeline {
    width: 100%;
    background: white;
    padding: 52px 0px;
}

.wgm-product-v1__timeline-inner {
    display: flex;
    flex-direction: column;
    gap: 165px;
}

.wgm-product-v1__timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wgm-product-v1__timeline-header-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wgm-product-v1__timeline-title {
    color: black;
    font-size: 48px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 57.60px;
    margin: 0 0 18px 0;
}

.wgm-product-v1__timeline-subtitle {
    color: black;
    font-size: 22px;
    font-family: 'General Sans', sans-serif;
    font-style: italic;
    font-weight: 500;
    line-height: 33px;
    margin: 0 0 45px 0;
}

.wgm-product-v1__timeline-description {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    width: 296px;
}

.wgm-product-v1__timeline-button {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid black;
    color: black;
    font-size: 20px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    flex-shrink: 0;
}

.wgm-product-v1__timeline-button:hover {
    background: #f5f5f5;
}

.wgm-product-v1__timeline-cards {
    display: grid;
    grid-template-columns: repeat(4, 268px);
    gap: 23px;
}

.wgm-product-v1__timeline-card {
    width: 268px;
    height: 381px;
    background: white;
    box-shadow: 0px 2px 18.8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.wgm-product-v1__timeline-card-image {
    width: 100%;
    height: 250px;
    background: #C97F7F;
    overflow: hidden;
    flex-shrink: 0;
}

.wgm-product-v1__timeline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wgm-product-v1__timeline-card-content {
    padding: 15px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.wgm-product-v1__timeline-card-week {
    color: black;
    font-size: 18px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 27px;
    margin: 0;
}

.wgm-product-v1__timeline-card-title {
    color: black;
    font-size: 18px;
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    line-height: 27px;
    margin: 0;
}

.wgm-product-v1__timeline-card-desc {
    color: black;
    font-size: 14px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 21px;
    margin: 0;
    width: 230px;
}

/* ============================================
   Template Parts - Community Section
   ============================================ */
.wgm-product-v1__community {
    width: 100%;
    background: white;
    padding: 59px 50px;
}

.wgm-product-v1__community-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 661px 1fr;
    gap: 71px;
    align-items: start;
}

.wgm-product-v1__community-image {
    width: 661px;
    height: 438px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.wgm-product-v1__community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wgm-product-v1__community-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 599px;
}

.wgm-product-v1__community-title {
    color: black;
    font-size: 48px;
    font-family: 'ITC Clearface Std', serif;
    font-weight: 550;
    line-height: 57.60px;
    margin: 0;
}

.wgm-product-v1__community-description {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    width: 554px;
}

.wgm-product-v1__community-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wgm-product-v1__community-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0E0E0;
}

.wgm-product-v1__community-benefit:last-child {
    border-bottom: none;
}

.wgm-product-v1__community-benefit-icon {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.wgm-product-v1__community-benefit-text {
    color: black;
    font-size: 16px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
}

.wgm-product-v1__community-button {
    padding: 12px 20px;
    background: #12679C;
    border-radius: 10px;
    color: white;
    font-size: 20px;
    font-family: 'General Sans', sans-serif;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: background 0.3s;
    margin-top: 10px;
}

.wgm-product-v1__community-button:hover {
    background: #0A4280;
}

/* ============================================
   Template Parts - FAQ Section
   ============================================ */


/* ============================================
   Template Parts - Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .wgm-product-v1__difference {
        padding: 40px 30px;
    }
    
    .wgm-product-v1__difference-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .wgm-product-v1__difference-main-desc {
        width: 100%;
    }
    
    .wgm-product-v1__protocol {
        padding: 40px 30px;
    }
    
    .wgm-product-v1__protocol-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .wgm-product-v1__protocol-card {
        width: 100%;
    }
    
    .wgm-product-v1__timeline {
        padding: 40px 30px;
    }
    
    .wgm-product-v1__timeline-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .wgm-product-v1__timeline-card {
        width: 100%;
    }
    
    .wgm-product-v1__community {
        padding: 40px 30px;
    }
    
    .wgm-product-v1__community-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wgm-product-v1__community-image {
        width: 100%;
        max-width: 661px;
        height: auto;
        aspect-ratio: 661 / 438;
    }
    
    .wgm-product-v1__community-description {
        width: 100%;
    }
    
    .wgm-product-v1__faq {
        padding: 40px 30px;
    }
    
    .wgm-product-v1__faq-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .wgm-product-v1__faq-item {
        width: 100%;
    }
    
    .wgm-product-v1__faq-title {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wgm-product-v1__difference {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .wgm-product-v1__difference-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .wgm-product-v1__difference-subtitle {
        font-size: 18px;
        line-height: 26px;
    }
    
    .wgm-product-v1__difference-description,
    .wgm-product-v1__difference-main-desc {
        font-size: 14px;
        line-height: 20px;
    }
    
    .wgm-product-v1__difference-stat {
        flex-direction: column;
        gap: 15px;
    }
    
    .wgm-product-v1__difference-stat-image {
        width: 80px;
        height: 80px;
    }
    
    .wgm-product-v1__difference-stat-title {
        font-size: 18px;
        line-height: 26px;
    }
    
    .wgm-product-v1__difference-stat-desc {
        font-size: 14px;
        line-height: 20px;
        max-width: 100%;
    }
    
    .wgm-product-v1__protocol {
        padding: 30px 20px;
    }
    
    .wgm-product-v1__protocol-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .wgm-product-v1__protocol-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .wgm-product-v1__protocol-subtitle {
        font-size: 14px;
        width: 100%;
    }
    
    .wgm-product-v1__protocol-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wgm-product-v1__protocol-card {
        width: 100%;
        height: auto;
        aspect-ratio: 367 / 399;
    }
    
    .wgm-product-v1__protocol-card-overlay {
        width: calc(100% - 30px);
    }
    
    .wgm-product-v1__protocol-card-content {
        width: calc(100% - 30px);
        bottom: 15px;
    }
    
    .wgm-product-v1__protocol-card-content[aria-hidden="false"] {
        max-height: 250px;
    }
    
    .wgm-product-v1__timeline {
        padding: 30px 20px;
    }
    
    .wgm-product-v1__timeline-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .wgm-product-v1__timeline-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .wgm-product-v1__timeline-subtitle {
        font-size: 18px;
        line-height: 26px;
    }
    
    .wgm-product-v1__timeline-description {
        font-size: 14px;
        width: 100%;
    }
    
    .wgm-product-v1__timeline-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wgm-product-v1__timeline-card {
        width: 100%;
        height: auto;
    }
    
    .wgm-product-v1__timeline-card-image {
        height: 200px;
    }
    
    .wgm-product-v1__timeline-card-desc {
        width: 100%;
    }
    
    .wgm-product-v1__community {
        padding: 30px 20px;
    }
    
    .wgm-product-v1__community-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .wgm-product-v1__community-description {
        font-size: 14px;
        width: 100%;
    }
    
    .wgm-product-v1__community-benefit-text {
        font-size: 14px;
    }
    
    .wgm-product-v1__faq {
        padding: 30px 20px;
    }
    
    .wgm-product-v1__faq-title {
        font-size: 32px;
        line-height: 40px;
        width: 100%;
    }
    
    .wgm-product-v1__faq-question {
        font-size: 16px;
        line-height: 24px;
    }
    
    .wgm-product-v1__faq-content {
        font-size: 14px;
        line-height: 20px;
    }
}