/* product-v2.css */

.product-v2-container {
    padding: 2vh 4vw;
    width: 100%;
    max-width: 100%;
}

.product-layout {
    display: flex;
    gap: 60px;
    margin-top: 16px;
    align-items: flex-start;
}

/* Left side: Gallery */
.gallery-column {
    flex: 0.9;
    max-width: 48%;
    position: sticky;
    top: 100px;
}

.main-image-box {
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: none;
    border: none;
    cursor: zoom-in;
    position: relative;
}

.main-image-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    transition: none;
    transform-origin: center center;
    transform: none !important;
}

.main-image-box:hover img {
    transform: none !important;
}

.image-magnifier-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.15);
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.image-magnifier-lens.active {
    display: block;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb-item {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
}

.thumb-item.active {
    border-color: var(--jade-green);
    box-shadow: 0 4px 12px rgba(47, 160, 132, 0.2);
}

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

/* Right side: Info */
.info-column {
    flex: 1;
    max-width: 550px;
    padding-top: 10px;
}

.vendor-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 10px;
    display: block;
}

.product-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-dark);
    margin: 0 0 14px 0;
}

.price-box {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-price {
    font-family: var(--font-product-name);
    font-size: 32px;
    font-weight: 800;
    color: #0f5132;
    letter-spacing: 0.2px;
    line-height: 1;
}

.old-price {
    font-family: var(--font-body);
    font-size: 16px;
    text-align: end;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 1.6px;
    text-decoration-color: #cbd5e1;
    font-weight: 600;
    opacity: 0.95;
}

.sale-badge-v2 {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    background: linear-gradient(135deg, #006419 0%, #0ac607 55%, #1c5703 100%);
    color: #fff;
    padding: 7px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.sale-badge-v2 strong {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.4px;
}

.sale-badge-v2 small {
    font-size:0.8rem;
    font-weight: 700;
    line-height: 1.1;
    opacity: 0.95;
}

.sold-out-badge-v2 {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    color: #fff;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 6px 14px rgba(51, 65, 85, 0.25);
    text-transform: uppercase;
}

.status-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid transparent;
    letter-spacing: 0.2px;
}

.status-badge-v2.best {
    color: #7a3e00;
    background: linear-gradient(135deg, rgba(255, 239, 184, 0.95) 0%, rgba(255, 214, 120, 0.92) 55%, rgba(255, 189, 74, 0.9) 100%);
    border-color: rgba(224, 140, 34, 0.45);
    box-shadow: 0 6px 14px rgba(224, 140, 34, 0.2);
}

.status-badge-v2.trend {
    color: #0c4a6e;
    background: linear-gradient(135deg, rgba(219, 244, 255, 0.95) 0%, rgba(168, 232, 255, 0.92) 55%, rgba(125, 211, 252, 0.9) 100%);
    border-color: rgba(2, 132, 199, 0.42);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.18);
}

.shipping-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.shipping-info a {
    color: inherit;
    text-decoration: underline;
}

.coupon-list-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.minimal-ticket {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
}

.minimal-ticket::before,
.minimal-ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transform: translateY(-50%);
}

.minimal-ticket::before {
    left: -6px;
}

.minimal-ticket::after {
    right: -6px;
}

.ticket-main {
    margin-bottom: 10px;
}

.ticket-benefit {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.1px;
}

.ticket-rule {
    margin: 4px 0 0;
    font-size: 11px;
    color: #64748b;
}

.ticket-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
}

.ticket-code-row code {
    font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 8px;
    letter-spacing: 0.4px;
}

.btn-copy-ticket {
    border: 1px solid #dbe1e8;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy-ticket:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
}

.btn-copy-ticket.copied {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.coupon-card-v2 {
    position: relative;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    padding: 10px 11px;
    background: #ffffff;
    overflow: hidden;
    width: min(300px, 100%);
    font-family: 'Manrope', var(--font-body);
}

.coupon-card-v2::before,
.coupon-card-v2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #f9fbfd;
    border: 1px solid #d8e1eb;
    transform: translateY(-50%);
}

.coupon-card-v2::before {
    left: -8px;
}

.coupon-card-v2::after {
    right: -8px;
}

.coupon-ticket-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 7px;
}

.coupon-copy-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-copy-side code {
    font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 6px;
    padding: 4px 7px;
    letter-spacing: 0.3px;
}

.coupon-copy-btn {
    border: 1px solid #e1e6ed;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-ticket-divider {
    height: 1px;
    margin: 0 -12px 8px;
    background-image: linear-gradient(to right, #dbe3ec 50%, rgba(255, 255, 255, 0) 0%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

.coupon-ticket-bottom {
    display: grid;
    gap: 3px;
}

.coupon-copy-btn:hover {
    border-color: #c5ced8;
    color: #0f172a;
    background: #f8fafc;
}

.coupon-copy-btn.copied {
    border-color: #86efac;
    background: #f0fdf4;
    color: #14532d;
}

.coupon-benefit {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.coupon-rule {
    margin: 2px 0 0;
    font-size: 11px;
    color: #64748b;
}

/* Flavor Selection */
.option-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
    display: block;
}

.flavor-title {
    font-family: var(--font-subheading);
    font-size: 16px;
    letter-spacing: 0.3px;
    color: #0f3b32;
}

.option-helper {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px;
}

.flavor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    padding: 0;
}

.flavor-btn {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 95, 0.2);
    background: linear-gradient(135deg, #edf9f4 0%, #d9f3ea 52%, #c8ecdf 100%);
    font-size: 13px;
    font-weight: 600;
    color: #0f4a3d;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.flavor-btn:hover {
    border-color: #2FA084;
    background: linear-gradient(135deg, #def4ec 0%, #c9ebde 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(47, 160, 132, 0.22);
}

.flavor-btn.active {
    background: linear-gradient(135deg, #2FA084 0%, #1F6F5F 100%);
    color: #ffffff;
    border-color: rgba(31, 111, 95, 0.85);
    box-shadow: 0 9px 18px rgba(31, 111, 95, 0.28);
    font-weight: 700;
}

.flavor-btn:disabled {
    opacity: 0.55;
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
    text-decoration: line-through;
    box-shadow: none;
}

/* Quantity and Action Buttons */
.qty-and-cart {
    margin-bottom: 20px;
    padding-top: 4px;
}

.qty-v2 {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    width: fit-content;
    padding: 0px 8px; /* Slightly tighter */
    margin-bottom: 15px; /* Reduced from 20px */
}

.qty-v2 button {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
}

.qty-v2 input {
    width: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    outline: none;
}

.btn-actions-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-v2 {
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-v2-outline {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-v2-outline:hover {
    background: #f8fafc;
}

.btn-v2-solid {
    background: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
    color: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.8);
}

.btn-v2-solid:hover {
    background: linear-gradient(135deg, #16a34a 0%, #0f766e 100%);
    color: #fff;
    border-color: rgba(15, 118, 110, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.3);
}

/* Product Specifications Sidebar */
.product-specs-sidebar {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Description Section (under specs in info column) */
.description-section-v2 {
    margin-top: 26px;
    padding-top: 12px;
    border-top: 1px solid rgba(47, 160, 132, 0.22);
}

.section-title-box {
    padding: 0;
    margin-bottom: 14px;
}

.section-title-box h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: 0.2px;
    position: relative;
    display: inline-block;
    padding-bottom: 7px;
}

.section-title-box h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64%;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--jade-green), rgba(47, 160, 132, 0.05));
}

.description-content {
    padding: 0;
    font-size: 16px;
    line-height: 1.95;
    color: #334155;
    max-width: 100%;
    margin: 0;
    word-spacing: 0.4px;
}

/* Page Animations */
.slide-in-left {
    animation: slideLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.slide-in-up {
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.15s;
}

@keyframes slideLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Stagger Animation For Related Products Grid */
.stagger-fade {
    animation: fadeUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes fadeUpIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .product-v2-container { padding: 20px 4%; }
    .product-layout {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
    }
    
    .gallery-column {
        width: 100%;
        max-width: 100%;
        position: static;
        flex: none;
    }

    .info-column {
        width: 100%;
        max-width: 100%;
        flex: none;
        padding-top: 0;
    }
    
    .main-image-box { padding: 0; border-radius: 14px; }
    .main-image-box img {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        border-radius: 14px;
    }

    .main-image-box:hover img {
        transform: none;
    }

    .image-magnifier-lens {
        display: none !important;
    }

    .product-title {
        font-size: 30px;
    }

    .description-section-v2 { margin-top: 40px; }
    .description-content { padding: 0; }
}

@media (max-width: 480px) {
    .product-v2-container {
        padding: 15px 4%;
        overflow-x: hidden;
    }
    
    .product-title {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.25;
    }

    .current-price { font-size: 25px; }

    .option-helper {
        font-size: 11px;
    }

    .coupon-ticket-top {
        flex-wrap: wrap;
        margin-bottom: 8px;
    }

    .coupon-copy-side code {
        font-size: 12px;
    }

    .coupon-copy-btn {
        font-size: 11px;
        padding: 4px 9px;
    }
    
    .product-specs-sidebar {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .spec-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        gap: 10px;
        padding-bottom: 8px;
    }
    
    .spec-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .description-section-v2 { margin-top: 30px; padding-top: 10px; }
    .section-title-box { padding: 0; }
    .section-title-box h2 { font-size: 20px; }
    .description-content { font-size: 14px; padding: 0; line-height: 1.85; }

    .btn-v2 { padding: 14px; font-size: 15px; }

    .btn-actions-stack {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .thumb-grid { 
        gap: 8px; 
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .flavor-btn {
        min-height: 40px;
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .gallery-column {
        margin-bottom: -10px;
    }
}
