:root {
    --primary-red: #ff3131;
    --primary-hover: #d12a2a;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e6e6e6;
    --bg-light: #f9f9f9;
    --success-red: #ff3131;
    --alert-red: #ff5252;
    --gold: #ffc107;
    --white: #ffffff;
    --black: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Common Layout Patterns */
.header-container, .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.header-container, .logo, .logo-icon, .header-right, 
.language-dropdown, .alert-box, .stock-bar-container, 
.package-option, .payment-header, .paypal-option {
    display: flex;
    align-items: center;
}

/* Typography Helpers */
.top-banner, .logo-main, .logo-slogan, .pkg-tag {
    text-transform: uppercase;
}

h2, .section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Top Banner */
.top-banner {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.header-container {
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    color: var(--white);
    background-color: #141414;
    padding: 12px;
    border-radius: 8px;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 28px;
    font-weight: 400;
    color: var(--black);
    line-height: 1.2;
    letter-spacing: 3px;
}

.logo-slogan {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 2px;
}

.header-right {
    gap: 20px;
}

.header-icon {
    font-size: 20px;
    color: var(--black);
}

/* Language Dropdown */
.language-selector {
    position: relative;
}

.language-dropdown {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    cursor: pointer;
    gap: 8px;
    min-width: 100px;
    transition: all 0.2s;
}

.language-dropdown:hover {
    border-color: var(--black);
}

.language-dropdown select {
    border: none;
    background: transparent;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 20px;
}

.language-dropdown select option {
    background-color: var(--white);
    color: var(--black);
    padding: 10px;
}

/* Main Container */
.container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
}

/* Left Column Styles */
.alert-box {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    gap: 12px;
}

.stock-alert { background-color: #f5f5f5; }
.discount-alert { background-color: #e3f2fd; }
.timer-alert { background-color: #fff9c4; }

.stock-bar-container {
    gap: 10px;
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.stock-number {
    color: #d32f2f;
    font-weight: 700;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 90%;
    background: linear-gradient(to right, #ffcdd2, #ef5350, #d32f2f, var(--alert-red));
    border-radius: 4px;
}

.discount-icon, .timer-icon {
    font-size: 20px;
    color: var(--text-dark);
}

.discount-text, .timer-text {
    font-size: 14px;
    color: var(--text-dark);
}

.discount-text { font-weight: 500; }
.timer-countdown { font-weight: 700; }

/* Package Selector */
.package-option {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
}

.package-option:hover { border-color: #bbb; }

.package-option.selected {
    border: 2px solid var(--primary-red);
    background-color: #fff5f5;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
}

.package-option.selected .radio-circle { border-color: var(--primary-red); }
.package-option.selected .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.prod-img {
    width: auto;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.pkg-details { flex-grow: 1; }
.pkg-title { font-weight: 700; font-size: 16px; }

.pkg-tag {
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 10px;
}

.best-seller { background-color: var(--primary-red); color: var(--white); }
.pkg-price { text-align: right; }
.old-price { text-decoration: line-through; color: #999; font-size: 13px; }
.new-price { font-weight: 800; font-size: 18px; color: var(--text-dark); }

/* Product Description Section */
.product-info-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #444;
}

.product-info-box ul { padding-left: 20px; margin-top: 10px; }
.product-info-box li { margin-bottom: 5px; }

/* Order Now Container */
.order-now-container {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.order-now-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    background-color: var(--black);
    margin: -25px -25px 25px -25px;
    padding: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px 8px 0 0;
}

/* Payment Methods */
.payment-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.payment-header {
    background: #f4f6f8;
    padding: 10px 15px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.cc-icons i { font-size: 20px; margin-left: 5px; color: #555; }
.payment-body { padding: 20px; background: var(--white); }

.input-group { margin-bottom: 15px; position: relative; }
.form-row { display: flex; gap: 15px; }
.form-row .input-group { flex: 1; }

input[type="text"], input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #999;
}

.paypal-option {
    padding: 15px;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.paypal-option:hover {
    background-color: #f9f9f9;
}

.paypal-option input[type="radio"] {
    cursor: pointer;
}

/* Payment Icons - Default grey when not selected */
.payment-icon {
    color: #999 !important;
    transition: color 0.3s ease;
}

/* Payment Icons - Colored when selected */
.payment-selected .payment-icon-paypal {
    color: #003087 !important;
}

.payment-selected .payment-icon-credit {
    color: #1a73e8 !important;
}

.payment-selected .payment-icon-crypto {
    color: #f7931a !important;
}

.payment-selected .payment-icon-bank {
    color: #0066cc !important;
}

.payment-selected .payment-icon-other {
    color: #6c5ce7 !important;
}

/* Button Container & Buttons */
.button-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-complete, .btn-demo {
    border: none;
    flex: 1;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

.btn-complete {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(255, 49, 49, 0.2);
}

.btn-complete:hover { background-color: var(--primary-hover); }

.btn-demo {
    background-color: var(--gold);
    color: var(--text-dark);
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.3);
}

.btn-demo:hover { background-color: #ffb300; }

.secure-text {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

/* Right Column */
.right-column {
    background-color: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-dark);
}

.summary-total {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.usp-section { margin-top: 30px; }
.usp-item { display: flex; gap: 15px; margin-bottom: 20px; }
.usp-icon { font-size: 24px; color: var(--text-dark); width: 30px; text-align: center; }

.usp-text h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.usp-text p { font-size: 11px; color: var(--text-light); line-height: 1.4; }

/* Reviews */
.reviews-section {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.review-header {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-bottom: 15px;
}

.review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.stars { color: var(--success-red); font-size: 12px; margin-bottom: 5px; }

.reviewer-name {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.verified { color: var(--success-red); font-weight: 400; }
.review-title { font-weight: 700; font-size: 13px; margin: 5px 0; }
.review-text { font-size: 12px; color: #555; line-height: 1.4; }

/* Footer */
footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    font-size: 10px;
    color: #999;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    .right-column { order: 2; }
    
    /* Package Option Mobile Layout */
    .package-option {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 10px 15px;
        padding: 15px;
        position: relative;
        align-items: start;
    }
    
    .package-option > .radio-circle {
        position: absolute;
        right: 15px;
        margin-right: 0;
        z-index: 1;
        grid-column: 2;
        grid-row: 1;
    }
    
    .package-option > .prod-img {
        width: auto;
        height: 60px;
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
    }
    
    .pkg-details {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        margin: 0;
        padding-right: 40px; /* Space for radio button */
    }
    
    .pkg-title {
        margin-bottom: 5px;
        font-size: 14px;
    }
    
    .pkg-price {
        grid-column: 2;
        grid-row: 2;
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
        margin: 0;
        padding-right: 40px; /* Space for radio button */
        gap: 3px;
    }
    
    .pkg-price .old-price,
    .pkg-price .new-price {
        text-align: left;
    }
    
    .pkg-price .old-price {
        font-size: 11px;
    }
    
    .pkg-price .new-price {
        font-size: 16px;
    }
    
    /* Form Inputs Mobile Layout */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .resp-roxex {
        margin-top: 16px;
        padding-bottom: 20px;
    }
    
    .form-row .input-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .form-row .input-group:last-child {
        margin-bottom: 0;
    }
}