/* =========================================
   ROOT VARIABLES (VIOLET THEME)
========================================= */
:root {
    --violet-primary: #6f2dbd;
    --violet-hover: #5b21b6;
    --violet-soft: rgba(111, 45, 189, 0.08);
    --violet-glow: rgba(168, 85, 247, 0.45);
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --text-dark: #111827;
    --text-muted: #6b7280;
}



/* =========================================
   SHOP HERO SECTION
========================================= */

.shop-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 2.5rem;
}

.shop-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
    z-index: 1;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(2, 6, 23, 0.85),
        rgba(2, 6, 23, 0.95)
    );
    z-index: 2;
}

.shop-hero-container {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.shop-hero-title {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.shop-hero-title span {
    color: var(--violet-primary);
    text-shadow: 0 0 12px var(--violet-glow);
}

.shop-hero-text {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.shop-btn-secondary {
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--violet-primary),
        var(--violet-hover)
    );
    color: var(--white);
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px var(--violet-glow);
}

.shop-btn-secondary:hover {
    transform: translateY(-3px);
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.category-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden; /* VERY IMPORTANT */
    display: flex;
    flex-direction: column;
    color: #111827;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    user-select: none;
}

.category-card.clickable-card {
    cursor: pointer;
}

.category-card:hover:not(.disabled) {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.category-card.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}



/* =========================================================
   FULL WIDTH IMAGE (EDGE TO EDGE)
========================================================= */

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0; /* only top corners */
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}



/* =========================================================
   CARD BODY
========================================================= */

.category-body {
    padding: 1.3rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.category-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: auto;
    line-height: 1.4;
}



/* =========================================================
   ACTIONS
========================================================= */

.category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.2rem;
}

.category-actions.centered {
    justify-content: center;
}



/* =========================================================
   STOCK BADGES
========================================================= */

.stock-badge {
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    display: inline-flex;
    white-space: nowrap;
}

.in-stock {
    background: #dcfce7;
    color: #15803d;
}

.out-stock {
    background: #fee2e2;
    color: #b91c1c;
}



/* =========================================================
   BUY BUTTON
========================================================= */

.btn-buy {
    background: #facc15;
    color: #111827;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
    white-space: nowrap;
}

.btn-buy:hover {
    background: #fbbf24;
    transform: translateY(-2px);
}



/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablets → 2 per row */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* =========================================================
   PHONES → CLEAN COMPACT SaaS MODE
========================================================= */

@media (max-width: 576px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Reduce overall card height */
    .category-card {
        border-radius: 16px;
    }

    /* Smaller full-width image */
    .category-image {
        height: 130px;
        border-radius: 16px 16px 0 0;
    }

    /* Compact body */
    .category-body {
        padding: 0.8rem 0.8rem 0.9rem;
    }

    /* Smaller title - inline, no break */
    .category-card h4 {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    /* Smaller badges */
    .stock-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }

    /* Smaller button */
    .btn-buy {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        width: 100%;
        text-align: center;
    }

    /* Hide only green In Stock */
    .category-actions .stock-badge.in-stock {
        display: none;
    }

    /* Keep Out of Stock visible */
    .category-actions .stock-badge.out-stock {
        display: inline-flex;
    }

    /* Center action */
    .category-actions {
        justify-content: center;
        margin-top: 0.8rem;
    }
}



/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 400px) {

    .category-image {
        height: 110px;
    }

    .category-card h4 {
        font-size: 0.7rem;
    }

    .btn-buy {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
}



/* 1 per row if extremely small */
@media (max-width: 360px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   SHOP TRUST SECTION
========================================= */

.shop-trust {
    /* padding: 5rem 0; */
    background: var(--white);
}

.shop-trust-header {
    text-align: center;
    margin-bottom: 3rem;
}

.shop-trust-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.shop-trust-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.shop-trust-card {
    background: var(--gray-light);
    padding: 2rem 1.5rem;
    border-radius: 18px;
    text-align: center;
    transition: 0.3s ease;
}

.shop-trust-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(111,45,189,0.15);
}

.shop-trust-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--violet-primary);
}

.shop-trust-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.shop-trust-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}



/* Responsive */
@media (max-width: 992px) {
    .shop-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .shop-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .shop-trust-card {
        padding: 1.5rem 1rem;
    }
}

.shop-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
