:root {
    --brand: #5b4bf0;
    --brand-dark: #4434d8;
    --soft: #f3f1ff;
    --ink: #17152a;
    --radius: 1.25rem;
    --shadow: 0 14px 40px rgba(29, 24, 72, .08)
}

* {
    box-sizing: border-box
}

body {
    font-family: "Tajawal", sans-serif;
    color: var(--ink);
    background: var(--bs-body-bg)
}

a {
    color: inherit;
    text-decoration: none
}

.topbar {
    font-size: .85rem;
    background: var(--ink);
    color: #fff
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff
}

.store-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px
}

.navbar-brand {
    letter-spacing: -1px
    font-size:12px;
}

.nav-link {
    font-weight: 400
    font-size: 12px !important  ;
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    border-radius: .8rem;
    font-weight: 700
}

.btn-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 0
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .7rem
}

.search-box {
    position: relative;
    width: min(390px, 100%)
}

.search-box input {
    padding-left: 45px;
    border-radius: 12px;
    background: var(--bs-secondary-bg);
    border: 0
}

.search-box button {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 38px;
    height: 30px;
    border: 0;
    background: transparent;
    font-size: 1.4rem
}

.hero {
    min-height: 530px;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--soft), #fbfaff);
    overflow: hidden;
    position: relative
}

.hero:before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #dcd7ff;
    top: -130px;
    right: -80px
}

.eyebrow {
    color: var(--brand);
    font-weight: 800;
    font-size: .85rem
}

.hero h1 {
    letter-spacing: -2px
}

.hero h1 span {
    color: var(--brand)
}

.hero-art {
    height: 390px;
    position: relative;
    display: grid;
    place-items: center
}

.hero-art:before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand), #9187ff);
    box-shadow: 0 30px 70px rgba(91, 75, 240, .28)
}

.hero-bag {
    position: relative;
    width: 220px;
    height: 245px;
    border-radius: 35px 35px 70px 70px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 2.7rem;
    font-weight: 800;
    box-shadow: var(--shadow);
    transform: rotate(-5deg)
}

.hero-bag:before {
    content: "";
    position: absolute;
    width: 100px;
    height: 65px;
    border: 13px solid #fff;
    border-bottom: 0;
    border-radius: 60px 60px 0 0;
    top: -46px
}

.floating-card {
    position: absolute;
    z-index: 2;
    background: var(--bs-body-bg);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: var(--shadow);
    font-weight: 700
}

.fc-1 {
    top: 55px;
    right: 10px
}

.fc-2 {
    bottom: 45px;
    left: 10px
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1.5rem
}

.section-head h2 {
    font-weight: 800;
    margin: .3rem 0 0
}

.section-head>a {
    color: var(--brand);
    font-weight: 700
}

.category-strip {
    display: flex;
    gap: 1rem;
    overflow: auto;
    padding: 5px
}

.category-pill {
    min-width: 135px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    background: var(--bs-body-bg);
    transition: .2s
}

.category-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--brand)
}

.category-pill span {
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background: var(--soft);
    color: var(--brand);
    font-size: 1.4rem
}

.product-card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    background: var(--bs-body-bg);
    overflow: hidden;
    transition: .25s
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow)
}

.product-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1/1;
    background: var(--bs-secondary-bg);
    overflow: hidden
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s
}

.product-card:hover img {
    transform: scale(1.04)
}

.product-image .badge {
    position: absolute;
    right: 12px;
    top: 12px
}

.placeholder-product {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    opacity: .55
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    height: 3em;
    overflow: hidden
}

.rating {
    color: #f4a622
}

.rating span {
    color: var(--bs-secondary-color)
}

.price {
    display: block;
    color: var(--brand);
    font-size: 1.05rem
}

.product-card del {
    font-size: .78rem;
    color: var(--bs-secondary-color)
}

.add-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--soft);
    color: var(--brand);
    font-size: 1.4rem;
    border-radius: 12px
}

.page-header {
    padding: 65px 0;
    background: linear-gradient(120deg, var(--soft), transparent)
}

.page-header h1 {
    font-weight: 800;
    margin: .rem 0
}

.filter-card {
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    background: var(--bs-body-bg)
}

.filter-card label {
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .4rem
}

.form-control,
.form-select {
    border-radius: .75rem;
    min-height: 44px
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--bs-secondary-color)
}

.empty-state>div {
    font-size: 3rem
}

.empty-state h3 {
    color: var(--bs-body-color);
    font-weight: 800
}

.product-main-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1/1;
    background: var(--bs-secondary-bg);
    border-radius: 2rem;
    overflow: hidden
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumbs {
    display: flex;
    gap: 10px
}

.thumbs img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid transparent
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px
}

.product-price strong {
    font-size: 2rem;
    color: var(--brand)
}

.product-price del {
    color: var(--bs-secondary-color)
}

.discount {
    background: #e8fff5;
    color: #087851;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 700
}

.stock {
    font-weight: 700
}

.stock.in {
    color: #07855b
}

.stock.out {
    color: #cf3450
}

.product-description {
    color: var(--bs-secondary-color);
    line-height: 1.9
}

.qty {
    display: flex;
    border: 1px solid var(--bs-border-color);
    border-radius: .8rem;
    overflow: hidden
}

.qty button,
.qty input {
    width: 42px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 800
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.trust-grid div {
    background: var(--bs-secondary-bg);
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600
}

.whatsapp {
    position: fixed;
    z-index: 20;
    bottom: 22px;
    left: 22px;
    background: #20b864;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    font-weight: 800
}

.footer {
    background: var(--bs-secondary-bg)
}

.footer a {
    display: block;
    color: var(--bs-secondary-color);
    margin: .7rem 0
}

.error-page {
    min-height: 65vh;
    display: grid;
    place-items: center;
    text-align: center
}

.error-page span {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: var(--brand)
}

.error-page h1 {
    font-weight: 800
}

.error-page p {
    color: var(--bs-secondary-color)
}

[data-bs-theme=dark] {
    --ink: #f3f2ff;
    --soft: #211d43
}

.pagination {
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand)
}

@media(max-width:991px) {
    .hero {
        min-height: auto
    }

    .hero-art {
        height: 330px
    }

    .hero-art:before {
        width: 270px;
        height: 270px
    }

    .hero-bag {
        width: 180px;
        height: 205px
    }

    .search-box {
        width: 100%
    }
}

@media(max-width:575px) {
    .topbar {
        font-size: .72rem
    }

    .navbar-brand {
        font-size: 1.25rem !important
    }

    .brand-mark {
        width: 34px;
        height: 34px
    }

    .hero {
        border-radius: 1.3rem;
        padding: 1.5rem !important
    }

    .hero h1 {
        font-size: 2.5rem
    }

    .hero-art {
        height: 280px
    }

    .section-head h2 {
        font-size: 1.4rem
    }

    .category-pill {
        min-width: 110px;
        padding: 15px
    }

    .product-card .p-3 {
        padding: .8rem !important
    }

    .product-card h3 {
        font-size: .9rem
    }

    .trust-grid {
        grid-template-columns: 1fr
    }

    .product-price {
        flex-wrap: wrap
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px
}

.category-tile {
    display: grid;
    place-items: center;
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    background: var(--bs-body-bg);
    text-align: center;
    transition: .25s
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: var(--shadow)
}

.category-tile img,
.category-tile>span {
    width: 110px;
    height: 110px;
    border-radius: 28px
}

.category-tile img {
    object-fit: cover
}

.category-tile>span {
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--brand);
    font-size: 2.5rem;
    font-weight: 800
}

.category-tile h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 18px 0 4px
}

.category-tile small {
    color: var(--brand);
    font-weight: 700
}

@media(max-width:900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:575px) {
    .category-grid {
        gap: 12px
    }

    .category-tile {
        min-height: 190px;
        padding: 15px
    }

    .category-tile img,
    .category-tile>span {
        width: 82px;
        height: 82px;
        border-radius: 22px
    }
}

.auth-wrap {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 50px 15px;
    background: linear-gradient(145deg, var(--soft), transparent)
}

.auth-card {
    width: min(460px, 100%);
    padding: 35px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow)
}

.auth-card h1 {
    font-weight: 800;
    margin: .4rem 0 1.5rem
}

.auth-card label,
.checkout-card label {
    font-size: .85rem;
    font-weight: 700;
    margin: 12px 0 5px
}

.field-error {
    font-size: .78rem;
    color: #c9344f
}

.cart-list,
.summary-card,
.checkout-card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    background: var(--bs-body-bg);
    padding: 1.25rem
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bs-border-color)
}

.cart-row:last-child {
    border: 0
}

.cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: var(--bs-secondary-bg);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--brand);
    font-weight: 800
}

.cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.qty-input {
    width: 75px
}

.summary-card {
    position: sticky;
    top: 110px
}

.summary-card h3,
.checkout-card h3 {
    font-size: 1.15rem;
    font-weight: 800
}

.summary-card>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0
}

.payment-option {
    display: flex !important;
    gap: 12px;
    align-items: start;
    border: 1px solid var(--bs-border-color);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px !important;
    cursor: pointer
}

.payment-option small {
    display: block;
    color: var(--bs-secondary-color)
}

.success-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center
}

.success-check {
    width: 85px;
    height: 85px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e4fff2;
    color: #07855b;
    font-size: 2.5rem
}

.success-page h1 {
    font-weight: 800
}

@media(max-width:767px) {
    .cart-row {
        flex-wrap: wrap
    }

    .cart-row .flex-grow-1 {
        min-width: calc(100% - 90px)
    }

    .summary-card {
        position: static
    }
}

.promo-banners {
    display: flex;
    gap: 14px;
    overflow: auto
}

.promo-banners a {
    min-width: min(700px, 90%)
}

.promo-banners img {
    width: 100%;
    aspect-ratio: 16/5;
    object-fit: cover;
    border-radius: var(--radius)
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.blog-grid article {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bs-body-bg)
}

.blog-cover {
    aspect-ratio: 16/9;
    display: grid;
    place-items: center;
    background: var(--soft);
    color: var(--brand);
    font-size: 2rem;
    font-weight: 800
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.blog-grid article>div:last-child {
    padding: 18px
}

.blog-grid h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: .5rem 0
}

.blog-grid p,
.blog-grid small {
    color: var(--bs-secondary-color)
}

.article-page {
    max-width: 850px
}

.article-page header {
    text-align: center;
    margin-bottom: 35px
}

.article-page h1 {
    font-weight: 800;
    margin: .5rem 0
}

.article-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px
}

.article-content {
    font-size: 1.08rem;
    line-height: 2;
    color: var(--bs-secondary-color)
}

@media(max-width:900px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:575px) {
    .blog-grid {
        grid-template-columns: 1fr
    }
}

.product-card {
    position: relative
}

.favorite-form {
    margin: 0
}

.favorite-float {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #342d63;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(29, 24, 72, .1)
}

.favorite-float.active {
    color: #d62857;
    background: #fff0f4
}

.product-image .badge {
    right: 12px;
    left: auto
}

.account-nav {
    position: sticky;
    top: 110px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    background: var(--bs-body-bg);
    padding: 12px
}

.account-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--bs-border-color)
}

.account-person>span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--soft);
    color: var(--brand);
    font-weight: 800;
    font-size: 1.2rem
}

.account-person small {
    display: block;
    color: var(--bs-secondary-color)
}

.account-nav>a,
.account-nav button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: right;
    font-weight: 600
}

.account-nav>a:hover,
.account-nav button:hover {
    background: var(--bs-secondary-bg);
    color: var(--brand)
}

.address-grid {
    display: grid;
    gap: 14px
}

.address-card {
    position: relative;
    padding: 20px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    background: var(--bs-body-bg)
}

.address-card.default {
    border-color: var(--brand)
}

.address-card h3 {
    font-size: 1.05rem;
    font-weight: 800
}

.address-card p {
    color: var(--bs-secondary-color);
    margin: .5rem 0
}

.default-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--brand);
    font-size: .75rem;
    font-weight: 700
}

.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px
}

.saved-address-picker {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--bs-secondary-bg)
}

.tracking-wrap {
    max-width: 850px;
    margin: auto
}

.tracking-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 14px
}

.tracking-form label {
    display: block
}

.tracking-result {
    padding: 28px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--radius);
    background: var(--bs-body-bg);
    box-shadow: var(--shadow)
}

.tracking-result h2 {
    font-weight: 800;
    text-align: center;
    margin: 30px 0
}

.tracking-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.tracking-summary div {
    padding: 13px;
    background: var(--bs-secondary-bg);
    border-radius: 12px
}

.tracking-summary small,
.tracking-summary strong {
    display: block
}

.status-timeline {
    max-width: 520px;
    margin: auto
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 15px;
    padding-bottom: 24px
}

.timeline-item:not(:last-child):after {
    content: "";
    position: absolute;
    right: 17px;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: var(--bs-border-color)
}

.timeline-item>span {
    z-index: 1;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff
}

.timeline-item small {
    display: block;
    color: var(--bs-secondary-color)
}

.timeline-item p {
    margin: .3rem 0;
    color: var(--bs-secondary-color)
}

@media(max-width:991px) {
    .account-nav {
        position: static;
        display: flex;
        overflow: auto
    }

    .account-person {
        display: none
    }

    .account-nav>a,
    .account-nav form {
        min-width: max-content
    }

    .account-nav button {
        white-space: nowrap
    }

    .tracking-summary {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:575px) {
    .tracking-form {
        grid-template-columns: 1fr
    }

    .tracking-summary {
        grid-template-columns: 1fr
    }

    .tracking-result {
        padding: 18px
    }

    .favorite-float {
        width: 34px;
        height: 34px
    }
}