@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.smhome-ci,
.smhome-ci * {
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

.smhome-ci h1,
.smhome-ci h2 {
    font-family: 'Fraunces', serif;
}

/* ══ HERO ══ */
.smhome-hero {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 16px;
    margin-bottom: 24px;
}

/* ── CSS-only Slider ── */
.smhome-hero-slider {
    position: relative;
    border-radius: var(--rl);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--sh2);
    border: 1px solid var(--border);
    background: #111;
}

.smhome-slides-wrap {
    display: flex;
    height: 100%;
    animation: smhome-css-slide 16s infinite;
    will-change: transform;
}

@keyframes smhome-css-slide {

    0%,
    20% {
        transform: translateX(0%);
    }

    25%,
    45% {
        transform: translateX(-100%);
    }

    50%,
    70% {
        transform: translateX(-200%);
    }

    75%,
    95% {
        transform: translateX(-300%);
    }

    100% {
        transform: translateX(0%);
    }
}

.smhome-slide {
    min-width: 100%;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

.smhome-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dots */
.smhome-sl-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.smhome-sl-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .4);
}

.smhome-sl-dot:nth-child(1) {
    animation: smhome-dot-a 16s infinite 0s;
}

.smhome-sl-dot:nth-child(2) {
    animation: smhome-dot-a 16s infinite -12s;
}

.smhome-sl-dot:nth-child(3) {
    animation: smhome-dot-a 16s infinite -8s;
}

.smhome-sl-dot:nth-child(4) {
    animation: smhome-dot-a 16s infinite -4s;
}

@keyframes smhome-dot-a {

    0%,
    20% {
        background: #fff;
        width: 24px;
    }

    25%,
    100% {
        background: rgba(255, 255, 255, .4);
        width: 8px;
    }
}

/* ── Hero Right Panel ── */
.smhome-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.smhome-welcome-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rm);
    padding: 20px 14px 16px;
    text-align: center;
    box-shadow: var(--sh1);
}

.smhome-welcome-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.smhome-auth-btns {
    display: flex;
    gap: 8px;
}

.smhome-btn-reg {
    flex: 1;
    background: #be0318 !important;
    background: var(--red, #be0318) !important;
    color: #fff !important;
    border: none;
    padding: 10px 4px;
    border-radius: 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smhome-btn-reg:hover {
    background: var(--red-d);
    color: #fff;
}

.smhome-btn-sign {
    flex: 1;
    background: #be0318 !important;
    background: var(--red, #be0318) !important;
    color: #fff !important;
    border: none;
    padding: 10px 4px;
    border-radius: 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smhome-btn-sign:hover {
    background: var(--red-d);
    color: #fff;
}

.smhome-clearance-card {
    flex: 1;
    background: linear-gradient(145deg, var(--red) 0%, #8b0000 100%);
    color: #fff;
    border-radius: var(--rm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    padding: 20px 10px;
    min-height: 100px;
    box-shadow: var(--sh-red);
    transition: var(--t);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.smhome-clearance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .13), transparent 55%);
}

.smhome-clearance-card small {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .88;
    margin-top: 6px;
    display: block;
}

.smhome-clearance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(200, 16, 46, .45);
    color: #fff;
}

/* ── Mobile strip ── */
.smhome-hero-mobile-strip {
    display: none;
    gap: 10px;
    margin-bottom: 18px;
}

.smhome-hero-mobile-strip .smhome-welcome-card {
    flex: 1;
}

.smhome-hero-mobile-strip .smhome-clearance-card {
    flex: 0 0 130px;
    min-height: 76px;
    font-size: 17px;
}

/* ══ CATEGORY CIRCLES ══ */
.smhome-circles-box {
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rm);
    padding: 18px;
    box-shadow: var(--sh1);
}

.smhome-circles-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.smhome-circles-track::-webkit-scrollbar {
    display: none;
}


@keyframes smhome-marquee {
    to {
        transform: translateX(-100%);
    }
}

.smhome-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
}

.smhome-circle-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: var(--t);
    background: #fff;
}

.smhome-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.smhome-circle-item:hover .smhome-circle-img {
    border-color: var(--red);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(200, 16, 46, .22);
}

.smhome-circle-item p {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    white-space: nowrap;
    margin-top: 5px;
}

.smhome-circle-item:hover p {
    color: var(--red);
}

/* ══ SECTION HEADER ══ */
.smhome-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 14px;
}

.smhome-sec-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px !important;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
}

.smhome-sec-head h2::before {
    content: '';
    width: 5px;
    height: 24px;
    background: var(--red);
    border-radius: 3px;
    flex-shrink: 0;
}

.smhome-see-all {
    font-size: 12.5px;
    font-weight: 700;
    color: #be0318 !important;
    color: var(--red, #be0318) !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s;
    text-decoration: none;
}

.smhome-see-all:hover {
    gap: 9px;
    color: var(--red);
}

/* ══ FLASH SALE BAR ══ */
.smhome-flash-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rm);
    padding: 14px 20px;
    margin-bottom: 12px;
    box-shadow: var(--sh1);
    flex-wrap: wrap;
}

.smhome-flash-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px !important;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 130px;
}

.smhome-flash-title i {
    color: var(--red);
    animation: smhome-flash-pulse 1.4s ease-in-out infinite;
}

@keyframes smhome-flash-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

/* ══ PRODUCT GRID ══ */
.smhome-prod-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 32px;
}

/* ══ PRODUCT CARD ══ */
.smhome-p-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.smhome-p-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rm);
    overflow: hidden;
    position: relative;
    transition: var(--t);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.smhome-p-card:hover {
    box-shadow: var(--sh3);
    transform: translateY(-5px);
    border-color: var(--border-d);
}

.smhome-p-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #be0318 !important;
    background: var(--red, #be0318) !important;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 5px;
    letter-spacing: .04em;
    z-index: 2;
}

.smhome-p-wish {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    z-index: 10;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.smhome-p-wish:hover {
    transform: scale(1.15);
    background: var(--red);
    color: #fff;
}

.smhome-p-wish:hover {
    transform: scale(1.15);
    color: var(--red);
    background: #fff0f0;
}

/* ══════════════════════════════════════════════════════
   ✅ IMAGE WRAPPER
══════════════════════════════════════════════════════ */
.smhome-p-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

/* ✅ FINAL FIX:
   width 100% এবং height 100% object-fit: cover → ডানে বামে কোনো ফাঁকা থাকবে না, এবং ছবি কাটবেও না
*/
.smhome-p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.smhome-p-card:hover .smhome-p-img {
    transform: scale(1.06);
}

.smhome-p-body {
    padding: 12px 13px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.smhome-p-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.smhome-p-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--red);
    margin: 0 !important;
    display: inline-block;
}

.smhome-p-old {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: line-through;
    margin: 0 !important;
    display: inline-block;
    opacity: 0.7;
}

.smhome-p-stock {
    font-size: 11.5px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 5px;
}

.smhome-p-meta {
    margin-bottom: 10px;
}

/* ── Star rating row ── */
.smhome-p-stars-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
}

.smhome-p-stars-row .sm-star {
    font-size: 11px;
}

.smhome-p-stars-row .sm-star.filled {
    color: #f59e0b;
}

.smhome-p-stars-row .sm-star.empty {
    color: #d1d5db;
}

.smhome-p-rc {
    color: var(--muted);
    font-size: 11px;
    margin-left: 4px;
}

/* Add to Cart button */
.smhome-p-atc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px 0;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: var(--t);
    margin-top: auto;
    text-decoration: none;
}

.smhome-p-atc:hover {
    background: var(--red-d);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(200, 16, 46, .35);
    color: #fff;
}

.smhome-p-atc:active {
    transform: scale(.97);
}

.smhome-p-atc i {
    font-size: 12px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1700px) {
    .smhome-prod-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1300px) {
    .smhome-prod-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .smhome-hero {
        grid-template-columns: 1fr;
    }

    .smhome-hero-panel {
        display: none;
    }

    .smhome-hero-mobile-strip {
        display: flex;
    }

    .smhome-prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }
}

@media (max-width: 640px) {
    .smhome-slide {
        height: 230px;
    }

    .smhome-hero-slider {
        height: 230px;
    }

    .smhome-hero-mobile-strip .smhome-clearance-card {
        flex: 0 0 110px;
        font-size: 15px;
    }

    .smhome-sec-head h2 {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .smhome-slide {
        height: 195px;
    }

    .smhome-hero-slider {
        height: 195px;
    }

    .smhome-hero-mobile-strip .smhome-clearance-card {
        flex: 0 0 96px;
        font-size: 14px;
    }

    .smhome-prod-grid {
        gap: 9px;
    }

    .smhome-p-name {
        font-size: 12.5px;
    }

    .smhome-p-price {
        font-size: 15px;
    }

    .smhome-circle-img {
        width: 63px;
        height: 63px;
    }

    .smhome-circle-item p {
        font-size: 11.5px;
    }

    .smhome-sec-head h2 {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .smhome-hero-mobile-strip {
        flex-direction: column;
    }

    .smhome-hero-mobile-strip .smhome-clearance-card {
        flex: none;
        min-height: 64px;
        flex-direction: row;
        gap: 8px;
        font-size: 15px;
    }

    .smhome-prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}