/* ============================================================
   SMALL PETS SECTION STYLES (Page 15)
   ============================================================ */

.m-small-pets-page {
    background: #FFFFFF;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for bottom nav */
}

/* TOP BAR */
.m-sp-top-bar {
    height: 52px;
    background: white;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #F3F4F6;
}

.m-sp-top-bar .back-btn {
    color: #111827;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.m-sp-top-bar .back-btn svg {
    width: 22px;
    height: 22px;
}

.m-sp-top-bar .title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.m-sp-top-bar .cart-btn {
    color: #374151;
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.m-sp-top-bar .cart-btn svg {
    width: 22px;
    height: 22px;
}

.m-sp-top-bar .cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #7C3AED;
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
}

/* HERO BANNER CAROUSEL */
.m-sp-hero {
    margin-top: 52px;
    height: 200px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    display: flex;
    flex-direction: column;
}

.m-sp-hero .hero-content {
    display: flex;
    flex: 1;
    padding: 24px 16px;
}

.m-sp-hero .hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
}

.m-sp-hero .hero-title {
    font-size: 22px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
}

.m-sp-hero .hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin: 6px 0 12px;
}

.m-sp-hero .shop-now {
    font-size: 14px;
    color: white;
    font-weight: 700;
    text-decoration: underline;
    align-self: flex-start;
}

.m-sp-hero .hero-right {
    width: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-sp-hero .hero-pets {
    position: relative;
    width: 100%;
    height: 100%;
}

.m-sp-hero .hero-pets .pet {
    position: absolute;
    font-size: 32px;
}
.m-sp-hero .pet-1 { top: 10%; right: 10%; }
.m-sp-hero .pet-2 { top: 40%; left: 0; }
.m-sp-hero .pet-3 { bottom: 10%; right: 40%; }
.m-sp-hero .pet-4 { bottom: 30%; right: 0; }

.m-sp-hero .hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-bottom: 12px;
}

.m-sp-hero .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.m-sp-hero .dot.active {
    background: white;
}

/* SUBCATEGORIES GRID */
.m-sp-categories {
    padding-top: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    padding: 16px 16px 10px;
    margin: 0;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
}

.sp-cat-card {
    border-radius: 16px;
    overflow: hidden;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sp-cat-card .img-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-cat-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-cat-card .emoji-fallback {
    font-size: 40px;
}

.sp-cat-card .cat-name {
    font-size: 16px;
    font-weight: 800;
    color: #1F1F3D;
    margin-left: 10px;
    flex: 1;
    line-height: 1.2;
}

/* POPULAR PRODUCTS SECTION */
.m-sp-popular {
    padding-top: 10px;
}

.popular-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px 16px;
}

.popular-scroll::-webkit-scrollbar {
    display: none;
}

.pop-prod-card {
    width: 160px;
    flex-shrink: 0;
    background: white;
    border-radius: 14px;
    border: 1px solid #F3F4F6;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pop-prod-card .prod-img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.pop-prod-card .prod-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pop-prod-card .prod-price {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-top: 4px;
}

.pop-prod-card .add-to-cart-btn {
    width: 100%;
    height: 32px;
    margin-top: 8px;
    background: #1F1F3D;
    color: white;
    border-radius: 8px;
    border: none;
    font-size: 11px;
    font-weight: 700;
}

.view-all-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid #7C3AED;
    color: #7C3AED;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
