/*
 * Storefront refinements taken from 6Valley 16.6 (default theme): the structure is theirs,
 * the colours and corners are Trendiva's (trendiva-identity.css tokens, which load after this).
 */

/* Store cards: home page top stores and the stores list */
.others-store-card {
    --store-card-border: var(--tv-line, #e6eaf2);
    --store-card-heading: var(--tv-ink, #253044);
    --store-card-muted: var(--tv-muted, #66717c);
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--tv-radius, 6px);
    border: 1px solid var(--store-card-border);
    background: #fff;
    transition: transform ease 0.3s, box-shadow ease 0.3s, border-color ease 0.3s;
}

.others-store-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--web-primary-rgb), 0.45);
    box-shadow: 0 14px 28px -14px rgba(var(--web-primary-rgb), 0.5);
}
.others-store-card .other-store-banner {
    position: relative;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: var(--tv-radius, 6px) var(--tv-radius, 6px) 0 0;
    width: 100%;
    height: 96px;
    background: var(--tv-photo, #f4f7fc);
    border-bottom: 0;
}
.others-store-card .other-store-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 44px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 70%, #fff 100%);
    pointer-events: none;
}
.others-store-card img {
    transition: all ease-in 0.3s;
}
.others-store-card:hover .other-store-banner img {
    transform: scale(1.06);
}
.others-store-card .name-area {
    position: relative;
    margin-top: -26px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 0 16px 14px;
}
@media screen and (max-width: 374px) {
    .others-store-card .name-area {
        gap: 10px;
        padding: 0 12px 12px;
    }
}
.others-store-card .name-area .other-store-logo {
    border: 3px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px -4px rgba(16, 24, 40, 0.28);
}
.others-store-card .name-area img {
    display: block;
    width: 64px;
    aspect-ratio: 1;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 50%;
}
@media screen and (max-width: 374px) {
    .others-store-card .name-area img {
        width: 56px;
    }
}
.others-store-card .name-area .info {
    width: 0;
    flex-grow: 1;
    padding-bottom: 2px;
    text-align: start;
}
.others-store-card .name-area .info h3,
.others-store-card .name-area .info h5,
.others-store-card .name-area .info .h5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--store-card-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    transition: color ease 0.3s;
    margin: 0 0 5px 0;
}
.others-store-card:hover .name-area .info h3,
.others-store-card:hover .name-area .info h5,
.others-store-card:hover .name-area .info .h5 {
    color: var(--web-primary);
}
.others-store-card .name-area .info h6 {
    font-size: 12.724px;
    margin: 0;
}
.others-store-card .name-area .info i {
    font-size: 12px;
}
.others-store-card .info small {
    font-size: 12px;
    color: var(--store-card-muted);
}
.others-store-card .store-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff5df;
    color: #8a6100;
    font-size: 10px;
    line-height: 18px;
    white-space: nowrap;
}
.others-store-card .store-rating-chip i {
    font-size: 10px;
    color: #f5a623;
}
.others-store-card .store-rating-chip strong {
    font-weight: 700;
}
.others-store-card .store-rating-chip small {
    font-size: 10px;
    color: #9a7526;
}
.others-store-card .store-rating-chip-new {
    background: rgba(var(--web-primary-rgb), 0.09);
    color: var(--web-primary);
    font-weight: 600;
}
.others-store-card .store-review-count {
    font-size: 12px;
    line-height: 18px;
    color: var(--store-card-muted);
    white-space: nowrap;
}
.others-store-card .info-area {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}
@media screen and (max-width: 374px) {
    .others-store-card .info-area {
        padding: 0 12px 12px;
    }
}
.others-store-card .info-area .info-item {
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--tv-radius-sm, 4px);
    border: 1px solid var(--tv-line, #eef1f7);
    background: var(--tv-ivory, #f7f9fc);
    padding: 6px 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
    color: var(--store-card-muted);
    font-size: 12px;
    transition: background-color ease 0.3s, border-color ease 0.3s;
}
.others-store-card:hover .info-area .info-item {
    background: rgba(var(--web-primary-rgb), 0.06);
    border-color: rgba(var(--web-primary-rgb), 0.18);
}
.others-store-card .info-area .info-item .value,
.others-store-card .info-area .info-item h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--web-primary);
}
@media screen and (max-width: 450px) {
    .others-store-card .info-area .info-item {
        gap: 4px;
        font-size: 10px;
    }
    .others-store-card .info-area .info-item .value,
    .others-store-card .info-area .info-item h6 {
        font-size: 13px;
    }
}


.store-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fdf1f1;
    color: #d64545;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}

.store-status-chip::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.others-store-card:has(.store-status-chip) .other-store-logo img,
.store-media:has(.store-status-chip) .other-store-logo img,
.store-media:has(.store-status-chip) .store-logo-frame img {
    filter: grayscale(1);
    opacity: 0.55;
}

/* Product page: breadcrumb, "sold by", stock state and the facts line (16.6 product-ui.css) */
.pd-page {
    --pd-line: var(--tv-line, #e7ecf3);
    --pd-ink: var(--tv-ink, #14181f);
    --pd-muted: var(--tv-muted, #7a8699);
    --pd-in-stock: #1a9d5a;
    --pd-low-stock: #d98307;
    --pd-out-stock: var(--tv-sale, #d64545);
}

.pd-page .pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-block-end: 12px;
    color: var(--pd-muted);
    font-size: 13px;
}

.pd-page .pd-breadcrumb a {
    color: var(--pd-muted);
    text-decoration: none;
}

.pd-page .pd-breadcrumb a:hover {
    color: var(--web-primary);
}

.pd-page .pd-breadcrumb__current {
    max-inline-size: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--pd-ink);
    font-weight: 500;
}

.pd-page .pd-breadcrumb i {
    font-size: 9px;
    opacity: 0.6;
}

[dir="rtl"] .pd-page .pd-breadcrumb i {
    transform: scaleX(-1);
}

@media (max-width: 991px) {
    .pd-page .pd-breadcrumb__current {
        max-inline-size: 180px;
    }
}

.pd-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-inline-size: 100%;
    margin-block-end: 8px;
    color: var(--pd-muted);
    font-size: 13px;
    text-decoration: none;
}

.pd-shop:hover {
    color: var(--web-primary);
}

.pd-shop__avatar {
    inline-size: 26px;
    block-size: 26px;
    flex-shrink: 0;
    border: 1px solid var(--pd-line);
    border-radius: 50%;
    object-fit: cover;
}

.pd-shop__name {
    font-weight: 600;
    color: var(--pd-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pd-stock::before {
    content: "";
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.pd-stock--in {
    color: var(--pd-in-stock);
}

.pd-stock--low {
    color: var(--pd-low-stock);
}

.pd-stock--out {
    color: var(--pd-out-stock);
}

.pd-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-block-start: 14px;
    border-block-start: 1px solid var(--pd-line);
    color: var(--pd-muted);
    font-size: 12.5px;
}

.pd-facts__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pd-facts__item strong {
    color: var(--pd-ink);
    font-weight: 600;
}

/* Checkout: numbered section headings and the summary title (16.6 checkout.css) */
.checkout-section-lead {
    display: flex;
    align-items: center;
    gap: 12px;
    min-inline-size: 0;
}

.checkout-section-lead__badge {
    inline-size: 28px;
    block-size: 28px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--web-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.checkout-section-lead__note {
    margin: 2px 0 0;
    color: var(--tv-muted, #7a8699);
    font-size: 12.5px;
    line-height: 1.4;
}

.order-summary-title {
    margin: 0 0 12px;
    padding-block-end: 12px;
    border-block-end: 1px solid var(--tv-line, #e7ecf3);
    font-size: 16px;
    font-weight: 700;
}

/* "Same as shipping address": Bootstrap positions the box absolutely for LTR, so in Arabic it
   sat over the first letters of its label. */
.billing-methods_label .form-check {
    padding-inline-start: 0;
}

.billing-methods_label .form-check-input {
    position: static;
    margin: 0;
}

/* Header mini cart: count beside the title, savings as a banner, both actions side by side (16.6) */
.cart-dropdown .widget-cart-top {
    background-color: var(--tv-sand, #f1ece4);
}

.cart-dropdown .widget-cart-top svg {
    color: var(--web-primary);
}

.cart-dropdown .mini-cart-count {
    display: inline-grid;
    place-items: center;
    min-inline-size: 20px;
    block-size: 20px;
    padding-inline: 6px;
    margin-inline-start: 6px;
    border-radius: 999px;
    background-color: rgba(var(--web-primary-rgb), 0.1);
    color: var(--web-primary);
    font-size: 11px;
    font-weight: 700;
}

.cart-dropdown .dropdown-saved-amount {
    padding: 8px 12px;
    border-radius: var(--tv-radius, 6px);
    background-color: #e8f6ee;
    color: #16794b !important;
}

.cart-dropdown .dropdown-saved-amount * {
    color: inherit !important;
}

.cart-dropdown .mini-cart-foot {
    margin-block-start: 8px;
    padding-block-start: 12px;
    border-block-start: 1px solid var(--tv-line, #e7ecf3);
}

.cart-dropdown .mini-cart-foot__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-block-end: 12px;
    color: var(--tv-muted, #7a8699);
    font-size: 13px;
}

.cart-dropdown .mini-cart-foot__total .cart_total_amount {
    color: var(--tv-ink, #14181f);
    font-size: 18px;
    font-weight: 700;
}

.cart-dropdown .mini-cart-foot__actions {
    display: flex;
    gap: 8px;
}

.cart-dropdown .mini-cart-foot__actions .btn {
    flex: 1 1 0;
    padding-block: 10px;
    border-radius: var(--tv-radius, 6px);
    font-size: 13px;
    white-space: nowrap;
}
