/* ===== PREMIUM MODERN STORE DESIGN ===== */

/* Hero Section - Enhanced */
.store-hero {
    position: relative;
    padding: 130px 0 60px;
    background: transparent;
    overflow: hidden;
    text-align: center;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.02) 100%);
    z-index: -1;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.store-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #666 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    line-height: 1.2;
    padding: 0 15px;
}

.store-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

/* Filter Section - Glassmorphism */
.filter-wrapper {
    position: sticky;
    top: var(--header-height, 70px);
    z-index: 90;
    margin-bottom: 40px;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, var(--bg-body) 80%, transparent);
}

.filter-container {
    display: inline-flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
    justify-content: center;
}

[data-theme="dark"] .filter-container {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), rgba(212, 175, 55, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
}

.filter-btn.active {
    color: #fff;
    transform: scale(1.05);
}

.filter-btn.active::before {
    opacity: 1;
}

.filter-btn span,
.filter-btn i {
    position: relative;
    z-index: 1;
}

.count-badge {
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-inline-start: 8px;
    font-weight: 900;
    display: inline-block;
}

.filter-btn.active .count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Service Grid - Enhanced */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 60px;
}

/* Modern Card - Premium 3D Design */
.modern-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.modern-card:hover::before {
    opacity: 1;
}

/* Premium Card Variant */
.modern-card.premium-card {
    border: 2px solid rgba(212, 175, 55, 0.25);
    background:
        linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 175, 55, 0.04) 100%);
    position: relative;
}

.modern-card.premium-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.4),
            transparent 30%,
            transparent 70%,
            rgba(212, 175, 55, 0.4));
    z-index: -1;
    opacity: 0.6;
    animation: premiumShine 3s linear infinite;
}

@keyframes premiumShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

/* Card Image Wrapper */
.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-card:hover .card-img-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modern-card:hover .card-overlay {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.card-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-cat::before {
    content: '';
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    display: inline-block;
    border-radius: 2px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.modern-card:hover .card-title a {
    color: var(--primary-color);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.price-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Card Button - 3D Effect */
.card-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-body), rgba(212, 175, 55, 0.05));
    color: var(--primary-color);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), rgba(212, 175, 55, 0.8));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-card:hover .card-btn {
    transform: rotate(-45deg) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.modern-card:hover .card-btn::before {
    opacity: 1;
}

.modern-card:hover .card-btn i {
    color: #fff;
}

[dir="rtl"] .modern-card:hover .card-btn {
    transform: rotate(45deg) scale(1.1);
}

/* Countdown Timer - Enhanced */
.countdown-timer {
    background: linear-gradient(135deg, #fff0f0, #ffe5e5) !important;
    border: 2px solid #fecdd3 !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.15) !important;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(225, 29, 72, 0.15);
    }

    50% {
        box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25);
    }
}

/* Responsive Design */

/* XS Mobile (< 480px) */
@media (max-width: 479px) {
    .store-hero {
        padding: 100px 0 50px;
    }

    .store-hero h1 {
        font-size: 1.9rem !important;
    }

    .store-hero p {
        font-size: 0.95rem;
    }

    .trust-bar {
        gap: 8px;
        padding: 0 10px;
    }

    .trust-item {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .trust-item i {
        display: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-img-wrapper {
        height: 200px;
    }

    .card-content {
        padding: 16px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .price-val {
        font-size: 1.2rem;
    }

    .badge-hero {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .filter-container {
        gap: 6px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

/* SM Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .store-hero {
        padding: 120px 0 60px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-img-wrapper {
        height: 200px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    .store-hero {
        padding: 160px 0 80px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .card-img-wrapper {
        height: 260px;
    }

    .card-content {
        padding: 25px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .filter-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Desktop (1024px - 1279px) */
@media (min-width: 1024px) {
    .store-hero {
        padding: 180px 0 100px;
    }

    .store-hero h1 {
        font-size: clamp(2.5rem, 5vw, 4.5rem);
    }

    .store-hero p {
        font-size: 1.25rem;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        margin-bottom: 80px;
    }

    .card-img-wrapper {
        height: 280px;
    }

    .card-content {
        padding: 30px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .filter-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .card-img-wrapper {
        height: 310px;
    }

    .modern-card:hover {
        transform: translateY(-16px) scale(1.02);
    }
}