/* =========================================
   ROOT VARIABLES
========================================= */
:root {
    --primary: #facc15;
    --primary-hover: #eab308;
    --primary-soft: rgba(250, 204, 21, 0.12);
    --primary-glow: rgba(250, 204, 21, 0.30);

    --white: #ffffff;
    --text-muted: #d1d5db;
    --hero-dark: #020617;
    --hero-card: rgba(255, 255, 255, 0.07);
    --hero-border: rgba(255, 255, 255, 0.10);

    --shadow-dark: 0 16px 40px rgba(0, 0, 0, 0.28);
    --shadow-yellow: 0 10px 25px rgba(250, 204, 21, 0.22);
}


/* =========================================
   SHOP HERO SECTION
========================================= */
.shop-hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0 75px;
    background: var(--hero-dark);
    isolation: isolate;
}

.shop-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.06);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

.shop-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            115deg,
            rgba(2, 6, 23, 0.92) 0%,
            rgba(2, 6, 23, 0.82) 40%,
            rgba(2, 6, 23, 0.92) 100%
        );
}

.shop-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 95%);
    pointer-events: none;
}

.shop-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 2;
    pointer-events: none;
}

.glow-1 {
    width: 240px;
    height: 240px;
    top: 10%;
    left: 8%;
    background: rgba(250, 204, 21, 0.14);
    animation: floatGlow 7s ease-in-out infinite;
}

.glow-2 {
    width: 260px;
    height: 260px;
    right: 10%;
    bottom: 8%;
    background: rgba(250, 204, 21, 0.10);
    animation: floatGlow 9s ease-in-out infinite;
}

.shop-hero-container {
    position: relative;
    z-index: 5;
}

.shop-hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    animation: heroFadeUp 0.9s ease;
}

.shop-hero-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.shop-hero-title {
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1.12;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    color: var(--white);
}

.shop-hero-title span {
    display: block;
    color: var(--primary);
    text-shadow: 0 0 16px var(--primary-glow);
}

.shop-hero-text {
    max-width: 620px;
    margin: 0 auto 28px;
    font-size: clamp(0.95rem, 1.3vw, 1.02rem);
    line-height: 1.75;
    color: var(--text-muted);
}

.shop-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.shop-btn-primary,
.shop-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.shop-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #111827;
    box-shadow: var(--shadow-yellow);
}

.shop-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(250, 204, 21, 0.26);
}

.shop-btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.shop-btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(250, 204, 21, 0.22);
}

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

.shop-feature-item {
    min-width: 145px;
    padding: 16px 16px;
    border-radius: 16px;
    background: var(--hero-card);
    border: 1px solid var(--hero-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-dark);
}

.shop-feature-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.shop-feature-item span {
    display: block;
    font-size: 0.85rem;
    color: #e5e7eb;
    line-height: 1.4;
}


/* =========================================
   ANIMATIONS
========================================= */
@keyframes heroZoom {
    0% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1.13);
    }
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-16px) translateX(10px);
    }
}


/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1199px) {
    .shop-hero {
        min-height: 64vh;
        padding: 90px 0 70px;
    }

    .shop-hero-content {
        max-width: 660px;
    }
}

@media (max-width: 991px) {
    .shop-hero {
        min-height: 60vh;
        padding: 85px 0 65px;
    }

    .shop-hero-title {
        font-size: clamp(1.7rem, 5.8vw, 2.8rem);
    }

    .shop-hero-text {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .shop-feature-item {
        min-width: 135px;
    }
}

@media (max-width: 767px) {
    .shop-hero {
        min-height: auto;
        padding: 80px 0 55px;
    }

    .shop-hero-content {
        max-width: 100%;
    }

    .shop-hero-badge {
        font-size: 0.76rem;
        padding: 8px 14px;
        margin-bottom: 14px;
    }

    .shop-hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: 1.16;
        margin-bottom: 12px;
    }

    .shop-hero-text {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 22px;
    }

    .shop-hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .shop-btn-primary,
    .shop-btn-secondary {
        width: 100%;
        max-width: 260px;
        min-width: unset;
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .shop-hero-features {
        gap: 10px;
    }

    .shop-feature-item {
        width: calc(50% - 5px);
        min-width: unset;
        padding: 14px 12px;
    }

    .shop-feature-item strong {
        font-size: 0.95rem;
    }

    .shop-feature-item span {
        font-size: 0.8rem;
    }

    .glow-1,
    .glow-2 {
        opacity: 0.6;
    }
}

@media (max-width: 575px) {
    .shop-hero {
        padding: 75px 0 50px;
    }

    .shop-hero-title {
        font-size: 1.4rem;
    }

    .shop-hero-text {
        font-size: 0.88rem;
    }

    .shop-feature-item {
        width: 100%;
    }

    .shop-hero-badge {
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .shop-hero-title {
        font-size: 1.25rem;
    }

    .shop-hero-text {
        font-size: 0.84rem;
    }

    .shop-btn-primary,
    .shop-btn-secondary {
        max-width: 100%;
    }
}


/* =========================================================
   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 {
    position: relative;
    padding: 85px 0 80px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffdf5 55%,
            #ffffff 100%
        );
    overflow: hidden;
}

.shop-trust::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.08);
    filter: blur(40px);
    pointer-events: none;
}

.shop-trust::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.06);
    filter: blur(50px);
    pointer-events: none;
}

.shop-trust .container {
    position: relative;
    z-index: 2;
}

.shop-trust-header {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.shop-trust-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.10);
    color: #a16207;
    border: 1px solid rgba(250, 204, 21, 0.22);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.shop-trust-header h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.shop-trust-header p {
    margin: 0 auto;
    max-width: 620px;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.75;
}

.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.shop-trust-card {
    position: relative;
    padding: 30px 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.shop-trust-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(250, 204, 21, 0.18);
    border-color: rgba(250, 204, 21, 0.25);
}

.shop-trust-card:hover::before {
    opacity: 1;
}

.shop-trust-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        rgba(250, 204, 21, 0.18),
        rgba(250, 204, 21, 0.08)
    );
    border: 1px solid rgba(250, 204, 21, 0.22);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.12);
}

.shop-trust-icon {
    font-size: 1.9rem;
    line-height: 1;
}

.shop-trust-card h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.shop-trust-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6b7280;
}

/* Optional if card is a link */
.shop-link-card {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1199px) {
    .shop-trust {
        padding: 75px 0;
    }

    .shop-trust-grid {
        gap: 18px;
    }

    .shop-trust-card {
        padding: 28px 18px 22px;
    }
}

@media (max-width: 991px) {
    .shop-trust {
        padding: 70px 0;
    }

    .shop-trust-header {
        margin-bottom: 40px;
    }

    .shop-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .shop-trust-header h2 {
        font-size: clamp(1.55rem, 4vw, 2.1rem);
    }

    .shop-trust-header p {
        font-size: 0.94rem;
    }
}

@media (max-width: 767px) {
    .shop-trust {
        padding: 60px 0;
    }

    .shop-trust-header {
        margin-bottom: 32px;
    }

    .shop-trust-badge {
        font-size: 0.74rem;
        padding: 7px 14px;
        margin-bottom: 14px;
    }

    .shop-trust-header h2 {
        font-size: 1.45rem;
        margin-bottom: 10px;
    }

    .shop-trust-header p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .shop-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .shop-trust-card {
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .shop-trust-icon-wrap {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .shop-trust-icon {
        font-size: 1.6rem;
    }

    .shop-trust-card h4 {
        font-size: 0.96rem;
        margin-bottom: 8px;
    }

    .shop-trust-card p {
        font-size: 0.84rem;
        line-height: 1.6;
    }
}

@media (max-width: 575px) {
    .shop-trust {
        padding: 52px 0;
    }

    .shop-trust-grid {
        grid-template-columns: 1fr;
    }

    .shop-trust-card {
        padding: 22px 16px;
    }

    .shop-trust-header h2 {
        font-size: 1.3rem;
    }

    .shop-trust-header p {
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .shop-trust-badge {
        font-size: 0.7rem;
    }

    .shop-trust-header h2 {
        font-size: 1.18rem;
    }

    .shop-trust-card p {
        font-size: 0.82rem;
    }
}