/* 
    SHOP PAGE STYLES - NATURAL HUB
    Aesthetics: Elegant, Premium, Clean
*/

:root {
    --pink-primary: #f74d6c;
    --gold-accent: #B08A3C;
    --dark-bg: #1E1717;
    --light-bg: #fdfdfd;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════
   SHOP HERO — BRANDED BANNER
   ══════════════════════════════ */
.shop-hero-banner-wrap {
    position: relative;
    padding: 78px 0 24px;
    background: #ffffff;
    overflow: hidden;
    isolation: isolate;
}

.shop-hero-banner-wrap > .container {
    max-width: none;
    padding: 0;
}

.shop-hero-banner {
    position: relative;
    width: 100%;
    margin: 0 auto;
    border-radius: 0 0 46px 46px;
    overflow: hidden;
    background: #f6dde4;
    box-shadow:
        0 34px 90px rgba(247, 77, 108, 0.22),
        0 10px 28px rgba(30, 23, 23, 0.08);
    animation: shopHeroFadeUp 0.9s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.shop-hero-banner::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 100%);
}

.shop-hero-img {
    display: block;
    width: 100%;
    height: clamp(360px, 42vw, 580px);
    object-fit: cover;
    object-position: center;
}

.shop-hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(760px, calc(100% - 32px));
    margin: -74px auto 0;
    padding: 28px 32px 30px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 24px 70px rgba(247, 77, 108, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: shopHeroFadeUp 1s cubic-bezier(0.2, 1, 0.3, 1) 0.15s both;
}

.shop-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(247, 77, 108, 0.14), rgba(212, 175, 97, 0.14));
    border: 1px solid rgba(247, 77, 108, 0.20);
    color: #c33052;
    font-family: 'Tajawal', 'Noto Kufi Arabic', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.shop-hero-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    color: #514443;
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 26px;
}

.shop-hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.shop-hero-btn-primary,
.shop-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 18px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.35s ease,
                background 0.35s ease,
                border-color 0.35s ease;
    white-space: nowrap;
}

.shop-hero-btn-primary {
    background: linear-gradient(135deg, #f13f65 0%, #ff7996 100%);
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(247, 77, 108, 0.35);
}

.shop-hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(247, 77, 108, 0.45);
}

.shop-hero-btn-outline {
    background: rgba(255, 255, 255, 0.72);
    color: #1f1517 !important;
    border: 1.5px solid #f3c8d2;
}

.shop-hero-btn-outline:hover {
    background: #fff5f7;
    border-color: #f74d6c;
    color: #f74d6c !important;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(247, 77, 108, 0.18);
}

@keyframes shopHeroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (max-width: 991px) {
    .shop-hero-banner-wrap {
        padding: 78px 0 20px;
    }
    .shop-hero-banner {
        border-radius: 0 0 34px 34px;
    }
    .shop-hero-img {
        height: clamp(320px, 50vw, 460px);
    }
    .shop-hero-actions {
        margin-top: -54px;
        padding: 24px 26px 26px;
        border-radius: 26px;
    }
    .shop-hero-desc {
        font-size: 1rem;
    }
}

/* Small tablet / large mobile */
@media (max-width: 640px) {
    .shop-hero-banner-wrap {
        padding: 76px 0 16px;
    }
    .shop-hero-banner {
        border-radius: 0 0 26px 26px;
        box-shadow:
            0 18px 40px rgba(247, 77, 108, 0.16),
            0 4px 14px rgba(30, 23, 23, 0.05);
    }
    .shop-hero-banner::after {
        height: 42%;
    }
    .shop-hero-img {
        height: 360px;
        object-position: 62% center;
    }
    .shop-hero-actions {
        width: min(92%, 520px);
        margin-top: -38px;
        padding: 22px 18px 20px;
        border-radius: 22px;
    }
    .shop-hero-tag {
        font-size: 0.8rem;
        padding: 7px 14px;
        margin-bottom: 14px;
    }
    .shop-hero-desc {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    .shop-hero-btns {
        gap: 10px;
        width: 100%;
    }
    .shop-hero-btn-primary,
    .shop-hero-btn-outline {
        padding: 13px 22px;
        font-size: 0.92rem;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 140px;
    }
}

/* Phone */
@media (max-width: 420px) {
    .shop-hero-banner-wrap {
        padding: 74px 0 12px;
    }
    .shop-hero-banner {
        border-radius: 0 0 22px 22px;
    }
    .shop-hero-img {
        height: 330px;
        object-position: 66% center;
    }
    .shop-hero-btn-primary,
    .shop-hero-btn-outline {
        padding: 12px 18px;
        font-size: 0.88rem;
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* --- Filter Tabs --- */
.shop-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #fff;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--pink-primary);
    color: #fff;
    border-color: var(--pink-primary);
    box-shadow: 0 5px 15px rgba(247, 77, 108, 0.2);
}

/* --- Product Grid --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 360px;
    justify-self: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-img {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pink-primary);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.product-content {
    padding: 25px;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-bg);
}

.product-desc {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-bg);
}

.product-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
}

.add-to-cart {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--pink-primary);
    transform: rotate(90deg);
}

/* --- Product Variants --- */
.product-variants {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.variant-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: #f8f8f8;
    border-radius: 4px;
    color: #666;
    border: 1px solid #eee;
}

/* --- CTA Section --- */
.shop-cta {
    background: var(--dark-bg);
    padding: 80px 0;
    color: #fff;
    text-align: center;
    border-radius: 40px;
    margin: 40px auto 100px;
    position: relative;
    overflow: hidden;
}

.shop-cta-inner {
    position: relative;
    z-index: 2;
}

.shop-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.shop-cta p {
    opacity: 0.8;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-grid { grid-template-columns: 1fr; }
}
