
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Syne:wght@700;800;900&display=swap');

/* ===== RESET & BASE ===== */
.smp-shop *,
.smp-shop *::before,
.smp-shop *::after {
    box-sizing: border-box;
}
.smp-shop {
    font-family: 'Hind Siliguri', sans-serif;
    --red: #e11d48;
    --red-dark: #be123c;
    --red-light: #fff1f2;
    --red-border: #fda4af;
    --dark: #0f0a0a;
    --gray: #6b7280;
    --border: #e5e7eb;
    --bg: #fafafa;
    --white: #ffffff;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.07);
    --card-shadow-hover: 0 16px 40px rgba(0,0,0,0.14);
}
.smp-shop a { text-decoration: none; color: inherit; }
.smp-shop ul { list-style: none; margin: 0; padding: 0; }
.smp-shop p, .smp-shop h1, .smp-shop h2, .smp-shop h3 { margin: 0; padding: 0; }

/* ===== FLASH MESSAGES ===== */
.smp-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}
.smp-flash--success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.smp-flash--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ===== BREADCRUMB ===== */
.smp-breadcrumb {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.smp-breadcrumb a { color: var(--gray); transition: color 0.2s; }
.smp-breadcrumb a:hover { color: var(--red); }
.smp-breadcrumb .current { color: var(--red); font-weight: 700; }

/* ===== HERO ===== */
.smp-hero {
    background: linear-gradient(135deg, #12040a 0%, #2d0a14 45%, #1a0509 100%);
    border-radius: 20px;
    padding: 50px 44px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}
.smp-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -100px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(225,29,72,0.25) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.smp-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -70px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(200,16,46,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.smp-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.smp-hero-text { position: relative; z-index: 2; max-width: 460px; }
.smp-hero-text h1 {
    font-family: 'Syne', sans-serif;
    font-size: 46px;
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.smp-hero-text p {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}
.smp-hero-count {
    position: relative;
    z-index: 2;
    text-align: right;
}
.smp-hero-count-num {
    font-family: 'Syne', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    text-shadow: 0 8px 30px rgba(225,29,72,0.5);
    display: block;
}
.smp-hero-count-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ===== TOOLBAR ===== */
.smp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 22px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.smp-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.smp-toolbar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.smp-sort-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 36px 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Hind Siliguri', sans-serif;
    background: #f9fafb;
    color: var(--dark);
    min-width: 200px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #f9fafb;
}
.smp-sort-select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,72,0.1); }
.smp-toolbar-info {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
    white-space: nowrap;
}

/* ===== LAYOUT ===== */
.smp-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.smp-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 24px;
}
.smp-sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.smp-sidebar-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--red), var(--red-dark));
    border-radius: 4px;
    flex-shrink: 0;
}

/* Filter Sections */
.smp-filter-sec {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.smp-filter-sec:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.smp-filter-sec-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 12px;
}

/* Category List */
.smp-cat-list li { margin-bottom: 2px; }
.smp-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--dark);
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.smp-cat-list a:hover,
.smp-cat-list a.active {
    background: var(--red-light);
    color: var(--red);
    transform: translateX(4px);
    font-weight: 600;
}
.smp-cat-count {
    font-size: 11px;
    font-weight: 700;
    background: #f3f4f6;
    color: var(--gray);
    padding: 2px 7px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.smp-cat-list a.active .smp-cat-count,
.smp-cat-list a:hover .smp-cat-count { background: #ffe4e6; color: var(--red); }

/* Price Row */
.smp-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.smp-price-sep { font-size: 16px; color: var(--gray); flex-shrink: 0; }
.smp-price-input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Hind Siliguri', sans-serif;
    background: #f9fafb;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.smp-price-input::placeholder { font-weight: 400; color: #d1d5db; }
.smp-price-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,72,0.1); }

/* Search */
.smp-search-row { display: flex; gap: 8px; }
.smp-search-input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Hind Siliguri', sans-serif;
    background: #f9fafb;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.smp-search-input::placeholder { font-weight: 400; color: #d1d5db; }
.smp-search-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,72,0.1); }
.smp-search-btn {
    padding: 9px 14px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.smp-search-btn:hover { background: var(--red-dark); transform: scale(1.05); }

/* Apply Button */
.smp-apply-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}
.smp-apply-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Reset Link */
.smp-reset-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 11px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}
.smp-reset-link:hover { color: var(--red); border-color: var(--red-border); background: var(--red-light); }

/* ===== PRODUCT GRID ===== */
.smp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

/* ===== PRODUCT CARD ===== */
.smp-card-wrap {
    position: relative;
}

/* Badges */
.smp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
}
.smp-badge--discount { background: var(--red); color: #fff; }
.smp-badge--new      { background: #16a34a; color: #fff; }

/* Wishlist Button */
.smp-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #9ca3af;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.2s, transform 0.2s, color 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
}
.smp-card-wrap:hover .smp-wish-btn { opacity: 1; transform: scale(1); }
.smp-wish-btn:hover { color: var(--red); }

/* Card Shell */
.smp-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s cubic-bezier(0.4,0,0.2,1),
                border-color 0.3s;
    cursor: pointer;
}
.smp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--red-border);
}

/* Image */
.smp-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #f3f4f6;
    flex-shrink: 0;
    display: block;
}
.smp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.smp-card:hover .smp-img { transform: scale(1.07); }

/* Card Body */
.smp-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Product Name */
.smp-card-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    text-decoration: none;
}
.smp-card-name:hover { color: var(--red); }

/* Price */
.smp-card-price {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 4px;
}
.smp-card-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 10px;
    line-height: 1;
}

/* Meta */
.smp-card-meta { margin-bottom: 12px; }
.smp-card-stock-warn {
    font-size: 11.5px;
    color: #d97706;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.smp-card-stars {
    font-size: 12px;
    color: #f59e0b;
    letter-spacing: 1px;
    display: block;
}

/* ✅ ATC Form wrapper — zero-margin, full-width */
.smp-atc-form {
    margin: 0;
    padding: 0;
    width: 100%;
    margin-top: auto;
}

/* ATC Button */
.smp-atc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.18s, box-shadow 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.smp-atc-btn--active {
    background: var(--red);
    color: #fff !important;
}
.smp-atc-btn--active:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225,29,72,0.32);
    color: #fff !important;
}
.smp-atc-btn--disabled {
    background: #f3f4f6;
    color: #9ca3af !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== EMPTY STATE ===== */
.smp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 30px;
    color: var(--gray);
}
.smp-empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}
.smp-empty h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #374151;
    margin-bottom: 8px;
}
.smp-empty p { font-size: 14px; }

/* ===== PAGINATION ===== */
.smp-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.smp-pagination .page-link {
    border-radius: 10px !important;
    padding: 9px 15px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s;
    font-family: 'Hind Siliguri', sans-serif;
}
.smp-pagination .page-item.active .page-link { background: var(--red); border-color: var(--red); }
.smp-pagination .page-link:hover { background: var(--red-light); color: var(--red); border-color: var(--red-border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .smp-layout { grid-template-columns: 1fr; }
    .smp-sidebar { position: static; }
}
@media (max-width: 680px) {
    .smp-hero { padding: 34px 22px; flex-direction: column; text-align: center; }
    .smp-hero-text h1 { font-size: 30px; }
    .smp-hero-count-num { font-size: 56px; }
    .smp-hero-count { text-align: center; }
    .smp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .smp-img-wrap { height: 150px; }
}
@media (max-width: 400px) {
    .smp-hero-text h1 { font-size: 24px; }
    .smp-card-name { font-size: 12.5px; }
    .smp-card-price { font-size: 17px; }
}
