:root {
    --web-bg: #f4f7fb;
    --web-surface: #ffffff;
    --web-border: #dbe4ef;
    --web-text: #102136;
    --web-muted: #60768c;
    --web-primary: #0d6e6e;
    --web-primary-soft: #e4f4f4;
}

.web-body {
    margin: 0;
    font-family: "Cairo", sans-serif;
    color: var(--web-text);
    background:
        radial-gradient(circle at 95% 0%, rgba(13, 110, 110, 0.1), transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(16, 33, 54, 0.08), transparent 25%),
        var(--web-bg);
}

.web-topbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--web-border);
    z-index: 1020;
}

.web-topbar .navbar {
    padding-block: 0.85rem;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--web-text);
}

.brand-badge {
    width: 220px;
    height: 55px;
    border-radius: 0;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--web-primary);
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.web-topbar .nav-link {
    color: var(--web-muted);
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 0.65rem;
}

.web-topbar .nav-link:hover,
.web-topbar .nav-link.active {
    color: #fff;
    background: var(--web-primary);
}

@media (min-width: 992px) {
    .web-topbar #webNav {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
    }

    .web-topbar .web-nav-links {
        grid-column: 2;
        margin: 0 !important;
    }

    .web-topbar .web-nav-actions {
        grid-column: 3;
        justify-self: end;
    }
}

.web-categories-dropdown {
    min-width: 240px;
    border-radius: 0.8rem;
    border: 1px solid var(--web-border);
    box-shadow: 0 14px 28px rgba(16, 33, 54, 0.12);
    padding: 0.4rem;
}

.web-categories-dropdown .dropdown-item {
    border-radius: 0.55rem;
    padding-block: 0.45rem;
}

.web-categories-dropdown .dropdown-item:hover {
    background: var(--web-primary-soft);
    color: var(--web-text);
}

.web-category-child {
    padding-right: 1.4rem !important;
    font-size: 0.92rem;
}

.web-auth-card {
    border-radius: 1rem;
    border: 1px solid var(--web-border);
    box-shadow: 0 12px 30px rgba(16, 33, 54, 0.08);
}

.web-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.7rem;
    border: 1px solid var(--web-border);
    border-radius: 999px;
    background: #fff;
    color: var(--web-text);
    font-size: 0.88rem;
    font-weight: 700;
}

.web-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--web-border);
}

.web-profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--web-border);
    box-shadow: 0 8px 20px rgba(16, 33, 54, 0.1);
}

.web-profile-avatar-placeholder {
    display: inline-grid;
    place-items: center;
    background: var(--web-primary-soft);
    color: var(--web-primary);
    font-size: 2rem;
}

.web-main {
    min-height: calc(100vh - 190px);
}

.home-slider {
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(16, 33, 54, 0.16);
}

.home-slider-frame {
    background: #d9e8ee;
}

.home-slider-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 18, 31, 0.08), rgba(9, 18, 31, 0.62)),
        linear-gradient(90deg, rgba(13, 110, 110, 0.08), rgba(13, 110, 110, 0));
}

.home-slider-caption {
    right: 2rem;
    left: auto;
    bottom: 2rem;
    max-width: 560px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 0.9rem;
    background: rgba(12, 22, 35, 0.45);
    backdrop-filter: blur(4px);
}

.home-slider-caption h2 {
    color: #fff;
    font-size: clamp(1.05rem, 1.9vw, 1.8rem);
}

.home-slider-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.84rem, 1.15vw, 1rem);
}

.home-slider-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: #ecfdfc;
    background: rgba(13, 110, 110, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-slider-indicators {
    margin-bottom: 0.75rem;
    gap: 0.4rem;
}

.home-slider-indicators [data-bs-target] {
    width: 28px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.48);
    opacity: 1;
}

.home-slider-indicators .active {
    width: 38px;
    background-color: #fff;
}

.home-slider-control {
    width: 7%;
    opacity: 1;
}

.home-slider-control-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(9, 18, 31, 0.45);
    background-size: 45% 45%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-circle-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--web-text);
    gap: 0.6rem;
    transition: transform 0.2s ease;
}

.category-circle-link:hover {
    transform: translateY(-3px);
    color: var(--web-primary);
}

.category-circle-image-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid var(--web-border);
    background: #fff;
    box-shadow: 0 10px 20px rgba(16, 33, 54, 0.08);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--web-primary-soft);
    color: var(--web-primary);
    font-size: 1.6rem;
}

.category-circle-title {
    font-weight: 700;
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.4;
}

.category-banner-card {
    border-radius: 1rem;
    border: 1px solid var(--web-border);
    box-shadow: 0 12px 28px rgba(16, 33, 54, 0.08);
}

.category-banner-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: linear-gradient(145deg, #e6f4f4, #f2f7fb);
}

.category-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 18, 31, 0.18), rgba(9, 18, 31, 0.62));
}

.category-banner-content {
    position: absolute;
    right: 1.25rem;
    left: 1.25rem;
    bottom: 1.2rem;
    color: #fff;
}

.hero-card,
.feature-card,
.product-card,
.cart-card,
.cart-summary-card,
.web-footer {
    border-radius: 1rem;
    border: 1px solid var(--web-border);
    box-shadow: 0 10px 28px rgba(16, 33, 54, 0.06);
    background: var(--web-surface);
}

.category-filter-card {
    border-radius: 1rem;
    border: 1px solid var(--web-border);
    box-shadow: 0 10px 24px rgba(16, 33, 54, 0.06);
    background: var(--web-surface);
}

.category-child-pill {
    margin-right: 0.25rem;
}

.hero-chip {
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    background: var(--web-primary-soft);
    color: var(--web-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.text-primary {
    color: var(--web-primary) !important;
}

.btn-primary {
    --bs-btn-bg: var(--web-primary);
    --bs-btn-border-color: var(--web-primary);
    --bs-btn-hover-bg: #0b5e5e;
    --bs-btn-hover-border-color: #0b5e5e;
}

.product-image {
    height: 150px;
    background: linear-gradient(145deg, #e6f4f4, #f2f7fb);
    color: #2f6775;
    border-radius: 1rem 1rem 0 0;
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(16, 33, 54, 0.12);
}

.product-card-compact {
    max-width: 360px;
    margin-inline: auto;
}

.product-image img {
    object-fit: contain !important;
    padding: 0.35rem;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:hover {
    color: var(--web-primary);
}

.product-card-actions {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.product-card-actions .btn,
.product-card-actions form .btn {
    min-width: 38px;
}

.empty-cart-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--web-primary-soft);
    color: var(--web-primary);
    display: inline-grid;
    place-items: center;
    font-size: 1.8rem;
}

.web-footer {
    margin: 0 1rem 1rem;
    padding: 1.1rem 1rem;
}

.web-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.web-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.web-footer-store-logo {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.web-footer-about {
    color: var(--web-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.web-footer-heading {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.web-footer-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    white-space: nowrap;
    overflow-x: auto;
}

.web-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.web-footer-bottom {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--web-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.pagination {
    --bs-pagination-border-color: var(--web-border);
    --bs-pagination-color: var(--web-text);
    --bs-pagination-active-bg: var(--web-primary);
    --bs-pagination-active-border-color: var(--web-primary);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: var(--web-primary);
    --bs-pagination-hover-border-color: var(--web-primary);
}

.pagination .page-link {
    min-width: 2.25rem;
    text-align: center;
    border-width: 1px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 33, 54, 0.06);
}

.pagination .page-link-prev {
    background: linear-gradient(135deg, #0d6e6e 0%, #174a78 100%);
    border-color: transparent;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-inline: 0.95rem 1.2rem !important;
    box-shadow: 0 10px 22px rgba(13, 110, 110, 0.26);
}

.pagination .page-link-prev .page-link-prev-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1rem;
}

.pagination .page-link-prev .page-link-prev-text {
    letter-spacing: 0.2px;
}

.pagination .page-link-prev::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.18) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.pagination .page-link-prev:hover,
.pagination .page-link-prev:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(13, 110, 110, 0.32);
}

.pagination .page-link-prev:hover::after,
.pagination .page-link-prev:focus::after {
    transform: translateX(120%);
}

.pagination .page-item.disabled .page-link-prev {
    background: linear-gradient(135deg, #8aa6b8 0%, #6f8798 100%);
    color: #eef3f8;
    box-shadow: none;
}

.footer-link {
    color: var(--web-muted);
    text-decoration: none;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #fff;
    background: var(--web-primary);
}

.developer-link {
    color: var(--web-primary);
    font-weight: 700;
    text-decoration: none;
}

.developer-link:hover {
    color: #0a5d5d;
    text-decoration: underline;
}

.footer-social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-icon-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--web-primary);
    background: var(--web-primary-soft);
    border: 1px solid #cbe2e2;
    transition: all 0.2s ease;
}

.social-icon-link:hover {
    background: var(--web-primary);
    color: #fff;
    border-color: var(--web-primary);
}

.web-footer-contact-list {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.web-footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--web-muted);
    font-size: 0.88rem;
}

.web-footer-contact-item i {
    color: var(--web-primary);
}

.web-footer-contact-item a {
    color: inherit;
    text-decoration: none;
}

.web-footer-contact-item a:hover {
    color: var(--web-primary);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.social-btn-whatsapp {
    background: #e7f8ef;
    color: #1e7d45;
    border-color: #c6ebd5;
}

.social-btn-whatsapp:hover {
    background: #d7f2e3;
    color: #155f33;
}

.social-btn-facebook {
    background: #e8f0ff;
    color: #1f4ea8;
    border-color: #ccdcff;
}

.social-btn-facebook:hover {
    background: #dce8ff;
    color: #183f87;
}

.developer-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.developer-avatar-wrap {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #d8e3ef;
    box-shadow: 0 6px 18px rgba(16, 33, 54, 0.12);
    flex: 0 0 auto;
}

.developer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.developer-verify {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .brand-badge {
        width: 180px;
        height: 45px;
    }

    .web-footer-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .web-footer {
        margin: 0.5rem;
    }

    .web-footer-row {
        justify-content: flex-start;
    }

    .home-slider-caption {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        max-width: none;
    }

    .home-slider .carousel-item img {
        height: 320px !important;
    }

    .category-circle-image-wrap {
        width: 95px;
        height: 95px;
    }

    .category-banner-image {
        height: 320px !important;
    }

    .home-slider-control {
        width: 10%;
    }
}

@media (max-width: 575.98px) {
    .latest-products-mobile-row {
        --mobile-product-gap: 0.75rem;
        margin: 0;
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: auto;
        grid-auto-columns: calc((100% - var(--mobile-product-gap)) / 2);
        gap: var(--mobile-product-gap);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .latest-product-mobile-item {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
        scroll-snap-align: start;
    }

    .latest-product-mobile-item .product-card-compact {
        max-width: none;
        margin-inline: 0;
    }

    .category-mobile-grid {
        --mobile-category-gap: 0.75rem;
        margin: 0;
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(3, auto);
        grid-auto-columns: calc((100% - (var(--mobile-category-gap) * 2)) / 3);
        gap: var(--mobile-category-gap);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .category-mobile-item {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
        scroll-snap-align: start;
    }

    .home-slider .carousel-item img {
        height: 260px !important;
    }

    .home-slider-caption {
        padding: 0.75rem 0.8rem;
    }

    .home-slider-control-icon {
        width: 2rem;
        height: 2rem;
    }

    .category-circle-image-wrap {
        width: 84px;
        height: 84px;
    }

    .category-circle-title {
        font-size: 0.86rem;
    }

    .category-banner-image {
        height: 260px !important;
    }
}
