/* =========================================
   ZAHER STORE
   COMPLETE FINAL STYLESHEET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b12;
    color: #ffffff;
    line-height: 1.6;
}

body.cart-open {
    overflow: hidden;
}

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

button,
input {
    font-family: inherit;
}


/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(11, 11, 18, 0.96);

    border-bottom: 1px solid #252530;

    backdrop-filter: blur(14px);
}

.navbar-container {
    max-width: 1200px;
    min-height: 76px;

    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================
   LOGO
   ========================================= */

.logo {
    display: inline-block;

    color: #ffffff;

    font-size: 27px;
    font-weight: 800;

    letter-spacing: -1.5px;

    white-space: nowrap;

    transition: opacity 0.25s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo span {
    color: #7654ff;
}


/* =========================================
   NAVIGATION
   ========================================= */

.nav-links {
    display: flex;
    align-items: center;

    gap: 32px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 8px 0;

    color: #aaa7b5;

    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.25s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: #7654ff;

    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================================
   NAVBAR ACTIONS
   ========================================= */

.navbar-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}


/* =========================================
   SEARCH
   ========================================= */

.search-box {
    width: 190px;
    height: 42px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid #302d3d;
    border-radius: 10px;

    background: #15141d;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.search-box:focus-within {
    border-color: #7654ff;

    box-shadow:
        0 0 0 3px rgba(118, 84, 255, 0.12);
}

.search-box input {
    flex: 1;

    width: 100%;
    height: 100%;

    padding: 0 12px;

    border: none;
    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 13px;
}

.search-box input::placeholder {
    color: #777582;
}

.search-box button {
    width: 42px;
    height: 100%;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #aaa7b5;

    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.search-box button:hover {
    background: #7654ff;

    color: #ffffff;
}


/* =========================================
   CART BUTTON
   ========================================= */

.cart {
    min-width: 48px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 10px;

    border: 1px solid #302d3d;
    border-radius: 10px;

    background: #15141d;

    color: #ffffff;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cart:hover {
    background: #1d1a2b;

    border-color: #7654ff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(118, 84, 255, 0.15);
}

.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    line-height: 1;
}

#cart-count {
    min-width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    border-radius: 50%;

    background: #7654ff;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #171720;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(118, 84, 255, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 65%,
            rgba(0, 220, 190, 0.07),
            transparent 30%
        );
}

.hero-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 90px 30px;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;

    margin-bottom: 24px;
    padding: 8px 16px;

    border: 1px solid #7654ff;
    border-radius: 30px;

    color: #9b83ff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 24px;

    color: #ffffff;

    font-size: clamp(48px, 7vw, 82px);
    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -4px;
}

.hero h1 span {
    color: #7654ff;
}

.hero p {
    max-width: 600px;

    margin-bottom: 34px;

    color: #a5a3b0;

    font-size: 19px;

    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-wrap: wrap;
}


/* =========================================
   GENERAL BUTTONS
   ========================================= */

.btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-primary {
    border: 1px solid #7654ff;

    background: #7654ff;

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(118, 84, 255, 0.18);
}

.btn-primary:hover {
    background: #896dff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(118, 84, 255, 0.3);
}

.btn-secondary {
    border: 1px solid #363442;

    background: #15151e;

    color: #ffffff;
}

.btn-secondary:hover {
    border-color: #7654ff;

    background: #1b1927;

    transform: translateY(-2px);
}


/* =========================================
   GENERAL SECTION
   ========================================= */

section {
    width: 100%;
}

.section-container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 90px 30px;
}

.section-label {
    margin-bottom: 12px;

    color: #7654ff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;
}

.section-title {
    margin-bottom: 50px;

    color: #ffffff;

    font-size: 48px;
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -2px;
}


/* =========================================
   CATEGORIES
   ========================================= */

.categories {
    background: #0d0d14;
}

.categories-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 18px;
}

.category-card {
    width: 100%;
    min-height: 170px;

    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border: 1px solid #252530;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #191822,
            #101017
        );

    color: #ffffff;

    text-align: left;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.category-card:hover {
    transform: translateY(-6px);

    border-color: #7654ff;

    box-shadow:
        0 15px 40px rgba(118, 84, 255, 0.12);
}

.category-icon {
    margin-bottom: auto;

    font-size: 42px;

    line-height: 1;
}

.category-card h3 {
    margin-top: 20px;

    color: #ffffff;

    font-size: 19px;
}

.category-card p {
    color: #85828f;

    font-size: 13px;
}


/* =========================================
   PRODUCTS
   ========================================= */

.products {
    background: #0b0b12;
}

.products-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 45px;
}

.products-header .section-title {
    margin-bottom: 0;
}

.view-all {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border: 1px solid #343044;
    border-radius: 9px;

    background: #15131f;

    color: #9b83ff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.view-all:hover {
    background: #7654ff;

    border-color: #7654ff;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(118, 84, 255, 0.22);
}

.products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 24px;
}


/* =========================================
   PRODUCT CARD
   ========================================= */

.product-card {
    overflow: hidden;

    border: 1px solid #292934;
    border-radius: 20px;

    background: #14141c;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-7px);

    border-color: #7654ff;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}


/* =========================================
   PRODUCT IMAGE
   ========================================= */

.product-image {
    position: relative;

    height: 290px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1a1828;
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}


/* =========================================
   PRODUCT BADGE
   ========================================= */

.badge {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 5;

    padding: 8px 13px;

    border-radius: 7px;

    background: #7654ff;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.5px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2);
}


/* =========================================
   PRODUCT INFORMATION
   ========================================= */

.product-info {
    padding: 25px 28px 28px;
}

.product-category {
    margin-bottom: 12px;

    color: #7654ff;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 2px;
}

.product-info h3 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.25;
}

.product-description {
    min-height: 52px;

    margin-bottom: 12px;

    color: #8d8a98;

    font-size: 15px;

    line-height: 1.6;
}

.product-stock {
    margin-bottom: 16px;

    color: #66636f;

    font-size: 12px;
}

.product-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.price {
    color: #ffffff;

    font-size: 25px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================
   ADD TO CART BUTTON
   ========================================= */

.add-cart {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 13px;

    background: #7654ff;

    color: #ffffff;

    font-size: 27px;
    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(118, 84, 255, 0.18);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.add-cart:hover {
    background: #896dff;

    transform: translateY(-3px) scale(1.03);

    box-shadow:
        0 12px 25px rgba(118, 84, 255, 0.32);
}

.add-cart:active {
    transform: translateY(0) scale(0.98);
}

.add-cart:disabled {
    background: #33313b;

    color: #777582;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
}


/* =========================================
   DEALS
   ========================================= */

.deals {
    background: #0d0d14;
}

.deal-container {
    min-height: 350px;

    padding: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    border: 1px solid #302b4a;
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(118, 84, 255, 0.2),
            transparent 35%
        ),
        #15131f;
}

.deal-content {
    max-width: 600px;
}

.deal-content .section-label {
    margin-bottom: 18px;
}

.deal-content h2 {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: 52px;
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -2px;
}

.deal-content p {
    margin-bottom: 28px;

    color: #9b98a5;

    font-size: 17px;
}

.deal-discount {
    color: #7654ff;
}


/* =========================================
   CART OVERLAY
   ========================================= */

.cart-overlay {
    position: fixed;

    inset: 0;

    z-index: 1998;

    background: rgba(0, 0, 0, 0.68);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;

    visibility: visible;
}


/* =========================================
   CART DRAWER
   ========================================= */

.cart-drawer {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 1999;

    width: min(460px, 100%);

    height: 100vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #111119;

    border-left: 1px solid #302d3d;

    transform: translateX(100%);

    transition:
        transform 0.35s ease;

    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.45);
}

.cart-drawer.active {
    transform: translateX(0);
}


/* =========================================
   CART HEADER
   ========================================= */

.cart-header {
    min-height: 95px;

    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #292934;
}

.cart-label {
    margin-bottom: 4px;

    color: #7654ff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.cart-header h2 {
    color: #ffffff;

    font-size: 26px;
    font-weight: 700;
}

.close-cart {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #302d3d;
    border-radius: 10px;

    background: #181720;

    color: #ffffff;

    font-size: 27px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.close-cart:hover {
    background: #7654ff;

    border-color: #7654ff;

    transform: rotate(90deg);
}


/* =========================================
   CART ITEMS
   ========================================= */

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #111119;
}

.cart-items::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background: #302d3d;
}

.cart-item {
    display: grid;

    grid-template-columns: 75px 1fr auto;

    gap: 14px;

    padding: 15px 0;

    border-bottom: 1px solid #252530;
}

.cart-item-image {
    width: 75px;
    height: 75px;

    object-fit: cover;

    border-radius: 10px;

    background: #1a1828;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-details h4 {
    margin-bottom: 4px;

    color: #ffffff;

    font-size: 14px;

    line-height: 1.3;
}

.cart-item-details p {
    margin-bottom: 10px;

    color: #9b83ff;

    font-size: 13px;
    font-weight: 600;
}

.cart-item-right {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    justify-content: space-between;
}

.cart-item-right strong {
    color: #ffffff;

    font-size: 14px;
}

.remove-item {
    padding: 0;

    border: none;

    background: transparent;

    color: #777582;

    font-size: 11px;

    cursor: pointer;

    transition:
        color 0.2s ease;
}

.remove-item:hover {
    color: #ff6b6b;
}


/* =========================================
   QUANTITY CONTROLS
   ========================================= */

.quantity-controls {
    display: inline-flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid #302d3d;
    border-radius: 7px;

    background: #15141d;
}

.quantity-controls span {
    min-width: 32px;

    text-align: center;

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
}

.quantity-button {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    background: #191822;

    color: #ffffff;

    font-size: 16px;

    cursor: pointer;

    transition:
        background 0.2s ease;
}

.quantity-button:hover {
    background: #7654ff;
}


/* =========================================
   EMPTY CART
   ========================================= */

.empty-cart {
    min-height: 350px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.empty-cart-icon {
    margin-bottom: 18px;

    font-size: 52px;

    opacity: 0.55;
}

.empty-cart h3 {
    margin-bottom: 7px;

    color: #ffffff;

    font-size: 20px;
}

.empty-cart p {
    color: #777582;

    font-size: 14px;
}


/* =========================================
   CART FOOTER
   ========================================= */

.cart-footer {
    padding: 22px 25px;

    border-top: 1px solid #292934;

    background: #0d0d14;
}

.cart-total-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;

    color: #aaa7b5;

    font-size: 15px;
}

.cart-total-row strong {
    color: #ffffff;

    font-size: 24px;
}

.checkout-button {
    width: 100%;
    height: 52px;

    border: none;
    border-radius: 11px;

    background: #7654ff;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.checkout-button:hover {
    background: #896dff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(118, 84, 255, 0.25);
}

.checkout-button:active {
    transform: translateY(0);
}

.secure-checkout {
    margin-top: 12px;

    color: #66636f;

    font-size: 11px;

    text-align: center;
}


/* =========================================
   TOAST
   ========================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    z-index: 3000;

    max-width: calc(100% - 40px);

    padding: 13px 20px;

    border: 1px solid #3b3558;
    border-radius: 10px;

    background: #171521;

    color: #ffffff;

    font-size: 14px;

    text-align: center;

    transform:
        translate(-50%, 100px);

    opacity: 0;

    pointer-events: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.35);
}

.toast.show {
    transform:
        translate(-50%, 0);

    opacity: 1;
}


/* =========================================
   LOADING
   ========================================= */

.loading-message {
    grid-column: 1 / -1;

    padding: 60px;

    color: #777582;

    text-align: center;

    font-size: 16px;
}

.loading-message.error {
    color: #ff6b6b;
}


/* =========================================
   FOOTER
   ========================================= */

.footer {
    padding: 60px 30px 30px;

    background: #08080d;

    border-top: 1px solid #20202a;
}

.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 50px;
}

.footer-brand p {
    max-width: 330px;

    margin-top: 18px;

    color: #777582;

    font-size: 14px;
}

.footer-column h4 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 15px;
}

.footer-column a {
    display: block;

    margin-bottom: 11px;

    color: #777582;

    font-size: 14px;

    transition:
        color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;

    margin: 50px auto 0;

    padding-top: 25px;

    border-top: 1px solid #20202a;

    color: #5f5d67;

    font-size: 13px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {

    .navbar-container {
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .search-box {
        width: 160px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .navbar-container {
        min-height: 68px;

        padding: 12px 20px;

        flex-wrap: wrap;

        gap: 12px;
    }

    .logo {
        font-size: 23px;
    }

    .nav-links {
        display: none;
    }

    .navbar-actions {
        width: 100%;

        order: 3;
    }

    .search-box {
        flex: 1;

        width: auto;
    }

    .search-box input {
        width: 100%;
    }

    .cart {
        flex-shrink: 0;
    }


    /* HERO */

    .hero {
        min-height: 560px;
    }

    .hero-container {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }

    .hero p {
        font-size: 16px;
    }


    /* SECTIONS */

    .section-container {
        padding: 65px 20px;
    }

    .section-title {
        font-size: 38px;
    }


    /* PRODUCTS */

    .products-header {
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }


    /* CATEGORIES */

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* PRODUCT */

    .product-image {
        height: 280px;
    }

    .product-info {
        padding: 23px;
    }


    /* DEALS */

    .deal-container {
        padding: 40px 25px;
    }

    .deal-content h2 {
        font-size: 38px;
    }


    /* FOOTER */

    .footer {
        padding: 50px 20px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* CART */

    .cart-drawer {
        width: 100%;
    }

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 450px) {

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .products-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .product-image {
        height: 260px;
    }

    .product-info {
        padding: 22px;
    }

    .price {
        font-size: 22px;
    }

    .cart-item {
        grid-template-columns: 65px 1fr auto;

        gap: 10px;
    }

    .cart-item-image {
        width: 65px;
        height: 65px;
    }

}
