/* صيدليتي — أنماط الواجهة المشتركة */
/* لون العلامة البنفسجي مع Bootstrap (text-primary، btn-primary، …) */
:root {
    --bs-primary: #7c3aed;
    --bs-primary-rgb: 124, 58, 237;
}

body {
    font-family: "Tajawal", sans-serif;
    background: #f5f6f9;
    color: #232638;
    font-size: 21px;
}

.top-strip {
    background: linear-gradient(100deg, #8e45ff 0%, #6d54ff 50%, #5eb5ff 100%);
    color: #f7f4ff;
    font-size: 19px;
}

.site-nav {
    background: #fff;
    border-bottom: 1px solid #eceef5;
}

.nav-main-row {
    min-height: 64px;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(140deg, #8e45ff 0%, #6f42ff 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-text {
    font-size: 34px;
    font-weight: 800;
    color: #6e51d9;
    line-height: 1;
}

.search-box {
    background: #f3f4f8;
    border: 1px solid #f0f1f5;
    border-radius: 999px;
    padding: 10px 16px;
    min-width: 520px;
    max-width: 560px;
    height: 46px;
}

.search-box input {
    border: 0;
    background: transparent;
    outline: 0;
    width: 100%;
    font-size: 24px;
    font-weight: 500;
    color: #848aa2;
}

.search-box .bi-search {
    color: #969cb1 !important;
    font-size: 20px;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    color: #2f3241;
    font-size: 22px;
}

.header-icon-link {
    color: inherit;
    text-decoration: none;
}

.header-icon-link.active,
.header-icon-link:hover {
    color: #6f42ff;
}

.icon-badge-wrap {
    position: relative;
    display: inline-flex;
}

.cart-badge {
    position: absolute;
    top: -13px;
    inset-inline-start: 10px;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    background: #8e45ff;
    color: #fff;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.hero {
    background: linear-gradient(100deg, #8b49ff 0%, #7661ff 52%, #64b8ff 100%);
    color: #fff;
    overflow: hidden;
    border-radius: 0;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 4.7vw, 4.25rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 18px;
}

.hero-thumb {
    width: 340px;
    height: 340px;
    object-fit: contain;
    border-radius: 50%;
    border: 7px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.nav-links a {
    color: #444a62;
    text-decoration: none;
    font-size: 19px;
    font-weight: 500;
    padding: 6px 0;
}

.hero p {
    font-size: 25px;
    margin-bottom: 28px !important;
}

.nav-links a.active,
.nav-links a:hover {
    color: #6f42ff;
}

.section-block {
    background: #f7f8fc;
    border-radius: 14px;
}

.section-title {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 4px;
}

.section-subtitle {
    color: #a0a6bf;
    font-size: 15px;
}

.category-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 320px;
    max-height: 320px;
    box-shadow: 0 10px 24px rgba(58, 67, 102, 0.12);
}

.category-card img {
    width: 100%;
    height: 320px;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 17, 28, 0.55), rgba(15, 17, 28, 0.05));
}

.category-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.category-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #7f51ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.product-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(43, 56, 102, 0.08);
    background: #fff;
}

/* صور المنتجات عبر background-image لتجنّب خلل فك ترميز img في Chrome عند الرجوع للخلف */
.storefront-media {
    display: block;
    width: 100%;
    overflow: hidden;
    background-color: #f3f4f8;
    background-repeat: no-repeat;
}

.storefront-media--photo {
    background-image: var(--storefront-media-url);
    background-size: contain;
    background-position: var(--storefront-media-position, center center);
}

.storefront-media--cover.storefront-media--photo {
    background-size: cover;
}

.storefront-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

img.storefront-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #f3f4f8;
}

img.storefront-media.storefront-media--cover {
    object-fit: cover;
}

.category-card:hover,
.product-card:hover {
    box-shadow: 0 12px 28px rgba(43, 56, 102, 0.14);
    transition: box-shadow .25s ease;
}

.product-img-wrap {
    position: relative;
    background: #f3f4f8;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    width: 100%;
    height: 220px;
    max-height: 220px;
    flex-shrink: 0;
}

.product-card .product-img-wrap {
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #e8f7fc 0%, #f4f8fb 50%, #fff 100%);
}

.product-img-wrap-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background-color: transparent;
}

.product-img-wrap-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-card-home {
    height: 100%;
}

.category-card-media {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
}

.product-detail-image-media {
    width: 100%;
    min-height: 320px;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    border-radius: 12px;
    cursor: zoom-in;
}

.product-thumb-media {
    width: 100%;
    height: 72px;
    border-radius: 8px;
}

.cart-item-thumb.storefront-media {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 8px;
}

.price-new {
    color: #6f42ff;
    font-weight: 700;
    font-size: 28px;
}

.price-old {
    color: #a3a9c4;
    text-decoration: line-through;
    font-size: 17px;
}

.btn-main {
    background: linear-gradient(90deg, #7f4fff 0%, #6f42ff 100%);
    border: 0;
    color: #fff;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    padding: 10px 14px;
}

.btn-main:hover {
    color: #fff;
    opacity: .95;
}

.promo {
    background: linear-gradient(110deg, #8d4cff 0%, #735dff 55%, #5ab7ff 100%);
    color: #fff;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.promo::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.11);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-title {
    font-weight: 800;
    font-size: 28px;
}

.mini-stat {
    color: #9096af;
    font-size: 18px;
}

.hero-actions .btn {
    min-width: 170px;
    font-size: 20px;
    font-weight: 700;
    padding-top: 10px;
    padding-bottom: 10px;
    border-width: 2px;
}

.hero-actions .btn-light {
    color: #6f42ff;
}

.section-shell {
    max-width: 1240px;
}

.footer-title {
    color: #2f3245;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 24px;
}

.footer-link {
    text-decoration: none;
    color: #6c718a;
    font-size: 19px;
}

.footer-link:hover {
    color: #6f42ff;
}

/* صفحة قائمة الأدوية */
.page-listing {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.filter-aside-header {
    font-size: 22px;
    font-weight: 800;
    color: #1f2233;
}

.filter-aside-header i {
    color: #8b5cf6;
    font-size: 1.35rem;
}

.listing-page-header {
    text-align: start;
}

.sort-row {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eceef5;
}

.listing-product-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1f2233;
    line-height: 1.35;
}

.listing-product-sub {
    font-size: 0.95rem;
    color: #9096af;
    margin-bottom: 0.75rem;
}

.listing-page-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: #1f2233;
}

.listing-meta {
    color: #9096af;
    font-size: 18px;
}

.sort-select {
    max-width: 220px;
    border-radius: 10px;
    border: 1px solid #e4e6ef;
    font-size: 17px;
    padding: 8px 12px;
}

.filter-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(43, 56, 102, 0.06);
    padding: 1.25rem 1.35rem;
}

.filter-panel h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #2f3245;
}

.filter-panel .form-check {
    margin-bottom: 0.5rem;
}

.filter-panel .form-check-label {
    font-size: 17px;
    color: #4b5068;
}

.price-range-current {
    font-size: 17px;
    color: #8e9196;
    margin-bottom: 0.5rem;
}

.price-range-current strong {
    color: #1a1c1e;
    font-weight: 800;
}

.price-range-rtl .price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #8e9196;
    margin-bottom: 0.5rem;
}

/* شريط السعر (0 يمينًا ← 500 يسارًا): التعبئة من اليمين عبر --range-pct */
.form-range-purple {
    --range-pct: 100%;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    accent-color: #8b5cf6;
    cursor: pointer;
    direction: rtl;
}

.form-range-purple::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 999px;
    /* يبدأ التدرج من اليمين (0): بنفسجي ثم رمادي نحو اليسار (500) */
    background: linear-gradient(
        to left,
        #8b5cf6 0%,
        #8b5cf6 var(--range-pct),
        #e2e8f0 var(--range-pct),
        #e2e8f0 100%
    );
}

.form-range-purple::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -6px;
    border-radius: 50%;
    background: #8b5cf6;
    border: 0;
    box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.55);
    cursor: grab;
}

.form-range-purple:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.form-range-purple::-moz-range-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
}

.form-range-purple::-moz-range-progress {
    height: 10px;
    border-radius: 999px;
    background: #8b5cf6;
}

.form-range-purple::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8b5cf6;
    border: 0;
    box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.55);
    cursor: grab;
}

.product-card-listing {
    border: 0;
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(43, 56, 102, 0.08);
    background: #fff;
    height: 100%;
}

.product-card-listing:hover {
    box-shadow: 0 12px 30px rgba(43, 56, 102, 0.14);
    transition: box-shadow .25s ease;
}

.floating-tags {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    inset-inline-end: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.tag-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #6f42ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tag-pill.tag-sale {
    background: #ff6b6b;
    color: #fff;
}

.tag-pill.tag-new {
    background: #6f42ff;
    color: #fff;
}

.tag-pill.tag-rx {
    background: #fff;
    color: #c0392b;
    border: 1px solid #f0d0cc;
}

.tag-pill.tag-discount {
    background: #ff7a45;
    color: #fff;
}

.product-name-ar {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 2px;
    color: #1f2233;
}

.product-name-en {
    font-size: 14px;
    color: #9096af;
    margin-bottom: 0.75rem;
}

.rating-line {
    font-size: 14px;
    color: #6c718a;
}

.rating-line .stars {
    color: #f4b400;
}

.star-rating-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.star-rating-widget__stars {
    display: inline-flex;
    flex-direction: row;
    gap: 0.35rem;
    direction: ltr;
}

.star-rating-widget__star {
    border: 0;
    background: transparent;
    padding: 0.15rem;
    line-height: 1;
    cursor: pointer;
    color: #d1d5db;
    font-size: 2rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating-widget__star:hover,
.star-rating-widget__star.is-active {
    color: #f59e0b;
}

.star-rating-widget__star:hover {
    transform: scale(1.08);
}

.star-rating-widget__star:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--site-theme, #0ea5a4) 55%, transparent);
    outline-offset: 3px;
    border-radius: 6px;
}

.star-rating-widget__hint {
    min-height: 1.25rem;
    font-weight: 600;
    color: #64748b;
}

.star-rating-widget.is-invalid .star-rating-widget__hint {
    color: #dc2626 !important;
}

.star-rating-display {
    display: inline-flex;
    flex-direction: row;
    gap: 0.15rem;
    direction: ltr;
    color: #d1d5db;
    font-size: 0.95rem;
}

.star-rating-display .is-filled {
    color: #f59e0b;
}

.product-rating-stars {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    direction: ltr;
    line-height: 1;
}

.product-rating-stars .bi {
    color: #d1d5db;
    font-size: 1.05rem;
}

.product-rating-stars .bi.is-filled {
    color: #f59e0b;
}

.product-rating-stars--compact .bi {
    font-size: 0.9rem;
}

.product-rating-stars__meta {
    font-size: 13px;
    margin-inline-start: 0.35rem;
    white-space: nowrap;
}

.product-rating-stars__score {
    font-weight: 700;
    color: #475569;
}

.value-strip {
    background: #fff;
    border-top: 1px solid #eceef5;
    border-bottom: 1px solid #eceef5;
}

.value-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 0;
    font-size: 17px;
    font-weight: 600;
    color: #3a3f55;
}

.value-strip-item i {
    font-size: 26px;
    color: #8a5cf5;
}

.footer-bottom-bar {
    border-top: 1px solid #eceef5;
}

/* صفحة الطلبات — Bootstrap + خط زمني فقط */
.orders-page-title {
    font-size: clamp(1.5rem, 3.5vw, 1.85rem);
    font-weight: 800;
    color: var(--bs-emphasis-color);
    text-align: start;
}

.order-bc-card {
    width: 100%;
    max-width: 960px;
    border-radius: var(--bs-border-radius-xl) !important;
}

.orders-page--list .order-bc-card {
    max-width: 1120px;
}

/* أيقونة الطلب (مربع بنفسجي + علامة خضراء) */
.order-mark-icon__square {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--bs-primary);
    border-radius: 14px;
    flex-shrink: 0;
}

.order-mark-icon__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bs-success);
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

@media (min-width: 768px) {
    .order-timeline-wrap {
        max-width: 520px;
        margin-inline-start: auto;
    }
}

/* خط زمني عمودي (لا يوفّره Bootstrap جاهز) */
.order-timeline--precise .order-timeline-step {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 2rem;
}

.order-timeline--precise .order-timeline-step:last-child {
    padding-bottom: 0;
}

.order-tl-node {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.order-tl-node--done {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.35);
}

.order-tl-node--pending {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    margin-top: 2px;
}

.order-timeline--precise .order-timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 32px;
    bottom: 0;
    width: 3px;
    background: var(--bs-border-color);
    border-radius: 3px;
}

.order-timeline--precise .order-timeline-step.is-done:not(:last-child)::after {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.45) 0%, var(--bs-border-color) 92%);
}

.order-timeline-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 2px;
}

/* صفحة تفاصيل المنتج */
.product-breadcrumb {
    --bs-breadcrumb-divider: "›";
    font-size: 17px;
}

.product-breadcrumb a {
    text-decoration: none;
    color: #6f42ff;
}

.product-main-wrap {
    background: #fff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(43, 56, 102, 0.08);
}

.product-gallery-card {
    background: #fff;
}

.product-detail-image {
    border-radius: 14px;
    overflow: hidden;
    background: #edf2f7;
}

.product-detail-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.product-thumbs-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaecf3;
    display: inline-flex;
    background: #f5f6fa;
}

.product-thumb.active {
    border-color: #8e45ff;
    box-shadow: 0 0 0 2px rgba(142, 69, 255, 0.2);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-panel .listing-page-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.product-info-panel {
    max-width: 520px;
}

.product-price-box {
    background: #f6f5ff;
    border: 1px solid #ece8ff;
    border-radius: 14px;
    padding: 12px 14px;
}

.product-price-box .price-new {
    font-size: 2rem;
}

.product-meta-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-meta-chip {
    background: #f3f4f8;
    color: #555a72;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
}

.product-excerpt {
    line-height: 1.9;
}

.product-health-card {
    border: 1px solid #eceef5;
    border-radius: 12px;
    background: #fafbff;
    padding: 12px 14px;
}

.product-health-title {
    font-size: 16px;
    font-weight: 800;
    color: #4d5370;
    margin-bottom: 8px;
}

.product-health-card ul {
    margin: 0;
    padding-inline-start: 1rem;
    color: #7c829b;
    font-size: 14px;
    line-height: 1.8;
}

.qty-control {
    border: 1px solid #e6e8f0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: #fff;
}

.qty-control button {
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f3f8;
    color: #2f3245;
    font-weight: 700;
    line-height: 1;
}

.qty-control span {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
}

.product-cta-btn {
    min-width: 210px;
}

.product-desc-tabs {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(43, 56, 102, 0.06);
    overflow: hidden;
}

.tab-head-row {
    justify-content: space-around;
    border-bottom: 1px solid #eceef5;
}

.tab-head-row button {
    border: 0;
    background: transparent;
    color: #8389a1;
    font-weight: 700;
    padding: 14px 18px;
}

.tab-head-row button.active {
    color: #6f42ff;
    box-shadow: inset 0 -2px 0 #6f42ff;
}

.tab-body {
    min-height: 78px;
    padding: 14px 18px;
    color: #5a6077;
    line-height: 1.9;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
}

.product-tab-list {
    padding-inline-start: 1rem;
}

.section-title-sm {
    font-size: 34px;
}

.product-more-link {
    color: #8e95b2;
}

.product-alt-card {
    max-width: 250px;
    margin-inline-start: auto;
}

.favorites-page .listing-page-title {
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.favorites-grid-wrap {
    min-height: 420px;
}

.product-card-favorite {
    border-radius: 14px;
    overflow: hidden;
}

.product-card-favorite .product-img-wrap {
    border-radius: 14px 14px 0 0;
}

/* صفحة السلة */
.cart-page .listing-page-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.cart-item-card {
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.cart-thumb-link {
    text-decoration: none;
}

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

.cart-item-title {
    display: inline-block;
    text-decoration: none;
    color: #1f2233;
    font-weight: 800;
    font-size: 31px;
    margin-bottom: 2px;
}

.cart-item-sub {
    color: #9aa0b6;
    font-size: 16px;
}

.cart-item-size {
    color: #555a72;
    font-size: 16px;
}

.cart-item-side {
    display: grid;
    justify-items: end;
    gap: 0.6rem;
    min-width: 180px;
}

.cart-item-price-wrap {
    text-align: end;
}

.cart-item-price {
    color: #6f42ff;
    font-size: 37px;
    font-weight: 800;
}

.cart-qty-control {
    border: 1px solid #e4e6ee;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.7rem;
}

.cart-qty-control button {
    border: 0;
    background: transparent;
    color: #2f3245;
    font-size: 20px;
    line-height: 1;
}

.cart-qty-control form {
    display: inline-flex;
}

.cart-qty-control span {
    min-width: 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.cart-summary-card {
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 22px rgba(43, 56, 102, 0.06);
}

.cart-summary-title {
    font-size: 37px;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cart-total {
    color: #6f42ff;
    font-size: 40px;
    font-weight: 900;
}

.cart-summary-features {
    border-top: 1px solid #eceef5;
    padding-top: 1rem;
    display: grid;
    gap: 0.6rem;
    color: #6b718b;
    font-size: 16px;
}

.cart-summary-features i {
    color: #6f42ff;
    margin-left: 6px;
}

.cart-empty-card {
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

/* صفحة إتمام الطلب */
.checkout-page .listing-page-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.checkout-card {
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 8px 22px rgba(43, 56, 102, 0.06);
}

.checkout-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f2233;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-card-title i {
    font-size: 1.35rem;
}

.checkout-option-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #e4e6ef;
    border-radius: 14px;
    background: #fafbfc;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-option-btn:hover {
    border-color: #d8dcef;
}

.checkout-option-btn.is-selected {
    border-color: #8e45ff;
    background: #f9f7ff;
    box-shadow: 0 0 0 1px rgba(142, 69, 255, 0.15);
}

.checkout-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #c8ccd8;
    margin-top: 4px;
    position: relative;
}

.checkout-option-btn.is-selected .checkout-radio {
    border-color: #8e45ff;
    background: radial-gradient(circle, #8e45ff 45%, transparent 46%);
}

.checkout-pay-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eceef5;
}

.checkout-pay-tabs button {
    border: 0;
    background: transparent;
    color: #8389a1;
    font-weight: 700;
    padding: 10px 14px;
    margin-bottom: -1px;
}

.checkout-pay-tabs button.active {
    color: #6f42ff;
    box-shadow: inset 0 -2px 0 #6f42ff;
}

.checkout-pay-panel {
    padding-top: 0.5rem;
}

.checkout-summary-sticky {
    position: sticky;
    top: 1rem;
}

/* صفحة الملف الشخصي */
.profile-page .listing-page-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.profile-sidebar-card {
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 8px 22px rgba(43, 56, 102, 0.06);
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(140deg, #8e45ff 0%, #6f42ff 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2233;
}

.profile-side-nav .profile-side-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #4b5068;
    font-weight: 600;
    font-size: 17px;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-side-nav .profile-side-link:hover {
    background: #f3f4f8;
    color: #6f42ff;
}

.profile-side-nav .profile-side-link.active {
    background: #f6f3ff;
    color: #6f42ff;
}

.profile-side-link--danger {
    color: #dc3545 !important;
    margin-top: 0.5rem;
}

.profile-side-link--danger:hover {
    background: #fff5f5 !important;
    color: #c82333 !important;
}

.profile-main-card {
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 1.5rem 1.35rem;
    box-shadow: 0 8px 22px rgba(43, 56, 102, 0.06);
}

.profile-top-tabs {
    border-bottom: 1px solid #eceef5;
    padding-bottom: 0.5rem;
}

.profile-top-tab {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #8389a1;
    font-weight: 700;
    font-size: 17px;
}

.profile-top-tab:hover {
    color: #6f42ff;
}

.profile-top-tab.active {
    color: #6f42ff;
    background: #f6f3ff;
}

.profile-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2233;
}

.profile-form .form-control {
    border-color: #e4e6ef;
    font-size: 17px;
}

.profile-settings-block {
    border: 1px solid #eceef5;
    border-radius: 14px;
    overflow: hidden;
    background: #fafbfc;
}

.profile-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eceef5;
    background: #fff;
}

.profile-setting-row--last {
    border-bottom: 0;
}

.profile-setting-text {
    text-align: end;
    min-width: 0;
}

.profile-setting-title {
    display: block;
    font-weight: 700;
    color: #1f2233;
    font-size: 18px;
}

.profile-setting-desc {
    display: block;
    font-size: 15px;
    color: #9096af;
    margin-top: 4px;
}

.profile-main-card .profile-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.profile-main-card .profile-switch .form-check-input:checked {
    background-color: #8e45ff;
    border-color: #8e45ff;
}

.profile-main-card .profile-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(142, 69, 255, 0.25);
}

.profile-password-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2233;
}

.btn-profile-outline {
    border: 2px solid #8e45ff;
    color: #6f42ff;
    background: #fff;
    font-weight: 700;
    font-size: 17px;
    padding: 0.55rem 1.25rem;
}

.btn-profile-outline:hover {
    background: #f6f3ff;
    color: #5a2fd6;
    border-color: #7c3aed;
}

.profile-address-pill {
    border: 1px solid #eceef5;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #fafbfc;
}

.profile-address-card {
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.profile-address-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-address-content {
    text-align: end;
}

.profile-address-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #1f2233;
}

.profile-address-line {
    color: #707791;
    font-size: 17px;
}

.profile-address-phone {
    color: #9aa0b6;
    font-size: 16px;
}

.profile-add-address-btn {
    border: 1px dashed #d8dcef;
    border-radius: 12px;
    background: #fff;
    color: #4b5068;
    font-weight: 700;
    font-size: 17px;
    width: 100%;
    padding: 0.8rem 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.profile-add-address-btn:hover {
    border-color: #8e45ff;
    color: #6f42ff;
}

/* تسجيل الدخول وإنشاء الحساب */
.auth-page {
    min-height: 52vh;
    padding: 2rem 0 3rem;
}

.auth-card {
    max-width: 480px;
    margin-inline: auto;
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 16px;
    padding: 2rem 1.85rem;
    box-shadow: 0 10px 32px rgba(43, 56, 102, 0.08);
}

.auth-card--wide {
    max-width: 560px;
}

.auth-brand-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.auth-brand-mini .brand-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1f2233;
    text-align: center;
    margin-bottom: 0.35rem;
}

.auth-sub {
    font-size: 17px;
    color: #9096af;
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-form .form-label {
    font-weight: 600;
    color: #4b5068;
    font-size: 16px;
    margin-bottom: 0.35rem;
}

.auth-form .form-control {
    border-color: #e4e6ef;
    font-size: 17px;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
}

.auth-form .form-control:focus {
    border-color: #b49bff;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
}

.auth-form .form-check-label {
    font-size: 16px;
    color: #4b5068;
}

.auth-form .form-check-input:checked {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.auth-autocomplete-trap {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.auth-form[data-disable-autocomplete] {
    position: relative;
}

.auth-form input[data-password-masked] {
    -webkit-text-security: disc;
}

.auth-forgot-link {
    font-size: 15px;
    font-weight: 600;
    color: #6f42ff;
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.btn-auth-primary {
    font-weight: 800;
    font-size: 18px;
    padding: 0.65rem 1.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eceef5;
    font-size: 17px;
    color: #707791;
}

.auth-switch a {
    font-weight: 700;
    color: #6f42ff;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-terms {
    font-size: 15px;
    color: #707791;
    line-height: 1.6;
}

.auth-terms a {
    color: #6f42ff;
    font-weight: 600;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .product-main-wrap {
        padding: 0.75rem;
    }

    .product-detail-image img {
        height: 310px;
    }

    .product-info-panel {
        max-width: 100%;
    }

    .product-alt-card {
        max-width: 100%;
    }

    .favorites-grid-wrap {
        min-height: 0;
    }

    .checkout-summary-sticky {
        position: static;
    }

    .cart-item-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item-side {
        justify-items: stretch;
    }

    .cart-item-price-wrap {
        text-align: start;
    }

    .profile-address-card {
        flex-direction: column;
    }

    .hero {
        text-align: center;
        min-height: 0;
    }

    .hero-thumb {
        width: 220px;
        height: 220px;
    }

    .search-box {
        min-width: 100%;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .brand-text {
        font-size: 28px;
    }

    .header-actions {
        font-size: 22px;
        gap: 16px;
    }

    .search-box input {
        font-size: 20px;
    }

    .sort-select {
        max-width: 100%;
    }

    .auth-card {
        padding: 1.5rem 1.1rem;
    }
}
