/* --- FULL STYLESHEET FOR NEW HOMEPAGE (FINAL ADDITIONS) --- */

@import url('https://fonts.googleapis.com/css2?family=Teko:wght@600;700&display=swap');

/* Basic Reset & Body Styles */
body { margin: 0; font-family: 'Roboto', sans-serif; background-color: #1a1a1e; color: #e0e0e0; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('../images/ps_buttons_pattern.png'); background-repeat: repeat; background-size: 200px; opacity: 0.1; filter: blur(0.8px); z-index: -2; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; text-align: center; position: relative; z-index: 1; }

/* === START: FINAL HEADER & NAV STYLES === */
header {
    background-color: rgba(13, 27, 42, 0.8);
    padding: 10px 15px; /* Mobile padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 184, 0, 0.5); /* Orange line */
}

.header-logo {
    position: absolute; /* Center the logo */
    left: 50%;
    transform: translateX(-50%);
}
.header-logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-logo img { height: 50px; width: auto; border-radius: 50%; border: 2px solid #E33A3A; }
.header-logo-text { color: #fff; font-family: 'Orbitron', sans-serif; font-weight: bold; font-size: 1.2rem; }

.menu-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all .5s ease-in-out;
    border: none;
    background: transparent;
    z-index: 102; /* Above overlay */
    padding: 0;
}
.menu-btn-burger { width: 30px; height: 3px; background: #fff; border-radius: 5px; transition: all .5s ease-in-out; }
.menu-btn-burger::before,
.menu-btn-burger::after { content: ''; position: absolute; width: 30px; height: 3px; background: #fff; border-radius: 5px; transition: all .5s ease-in-out; }
.menu-btn-burger::before { transform: translateY(-10px); }
.menu-btn-burger::after { transform: translateY(10px); }
.menu-btn.is-open .menu-btn-burger { background: transparent; }
.menu-btn.is-open .menu-btn-burger::before { transform: rotate(45deg); }
.menu-btn.is-open .menu-btn-burger::after { transform: rotate(-45deg); }

/* Cart Button Positioning Fix */
.header-cart-button {
    position: absolute; /* Position relative to the header */
    right: 15px; /* Align to the right edge with padding */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Fine-tune vertical centering */
    color: var(--accent-red);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.header-cart-button svg {
    width: 30px; /* Explicit size */
    height: 30px; /* Explicit size */
    stroke: var(--accent-red); /* Make the line red */
    stroke-width: 2;
    fill: none; /* Remove any potential fill */
}
#cart-count {
    position: absolute;
    top: 0px; /* Adjusted position */
    right: 0px; /* Adjusted position */
    background-color: var(--accent-red);
    color: #fff;
    font-size: 0.7rem; /* Slightly smaller count */
    font-weight: bold;
    border-radius: 50%;
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a1a1e; /* Optional: Small border to help separate */
}

/* Hide original nav on mobile */
header nav { display: none; }

/* Overlay styles */
.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 27, 42, 0.98); backdrop-filter: blur(10px); z-index: 101; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.4s ease-in-out; }
.nav-overlay.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-overlay nav ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.nav-overlay nav li { margin: 2rem 0; }
.nav-overlay nav a { color: #fff; text-decoration: none; font-family: 'Teko', sans-serif; font-size: 2.5rem; font-weight: bold; text-transform: uppercase; }

/* === END: FINAL HEADER & NAV STYLES === */


/* Footer & Bottom Banner */
.bottom-banner { width: 100%; display: block; line-height: 0; margin-top: auto; /* Push footer down */ }
.bottom-banner img { width: 100%; height: auto; display: block; /* Ensure no extra space */ }
footer { background-color: #0d1b2a; color: #a4a4a4; text-align: center; padding: 20px 0; }
.footer-title { font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; color: #FFFFFF; }
.footer-text { margin-bottom: 0.5rem; }
.footer-tagline { font-style: italic; font-size: 1.125rem; margin-bottom: 2rem; color: #d1d5db; }
.footer-copyright { font-size: 0.875rem; }
#new-homepage { padding-top: 72px; flex-grow: 1; /* Allow main content to take up space */}

/* --- HOMEPAGE STYLES --- */
:root { --accent-red: #E33A3A; --accent-orange: #FFB800; --text-white: #FFFFFF; --text-gray: #a0aec0; --accent-orange-rgb: 255, 184, 0; }
#new-homepage .container { padding: 0 15px; }
.section-title { font-family: 'Orbitron', sans-serif; color: var(--accent-red); font-size: 2rem; text-align: center; margin-bottom: 2rem; margin-top: 3rem; /* Add top margin */ }
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: bold; text-transform: uppercase; transition: all 0.3s ease; }
.btn-primary { background-color: var(--accent-orange); color: #1a1a1e; }
.btn-primary:hover { background-color: #fff; }
.btn-secondary { background-color: transparent; color: var(--text-white); border: 2px solid var(--text-white); }
.btn-secondary:hover { background-color: var(--text-white); color: #1a1a1e; }
.section-separator { height: 2px; background-color: rgba(var(--accent-orange-rgb), 0.5); margin: 3rem auto; max-width: 80%; border: none; }

/* --- 1. HERO SECTION --- */
.hero-section { position: relative; height: 60vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-white); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4)); }
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero-content h1 { font-family: 'Teko', sans-serif; font-size: 3rem; line-height: 1.1; margin: 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); }
.hero-content p { font-size: 1.1rem; margin: 1rem 0 2rem 0; max-width: 600px; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* --- 2. BRANDS SECTION --- */
.brands-section { padding: 1.5rem 0; background-color: #111; }
.brand-swiper .swiper-slide { display: flex; justify-content: center; align-items: center; opacity: 0.8; transition: opacity 0.3s ease; }
.brand-swiper .swiper-slide:hover { opacity: 1; }
.brand-swiper img { max-height: 50px; width: auto; }

/* --- 3. WHY CHOOSE US? SECTION --- */
.why-choose-us-section { padding: 4rem 15px; background-color: #1f2937; }
.why-choose-us-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.why-choose-us-card { background-color: rgba(0,0,0,0.2); padding: 2rem; border-radius: 12px; text-align: center; }
.why-choose-us-card .icon { height: 50px; width: 50px; margin-bottom: 1rem; /* Color applied via SVG or filter */ }
.why-choose-us-card h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; margin: 0 0 0.5rem 0; color: var(--text-white); }
.why-choose-us-card p { color: var(--text-gray); margin: 0; }

/* --- 4. SERVICES SECTION --- */
.services-section { padding: 0 0 4rem 0; /* Adjusted padding */ }
.service-card { position: relative; border-radius: 12px; overflow: hidden; display: block; height: 300px; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover img { transform: scale(1.1); }
.service-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.6) 50%, transparent); }
.service-card-text-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; color: var(--text-white); }
.service-card h3 { font-family: 'Teko', sans-serif; font-size: 1.8rem; line-height: 1.1; margin: 0 0 5px 0; }
.service-card p { font-size: 0.8rem; color: #ccc; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- 5. PROMO SECTION --- */
.subsection-title { font-family: 'Orbitron', sans-serif; color: var(--accent-orange); font-size: 1.5rem; text-align: center; margin-top: 3rem; margin-bottom: 1rem; }
.promo-section { padding: 0; }
.promo-swiper .swiper-slide img { width: 100%; display: block; }

/* --- 5.5 SKINNY BANNER SECTIONS --- */
.skinny-banner-section { padding: 1rem 0; margin: 0; }
.skinny-swiper .swiper-slide img { width: 100%; display: block; max-height: 80px; object-fit: cover; }

/* --- 6. FEATURED PRODUCTS SECTION --- */
.featured-products-section { padding: 4rem 0; background-color: #1f2937; }
.product-swiper { padding: 10px; }
.product-swiper .swiper-slide { height: auto; }
.product-swiper .product-card { height: 100%; }
.product-card { background-color: #2a2a2e; border-radius: 12px; overflow: hidden; border: 1px solid #4a5568; display: flex; flex-direction: column; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.product-image-container { position: relative; width: 100%; }
.product-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.price-banner { position: absolute; bottom: 8px; left: -2px; background-color: var(--accent-red); color: var(--text-white); padding: 4px 12px 4px 10px; font-size: 0.8rem; font-weight: bold; clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); box-shadow: 2px 2px 5px rgba(0,0,0,0.4); }
.share-btn { position: absolute; bottom: 8px; right: 8px; background-color: rgba(0, 0, 0, 0.6); color: var(--text-white); border-radius: 6px; padding: 4px 6px; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: background-color 0.2s ease; }
.share-btn:hover { background-color: rgba(0, 0, 0, 0.9); }
.share-text { font-size: 0.7rem; font-weight: bold; text-transform: uppercase; }
.product-info { padding: 12px; flex-grow: 1; }
#product-grid .product-name, .product-swiper .product-name { font-family: 'Teko', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--accent-orange); text-transform: uppercase; line-height: 1.1; margin: 0 0 8px 0; letter-spacing: 0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.6rem * 1.1 * 2); }
.product-description { font-size: 0.8rem; color: var(--text-gray); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.add-to-cart-btn { background-color: var(--accent-red); color: var(--text-white); font-weight: bold; font-size: 1rem; text-transform: uppercase; text-align: center; padding: 10px 16px; border: none; cursor: pointer; width: 100%; transition: background-color 0.2s ease; margin-top: auto; text-decoration: none; display: block;}
.add-to-cart-btn:hover { background-color: #c53030; }

/* --- 7. WORKSHOP SECTION --- */
.workshop-section { position: relative; padding: 6rem 1rem; background-size: cover; background-position: center; color: var(--text-white); text-align: center; }
.workshop-overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,0.7); }
.workshop-content { position: relative; z-index: 2; }
.workshop-content h2 { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; color: var(--accent-red); margin: 0 0 1rem 0; }
.workshop-content p { font-size: 1.1rem; margin: 0; }

/* --- RESPONSIVE STYLES --- */
@media (min-width: 900px) {
    /* Hide hamburger, show nav links on desktop */
    .menu-btn { display: none; }
    header nav { display: flex; align-items: center; gap: 25px; } /* Show nav again */
    header nav ul { gap: 20px; }
    .nav-overlay { display: none; }
    /* Restore original desktop header layout */
    header { justify-content: space-between; padding: 10px 25px;}
    .header-logo { position: static; transform: none; }

    /* Show all nav links on desktop */
    header nav a[href*="services.html"],
    header nav a[href*="ps4_jailbreak.html"],
    header nav a[href*="gamestop_et_shop.html"] { display: block; }

    .hero-section { height: 80vh; }
    .hero-content h1 { font-size: 4.5rem; }
    .why-choose-us-grid { grid-template-columns: repeat(3, 1fr); }
    #product-grid .product-name, .product-swiper .product-name { font-size: 1.3rem; min-height: calc(1.3rem * 1.1 * 2); }
    .subsection-title { font-size: 1.8rem; margin-top: 4rem; margin-bottom: 1.5rem; }
}
