/**
 * 🎮 Retro Pixel Art Design System
 * Inspired by 8-bit/16-bit gaming aesthetics
 */

/* ==================== IMPORT FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ==================== ROOT VARIABLES ==================== */
:root {
    /* 🎨 Retro Color Palette */
    --retro-bg: #DCE3E6;                    /* Light gray background */
    --retro-dark: #2e2e2e;                  /* Dark gray/black */
    --retro-white: #fff;                    /* Pure white */
    --retro-green: #6abc3a;                 /* Retro green */
    --retro-red: #e74c3c;                   /* Retro red */
    --retro-blue: #3498db;                  /* Retro blue */
    --retro-yellow: #f1c40f;                /* Retro yellow */
    --retro-purple: #9b59b6;                /* Retro purple */
    --retro-orange: #e67e22;                /* Retro orange */
    
    /* 🌈 Extended Palette */
    --retro-pink: #ff6b9d;
    --retro-cyan: #4ecdc4;
    --retro-lime: #a8e6cf;
    --retro-coral: #ff8a80;
    
    /* 📏 Spacing Scale */
    --retro-space-xs: 5px;
    --retro-space-sm: 10px;
    --retro-space-md: 15px;
    --retro-space-lg: 20px;
    --retro-space-xl: 30px;
    --retro-space-2xl: 40px;
    
    /* 📐 Border Radius (Pixel Perfect) */
    --retro-radius: 0px;                    /* No border radius for pixel art */
    
    /* 🌟 Shadows - Retro 8-bit Style */
    --retro-shadow-base: 0px 5px black, 0px -5px black, 5px 0px black, -5px 0px black;
    --retro-shadow-depth: 0px 10px #00000038, 5px 5px #00000038, -5px 5px #00000038;
    --retro-shadow-inset-light: inset 0px 5px #ffffff36;
    --retro-shadow-inset-dark: inset 0px -5px #00000030;
    --retro-shadow-full: var(--retro-shadow-base), var(--retro-shadow-depth), var(--retro-shadow-inset-light), var(--retro-shadow-inset-dark);
    --retro-shadow-active: var(--retro-shadow-base), inset 0px 5px #00000038;
    
    /* 📝 Typography */
    --retro-font: "Press Start 2P", system-ui, monospace;
    --retro-font-size-xs: 8px;
    --retro-font-size-sm: 10px;
    --retro-font-size-base: 12px;
    --retro-font-size-md: 14px;
    --retro-font-size-lg: 16px;
    --retro-font-size-xl: 20px;
    --retro-font-size-2xl: 24px;
    --retro-font-size-3xl: 32px;
    
    /* ⚡ Transitions */
    --retro-transition: 100ms ease;
}

/* ==================== BASE STYLES ==================== */
.retro-body {
    background: var(--retro-bg);
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-base);
    line-height: 1.6;
    color: var(--retro-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.product-detail.retro-body {
    background: var(--retro-white);
    border: 5px solid var(--retro-dark);
    box-shadow: var(--retro-shadow-full);
    border-radius: 0;
    padding: var(--retro-space-2xl);
    margin: var(--retro-space-xl) auto;
    max-width: 1100px;
}

/* ==================== CONTAINER SYSTEM ==================== */
/* .retro-container {
    width: 70%;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: var(--retro-space-lg);
} */

.retro-container--wide {
    width: 90%;
}

.retro-container--narrow {
    width: 50%;
}

.retro-container--full {
    width: 100%;
    padding: var(--retro-space-md);
}

/* ==================== TITLE SYSTEM ==================== */
.retro-title {
    background: var(--retro-dark);
    padding: var(--retro-space-md);
    color: var(--retro-white);
    margin-bottom: var(--retro-space-xl);
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-2xl);
    box-shadow: var(--retro-shadow-full);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.retro-title--sm {
    font-size: var(--retro-font-size-lg);
    padding: var(--retro-space-sm);
    margin-bottom: var(--retro-space-lg);
}

.retro-title--lg {
    font-size: var(--retro-font-size-3xl);
    padding: var(--retro-space-lg);
    margin-bottom: var(--retro-space-2xl);
}

/* Title Color Variants */
.retro-title--green {
    background: var(--retro-green);
}

.retro-title--red {
    background: var(--retro-red);
}

.retro-title--blue {
    background: var(--retro-blue);
}

.retro-title--yellow {
    background: var(--retro-yellow);
    color: var(--retro-dark);
}

.retro-title--purple {
    background: var(--retro-purple);
}

/* ==================== BUTTON SYSTEM ==================== */
.retro-btn {
    color: var(--retro-white);
    background-color: var(--retro-green);
    padding: var(--retro-space-md) var(--retro-space-2xl);
    margin: var(--retro-space-sm);
    font-size: var(--retro-font-size-md);
    font-family: var(--retro-font);
    border: 0;
    box-shadow: var(--retro-shadow-full);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--retro-transition);
    text-decoration: none;
    display: inline-block;
}

.retro-btn:active {
    transform: translateY(5px);
    box-shadow: var(--retro-shadow-active);
}

.retro-btn:hover {
    filter: brightness(1.1);
}

/* Button Size Variants */
.retro-btn--sm {
    padding: var(--retro-space-sm) var(--retro-space-lg);
    font-size: var(--retro-font-size-sm);
}

.retro-btn--lg {
    padding: var(--retro-space-lg) 50px;
    font-size: var(--retro-font-size-lg);
}

.retro-btn--xl {
    padding: var(--retro-space-xl) 60px;
    font-size: var(--retro-font-size-xl);
}

/* Button Color Variants */
.retro-btn--red {
    background-color: var(--retro-red);
}

.retro-btn--blue {
    background-color: var(--retro-blue);
}

.retro-btn--yellow {
    background-color: var(--retro-yellow);
    color: var(--retro-dark);
}

.retro-btn--purple {
    background-color: var(--retro-purple);
}

.retro-btn--orange {
    background-color: var(--retro-orange);
}

.retro-btn--pink {
    background-color: var(--retro-pink);
}

.retro-btn--cyan {
    background-color: var(--retro-cyan);
    color: var(--retro-dark);
}

.retro-btn--dark {
    background-color: var(--retro-dark);
}

/* ==================== CARD SYSTEM ==================== */
.retro-card {
    background: var(--retro-white);
    padding: var(--retro-space-lg);
    margin: var(--retro-space-lg);
    box-shadow: var(--retro-shadow-full);
    border: 3px solid var(--retro-dark);
}

.retro-card--green {
    background: var(--retro-lime);
    border-color: var(--retro-green);
}

.retro-card--blue {
    background: #e3f2fd;
    border-color: var(--retro-blue);
}

.retro-card--red {
    background: #ffebee;
    border-color: var(--retro-red);
}

.retro-card--yellow {
    background: #fffde7;
    border-color: var(--retro-yellow);
}

/* ==================== INPUT SYSTEM ==================== */
.retro-input {
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-md);
    padding: var(--retro-space-md);
    border: 3px solid var(--retro-dark);
    background: var(--retro-white);
    color: var(--retro-dark);
    box-shadow: var(--retro-shadow-base), inset 0px 3px #00000020;
    margin: var(--retro-space-sm);
}

.retro-input:focus {
    outline: none;
    box-shadow: var(--retro-shadow-base), inset 0px 3px var(--retro-green);
    background: #f0fff0;
}

.retro-textarea {
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-base);
    padding: var(--retro-space-md);
    border: 3px solid var(--retro-dark);
    background: var(--retro-white);
    color: var(--retro-dark);
    box-shadow: var(--retro-shadow-base), inset 0px 3px #00000020;
    resize: vertical;
    min-height: 100px;
}

/* ==================== ALERT SYSTEM ==================== */
.retro-alert {
    padding: var(--retro-space-md);
    margin: var(--retro-space-lg) 0;
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-sm);
    box-shadow: var(--retro-shadow-full);
    border: 3px solid;
    text-transform: uppercase;
}

.retro-alert--success {
    background: var(--retro-lime);
    border-color: var(--retro-green);
    color: var(--retro-dark);
}

.retro-alert--error {
    background: var(--retro-coral);
    border-color: var(--retro-red);
    color: var(--retro-white);
}

.retro-alert--warning {
    background: #fffde7;
    border-color: var(--retro-yellow);
    color: var(--retro-dark);
}

.retro-alert--info {
    background: #e3f2fd;
    border-color: var(--retro-blue);
    color: var(--retro-dark);
}

/* ==================== BADGE SYSTEM ==================== */
.retro-badge {
    display: inline-block;
    padding: var(--retro-space-xs) var(--retro-space-sm);
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-xs);
    background: var(--retro-green);
    color: var(--retro-white);
    box-shadow: var(--retro-shadow-base);
    margin: 0 var(--retro-space-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retro-badge--red {
    background: var(--retro-red);
}

.retro-badge--blue {
    background: var(--retro-blue);
}

.retro-badge--yellow {
    background: var(--retro-yellow);
    color: var(--retro-dark);
}

.retro-badge--purple {
    background: var(--retro-purple);
}

/* ==================== PROGRESS BAR ==================== */
.retro-progress {
    width: 100%;
    height: 30px;
    background: var(--retro-white);
    border: 3px solid var(--retro-dark);
    box-shadow: var(--retro-shadow-base), inset 0px 3px #00000020;
    margin: var(--retro-space-md) 0;
    position: relative;
    overflow: hidden;
}

.retro-progress-bar {
    height: 100%;
    background: var(--retro-green);
    transition: width 0.3s ease;
    position: relative;
}

.retro-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.2) 5px,
        rgba(255,255,255,0.2) 10px
    );
}

/* ==================== GRID SYSTEM ==================== */
.retro-grid {
    display: grid;
    gap: var(--retro-space-lg);
    margin: var(--retro-space-xl) 0;
}

.retro-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.retro-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.retro-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==================== UTILITIES ==================== */
.retro-text-center {
    text-align: center;
}

.retro-text-left {
    text-align: left;
}

.retro-text-right {
    text-align: right;
}

.retro-mb-sm { margin-bottom: var(--retro-space-sm); }
.retro-mb-md { margin-bottom: var(--retro-space-md); }
.retro-mb-lg { margin-bottom: var(--retro-space-lg); }
.retro-mb-xl { margin-bottom: var(--retro-space-xl); }

.retro-mt-sm { margin-top: var(--retro-space-sm); }
.retro-mt-md { margin-top: var(--retro-space-md); }
.retro-mt-lg { margin-top: var(--retro-space-lg); }
.retro-mt-xl { margin-top: var(--retro-space-xl); }

/* ==================== ANIMATIONS ==================== */
@keyframes retro-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes retro-bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes retro-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes retro-alert-appear {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.retro-animate-blink {
    animation: retro-blink 1s infinite;
}

.retro-animate-bounce {
    animation: retro-bounce 1s infinite;
}

.retro-animate-shake {
    animation: retro-shake 0.5s infinite;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    /* Mobile: Remove container constraints and make full width */
    .product-detail.retro-body {
        background: var(--retro-bg) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .retro-container {
        width: 100% !important;
        padding: var(--retro-space-sm) !important;
        margin: 0 auto !important;
        max-width: none !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure main content wrapper is centered */
    body.retro-body,
    .product-detail.retro-body {
        display: block !important;
        margin: 0 auto !important;
        text-align: left !important;
    }
    
    .retro-title {
        font-size: var(--retro-font-size-lg);
        padding: var(--retro-space-sm);
    }
    
    .retro-btn {
        padding: var(--retro-space-sm) var(--retro-space-lg);
        font-size: var(--retro-font-size-sm);
        margin: var(--retro-space-xs);
    }
    
    .retro-grid--2,
    .retro-grid--3,
    .retro-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .retro-card {
        margin: var(--retro-space-sm);
        padding: var(--retro-space-md);
    }
    
    .retro-product-container {
        display: flex;
        flex-direction: column;
    }
    .retro-product-image { order: 1; }
    .retro-product-info { order: 2; }
    
    .retro-product-image {
        min-height: 200px;
        padding: var(--retro-space-sm) !important;
    }
    
    .retro-product-image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        border: 2px solid var(--retro-dark) !important;
        border-radius: 0 !important;
        display: block !important;
    }
    
    .retro-form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--retro-space-md) !important;
        grid-template-columns: none !important;
    }
    
    .retro-form-row .retro-form-group {
        width: 100% !important;
        margin-bottom: var(--retro-space-md) !important;
    }
    
    .retro-form-row .retro-input,
    .retro-form-row .retro-textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile: Full width sections with proper padding and centering */
    .retro-product-container,
    .retro-description-container,
    .retro-specs-container,
    .retro-comments-section {
        margin: var(--retro-space-md) auto !important;
        padding: var(--retro-space-md) !important;
        width: calc(100% - 2 * var(--retro-space-md)) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }
    
    .retro-breadcrumb {
        margin: var(--retro-space-sm) auto !important;
        padding: 0 var(--retro-space-md) !important;
        width: calc(100% - 2 * var(--retro-space-md)) !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }
    
    .retro-form-footer {
        flex-direction: column;
        gap: var(--retro-space-sm);
        text-align: center;
    }
    
    .retro-notification {
        top: var(--retro-space-sm);
        right: var(--retro-space-sm);
        left: var(--retro-space-sm);
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .retro-notification.show {
        transform: translateY(0);
    }
    
    .retro-cart-alert,
    .retro-wishlist-alert {
        min-width: 300px;
        width: 90%;
        max-width: 350px;
    }
    
    .retro-modal-content {
        width: 95%;
        padding: var(--retro-space-lg);
    }
}

/* ==================== PRODUCT STYLES ==================== */
.retro-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: var(--retro-space-2xl);
}
.retro-product-image,
.retro-product-info {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.retro-product-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
}

.retro-product-image {
    background: var(--retro-white);
    border: 3px solid var(--retro-dark);
    padding: var(--retro-space-lg);
    box-shadow: var(--retro-shadow-full);
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retro-product-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border: 2px solid var(--retro-dark) !important;
    border-radius: 0 !important;
    display: block !important;
}

.retro-product-image .no-image {
    text-align: center;
    color: var(--retro-dark);
    font-size: var(--retro-font-size-md);
    text-transform: uppercase;
}

.retro-discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--retro-red);
    color: var(--retro-white);
    padding: var(--retro-space-xs) var(--retro-space-sm);
    border: 2px solid var(--retro-dark);
    box-shadow: var(--retro-shadow-base);
    font-size: var(--retro-font-size-xs);
    text-transform: uppercase;
    font-family: var(--retro-font);
}

.retro-product-info {
    background: var(--retro-white);
    border: 3px solid var(--retro-dark);
    padding: var(--retro-space-lg);
    box-shadow: var(--retro-shadow-full);
}

.retro-product-title {
    background: var(--retro-dark);
    color: var(--retro-white);
    padding: var(--retro-space-md);
    margin: 0 0 var(--retro-space-lg) 0;
    font-size: var(--retro-font-size-lg);
    text-transform: uppercase;
    text-align: center;
    box-shadow: var(--retro-shadow-base);
}

.retro-product-summary {
    font-size: var(--retro-font-size-base);
    color: var(--retro-dark);
    margin-bottom: var(--retro-space-lg);
    line-height: 1.6;
    text-align: left;
}

.retro-product-pricing {
    text-align: center;
    margin-bottom: var(--retro-space-lg);
    padding: var(--retro-space-md);
    background: var(--retro-bg);
    border: 2px solid var(--retro-dark);
}

.retro-price-current {
    font-size: var(--retro-font-size-xl);
    color: var(--retro-green);
    font-weight: bold;
    display: block;
    margin-bottom: var(--retro-space-xs);
}

.retro-price-current.free {
    color: var(--retro-blue);
}

.retro-price-original {
    font-size: var(--retro-font-size-md);
    color: var(--retro-red);
    text-decoration: line-through;
}

.retro-product-meta {
    margin-bottom: var(--retro-space-lg);
}

.retro-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--retro-space-sm) 0;
    border-bottom: 1px solid var(--retro-dark);
    font-size: var(--retro-font-size-sm);
}

.retro-meta-item:last-child {
    border-bottom: none;
}

.retro-meta-label {
    color: var(--retro-dark);
    text-transform: uppercase;
    font-weight: bold;
}

.retro-product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--retro-space-sm);
}

.retro-product-actions .retro-btn {
    width: 100%;
    text-align: center;
    margin: 0;
}

.retro-product-actions .retro-btn.in-wishlist {
    background-color: var(--retro-pink);
    border-color: var(--retro-pink);
}

.retro-product-actions .retro-btn.in-wishlist:hover {
    filter: brightness(1.2);
}

/* ==================== COMMENT SYSTEM ==================== */
.retro-comments-section {
    background: var(--retro-bg);
    border: 3px solid var(--retro-dark);
    padding: var(--retro-space-xl);
    margin: var(--retro-space-2xl) 0;
    box-shadow: var(--retro-shadow-full);
}

.retro-comments-header {
    text-align: center;
    margin-bottom: var(--retro-space-xl);
}

.retro-comments-header .retro-title {
    margin-bottom: var(--retro-space-md);
}

.retro-comments-subtitle {
    font-size: var(--retro-font-size-sm);
    color: var(--retro-dark);
    text-transform: uppercase;
    margin-bottom: var(--retro-space-lg);
}

.retro-comment-form {
    background: var(--retro-white);
    border: 3px solid var(--retro-dark);
    padding: var(--retro-space-lg);
    margin-bottom: var(--retro-space-xl);
    box-shadow: var(--retro-shadow-base);
}

.retro-comment-form-title {
    background: var(--retro-blue);
    color: var(--retro-white);
    padding: var(--retro-space-sm);
    margin: -var(--retro-space-lg) -var(--retro-space-lg) var(--retro-space-lg) -var(--retro-space-lg);
    font-size: var(--retro-font-size-md);
    text-transform: uppercase;
    text-align: center;
}

.retro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--retro-space-lg);
    margin-bottom: var(--retro-space-lg);
}

.retro-form-group {
    margin-bottom: var(--retro-space-lg);
}

.retro-form-label {
    display: block;
    font-size: var(--retro-font-size-sm);
    color: var(--retro-dark);
    text-transform: uppercase;
    margin-bottom: var(--retro-space-xs);
    font-weight: bold;
}

.retro-form-label .required {
    color: var(--retro-red);
}

.retro-input {
    width: 100%;
    box-sizing: border-box;
}

.retro-textarea {
    width: 100%;
    box-sizing: border-box;
}

.retro-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: var(--retro-space-xs);
    margin: var(--retro-space-sm) 0;
}

.retro-star-rating input {
    display: none;
}

.retro-star-rating label {
    color: var(--retro-dark);
    font-size: var(--retro-font-size-lg);
    cursor: pointer;
    transition: none;
    border: 2px solid var(--retro-dark);
    padding: var(--retro-space-xs);
    background: var(--retro-white);
}

.retro-star-rating label:hover,
.retro-star-rating input:checked ~ label {
    color: var(--retro-yellow);
    background: var(--retro-yellow);
    color: var(--retro-dark);
}

.retro-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--retro-space-lg);
}

.retro-form-note {
    font-size: var(--retro-font-size-xs);
    color: var(--retro-dark);
    text-transform: uppercase;
}

.retro-char-count {
    font-size: var(--retro-font-size-xs);
    color: var(--retro-blue);
    text-align: right;
    margin-top: var(--retro-space-xs);
}

/* ==================== NOTIFICATION SYSTEM ==================== */
.retro-notification {
    position: fixed;
    top: var(--retro-space-lg);
    right: var(--retro-space-lg);
    z-index: 9999;
    background: var(--retro-white);
    border: 3px solid var(--retro-dark);
    padding: var(--retro-space-lg);
    box-shadow: var(--retro-shadow-full);
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-sm);
    text-transform: uppercase;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(450px);
    transition: transform 0.3s ease;
}

.retro-notification.show {
    transform: translateX(0);
}

.retro-notification--success {
    background: var(--retro-lime);
    border-color: var(--retro-green);
    color: var(--retro-dark);
}

.retro-notification--error {
    background: var(--retro-coral);
    border-color: var(--retro-red);
    color: var(--retro-white);
}

.retro-notification--warning {
    background: #fffde7;
    border-color: var(--retro-yellow);
    color: var(--retro-dark);
}

.retro-notification--info {
    background: #e3f2fd;
    border-color: var(--retro-blue);
    color: var(--retro-dark);
}

.retro-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--retro-space-sm);
}

.retro-notification-title {
    font-size: var(--retro-font-size-md);
    font-weight: bold;
    color: inherit;
}

.retro-notification-close {
    background: var(--retro-dark);
    color: var(--retro-white);
    border: none;
    width: 24px;
    height: 24px;
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retro-notification-close:hover {
    background: var(--retro-red);
}

.retro-notification-body {
    font-size: var(--retro-font-size-sm);
    line-height: 1.4;
    color: inherit;
}

.retro-notification-icon {
    display: inline-block;
    margin-right: var(--retro-space-sm);
    font-size: var(--retro-font-size-md);
}

/* ==================== MODAL SYSTEM ==================== */
.retro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.retro-modal.show {
    display: flex;
}

.retro-modal-content {
    background: var(--retro-white);
    border: 5px solid var(--retro-dark);
    padding: var(--retro-space-2xl);
    box-shadow: var(--retro-shadow-full);
    max-width: 500px;
    width: 90%;
    text-align: center;
    font-family: var(--retro-font);
}

.retro-modal-header {
    background: var(--retro-dark);
    color: var(--retro-white);
    padding: var(--retro-space-md);
    margin: -var(--retro-space-2xl) -var(--retro-space-2xl) var(--retro-space-lg) -var(--retro-space-2xl);
    font-size: var(--retro-font-size-lg);
    text-transform: uppercase;
}

.retro-modal-header--success {
    background: var(--retro-green);
}

.retro-modal-header--error {
    background: var(--retro-red);
}

.retro-modal-header--warning {
    background: var(--retro-yellow);
    color: var(--retro-dark);
}

.retro-modal-header--info {
    background: var(--retro-blue);
}

.retro-modal-body {
    font-size: var(--retro-font-size-base);
    color: var(--retro-dark);
    margin-bottom: var(--retro-space-lg);
    line-height: 1.6;
}

.retro-modal-icon {
    font-size: var(--retro-font-size-3xl);
    margin-bottom: var(--retro-space-md);
    display: block;
}

.retro-modal-icon--success {
    color: var(--retro-green);
}

.retro-modal-icon--error {
    color: var(--retro-red);
}

.retro-modal-icon--warning {
    color: var(--retro-yellow);
}

.retro-modal-icon--info {
    color: var(--retro-blue);
}

.retro-modal-footer {
    display: flex;
    justify-content: center;
    gap: var(--retro-space-md);
}

/* ==================== CART/WISHLIST SPECIFIC ALERTS ==================== */
.retro-cart-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--retro-white);
    border: 4px solid var(--retro-green);
    padding: var(--retro-space-2xl);
    box-shadow: var(--retro-shadow-full);
    z-index: 10000;
    text-align: center;
    font-family: var(--retro-font);
    min-width: 350px;
    display: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.retro-cart-alert.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: retro-alert-appear 0.3s ease-out;
}

.retro-cart-alert--success {
    border-color: var(--retro-green);
    background: var(--retro-lime);
}

.retro-cart-alert--error {
    border-color: var(--retro-red);
    background: var(--retro-coral);
    color: var(--retro-white);
}

.retro-cart-alert-header {
    background: var(--retro-green);
    color: var(--retro-white);
    padding: var(--retro-space-md);
    margin: -var(--retro-space-2xl) -var(--retro-space-2xl) var(--retro-space-lg) -var(--retro-space-2xl);
    font-size: var(--retro-font-size-md);
    text-transform: uppercase;
}

.retro-cart-alert-header--error {
    background: var(--retro-red);
}

.retro-cart-alert-icon {
    font-size: var(--retro-font-size-2xl);
    margin-bottom: var(--retro-space-md);
    display: block;
}

.retro-cart-alert-message {
    font-size: var(--retro-font-size-sm);
    color: var(--retro-dark);
    margin-bottom: var(--retro-space-lg);
    text-transform: uppercase;
}

.retro-cart-alert-message--error {
    color: var(--retro-white);
}

.retro-wishlist-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--retro-white);
    border: 4px solid var(--retro-pink);
    padding: var(--retro-space-2xl);
    box-shadow: var(--retro-shadow-full);
    z-index: 10000;
    text-align: center;
    font-family: var(--retro-font);
    min-width: 350px;
    display: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.retro-wishlist-alert.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: retro-alert-appear 0.3s ease-out;
}

.retro-wishlist-alert-header {
    background: var(--retro-pink);
    color: var(--retro-white);
    padding: var(--retro-space-md);
    margin: -var(--retro-space-2xl) -var(--retro-space-2xl) var(--retro-space-lg) -var(--retro-space-2xl);
    font-size: var(--retro-font-size-md);
    text-transform: uppercase;
}

.retro-wishlist-alert-icon {
    font-size: var(--retro-font-size-2xl);
    color: var(--retro-pink);
    margin-bottom: var(--retro-space-md);
    display: block;
}

.retro-wishlist-alert-message {
    font-size: var(--retro-font-size-sm);
    color: var(--retro-dark);
    margin-bottom: var(--retro-space-lg);
    text-transform: uppercase;
}

/* ==================== OVERLAY ==================== */
.retro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.retro-overlay.show {
    display: block;
}

/* ==================== PRODUCT DESCRIPTION ==================== */
.retro-description-container {
    background: var(--retro-white);
    border: 3px solid var(--retro-dark);
    padding: var(--retro-space-lg);
    margin: var(--retro-space-lg) 0;
    box-shadow: var(--retro-shadow-full);
    font-family: var(--retro-font);
}

.retro-description-header {
    background: var(--retro-blue);
    color: var(--retro-white);
    padding: var(--retro-space-md);
    margin: -var(--retro-space-lg) -var(--retro-space-lg) var(--retro-space-lg) -var(--retro-space-lg);
    font-size: var(--retro-font-size-lg);
    text-transform: uppercase;
    text-align: center;
    border-bottom: 3px solid var(--retro-dark);
}

.retro-description-content {
    font-size: var(--retro-font-size-base);
    line-height: 1.8;
    color: var(--retro-dark);
}

.retro-description-content h1,
.retro-description-content h2,
.retro-description-content h3,
.retro-description-content h4,
.retro-description-content h5,
.retro-description-content h6 {
    background: var(--retro-green);
    color: var(--retro-white);
    padding: var(--retro-space-sm) var(--retro-space-md);
    margin: var(--retro-space-lg) 0 var(--retro-space-md) 0;
    border: 2px solid var(--retro-dark);
    text-transform: uppercase;
    font-size: var(--retro-font-size-md);
    box-shadow: var(--retro-shadow-base);
}

.retro-description-content p {
    margin-bottom: var(--retro-space-md);
    padding: var(--retro-space-sm);
    background: #f8fafc;
    border-left: 4px solid var(--retro-blue);
    text-align: left;
}

.retro-description-content ul,
.retro-description-content ol {
    background: var(--retro-bg);
    border: 2px solid var(--retro-dark);
    padding: var(--retro-space-md);
    margin: var(--retro-space-md) 0;
    list-style: none;
}

.retro-description-content ul li,
.retro-description-content ol li {
    padding: var(--retro-space-xs) 0;
    border-bottom: 1px solid var(--retro-dark);
    position: relative;
    padding-left: var(--retro-space-lg);
    font-size: var(--retro-font-size-sm);
}

.retro-description-content ul li:last-child,
.retro-description-content ol li:last-child {
    border-bottom: none;
}

.retro-description-content ul li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--retro-green);
    font-weight: bold;
}

.retro-description-content ol {
    counter-reset: retro-counter;
}

.retro-description-content ol li {
    counter-increment: retro-counter;
}

.retro-description-content ol li:before {
    content: counter(retro-counter);
    position: absolute;
    left: 0;
    background: var(--retro-yellow);
    color: var(--retro-dark);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--retro-font-size-xs);
    border: 1px solid var(--retro-dark);
    font-weight: bold;
}

.retro-description-content strong,
.retro-description-content b {
    background: var(--retro-yellow);
    color: var(--retro-dark);
    padding: 2px 4px;
    border: 1px solid var(--retro-dark);
    text-transform: uppercase;
    font-size: var(--retro-font-size-xs);
}

.retro-description-content em,
.retro-description-content i {
    background: var(--retro-pink);
    color: var(--retro-white);
    padding: 2px 4px;
    border: 1px solid var(--retro-dark);
    font-style: normal;
    text-transform: uppercase;
    font-size: var(--retro-font-size-xs);
}

.retro-description-content blockquote {
    background: var(--retro-purple);
    color: var(--retro-white);
    padding: var(--retro-space-md);
    margin: var(--retro-space-lg) 0;
    border: 3px solid var(--retro-dark);
    box-shadow: var(--retro-shadow-base);
    position: relative;
    text-transform: uppercase;
}

.retro-description-content blockquote:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--retro-space-md);
    background: var(--retro-purple);
    font-size: var(--retro-font-size-2xl);
    padding: 0 var(--retro-space-xs);
    border: 2px solid var(--retro-dark);
}

.retro-description-content code {
    background: var(--retro-dark);
    color: var(--retro-green);
    padding: 2px 6px;
    border: 1px solid var(--retro-green);
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-xs);
    text-transform: uppercase;
}

.retro-description-content pre {
    background: var(--retro-dark);
    color: var(--retro-green);
    padding: var(--retro-space-md);
    border: 3px solid var(--retro-green);
    overflow-x: auto;
    font-family: var(--retro-font);
    font-size: var(--retro-font-size-xs);
    margin: var(--retro-space-lg) 0;
    box-shadow: var(--retro-shadow-base);
}

.retro-description-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    background: var(--retro-dark);
    border: 3px solid var(--retro-dark);
    margin: var(--retro-space-lg) 0;
}

.retro-description-content th {
    background: var(--retro-yellow);
    color: var(--retro-dark);
    padding: var(--retro-space-sm);
    border: 2px solid var(--retro-dark);
    text-transform: uppercase;
    font-size: var(--retro-font-size-sm);
}

.retro-description-content td {
    background: var(--retro-white);
    color: var(--retro-dark);
    padding: var(--retro-space-sm);
    border: 2px solid var(--retro-dark);
    font-size: var(--retro-font-size-sm);
}

.retro-description-content a {
    background: var(--retro-cyan);
    color: var(--retro-dark);
    padding: 2px 6px;
    text-decoration: none;
    border: 1px solid var(--retro-dark);
    text-transform: uppercase;
    font-size: var(--retro-font-size-xs);
}

.retro-description-content a:hover {
    background: var(--retro-blue);
    color: var(--retro-white);
}

.retro-no-description {
    text-align: center;
    padding: var(--retro-space-2xl);
    background: var(--retro-bg);
    border: 2px dashed var(--retro-dark);
    color: var(--retro-dark);
    text-transform: uppercase;
}

.retro-no-description-icon {
    font-size: var(--retro-font-size-3xl);
    margin-bottom: var(--retro-space-md);
    color: var(--retro-dark);
}

/* ==================== PRODUCT SPECIFICATIONS ==================== */
.retro-specs-container {
    background: var(--retro-white);
    border: 3px solid var(--retro-dark);
    padding: var(--retro-space-lg);
    margin: var(--retro-space-lg) 0;
    box-shadow: var(--retro-shadow-full);
    font-family: var(--retro-font);
}

.retro-specs-header {
    background: var(--retro-purple);
    color: var(--retro-white);
    padding: var(--retro-space-md);
    margin: -var(--retro-space-lg) -var(--retro-space-lg) var(--retro-space-lg) -var(--retro-space-lg);
    font-size: var(--retro-font-size-lg);
    text-transform: uppercase;
    text-align: center;
    border-bottom: 3px solid var(--retro-dark);
    position: relative;
}

.retro-specs-header:before {
    content: "⚙";
    position: absolute;
    left: var(--retro-space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--retro-font-size-xl);
}

.retro-specs-header:after {
    content: "⚙";
    position: absolute;
    right: var(--retro-space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--retro-font-size-xl);
}

.retro-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--retro-space-md);
    margin-top: var(--retro-space-lg);
}

.retro-spec-item {
    background: var(--retro-bg);
    border: 2px solid var(--retro-dark);
    padding: var(--retro-space-md);
    position: relative;
    box-shadow: var(--retro-shadow-base);
    transition: all 0.2s ease;
}

.retro-spec-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--retro-shadow-full);
    background: var(--retro-white);
}

.retro-spec-label {
    background: var(--retro-yellow);
    color: var(--retro-dark);
    padding: var(--retro-space-xs) var(--retro-space-sm);
    font-size: var(--retro-font-size-xs);
    text-transform: uppercase;
    border: 1px solid var(--retro-dark);
    display: inline-block;
    margin-bottom: var(--retro-space-sm);
    font-weight: bold;
}

.retro-spec-value {
    font-size: var(--retro-font-size-sm);
    color: var(--retro-dark);
    font-weight: bold;
    display: block;
    margin-top: var(--retro-space-xs);
    padding: var(--retro-space-xs);
    background: var(--retro-white);
    border: 1px solid var(--retro-dark);
    text-transform: uppercase;
}

.retro-spec-value.active {
    background: var(--retro-green);
    color: var(--retro-white);
}

.retro-spec-value.inactive {
    background: var(--retro-red);
    color: var(--retro-white);
}

.retro-spec-value.highlight {
    background: var(--retro-blue);
    color: var(--retro-white);
}

.retro-spec-item-id {
    background: var(--retro-cyan);
    color: var(--retro-dark);
}

.retro-spec-item-date {
    background: var(--retro-pink);
    color: var(--retro-white);
}

.retro-spec-item-status {
    background: var(--retro-orange);
    color: var(--retro-white);
}

/* Special styling for specific spec types */
.retro-spec-item[data-type="id"] {
    border-color: var(--retro-cyan);
    border-width: 3px;
}

.retro-spec-item[data-type="id"] .retro-spec-label {
    background: var(--retro-cyan);
    color: var(--retro-dark);
}

.retro-spec-item[data-type="status"] {
    border-color: var(--retro-green);
    border-width: 3px;
}

.retro-spec-item[data-type="status"] .retro-spec-label {
    background: var(--retro-green);
    color: var(--retro-white);
}

.retro-spec-item[data-type="date"] {
    border-color: var(--retro-purple);
    border-width: 3px;
}

.retro-spec-item[data-type="date"] .retro-spec-label {
    background: var(--retro-purple);
    color: var(--retro-white);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .retro-specs-grid {
        grid-template-columns: 1fr;
        gap: var(--retro-space-sm);
    }
    
    .retro-spec-item {
        padding: var(--retro-space-sm);
    }
    
    .retro-specs-header {
        font-size: var(--retro-font-size-md);
        padding: var(--retro-space-sm);
    }
    
    .retro-specs-header:before,
    .retro-specs-header:after {
        font-size: var(--retro-font-size-lg);
    }
}

/* ==================== BREADCRUMB ==================== */
.retro-breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: var(--retro-space-lg);
    font-size: var(--retro-font-size-sm);
}

.retro-breadcrumb-item {
    display: inline-block;
    text-transform: uppercase;
}

.retro-breadcrumb-item::after {
    content: " > ";
    color: var(--retro-dark);
    margin: 0 var(--retro-space-xs);
}

.retro-breadcrumb-item:last-child::after {
    content: "";
}

.retro-breadcrumb-item a {
    color: var(--retro-blue);
    text-decoration: none;
}

.retro-breadcrumb-item.active {
    color: var(--retro-dark);
}

/* ==================== DARK MODE ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --retro-bg: #1a1a1a;
        --retro-white: #f0f0f0;
        --retro-dark: #ffffff;
    }
    
    .retro-body {
        background: var(--retro-bg);
        color: var(--retro-white);
    }
    
    .retro-card {
        background: #2a2a2a;
        color: var(--retro-white);
    }
    
    .retro-input,
    .retro-textarea {
        background: #2a2a2a;
        color: var(--retro-white);
    }
}

@media (max-width: 768px) {
  .retro-product-container {
    display: flex;
    flex-direction: column;
    gap: var(--retro-space-md);
    margin: var(--retro-space-md) 0;
  }
  .retro-product-image,
  .retro-product-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .retro-product-image {
    min-height: 180px;
    padding: var(--retro-space-sm);
    margin-bottom: var(--retro-space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .retro-product-info {
    padding: var(--retro-space-sm);
  }
  .retro-product-title {
    font-size: var(--retro-font-size-md);
    padding: var(--retro-space-xs);
    margin-bottom: var(--retro-space-md);
  }
  .retro-product-actions .retro-btn {
    padding: var(--retro-space-sm) var(--retro-space-md);
    font-size: var(--retro-font-size-sm);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .retro-form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--retro-space-sm) !important;
    margin-bottom: var(--retro-space-md) !important;
  }
  
  .retro-form-row .retro-form-group {
    width: 100% !important;
    margin-bottom: var(--retro-space-sm) !important;
  }
  
  .retro-form-row .retro-form-label {
    font-size: var(--retro-font-size-xs) !important;
    margin-bottom: var(--retro-space-xs) !important;
  }
  
  .retro-form-row .retro-input {
    width: 100% !important;
    padding: var(--retro-space-sm) !important;
    font-size: var(--retro-font-size-sm) !important;
    box-sizing: border-box !important;
  }
  
  .retro-comment-form {
    padding: var(--retro-space-md) !important;
  }
  
  .retro-comment-form-title {
    font-size: var(--retro-font-size-sm) !important;
    padding: var(--retro-space-xs) !important;
  }
  
  /* Extra small: Even tighter spacing */
  .retro-container {
    padding: var(--retro-space-xs) !important;
  }
  
  .retro-product-container,
  .retro-description-container,
  .retro-specs-container,
  .retro-comments-section {
    margin: var(--retro-space-sm) auto !important;
    padding: var(--retro-space-sm) !important;
    width: calc(100% - 2 * var(--retro-space-sm)) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  
  .retro-breadcrumb {
    margin: var(--retro-space-xs) auto !important;
    padding: 0 var(--retro-space-sm) !important;
    width: calc(100% - 2 * var(--retro-space-sm)) !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
  
  .retro-product-image {
    min-height: 150px !important;
    padding: var(--retro-space-xs) !important;
    margin-bottom: var(--retro-space-sm) !important;
  }
  
  .retro-product-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border: 2px solid var(--retro-dark) !important;
    border-radius: 0 !important;
    display: block !important;
  }
}
