/* =====================================================
   NEXO STORE
   MAIN STYLE
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Tajawal", sans-serif;
    background: #080808;
    color: #ffffff;
    overflow-x: hidden;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --green: #b7ff00;
    --green-dark: #8fc900;
    --bg: #080808;
    --card: #111111;
    --card-light: #171717;
    --border: rgba(183, 255, 0, 0.22);
    --text: #ffffff;
    --muted: #9a9a9a;
}


/* =====================================================
   SELECTION
===================================================== */

::selection {
    background: var(--green);
    color: #000;
}


/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 20px;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 6%;

    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(14px);
}


/* LOGO */

.logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--green);
}


/* NAV LINKS */

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 35px;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    transition: 0.25s;
}

.nav-links a:hover {
    color: var(--green);
}


/* NAV ACTIONS */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ACCOUNT */

.account-trigger {
    border: 1px solid rgba(255, 255, 255, 0.1);

    background: #111;

    color: white;

    padding: 10px 15px;

    border-radius: 12px;

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 8px;

    font-family: inherit;
    font-weight: 700;

    transition: 0.25s;
}

.account-trigger i {
    color: var(--green);
}

.account-trigger:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}


/* CART */

.cart-trigger {
    position: relative;

    width: 45px;
    height: 45px;

    border-radius: 13px;

    border: 1px solid rgba(183, 255, 0, 0.25);

    background: #111;

    color: white;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    transition: 0.25s;
}

.cart-trigger:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
}

.cart-trigger span {
    position: absolute;

    top: -7px;
    right: -7px;

    min-width: 21px;
    height: 21px;

    padding: 0 5px;

    border-radius: 50%;

    background: var(--green);
    color: #000;

    font-size: 11px;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;

    padding: 80px 8%;

    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96),
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.42)
        ),
        radial-gradient(
            circle at 70% 45%,
            rgba(183, 255, 0, 0.10),
            transparent 35%
        ),
        #111;

    overflow: hidden;
}


/* HERO GLOW */

.hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -200px;
    bottom: -250px;

    border-radius: 50%;

    background: rgba(183, 255, 0, 0.08);

    filter: blur(80px);
}


/* HERO TEXT */

.hero-text {
    max-width: 650px;

    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;

    padding: 8px 15px;

    border: 1px solid var(--green);

    border-radius: 30px;

    color: var(--green);

    font-size: 13px;
    font-weight: 800;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 82px);

    line-height: 1.05;

    font-weight: 900;

    margin-bottom: 22px;

    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--green);
}

.hero p {
    color: #c7c7c7;

    font-size: 18px;

    line-height: 1.9;

    max-width: 560px;

    margin-bottom: 30px;
}


/* HERO BUTTON */

.btn-glow {
    display: inline-flex;

    align-items: center;
    gap: 10px;

    padding: 15px 24px;

    background: var(--green);

    color: #000;

    text-decoration: none;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 900;

    box-shadow:
        0 0 25px rgba(183, 255, 0, 0.18);

    transition: 0.3s;
}

.btn-glow:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0 35px rgba(183, 255, 0, 0.35);
}


/* =====================================================
   SECTIONS
===================================================== */

.offers-section,
.products-section {
    padding: 85px 6%;
}

.offers-section {
    background: #0b0b0b;
}

.products-section {
    background: #080808;
}


/* HEADINGS */

.offers-section > h2,
.section-heading h2 {
    text-align: center;

    font-size: clamp(28px, 4vw, 42px);

    font-weight: 900;

    margin-bottom: 45px;
}

.offers-section h2 span,
.section-heading h2 span {
    color: var(--green);
}

.section-heading {
    text-align: center;
}

.section-heading p {
    color: var(--muted);

    margin-top: -30px;

    margin-bottom: 45px;

    font-size: 15px;
}


/* =====================================================
   OFFERS
===================================================== */

.offers-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}


.offer-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #151515,
            #0c0c0c
        );

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 35px;

    text-align: center;

    overflow: hidden;

    transition: 0.3s;
}

.offer-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -80px;

    background: rgba(183, 255, 0, 0.08);

    border-radius: 50%;

    filter: blur(30px);
}

.offer-card:hover {
    transform: translateY(-7px);

    border-color: var(--green);

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.4);
}


.offer-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 18px;

    border-radius: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(183, 255, 0, 0.08);

    color: var(--green);

    font-size: 25px;
}


.offer-card h3 {
    font-size: 23px;

    margin-bottom: 15px;
}


.offer-card .price {
    color: var(--green);

    font-size: 29px;

    font-weight: 900;

    margin-bottom: 12px;
}


.offer-card .price span {
    display: block;

    margin-top: 5px;

    color: #777;

    text-decoration: line-through;

    font-size: 14px;

    font-weight: 500;
}


.offer-card small {
    color: #aaa;

    font-size: 13px;
}


/* =====================================================
   PRODUCTS GRID
===================================================== */

.products-grid {
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.product-card {
    background:
        linear-gradient(
            145deg,
            #151515,
            #0d0d0d
        );

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 20px;

    overflow: hidden;

    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(183, 255, 0, 0.45);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.45);
}


/* =====================================================
   PRODUCT IMAGES
===================================================== */

/* التيشيرتات - الشكل الأصلي */

.img-wrapper {
    width: 100%;

    aspect-ratio: 1 / 1.05;

    overflow: hidden;

    background: #151515;
}

.img-wrapper img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s;
}


/* =====================================================
   PANTS IMAGE
   إظهار صورة البنطلون كاملة بدون قص
===================================================== */

#pants-container .img-wrapper {
    width: 100%;

    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    overflow: visible !important;

    background: #151515;
}

#pants-container .img-wrapper img {
    display: block;

    width: 100% !important;

    height: auto !important;

    max-width: 100%;

    max-height: none !important;

    object-fit: contain !important;

    object-position: center center !important;

    transform: none;
}


/* منع التكبير عند المرور على البنطلون */

#pants-container .product-card:hover .img-wrapper img {
    transform: none !important;
}


/* التيشيرتات فقط تعمل Zoom */

#tshirts-container .product-card:hover .img-wrapper img {
    transform: scale(1.04);
}


/* =====================================================
   PRODUCT INFO
===================================================== */

.product-info {
    padding: 20px;
}

.product-info h3 {
    min-height: 48px;

    font-size: 17px;

    line-height: 1.5;

    margin-bottom: 10px;
}

.product-info .price {
    color: var(--green);

    font-size: 21px;

    font-weight: 900;

    margin-bottom: 17px;
}


/* =====================================================
   OPTIONS
===================================================== */

.options {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

    margin-bottom: 13px;
}

.options select {
    width: 100%;

    padding: 11px;

    border-radius: 10px;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    background: #0b0b0b;

    color: white;

    font-family: inherit;

    outline: none;

    cursor: pointer;
}

.options select:focus {
    border-color: var(--green);
}


/* =====================================================
   ADD BUTTON
===================================================== */

.add-btn {
    width: 100%;

    padding: 13px;

    border-radius: 11px;

    border: 1px solid var(--green);

    background: transparent;

    color: var(--green);

    font-family: inherit;

    font-size: 14px;

    font-weight: 900;

    cursor: pointer;

    transition: 0.25s;
}

.add-btn:hover {
    background: var(--green);

    color: #000;

    box-shadow:
        0 0 22px rgba(183, 255, 0, 0.20);
}


/* =====================================================
   CART OVERLAY
===================================================== */

.cart-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: 1998;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;

    backdrop-filter: blur(3px);
}

.cart-overlay.active {
    opacity: 1;

    visibility: visible;
}


/* =====================================================
   CART SIDEBAR
===================================================== */

.cart-sidebar {
    position: fixed;

    top: 0;
    right: 0;

    width: min(450px, 92vw);

    height: 100vh;

    z-index: 2000;

    background: #0d0d0d;

    border-left:
        1px solid rgba(183, 255, 0, 0.20);

    transform: translateX(105%);

    transition:
        transform 0.4s ease;

    display: flex;

    flex-direction: column;

    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
    transform: translateX(0);
}


/* CART HEADER */

.cart-header {
    padding: 22px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.cart-header h3 {
    font-size: 21px;
}

.cart-header span {
    color: #777;

    font-size: 12px;
}

.close-cart {
    width: 40px;
    height: 40px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    background: #151515;

    color: white;

    cursor: pointer;

    font-size: 18px;

    transition: 0.25s;
}

.close-cart:hover {
    background: #222;

    color: var(--green);
}


/* CART ITEMS */

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 18px;
}


/* EMPTY CART */

.empty-cart {
    min-height: 350px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #777;
}

.empty-cart i {
    font-size: 45px;

    color: #444;

    margin-bottom: 18px;
}

.empty-cart h3 {
    color: #ddd;

    margin-bottom: 7px;
}


/* CART ITEM */

.cart-item {
    display: grid;

    grid-template-columns:
        75px 1fr 35px;

    gap: 12px;

    align-items: center;

    padding: 12px;

    margin-bottom: 12px;

    background: #151515;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 14px;
}

.cart-item img {
    width: 75px;
    height: 75px;

    object-fit: cover;

    border-radius: 10px;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h4 {
    font-size: 13px;

    line-height: 1.4;

    margin-bottom: 5px;
}

.cart-item-info p {
    color: #888;

    font-size: 11px;

    margin-bottom: 2px;
}

.cart-item-info strong {
    display: block;

    color: var(--green);

    margin-top: 5px;

    font-size: 14px;
}


/* REMOVE */

.remove-item {
    width: 32px;
    height: 32px;

    border-radius: 9px;

    border: none;

    background: rgba(255, 50, 50, 0.08);

    color: #ff5555;

    cursor: pointer;

    transition: 0.2s;
}

.remove-item:hover {
    background: rgba(255, 50, 50, 0.18);

    transform: scale(1.08);
}


/* =====================================================
   CART FOOTER
===================================================== */

.cart-footer {
    padding: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);

    background: #0a0a0a;

    max-height: 53vh;

    overflow-y: auto;
}


/* DISCOUNT */

.discount-info {
    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--green);

    font-size: 13px;

    margin-bottom: 12px;
}

.discount-info strong {
    font-weight: 900;
}


/* TOTAL */

.total-box {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    font-size: 17px;

    font-weight: 800;
}

#cartTotal {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 2px;
}

.old-total {
    color: #777;

    text-decoration: line-through;

    font-size: 13px;
}

.new-total {
    color: var(--green);

    font-size: 23px;

    font-weight: 900;
}


/* =====================================================
   CHECKOUT FORM
===================================================== */

.checkout-form h4 {
    font-size: 15px;

    margin-bottom: 12px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;

    padding: 13px 14px;

    margin-bottom: 10px;

    border-radius: 11px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    background: #141414;

    color: white;

    font-family: inherit;

    outline: none;

    resize: vertical;

    transition: 0.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--green);

    box-shadow:
        0 0 0 3px rgba(183, 255, 0, 0.05);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
    color: #666;
}


/* WHATSAPP */

.btn-whatsapp {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background: #25d366;

    color: white;

    font-family: inherit;

    font-weight: 900;

    font-size: 14px;

    cursor: pointer;

    transition: 0.25s;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.18);
}


/* =====================================================
   AUTH MODAL
===================================================== */

.auth-modal {
    position: fixed;

    inset: 0;

    z-index: 3000;

    background: rgba(0, 0, 0, 0.78);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;

    backdrop-filter: blur(8px);
}

.auth-modal.active {
    opacity: 1;

    visibility: visible;
}


/* AUTH BOX */

.auth-box {
    position: relative;

    width: min(430px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 35px;

    background:
        linear-gradient(
            145deg,
            #171717,
            #0c0c0c
        );

    border:
        1px solid rgba(183, 255, 0, 0.22);

    border-radius: 24px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.7);

    transform: translateY(20px) scale(0.97);

    transition: 0.3s;
}

.auth-modal.active .auth-box {
    transform: translateY(0) scale(1);
}


/* AUTH CLOSE */

.auth-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    background: #111;

    color: #aaa;

    cursor: pointer;

    transition: 0.2s;
}

.auth-close:hover {
    color: var(--green);
}


/* AUTH LOGO */

.auth-logo {
    text-align: center;

    font-size: 34px;

    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 22px;
}

.auth-logo span {
    color: var(--green);
}


/* AUTH MESSAGE */

.auth-message {
    min-height: 0;

    text-align: center;

    font-size: 13px;

    margin-bottom: 10px;

    line-height: 1.7;
}

.auth-message.error {
    color: #ff5555;
}

.auth-message.success {
    color: var(--green);
}

.auth-message.loading {
    color: #aaa;
}


/* AUTH FORM */

.auth-form h2 {
    text-align: center;

    font-size: 23px;

    margin-bottom: 7px;
}

.auth-form > p {
    text-align: center;

    color: #777;

    font-size: 13px;

    margin-bottom: 25px;
}

.auth-form label {
    display: block;

    color: #bbb;

    font-size: 13px;

    margin-bottom: 7px;
}

.auth-form input {
    width: 100%;

    padding: 14px;

    margin-bottom: 15px;

    border-radius: 11px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    background: #0d0d0d;

    color: white;

    font-family: inherit;

    outline: none;
}

.auth-form input:focus {
    border-color: var(--green);
}


/* AUTH SUBMIT */

.auth-submit {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 11px;

    background: var(--green);

    color: #000;

    font-family: inherit;

    font-weight: 900;

    cursor: pointer;

    transition: 0.25s;
}

.auth-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(183, 255, 0, 0.18);
}


/* SWITCH */

.auth-switch {
    margin-top: 18px !important;

    margin-bottom: 0 !important;

    text-align: center;
}

.auth-switch button {
    border: none;

    background: transparent;

    color: var(--green);

    font-family: inherit;

    font-weight: 800;

    cursor: pointer;
}


/* HIDDEN */

.hidden {
    display: none !important;
}


/* LOGGED AREA */

.logged-in-area {
    text-align: center;

    padding: 15px 0;
}

.logged-user-icon {
    color: var(--green);

    font-size: 65px;

    margin-bottom: 15px;
}

.logged-in-area h2 {
    margin-bottom: 7px;
}

.logged-in-area p {
    color: #777;

    font-size: 13px;

    margin-bottom: 25px;
}


/* LOGOUT */

.logout-btn {
    width: 100%;

    padding: 13px;

    border-radius: 11px;

    border:
        1px solid rgba(255, 80, 80, 0.3);

    background:
        rgba(255, 60, 60, 0.06);

    color: #ff6666;

    font-family: inherit;

    font-weight: 800;

    cursor: pointer;

    transition: 0.2s;
}

.logout-btn:hover {
    background:
        rgba(255, 60, 60, 0.13);
}


/* =====================================================
   CART BUMP
===================================================== */

.cart-bump {
    animation:
        cartBump 0.4s ease;
}

@keyframes cartBump {

    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }

}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 55px 6% 30px;

    text-align: center;

    background: #050505;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}


.footer-logo {
    font-size: 34px;

    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--green);
}

.footer > p {
    color: #777;

    font-size: 13px;

    margin-bottom: 22px;
}


.footer-links {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-bottom: 25px;
}

.footer-links a {
    color: #aaa;

    text-decoration: none;

    font-size: 13px;

    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--green);
}


.footer-copy {
    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.05);

    color: #555;

    font-size: 11px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .navbar {
        padding: 15px 4%;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .hero {
        min-height: 560px;

        padding: 70px 6%;
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 650px) {

    .navbar {
        flex-wrap: wrap;

        gap: 15px;
    }

    .logo {
        font-size: 27px;
    }

    .navbar nav {
        order: 3;

        width: 100%;
    }

    .nav-links {
        justify-content: center;

        gap: 20px;
    }

    .account-trigger {
        padding: 9px 11px;
    }

    .account-trigger span {
        display: none;
    }


    .hero {
        min-height: 520px;

        padding: 60px 6%;

        text-align: center;

        justify-content: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 15px;
    }

    .btn-glow {
        padding: 13px 18px;

        font-size: 13px;
    }


    .offers-section,
    .products-section {
        padding: 60px 5%;
    }


    .offers-grid {
        grid-template-columns: 1fr;
    }


    .products-grid {
        grid-template-columns: 1fr;
    }


    .product-info h3 {
        min-height: auto;
    }


    .auth-box {
        padding: 30px 22px;
    }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 400px) {

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .cart-trigger {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 14px;
    }

    .options {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 94vw;
    }

}