:root {
    --wood: #5d4037;
    --paper: #f4e4bc;
    --neon-orange: #ffab40;
    --deep-red: #bf360c;
}

body {
    background-color: #2c1e1a;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding-bottom: 100px;
}

/* Header and Store Logo */
header {
    background: #3e2723;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 8px ridge var(--wood);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.retro-text {
    margin: 0 0 10px 0;
    font-size: 4rem;
    font-weight: 900;
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: 5px;
    display: inline-block;
    transform: skew(-5deg);
    text-shadow: 3px 3px 0px #e64a19, 6px 6px 0px var(--deep-red), 9px 9px 0px rgba(0,0,0,0.3);
}

/* Products Grid */
.living-room {
    background: url('https://www.transparenttextures.com'), #8d6e63;
    padding: 40px;
    min-height: 80vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--paper);
    border: 5px solid var(--wood);
    padding: 15px;
    text-align: center;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.product-card:hover { transform: rotate(-2deg) scale(1.05); }

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: sepia(0.5) contrast(1.2);
    border: 2px solid var(--wood);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #e64a19;
    color: white;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 0px #bf360c, 0 15px 20px rgba(0,0,0,0.4);
    z-index: 1000;
    border: 4px solid #3e2723;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffff00;
    color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #3e2723;
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% {transform: scale(1);} 50% {transform: scale(1.15);} }

/* Modal Window */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.retro-paper { 
    background: var(--paper); 
    margin: 5% auto; 
    padding: 30px; 
    width: 80%; 
    max-width: 500px; 
    border: 10px double var(--wood);
    background-image: radial-gradient(#d2b48c 1px, transparent 1px);
    background-size: 20px 20px;
}

.action-btn {
    background: var(--wood);
    color: white;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.action-btn:hover { background: var(--neon-orange); color: black; }
.search-container {
    margin-top: 10px;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: var(--paper);
    border: 3px solid var(--wood);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--wood);
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1);
    outline: none;
}

#search-input:focus {
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px var(--neon-orange);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* No Results Message */
.no-results {
    color: var(--paper);
    text-align: center;
    grid-column: 1 / -1;
    font-size: 1.5rem;
    padding: 50px;
    border: 2px dashed var(--paper);
}
.categories-bar {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-btn {
    background: #4e342e;
    color: var(--paper);
    border: 3px solid #2c1e1a;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    box-shadow: 4px 4px 0px #2c1e1a;
    transition: 0.1s;
}

.cat-btn:hover {
    background: var(--neon-orange);
    color: #000;
}

.cat-btn.active {
    background: var(--neon-orange);
    color: #000;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2c1e1a;
}
.promo-banner {
    margin-top: 15px;
    color: var(--paper);
    font-size: 0.9rem;
}

.nixie-clock {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    color: #ff3d00; /* Neon Red */
    background: #1a0f0d;
    display: inline-block;
    padding: 10px 20px;
    border: 4px inset #3e2723;
    border-radius: 5px;
    text-shadow: 0 0 10px #ff3d00, 0 0 20px #ff3d00; /* توهج النيون */
    letter-spacing: 5px;
    margin-top: 5px;
}
button:active, .cat-btn:active, .floating-cart:active {
    transform: scale(0.95) translateY(2px);
    filter: brightness(0.8);
    transition: 0.1s;
}
:root {
    --wood: #5d4037;
    --paper: #f4e4bc;
    --neon-orange: #ffab40;
    --deep-red: #bf360c;
    --crt-glow: rgba(18, 16, 16, 0.1);
}

/* 1. CRT Scanline Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none; /* Doesn't block pointer events */
}

body {
    background-color: #2c1e1a;
    background-image: url('https://www.transparenttextures.com');
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* 2. Vintage Paper Product Card */
.product-card {
    background: var(--paper);
    border: 2px solid #d2b48c;
    padding: 15px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Old paper corners */
    border-radius: 2px;
}

/* Hover Shadow Effect */
.product-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 15px 15px 30px rgba(0,0,0,0.7);
    z-index: 10;
}

/* 3. Neon Flicker Effect for Store Name */
.retro-text {
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 3px 3px 0px #e64a19, 6px 6px 0px var(--deep-red); }
    20%, 24%, 55% { text-shadow: none; color: #5d4037; }
}

/* 4. Receipt Style Modal */
.retro-paper {
    box-shadow: 20px 20px 0px rgba(0,0,0,0.5);
    border-bottom: 10px solid transparent;
    border-image: url('https://www.transparenttextures.com') 30 round;
}
@keyframes fadeInUp {
    from { 
        opacity: 0;           
        transform: translateY(20px); 
    }
    to { 
        opacity: 1;           
        transform: translateY(0);    
    }
}
#cart-modal {
    cursor: pointer;
}
.retro-paper {
    cursor: default;
}
.retro-text {
    animation: neon-flicker 2s infinite;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 3px 3px 0px #e64a19, 6px 6px 0px var(--deep-red), 0 0 10px var(--neon-orange);
    }
    20%, 22%, 24%, 55% {
        text-shadow: none;
        color: #4e342e; /* Dim color when neon is off */
    }
}
.retro-paper {
    position: relative;
    padding-bottom: 40px; /* Space for zigzag */
}

/* Drawing zigzag using CSS */
.retro-paper::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--paper);
    /* Create zigzag shape */
    clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%);
}
.product-card img {
    transition: all 0.5s ease;
    filter: sepia(0.8) grayscale(0.2); /* Very old look */
}

.product-card:hover img {
    transform: scale(1.1);
    filter: sepia(0) grayscale(0); /* Restore original colors */
}

.product-card {
    overflow: hidden;
}
body::after {
    content: " ";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px; /* Scanline size */
    z-index: 10000;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}
/* 1. Base Font */
body {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
}

/* 2. Header and Category Fonts */
.retro-text, .cat-btn, .modal-title {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 800;
}

/* 3. Product Card Fonts */
.product-card h3 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    color: var(--wood);
}

.product-card p {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
}

/* 4. Nixie Clock */
.nixie-clock {
    font-family: 'Courier New', Courier, monospace;
}
