/* Reset and base styles */
:root {
    --primary-color: #ffd700;
    --secondary-color: #ff9500;
    --accent-color: #ff6b35;
    --dark-bg: #0f0a05;
    --dark-surface: #1a130a;
    --text-primary: #ffffff;
    --text-secondary: #d4af37;
    --accent-gradient: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    --border-color: rgba(255, 215, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --success: #10b981;
    --danger: #ef4444;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
    background-image: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.1), transparent 50%),
                      radial-gradient(ellipse at bottom, rgba(255, 149, 0, 0.08), transparent 50%);
    overflow-x: hidden;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    padding: 2rem 0 0 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   PRODUCT MAIN SECTION - Two Column Layout
   ======================================== */

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Left Panel - Image */
.product-image-panel {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.product-image-container {
    background: linear-gradient(135deg, rgba(26, 19, 10, 0.8), rgba(15, 10, 5, 0.8));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.product-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 149, 0, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* Right Panel - Product Info */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* ========================================
   VARIATIONS SELECTOR
   ======================================== */

.variations-selector {
    background: rgba(26, 19, 10, 0.5);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.selector-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variation-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(26, 19, 10, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variation-option:hover {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.05);
}

.variation-option.selected {
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
}

.option-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.variation-option.selected .option-radio {
    border-color: var(--primary-color);
}

.radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.variation-option.selected .radio-dot {
    transform: scale(1);
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.option-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.option-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

.option-price.unavailable {
    color: #6b7280;
    font-weight: 500;
}

/* Selected Price Display */
.selected-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 149, 0, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.price-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-value.unavailable {
    color: #6b7280;
    font-size: 1.5rem;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.add-to-cart-btn,
.buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn {
    background: var(--success);
    color: white;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #0d9369;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.buy-now-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #1a130a;
}

.buy-now-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.add-to-cart-btn:disabled,
.buy-now-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-to-cart-btn svg,
.buy-now-btn svg {
    flex-shrink: 0;
}

/* ========================================
   GUEST CHECKOUT SECTION
   ======================================== */

.guest-checkout-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.email-input-group input {
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    background: rgba(26, 19, 10, 0.5);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.email-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.email-input-group input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

/* ========================================
   TABS SECTION
   ======================================== */

.tabs-section {
    background: linear-gradient(135deg, rgba(26, 19, 10, 0.8), rgba(15, 10, 5, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    overflow: hidden;
    margin-bottom: 60px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.tab-btn {
    flex: 1;
    padding: 20px 30px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 215, 0, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    background: rgba(255, 215, 0, 0.08);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tabs-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Description Content */
.description-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    font-weight: 600;
}

.description-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 25px 0;
}

/* Variation Description Block */
.variation-description-block {
    margin-bottom: 20px;
}

.variation-divider {
    border: none;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    margin: 30px 0;
}

.features-section,
.requirements-section {
    background: rgba(26, 19, 10, 0.5);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.features-section h4,
.requirements-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.features-list,
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.features-list li,
.requirements-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 24px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.requirements-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(26, 19, 10, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 215, 0, 0.25);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.05);
}

.faq-question span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-icon {
    stroke: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px 24px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   EMPTY STATE & ERROR
   ======================================== */

.empty-state,
.error-container {
    text-align: center;
    max-width: 500px;
    margin: 60px auto;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(26, 19, 10, 0.8), rgba(15, 10, 5, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.error-container h3 {
    color: var(--danger);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.empty-state p,
.error-container p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding: 3rem 0 0 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

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

@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-image-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 80px;
        padding: 1rem 0 0 0;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .tabs-content {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .variations-selector {
        padding: 16px;
    }

    .variation-option {
        padding: 14px 16px;
    }

    .price-value {
        font-size: 1.6rem;
    }

    .tab-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .faq-question span {
        font-size: 0.95rem;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-main {
    animation: fadeInUp 0.5s ease forwards;
}

.tabs-section {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}
