@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 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    display: block !important;
}

main.content-area, .content-area, .content-area-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
}

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

/* ── Custom Wide Container for Large Screens ── */
@media (min-width: 1400px) {
    .container {
        max-width: 1420px !important;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1480px !important;
    }
}

/* ══ HERO ══ */
.smhome-hero {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    gap: 16px !important;
}

.smhome-hero-sidebar {
    width: 260px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

@media (max-width: 991px) {
    .smhome-hero {
        flex-direction: column;
        gap: 10px !important;
    }
    .smhome-hero-sidebar-inner, 
    .smhome-hero-slider,
    .smhome-slide {
        height: 200px !important;
    }
}

/* ── Hero Sidebar ── */
.smhome-hero-sidebar-inner {
    background: #fff;
    border-radius: var(--rl);
    border: 1px solid var(--border);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--sh1);
}

.cat-wrapper:hover .sub-menu {
    max-height: 9999px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.sub-row-wrapper:hover .child-menu {
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.smhome-hero-sidebar-inner .sidebar {
    height: 100%;
    overflow-y: auto;
    border: none;
    width: 100% !important;
    position: static !important;
}

.smhome-hero-sidebar-inner .sb-head {
    background: var(--red);
    color: #fff;
    padding: 12px 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* ── CSS-only Slider ── */
.smhome-hero-slider {
    position: relative;
    border-radius: var(--rl);
    overflow: hidden;
    height: 450px;
    box-shadow: var(--sh2);
    border: 1px solid var(--border);
    background: #111;
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
}

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

@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%;
    width: 100% !important;
    height: 450px;
    flex-shrink: 0;
    overflow: hidden;
    display: block !important;
}

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

/* 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: none;
    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, .smhome-btn-sign {
    flex: 1;
    background: var(--red, #be0318) !important;
    color: #fff !important;
    border: none;
    padding: 10px 4px;
    border-radius: 26px;
    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, .smhome-btn-sign:hover {
    background: var(--red-d);
}

.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-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);
}

/* ══ 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; }

.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: 1px solid var(--border);
    background: #fff;
}

.smhome-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.smhome-circle-item:hover .smhome-circle-img img {
    transform: scale(1.1);
}

.smhome-circle-item p {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin: 0;
}

/* ══ 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-p-wish {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    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-see-all {
    font-size: 12.5px;
    font-weight: 700;
    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;
}

/* ══ 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;
}

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

.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);
}

.smhome-p-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.smhome-p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}

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