/*
 * LIV International Product Detail Page - UNIQUE CLASS NAMES
 * No Conflicts - All classes prefixed with "liv-detail-"
 * Wrapper Class Required: .liv-product-detail-module
 * ===================================================
 */

/* ============================================
   PRODUCT DETAIL CARD - MAIN CONTAINER
   ============================================ */

.liv-product-detail-module .container-flow {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.liv-product-detail-module .wsc-padding-bottom-sm {
    padding-bottom: 30px;
}

/* ============================================
   PRODUCT DETAIL CARD
   ============================================ */

.liv-product-detail-module .liv-detail-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 171, 84, 0.15);
    transition: all 0.3s ease;
}

.liv-product-detail-module .liv-detail-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ============================================
   PRODUCT HEADER
   ============================================ */

.liv-product-detail-module .liv-detail-header {
    background: linear-gradient(135deg, rgba(0, 171, 84, 0.08) 0%, rgba(0, 171, 84, 0.12) 100%);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 171, 84, 0.15);
}

.liv-product-detail-module .liv-detail-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.liv-product-detail-module .liv-detail-subtitle {
    font-size: 1.1em;
    color: #555;
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* ============================================
   PRICING TABLE - ENHANCED
   ============================================ */

.liv-product-detail-module .table-responsive {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-top: 0;
    border: none;
    padding: 20px 30px;
}

.liv-product-detail-module .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.liv-product-detail-module .table tbody tr {
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-radius: 8px;
}

.liv-product-detail-module .table tbody tr:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.liv-product-detail-module .table tbody tr td {
    padding: 15px 20px;
    border: none;
    vertical-align: middle;
    font-size: 1em;
}

.liv-product-detail-module .table tbody tr td:first-child {
    color: #555;
    font-weight: 500;
    width: 45%;
    border-radius: 8px 0 0 8px;
}

.liv-product-detail-module .table tbody tr td:last-child {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2em;
    text-align: right;
    border-radius: 0 8px 8px 0;
}

/* ============================================
   SPECIAL PROMO PRICE ROW - UNIQUE CLASS!
   Changed from "promoRow" to "liv-detail-promo-highlight"
   ============================================ */

.liv-product-detail-module .liv-detail-promo-highlight {
    background: linear-gradient(135deg, #00ab54 0%, #00c569 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 171, 84, 0.3);
    position: relative;
    overflow: visible;
}

/* Badge styling - for inline HTML badge */
.liv-product-detail-module .liv-detail-badge {
    display: inline-block;
    background: #de2666;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(222, 38, 102, 0.3);
    vertical-align: middle;
}

.liv-product-detail-module .liv-detail-promo-highlight:hover {
    background: linear-gradient(135deg, #00c569 0%, #00d975 100%) !important;
    transform: translateX(8px) scale(1.02);
}

.liv-product-detail-module .liv-detail-promo-highlight td {
    color: #ffffff !important;
    border: none;
}

.liv-product-detail-module .liv-detail-promo-highlight td:first-child {
    color: #ffffff !important;
}

.liv-product-detail-module .liv-detail-promo-highlight td:last-child {
    color: #ffffff !important;
}

/* ============================================
   PRODUCT VOLUME ROW - UNIQUE CLASS!
   Changed to "liv-detail-volume-row"
   ============================================ */

.liv-product-detail-module .liv-detail-volume-row {
    background: rgba(0, 171, 84, 0.08) !important;
    border: 2px solid rgba(0, 171, 84, 0.2) !important;
}

.liv-product-detail-module .liv-detail-volume-row td:last-child {
    color: #00ab54 !important;
    font-size: 1.4em !important;
}

.liv-product-detail-module .table td em {
    display: block;
    margin-top: 5px;
    font-style: normal;
    color: #00ab54;
    font-size: 0.85em;
}

/* ============================================
   FLAVOR SELECTION SECTION
   ============================================ */

.liv-product-detail-module .liv-detail-flavor-section {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.liv-product-detail-module .liv-detail-flavor-title {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.liv-product-detail-module .liv-detail-flavor-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.liv-product-detail-module .liv-detail-flavor-wrapper {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* ============================================
   FLAVOR BUTTONS - MINT (GREEN) - UNIQUE CLASS!
   Changed from "mint-flavor" to "liv-detail-mint"
   ============================================ */

.liv-product-detail-module .liv-detail-mint button,
.liv-product-detail-module .liv-detail-mint input[type="button"],
.liv-product-detail-module .liv-detail-mint input[type="submit"],
.liv-product-detail-module .liv-detail-mint .wsc-button,
.liv-product-detail-module .liv-detail-mint .dnnPrimaryAction {
    width: 100%;
    padding: 16px 24px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #00ab54 0%, #00c569 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 171, 84, 0.3);
    position: relative;
    overflow: hidden;
}

.liv-product-detail-module .liv-detail-mint button::before,
.liv-product-detail-module .liv-detail-mint input[type="button"]::before,
.liv-product-detail-module .liv-detail-mint input[type="submit"]::before {
    content: '🌿 ';
    margin-right: 5px;
}

.liv-product-detail-module .liv-detail-mint button:hover,
.liv-product-detail-module .liv-detail-mint input[type="button"]:hover,
.liv-product-detail-module .liv-detail-mint input[type="submit"]:hover {
    background: linear-gradient(135deg, #00c569 0%, #00d975 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 171, 84, 0.4);
}

/* ============================================
   FLAVOR BUTTONS - LEMON (YELLOW) - UNIQUE CLASS!
   Changed from "lemon-flavor" to "liv-detail-lemon"
   ============================================ */

.liv-product-detail-module .liv-detail-lemon button,
.liv-product-detail-module .liv-detail-lemon input[type="button"],
.liv-product-detail-module .liv-detail-lemon input[type="submit"],
.liv-product-detail-module .liv-detail-lemon .wsc-button,
.liv-product-detail-module .liv-detail-lemon .dnnPrimaryAction {
    width: 100%;
    padding: 16px 24px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f9d423 0%, #ffc107 100%);
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(249, 212, 35, 0.3);
    position: relative;
    overflow: hidden;
}

.liv-product-detail-module .liv-detail-lemon button::before,
.liv-product-detail-module .liv-detail-lemon input[type="button"]::before,
.liv-product-detail-module .liv-detail-lemon input[type="submit"]::before {
    content: '🍋 ';
    margin-right: 5px;
}

.liv-product-detail-module .liv-detail-lemon button:hover,
.liv-product-detail-module .liv-detail-lemon input[type="button"]:hover,
.liv-product-detail-module .liv-detail-lemon input[type="submit"]:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 212, 35, 0.4);
}

/* ============================================
   FLAVOR BUTTONS - CAFFEINE FREE (PURPLE) - NEW!
   For products with 3 flavor options
   ============================================ */

.liv-product-detail-module .liv-detail-caffeinefree button,
.liv-product-detail-module .liv-detail-caffeinefree input[type="button"],
.liv-product-detail-module .liv-detail-caffeinefree input[type="submit"],
.liv-product-detail-module .liv-detail-caffeinefree .wsc-button,
.liv-product-detail-module .liv-detail-caffeinefree .dnnPrimaryAction {
    width: 100%;
    padding: 16px 24px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
    position: relative;
    overflow: hidden;
}

.liv-product-detail-module .liv-detail-caffeinefree button::before,
.liv-product-detail-module .liv-detail-caffeinefree input[type="button"]::before,
.liv-product-detail-module .liv-detail-caffeinefree input[type="submit"]::before {
    content: '🍃 ';
    margin-right: 5px;
}

.liv-product-detail-module .liv-detail-caffeinefree button:hover,
.liv-product-detail-module .liv-detail-caffeinefree input[type="button"]:hover,
.liv-product-detail-module .liv-detail-caffeinefree input[type="submit"]:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

/* ============================================
   SINGLE BUTTON - SMART START (BLUE) - NEW!
   For products with only one option
   ============================================ */

.liv-product-detail-module .liv-detail-onebutton button,
.liv-product-detail-module .liv-detail-onebutton input[type="button"],
.liv-product-detail-module .liv-detail-onebutton input[type="submit"],
.liv-product-detail-module .liv-detail-onebutton .wsc-button,
.liv-product-detail-module .liv-detail-onebutton .dnnPrimaryAction {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.liv-product-detail-module .liv-detail-onebutton button::before,
.liv-product-detail-module .liv-detail-onebutton input[type="button"]::before,
.liv-product-detail-module .liv-detail-onebutton input[type="submit"]::before {
    content: '🧠 ';
    margin-right: 8px;
}

.liv-product-detail-module .liv-detail-onebutton button:hover,
.liv-product-detail-module .liv-detail-onebutton input[type="button"]:hover,
.liv-product-detail-module .liv-detail-onebutton input[type="submit"]:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Single button takes more width for prominence */
.liv-product-detail-module .liv-detail-onebutton {
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   3-BUTTON LAYOUT - NEW!
   First row: Mint & Lemon side-by-side
   Second row: Caffeine Free full width
   ============================================ */

.liv-product-detail-module .liv-detail-flavor-row-top {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.liv-product-detail-module .liv-detail-flavor-row-top .liv-detail-flavor-wrapper {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.liv-product-detail-module .liv-detail-flavor-row-bottom {
    display: flex;
    justify-content: center;
}

.liv-product-detail-module .liv-detail-flavor-row-bottom .liv-detail-flavor-wrapper {
    flex: 1;
    max-width: 615px; /* Same as combined width of two buttons above (300 + 300 + 15 gap) */
}

/* Full width variant for single button in bottom row */
.liv-product-detail-module .liv-detail-flavor-full {
    width: 100%;
}

/* ============================================
   BUTTON ACTIVE STATES
   ============================================ */

.liv-product-detail-module .liv-core button:active,
.liv-product-detail-module .liv-core input[type="button"]:active,
.liv-product-detail-module .liv-core input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RIPPLE EFFECT FOR BUTTONS
   ============================================ */

.liv-product-detail-module .liv-core button::after,
.liv-product-detail-module .liv-core input[type="button"]::after,
.liv-product-detail-module .liv-core input[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.liv-product-detail-module .liv-core button:hover::after,
.liv-product-detail-module .liv-core input[type="button"]:hover::after,
.liv-product-detail-module .liv-core input[type="submit"]:hover::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.liv-product-detail-module .hide {
    display: none !important;
}

.liv-product-detail-module .row {
    margin-left: -15px;
    margin-right: -15px;
}

.liv-product-detail-module .col-md-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .liv-product-detail-module .container-flow {
        padding: 15px;
    }

    .liv-product-detail-module .liv-detail-header {
        padding: 20px;
    }

    .liv-product-detail-module .liv-detail-title {
        font-size: 2em;
    }

    .liv-product-detail-module .liv-detail-subtitle {
        font-size: 1em;
    }

    .liv-product-detail-module .table-responsive {
        padding: 15px 20px;
    }

    .liv-product-detail-module .table tbody tr td {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .liv-product-detail-module .table tbody tr td:last-child {
        font-size: 1.1em;
    }

    .liv-product-detail-module .liv-detail-flavor-section {
        padding: 20px;
    }

    .liv-product-detail-module .liv-detail-flavor-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .liv-product-detail-module .liv-detail-flavor-wrapper {
        max-width: 100%;
    }

    .liv-product-detail-module .liv-detail-promo-highlight::before {
        font-size: 0.65em;
        padding: 3px 8px;
        top: -8px;
        right: 15px;
    }

    /* 3-button layout - stack on tablet */
    .liv-product-detail-module .liv-detail-flavor-row-top {
        flex-direction: column;
        gap: 12px;
    }

    .liv-product-detail-module .liv-detail-flavor-row-top .liv-detail-flavor-wrapper {
        max-width: 100%;
    }

    .liv-product-detail-module .liv-detail-flavor-row-bottom .liv-detail-flavor-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .liv-product-detail-module .liv-detail-title {
        font-size: 1.6em;
    }

    .liv-product-detail-module .liv-detail-subtitle {
        font-size: 0.9em;
    }

    .liv-product-detail-module .table tbody tr td:first-child {
        width: 50%;
        font-size: 0.9em;
    }

    .liv-product-detail-module .table tbody tr td:last-child {
        font-size: 1em;
    }

    .liv-product-detail-module .liv-core button,
    .liv-product-detail-module .liv-core input[type="button"],
    .liv-product-detail-module .liv-core input[type="submit"] {
        padding: 14px 20px;
        font-size: 0.95em;
    }

    /* Badge responsive - stack on small screens */
    .liv-product-detail-module .liv-detail-badge {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        text-align: center;
        width: fit-content;
        font-size: 0.65em;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes liv-detail-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.liv-product-detail-module .liv-detail-card {
    animation: liv-detail-fadeIn 0.5s ease-out;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.liv-product-detail-module button:focus,
.liv-product-detail-module input[type="button"]:focus,
.liv-product-detail-module input[type="submit"]:focus {
    outline: 3px solid #00ab54;
    outline-offset: 3px;
}

.liv-product-detail-module .liv-detail-lemon button:focus,
.liv-product-detail-module .liv-detail-lemon input[type="button"]:focus,
.liv-product-detail-module .liv-detail-lemon input[type="submit"]:focus {
    outline: 3px solid #f9d423;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .liv-product-detail-module *,
    .liv-product-detail-module *::before,
    .liv-product-detail-module *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .liv-product-detail-module .liv-detail-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .liv-product-detail-module .liv-detail-flavor-section,
    .liv-product-detail-module .liv-core {
        display: none;
    }
}
