/* ==================================================
   DIGITAL STORE
   Modern Store Design
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f8fc;
    color: #172033;
    font-family: "Cairo", sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* ==================================================
   NAVBAR
================================================== */

.store-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(15, 23, 42, 0.96);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
}

.navbar-content {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    white-space: nowrap;
}

.store-logo:hover {
    color: #ffffff;
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #6366f1;

    font-size: 19px;
}

.navbar-links {
    display: flex;
    align-items: center;

    gap: 8px;
}

.nav-link {
    color: #cbd5e1;

    padding: 9px 13px;

    border-radius: 9px;

    font-size: 14px;

    transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.user-greeting {
    color: #ffffff;

    font-size: 14px;

    padding: 8px 10px;

    margin-right: 4px;
}

.nav-register {
    color: #ffffff;

    background: #6366f1;

    padding: 9px 16px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

.nav-register:hover {
    background: #4f46e5;
    color: #ffffff;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);

    background: transparent;

    color: #e2e8f0;

    padding: 8px 13px;

    border-radius: 9px;

    font-size: 13px;

    cursor: pointer;

    transition: 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* ==================================================
   HERO
================================================== */

.hero-section {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(99, 102, 241, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(139, 92, 246, 0.18),
            transparent 30%
        ),
        #0f172a;

    color: #ffffff;

    padding: 85px 0 90px;
}

.hero-section::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.10);

    top: -170px;
    right: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;

    min-height: 400px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.hero-text {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #c7d2fe;

    font-size: 13px;

    margin-bottom: 20px;
}

.hero-text h1 {
    margin: 0;

    font-size: clamp(36px, 5vw, 58px);

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1px;
}

.hero-text h1 span {
    color: #818cf8;
}

.hero-text p {
    max-width: 560px;

    margin: 22px 0 30px;

    color: #cbd5e1;

    font-size: 17px;
}

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.btn-primary-store,
.btn-secondary-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 21px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s;
}

.btn-primary-store {
    background: #6366f1;
    color: #ffffff;
}

.btn-primary-store:hover {
    background: #4f46e5;
    color: #ffffff;

    transform: translateY(-2px);
}

.btn-secondary-store {
    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.15);

    color: #ffffff;
}

.btn-secondary-store:hover {
    background: rgba(255, 255, 255, 0.13);

    color: #ffffff;
}


/* ==================================================
   HERO VISUAL
================================================== */

.hero-visual {
    width: 400px;
    min-width: 400px;

    display: flex;
    justify-content: center;
}

.hero-circle {
    position: relative;

    width: 330px;
    height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 102, 241, 0.28),
            rgba(99, 102, 241, 0.05) 60%,
            transparent 70%
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-main-icon {
    width: 125px;
    height: 125px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 35px;

    background: rgba(255, 255, 255, 0.09);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);

    font-size: 55px;
}

.hero-card {
    position: absolute;

    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.13);

    backdrop-filter: blur(10px);

    font-size: 30px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.18);
}

.hero-card-one {
    top: 25px;
    right: 30px;
    transform: rotate(8deg);
}

.hero-card-two {
    bottom: 25px;
    left: 25px;
    transform: rotate(-8deg);
}

.hero-card-three {
    bottom: 35px;
    right: 15px;
    transform: rotate(7deg);
}


/* ==================================================
   FEATURES
================================================== */

.features-section {
    position: relative;

    margin-top: -35px;

    z-index: 10;
}

.feature-card {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e8ebf2;

    border-radius: 15px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #eef2ff;

    font-size: 22px;
}

.feature-card h3 {
    margin: 0 0 3px;

    font-size: 15px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;

    color: #64748b;

    font-size: 12px;
}


/* ==================================================
   SECTIONS
================================================== */

.categories-section,
.products-section {
    padding: 80px 0 20px;
}

.products-section {
    padding-top: 55px;
    padding-bottom: 75px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.section-small-title {
    display: block;

    color: #6366f1;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 5px;
}

.section-heading h2 {
    margin: 0;

    color: #111827;

    font-size: 28px;
    font-weight: 800;
}

.products-count {
    color: #64748b;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    padding: 7px 13px;

    border-radius: 8px;

    font-size: 12px;
}


/* ==================================================
   CATEGORIES
================================================== */

.categories-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}

.category-card {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e6e9f0;

    border-radius: 15px;

    color: #172033;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.category-card:hover {
    color: #172033;

    transform: translateY(-4px);

    border-color: #c7d2fe;

    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-icon {
    width: 54px;
    min-width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f1f5ff;

    font-size: 25px;

    color: #4f46e5;
}

.category-info {
    min-width: 0;
}

.category-info h3 {
    margin: 0 0 4px;

    font-size: 15px;
    font-weight: 700;
}

.category-info span {
    color: #94a3b8;

    font-size: 11px;
}


/* ==================================================
   PRODUCTS
================================================== */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.product-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);

    border-color: #d9ddf7;

    box-shadow:
        0 16px 35px rgba(15, 23, 42, 0.10);
}

.product-image-wrapper {
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2ff
        );
}

.product-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-placeholder {
    width: 85px;
    height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: #ffffff;

    font-size: 38px;

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.08);
}

.product-content {
    padding: 17px;
}

.product-category {
    color: #6366f1;

    font-size: 11px;
    font-weight: 700;

    margin-bottom: 6px;
}

.product-name {
    min-height: 48px;

    margin: 0 0 15px;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.6;
}

.product-name a {
    color: #172033;
}

.product-name a:hover {
    color: #4f46e5;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.product-price {
    display: flex;
    align-items: baseline;

    gap: 4px;

    white-space: nowrap;
}

.price-value {
    color: #111827;

    font-size: 18px;
    font-weight: 800;
}

.price-currency {
    color: #64748b;

    font-size: 11px;
}

.product-btn {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 8px 12px;

    border-radius: 8px;

    background: #eef2ff;

    color: #4f46e5;

    font-size: 12px;
    font-weight: 700;

    transition: 0.2s;
}

.product-btn:hover {
    background: #6366f1;

    color: #ffffff;
}

.product-btn span {
    transition: transform 0.2s;
}

.product-btn:hover span {
    transform: translateX(-3px);
}


/* ==================================================
   EMPTY PRODUCTS
================================================== */

.empty-products {
    text-align: center;

    padding: 70px 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;
}

.empty-icon {
    font-size: 45px;

    margin-bottom: 12px;
}

.empty-products h3 {
    margin-bottom: 6px;

    font-size: 18px;
}

.empty-products p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}


/* ==================================================
   CTA
================================================== */

.cta-section {
    padding: 0 0 75px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 32px 35px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #1e1b4b
        );

    color: #ffffff;

    overflow: hidden;

    position: relative;
}

.cta-box::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.15);

    left: -80px;
    bottom: -140px;
}

.cta-icon {
    font-size: 25px;

    margin-bottom: 5px;
}

.cta-box h2 {
    position: relative;
    z-index: 1;

    margin: 0 0 5px;

    font-size: 22px;
    font-weight: 800;
}

.cta-box p {
    position: relative;
    z-index: 1;

    margin: 0;

    color: #cbd5e1;

    font-size: 13px;
}

.cta-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 20px;

    border-radius: 10px;

    background: #ffffff;

    color: #312e81;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    transition: 0.2s;
}

.cta-button:hover {
    background: #eef2ff;

    color: #312e81;

    transform: translateY(-2px);
}


/* ==================================================
   FOOTER
================================================== */

.store-footer {
    background: #0f172a;

    color: #cbd5e1;

    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;

    gap: 30px;
}

.footer-logo {
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    margin-bottom: 5px;
}

.footer-content p {
    margin: 0;

    color: #94a3b8;

    font-size: 12px;
}

.footer-links {
    display: flex;

    gap: 20px;

    align-items: center;
}

.footer-links a {
    color: #94a3b8;

    font-size: 13px;

    transition: 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 30px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;

    color: #64748b;

    font-size: 11px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 991px) {

    .hero-content {
        min-height: auto;
    }

    .hero-visual {
        width: 320px;
        min-width: 320px;
    }

    .hero-circle {
        width: 280px;
        height: 280px;
    }

    .categories-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 767px) {

    .navbar-content {
        min-height: 64px;
    }

    .navbar-links {
        gap: 3px;
    }

    .nav-link {
        padding: 7px 8px;
        font-size: 12px;
    }

    .user-greeting {
        display: none;
    }

    .nav-register {
        padding: 7px 10px;
        font-size: 12px;
    }

    .logout-btn {
        padding: 7px 9px;
        font-size: 11px;
    }


    .hero-section {
        padding: 60px 0 75px;
    }

    .hero-content {
        display: block;

        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;

        font-size: 15px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        min-width: 0;

        margin-top: 45px;
    }

    .hero-circle {
        width: 240px;
        height: 240px;
    }

    .hero-main-icon {
        width: 95px;
        height: 95px;

        border-radius: 27px;

        font-size: 42px;
    }

    .hero-card {
        width: 58px;
        height: 58px;

        border-radius: 15px;

        font-size: 24px;
    }


    .features-section {
        margin-top: -25px;
    }


    .categories-section,
    .products-section {
        padding-top: 55px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .product-image-wrapper {
        height: 145px;
    }

    .product-content {
        padding: 13px;
    }

    .product-name {
        min-height: 44px;

        font-size: 13px;
    }

    .price-value {
        font-size: 15px;
    }

    .product-btn {
        padding: 7px 9px;

        font-size: 11px;
    }


    .cta-box {
        flex-direction: column;

        align-items: flex-start;

        padding: 27px;
    }


    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}


@media (max-width: 480px) {

    .store-logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 33px;
        height: 33px;

        border-radius: 9px;

        font-size: 16px;
    }

    .navbar-links {
        gap: 1px;
    }

    .nav-link {
        font-size: 11px;

        padding-left: 5px;
        padding-right: 5px;
    }

    .logout-btn {
        font-size: 10px;

        padding-left: 7px;
        padding-right: 7px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .btn-primary-store,
    .btn-secondary-store {
        width: 100%;
    }

    .categories-grid {
        grid-template-columns:
            1fr;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .product-image-wrapper {
        height: 125px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-bottom {
        align-items: flex-end;

        flex-direction: column;
    }

    .product-btn {
        width: 100%;

        justify-content: center;
    }

}