@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-body: #050505;
    --bg-surface: #0f0f0f;
    --bg-card: #141414;
    --bg-glass: rgba(20, 20, 20, 0.7);
    --text-main: #ffffff;
    --text-muted: #888;
    --text-dark: #000;
    --accent: #fff;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Manrope', sans-serif;
    --font-display: 'Syncopate', sans-serif;
    --max-width: 1440px;
    --header-height: 90px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 500;
    color: #fff;
}

h1,
h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* UTILS */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-20 {
    gap: 20px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 2000;
    display: flex;
    align-items: center;
}

.nav-menu {
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.brand-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: #fff;
}

.nav-icons {
    gap: 25px;
    font-size: 1.1rem;
}

.cart-wrap {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #fff;
    color: #000;
    font-size: 0.6rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* HERO */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=2600&auto=format&fit=crop') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #050505 5%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-pre {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ddd;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* BANNERS */
.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    padding-bottom: 80px;
}

.banner-box {
    background: #111;
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 40px;
    border: 1px solid var(--border);
}

.banner-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition);
}

.banner-box:hover img {
    opacity: 0.4;
    transform: scale(1.05);
}

.banner-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.banner-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.banner-text p {
    color: #ccc;
    margin-bottom: 20px;
}

/* TRUST ICONS */
.trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
}

.trust-bar .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.trust-item:hover i {
    color: #fff;
}

/* CATEGORIES */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    position: relative;
    height: 400px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: block;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.7;
}

.cat-card:hover img {
    transform: scale(1.1);
    opacity: 0.4;
}

.cat-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.cat-name {
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin-bottom: 10px;
}

/* PRODUCTS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.p-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.p-card:hover {
    border-color: #333;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.p-img-wrap {
    aspect-ratio: 1;
    background: #000;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #1a1a1a;
}

.p-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.p-card:hover .p-img-wrap img {
    transform: scale(1.1);
}

.p-meta {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-name {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.p-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 20px;
}

.p-price {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.p-price-old {
    text-decoration: line-through;
    color: #444;
    font-size: 0.85rem;
}

.p-add-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
    cursor: pointer;
}

.p-card:hover .p-add-btn {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 10px;
    z-index: 5;
    letter-spacing: 1px;
}

/* AS SEEN ON */
.yt-strip {
    background: #111;
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.video-card {
    position: relative;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #f00;
}

/* NEWSLETTER */
.newsletter-box {
    background: #fff;
    color: #000;
    padding: 80px 40px;
    text-align: center;
    margin-top: 80px;
}

.newsletter-input {
    border: none;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    width: 100%;
    max-width: 400px;
    font-family: inherit;
    font-size: 1rem;
    margin-right: 20px;
    background: transparent;
}

.newsletter-submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

/* FOOTER STYLING */
footer {
    background: #080808;
    border-top: 1px solid #111;
    padding: 100px 0 40px;
    margin-top: 100px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #444;
    margin-bottom: 30px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-newsletter p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
}


/* PRODUCT PAGE LAYOUT FIXES */
.p-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-top: 40px;
    align-items: start;
}

.p-main-img {
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.p-main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.p-info-sticky {
    position: sticky;
    top: 120px;
}



/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* Hero Fluid Text */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .container {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .brand-logo {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }

    .nav-icons {
        gap: 15px;
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.3rem;
        margin-left: 5px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 2005;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--border);
        padding: 40px;
        display: flex;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 40px;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        height: 80vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .trust-bar .grid,
    .trust-bar .flex {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Checkout & Shop Layouts */
    .checkout-ui,
    .dashboard-grid,
    .p-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-pre {
        font-size: 0.7rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .cat-card {
        height: 300px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.2rem;
    }

    .nav-icons {
        gap: 15px;
    }
}

/* Specific Page Fixes */
.shop-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .shop-sidebar {
        width: 100%;
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid var(--border);
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .shop-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .shop-sidebar ul li {
        margin-bottom: 0 !important;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .yt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .yt-grid {
        grid-template-columns: 1fr;
    }
}