/* ============================================= */
/* === SHOP PAGE STYLES ========================= */
/* ============================================= */

.page-shop { background: #050505; }

.page-hero-shop {
    min-height: 280px;
}

/* ============================================= */
/* === SECTION + TOOLBAR ======================== */
/* ============================================= */
.shop-section {
    position: relative;
    padding: 60px 6% 100px;
    max-width: 1500px;
    margin: 0 auto;
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Filter pills ===== */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-filter:hover {
    background: rgba(0, 217, 87, 0.10);
    border-color: rgba(0, 217, 87, 0.35);
    color: #fff;
    transform: translateY(-2px);
}
.shop-filter.active {
    background: linear-gradient(135deg, #00d957 0%, #00ff7a 100%);
    border-color: transparent;
    color: #0a1f15;
    box-shadow: 0 8px 22px rgba(0, 217, 87, 0.35);
}
.shop-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.shop-filter.active .shop-filter-count {
    background: rgba(10, 31, 21, 0.22);
    color: rgba(10, 31, 21, 0.70);
}

/* ===== Right-hand meta: sort + count ===== */
.shop-meta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.shop-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.shop-sort select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 32px 8px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff7a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.shop-sort select:hover { border-color: rgba(0, 217, 87, 0.45); }
.shop-sort select:focus {
    outline: none;
    border-color: #00d957;
    background-color: rgba(0, 217, 87, 0.08);
}
.shop-sort select option {
    background: #0a1f15;
    color: #fff;
}

.shop-result {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.shop-result strong {
    color: #00ff7a;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
}

/* ============================================= */
/* === PRODUCT GRID ============================ */
/* ============================================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Lighten the carousel-specific transforms inside the static grid */
.shop-grid .product-card {
    flex: initial;
    min-width: 0;
    opacity: 1 !important;
    transform: none !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.shop-grid .product-card:hover { transform: translateY(-4px) !important; }

/* On-shop entrance animation (staggered) */
.shop-grid .shop-card {
    animation: shopFadeIn 0.45s ease both;
}
.shop-grid .shop-card:nth-child(1)  { animation-delay: 0.03s; }
.shop-grid .shop-card:nth-child(2)  { animation-delay: 0.06s; }
.shop-grid .shop-card:nth-child(3)  { animation-delay: 0.09s; }
.shop-grid .shop-card:nth-child(4)  { animation-delay: 0.12s; }
.shop-grid .shop-card:nth-child(5)  { animation-delay: 0.15s; }
.shop-grid .shop-card:nth-child(6)  { animation-delay: 0.18s; }
.shop-grid .shop-card:nth-child(7)  { animation-delay: 0.21s; }
.shop-grid .shop-card:nth-child(8)  { animation-delay: 0.24s; }
.shop-grid .shop-card:nth-child(n+9) { animation-delay: 0.27s; }

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

/* ============================================= */
/* === EMPTY STATE ============================= */
/* ============================================= */
.shop-empty {
    text-align: center;
    padding: 60px 30px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.32));
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.shop-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 217, 87, 0.12);
    border: 1px solid rgba(0, 217, 87, 0.35);
    color: #00ff7a;
}
.shop-empty-title {
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 10px;
}
.shop-empty-sub {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
}
#shop-empty-reset { display: inline-flex; }

/* ============================================= */
/* === RESPONSIVE ============================== */
/* ============================================= */
@media (max-width: 1180px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
    .shop-section { padding: 50px 5% 80px; }
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .shop-meta {
        justify-content: space-between;
    }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .shop-filter { padding: 9px 14px; font-size: 0.66rem; }
}

@media (max-width: 540px) {
    .shop-section { padding: 40px 4% 70px; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shop-toolbar { margin-bottom: 26px; }
    .shop-filters { gap: 6px; }
    .shop-filter { padding: 8px 12px; font-size: 0.62rem; letter-spacing: 0.10em; }
    .shop-filter-count { min-width: 18px; font-size: 0.56rem; padding: 1px 5px; }
    .shop-result strong { font-size: 0.86rem; }
}

@media (max-width: 380px) {
    .shop-grid { grid-template-columns: 1fr; }
}
