/* =============================================
   ESWATINI FUNZONE — ONLINE SHOP PAGE STYLES
   Matches homepage color palette & typography
   ============================================= */

/* ---- Active nav ---- */
.active {
    color: var(--primary-purple) !important;
    font-weight: 700 !important;
}

.active::after {
    width: 100% !important;
}

/* ============================================
   SHOP HERO
   ============================================ */
.shop-hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 45%, #f4eaff 100%);
    text-align: center;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 30%, rgba(155, 81, 224, 0.18) 0%, transparent 34%),
        radial-gradient(circle at 86% 20%, rgba(0, 210, 255, 0.2) 0%, transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.35));
    z-index: 0;
}

.shop-hero::after {
    content: none;
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-tag {
    display: none;
}

.shop-hero h1 {
    font-size: 4.5rem;
    color: var(--primary-purple);
    font-weight: 900;
    text-shadow: none;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.shop-hero .text-gradient {
    background: linear-gradient(135deg, var(--teal) 0%, #3a7bd5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.shop-hero-desc {
    font-size: 1.15rem;
    color: var(--text-dark);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.7;
    text-shadow: none;
}

/* ============================================
   SHOP MAIN
   ============================================ */
.shop-main {
    background: linear-gradient(180deg, var(--bg-white) 0%, #f5f0ff 40%, #fff8f0 80%, var(--bg-white) 100%);
}

.shop-header {
    text-align: center;
    margin-bottom: 4rem;
}

.shop-header h2 {
    font-size: 3rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.shop-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.collection-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.collection-title {
    font-size: 2rem;
    color: var(--primary-purple);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(155, 81, 224, 0.1);
    border: 3px solid #ede8ff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.order-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    background: #ffffff;
    border: 3px solid #ede8ff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 18px 40px rgba(155, 81, 224, 0.08);
}

.order-summary h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-purple);
}

.order-summary p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.order-alert {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    margin-top: 1rem;
    font-weight: 600;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #ded7f3;
    border-radius: 16px;
    background: #fbf7ff;
    color: var(--text-dark);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(155, 81, 224, 0.12);
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.order-submit {
    width: fit-content;
    padding: 1rem 2rem;
    align-self: flex-start;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 24px 50px rgba(155, 81, 224, 0.22);
    border-color: var(--primary-purple);
}

.product-card:nth-child(2n):hover {
    border-color: var(--primary-red);
    box-shadow: 0 24px 50px rgba(255, 51, 102, 0.2);
}

.product-card:nth-child(3n):hover {
    border-color: var(--teal);
    box-shadow: 0 24px 50px rgba(0, 210, 255, 0.2);
}

/* ---- Product Image ---- */
.product-img-wrap {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9ff;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

/* Product badge */
.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary-purple);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ---- Product Info ---- */
.product-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.8rem;
    color: var(--primary-red);
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 3rem;
    }

    .shop-header h2 {
        font-size: 2rem;
    }

    .collection-title {
        font-size: 1.5rem;
    }

    .products-row {
        grid-template-columns: 1fr;
    }

    .product-img-wrap {
        height: 240px;
    }

    .order-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 8rem 0 4rem;
    }

    .shop-hero h1 {
        font-size: 2rem;
    }

    .shop-hero-desc {
        font-size: 1rem;
    }

    .shop-header h2 {
        font-size: 1.5rem;
    }

    .product-info {
        padding: 1.2rem;
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.reveal {
    opacity: 0;
    animation: revealIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

