:root {
    /* Brand */
    --navy: #0d1117;
    --nav: #161b22;
    --orange: #e47911;
    --cta: #ff9900;
    --cta-h: #e47911;
    --red: #cc0c39;
    --blue: #007185;

    /* Surfaces */
    --bg-white: #ffffff;
    --bg-light: #f7f8fa;
    --bg-dark: #0d1117;

    /* Text */
    --tx-dark: #0d1117;
    --tx-muted: #8a9099;

    /* Borders */
    --bd: #e2e5ea;

    /* Radius */
    --rad: 6px;
    --rad-lg: 10px;

    /* Shadows */
    --sh: 0 1px 4px rgba(0, 0, 0, .07);
    --sh-lg: 0 4px 16px rgba(0, 0, 0, .12);

    /* Motion */
    --tr: 0.18s ease;

    /* Layout */
    --btn-h: 42px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REGISTERED PROPERTIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    to {
        --angle: 360deg;
    }
}


.feat-hero-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e8eaed;
    border-radius: var(--rad-lg);
    overflow: hidden;
    flex: 1;
    background: #fff;
    height: 100%;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.feat-hero-card:hover {
    border-color: var(--cta);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.feat-hero-img {
    position: relative;
    background: #f7f8fb;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.feat-hero-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .4s ease;
}

.feat-hero-card:hover .feat-hero-img img {
    transform: scale(1.05);
}

.feat-badge,
.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.4;
}

[dir="rtl"] .feat-badge,
[dir="rtl"] .card-badge {
    left: auto;
    right: 8px;
}

.feat-badge.sale,
.card-badge.sale {
    background: var(--red);
    color: #fff;
}

.feat-badge.oos,
.card-badge.oos {
    background: #4a4f54;
    color: #fff;
}

.card-badge.new {
    padding: 4px 8px;
    border-radius: 40px;
    background: rgb(255, 153, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgb(168, 102, 3);
    color: #fff;
}

.feat-card-img span {
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    overflow: hidden;
}

.feat-card-img span::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: badge-shine 4.5s ease infinite;
}

.feat-hero-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    border-top: 1px solid #eef0f3;
    background: #fff;
}

.feat-category {
    width: 110px;
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 40px;
    background: rgb(255, 153, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgb(168, 102, 3);
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 22px -6px var(--cta-glow);
}

.feat-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: badge-shine 4.5s ease infinite;
}

@keyframes badge-shine {
    0% {
        transform: translateX(-100%)
    }

    100% {
        transform: translateX(100%)
    }
}

.feat-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tr);
    text-decoration: none;
}

.feat-title:hover {
    color: var(--cta);
}

.feat-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feat-rating span {
    font-size: 12px;
    color: var(--tx-muted);
}

.feat-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.feat-price .current {
    font-size: 20px;
    font-weight: 900;
    color: var(--red);
}

.feat-price .old {
    font-size: 13px;
    color: #b0b5bc;
    text-decoration: line-through;
}

.feat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 6px solid transparent;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    cursor: pointer;
    overflow: visible;
    transition: box-shadow .15s ease, transform .15s ease;
    z-index: 0;
}

.feat-card::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 10px;
    padding: 6px;
    background: conic-gradient(from var(--angle), #e47911 0%, #ff6b35 12.5%, #ff0000 25%, #00ba35 37.5%, #48cae4 50%, #06d6a0 62.5%, #e47911 75%, #e47911 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    z-index: -1;
    animation: spin-border 1.2s linear infinite paused;
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .15), 0 0 30px rgba(255, 153, 0, .18);
    z-index: 10;
}

.feat-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

.p-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.p-stars img {
    height: 14px;
    width: auto;
    display: block;
}

.p-stars span {
    font-size: 11.5px;
    color: var(--tx-muted);
}

.p-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.price-now {
    font-size: 15px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.price-was {
    font-size: 12px;
    color: #b0b5bc;
    text-decoration: line-through;
}

.feat-card-img {
    position: relative;
    background: #f7f8fb;
    aspect-ratio: 1/1;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 10px 10px 0 0;
}

.feat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .35s;
}

.feat-card:hover .feat-card-img img {
    transform: scale(1.06);
}

.feat-card-body {
    flex: 1;
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tr);
    text-decoration: none;
}

.card-title:hover {
    color: var(--cta);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating span {
    font-size: 11px;
    color: var(--tx-muted);
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.card-price .current {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
}

.card-price .old {
    font-size: 11px;
    color: #b0b5bc;
    text-decoration: line-through;
}

.card-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    flex-wrap: wrap;
}

.card-actions .product-buttons {
    flex: 1;
    min-width: 0;
}

.featured-cart {
    grid-column: 1 / -1;
    width: 50%;
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dee1e6;
    border-radius: var(--rad);
    overflow: hidden;
}

.featured-cart .number {
    width: 50%;
    height: var(--btn-h);
    border: none;
    border-right: 1px solid #dee1e6;
    text-align: center;
    font-size: 13px;
    background: #f7f8fb;
    outline: none;
}

.featured-cart .button {
    flex: 1;
    width: 50%;
    height: var(--btn-h);
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tx-dark);
    cursor: pointer;
}

.featured-cart .button:hover {
    background: var(--cta);
    color: #fff;
}

.featured-cart .button:hover .fas {
    color: #fff;
}

.featured-cart .button .btn-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
}

.featured-cart .button .btn-body .fas {
    color: var(--cta);
    font-size: .9rem;
}

.feat-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.feat-actions .product-buttons {
    flex: 1;
    min-width: 0;
}

.action-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--rad);
    border: 1.5px solid #dee1e6;
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    color: var(--tx-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--tr);
}

.action-icon-btn.wish:hover {
    border-color: var(--red);
    color: var(--red);
    background: #fff5f7 !important;
}

.action-icon-btn.compare:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: #f0f8fa !important;
}


@media (max-width:320px) {
    #products-wrapper[data-grid="sm"]>.row {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}