/* 
 * Skefali Pixel-Art E-Commerce 
 * Bold, modern mobile-first design
 */

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

:root {
    /* Bold Color Palette */
    --pixel-yellow: #FFD700;
    --pixel-red: #FF3333;
    --pixel-blue: #3366FF;
    --pixel-green: #33FF33;
    --pixel-black: #111111;
    --pixel-white: #EEEEEE;

    /* Typography */
    --font-primary: 'Player Sans', 'Press Start 2P', cursive;
    --font-secondary: 'VT323', monospace;

    /* UI Variables */
    --border-thick: 4px solid var(--pixel-black);
    --shadow-thick: 8px 8px 0px rgba(17, 17, 17, 1);
    --shadow-hover: 12px 12px 0px rgba(17, 17, 17, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 0h4v4h-4v-4zm4 4h4v4h-4v-4zm4 4h4v4h-4v-4zm4 4h4v4h-4v-4zm0 4h4v4h-4v-4zm-4 4h4v4h-4v-4zm-4-4h4v4h-4v-4zm-4-4h4v4h-4v-4zm-4-4h4v4h-4v-4zm0-4h4v4h-4v-4z" fill="black"/></svg>'), auto;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--pixel-white);
    color: var(--pixel-black);
    font-size: 18px;
    line-height: 1.5;
    /* Subtle Grain/Dot Texture */
    background-image: radial-gradient(var(--pixel-black) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    text-transform: uppercase;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

@media (max-width: 767px) {
    section {
        padding: 80px 0;
    }
}

section>.container>h2:first-child,
section>h2 {
    margin-bottom: 60px !important;
}

@media (max-width: 767px) {

    section>.container>h2:first-child,
    section>h2 {
        margin-bottom: 40px !important;
    }
}

/* UI Elements */
.pixel-box {
    background-color: white;
    border: var(--border-thick);
    box-shadow: var(--shadow-thick);
    padding: 40px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767px) {
    .pixel-box {
        padding: 25px;
    }
}

/* Button Styles - Game UI Feel */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    background-color: var(--pixel-red);
    color: white;
    border: var(--border-thick);
    padding: 15px 30px;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 6px 6px 0px var(--pixel-black);
    transition: all 0.1s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    z-index: 10;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--pixel-black);
    background-color: #ff4d4d;
}

.btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px var(--pixel-black);
}

.btn-yellow {
    background-color: var(--pixel-yellow);
    color: var(--pixel-black);
}

.btn-yellow:hover {
    background-color: #ffe033;
}

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

.btn-blue:hover {
    background-color: #4d79ff;
}

.btn-green {
    background-color: var(--pixel-green);
    color: var(--pixel-black);
}

.btn-green:hover {
    background-color: #4dff4d;
}

/* 1. Hero Section */
.hero {
    background-color: var(--pixel-yellow);
    border-bottom: var(--border-thick);
    overflow: hidden;
    position: relative;
    padding: 100px 0 80px;
    /* Increased padding */
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../imegs/Pattern_.png');
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    /* Scaled down for mobile */
    color: var(--pixel-black);
    text-shadow: 3px 3px 0px white;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    word-break: break-word;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        text-shadow: 4px 4px 0px white;
    }
}

.hero p {
    font-size: 1.2rem;
    /* Scaled down */
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: bold;
    background: white;
    padding: 10px;
    border: 2px solid black;
    display: inline-block;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.5rem;
    }
}

.hero-mascot {
    width: 250px;
    margin: 30px auto 0;
    display: block;
    filter: drop-shadow(8px 8px 0px rgba(0, 0, 0, 0.5));
    animation: bounce 2s infinite alternate;
}

/* 2. Featured Products (Grid) */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background-color: white;
    border: var(--border-thick);
    box-shadow: var(--shadow-thick);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--pixel-red);
    color: white;
    font-family: var(--font-primary);
    font-size: 10px;
    padding: 5px 10px;
    border: 2px solid black;
    transform: rotate(15deg);
    z-index: 3;
    animation: pulse 1s infinite alternate;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
    border: 2px solid black;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category {
    font-size: 12px;
    /* Reduced for mobile */
    color: var(--pixel-blue);
    text-transform: uppercase;
    font-weight: bold;
}

.product-title {
    font-size: 1rem;
    /* Reduced for mobile */
    margin: 10px 0;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .product-category {
        font-size: 14px;
    }

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

.product-price {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--pixel-green);
    text-shadow: 2px 2px 0px black;
    margin-bottom: 15px;
}

.wa-btn {
    width: 100%;
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
}

.wa-btn:hover {
    background-color: #128C7E;
}

/* 3. Categories */
.categories {
    background-color: var(--pixel-blue);
    color: white;
}

.categories h2 {
    color: var(--pixel-yellow);
    text-shadow: 3px 3px 0px black;
    text-align: center;
    margin-bottom: 40px;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 15px;
}

@media (min-width: 480px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cat-card {
    background-color: var(--pixel-black);
    border: 3px solid var(--pixel-white);
    text-align: center;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-card:hover {
    background-color: var(--pixel-yellow);
    color: black;
    border-color: black;
    transform: translateY(-5px);
}

.cat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* 5. Why Choose Us */
.why-us {
    background-color: var(--pixel-black);
    color: white;
}

.why-us h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--pixel-green);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-box {
    text-align: center;
    padding: 50px 30px;
    border: 4px dashed var(--pixel-white);
}

.feature-box h3 {
    color: var(--pixel-red);
    margin: 15px 0;
}

/* 6. Customer Reviews */
.reviews {
    background-color: #e0e0e0;
}

.review-card {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 0;
    /* Keep it blocky */
}

.review-card::before {
    content: '"';
    font-family: var(--font-primary);
    font-size: 60px;
    color: var(--pixel-yellow);
    position: absolute;
    top: 10px;
    left: 10px;
    line-height: 1;
}

/* 7. FAQ */
.faq-item {
    margin-bottom: 15px;
}

.faq-q {
    background-color: var(--pixel-yellow);
    padding: 15px;
    border: 3px solid black;
    font-family: var(--font-primary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-a {
    background-color: white;
    border: 3px solid black;
    border-top: none;
    padding: 15px;
    display: none;
}

.faq-a.active {
    display: block;
}

/* 8. Final CTA */
.final-cta {
    background-color: var(--pixel-red);
    text-align: center;
    padding: 100px 20px;
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
}

.final-cta h2 {
    color: white;
    text-shadow: 3px 3px 0px black;
    font-size: 1.8rem;
    /* Scaled down for mobile */
    margin-bottom: 20px;
    word-break: break-word;
}

@media (min-width: 768px) {
    .final-cta h2 {
        font-size: 2.5rem;
        text-shadow: 4px 4px 0px black;
    }
}

/* Footer */
footer {
    background-color: var(--pixel-black);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-top: 8px solid var(--pixel-yellow);
}

footer p {
    font-family: var(--font-primary);
    font-size: 10px;
    color: #888;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounce {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: rotate(15deg) scale(1);
    }

    100% {
        transform: rotate(15deg) scale(1.1);
    }
}

/* Dividers */
.pixel-divider {
    height: 10px;
    background-image: linear-gradient(90deg, var(--pixel-black) 50%, transparent 50%);
    background-size: 20px 20px;
    width: 100%;
}

/* Infinite Scrolling Slider */
.scrolling-slider {
    width: 100%;
    overflow: hidden;
    background-color: var(--pixel-white);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    padding: 0;
    white-space: nowrap;
}

.scrolling-slider-track {
    display: inline-flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
}

.slide-half {
    display: flex;
    flex-shrink: 0;
}

.slide-half img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}