/* =========================================   SEGAL TENNIS ACADEMY - SHOP STYLES
   Complete CSS (Reset + Layout + Components)
========================================= */

/* ---------- FONTS & RESET ---------- */
@font-face {
    font-family: 'Dana';
    src: url('https://cdn.fontcdn.ir/Fonts/Dana/dana-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('https://cdn.fontcdn.ir/Fonts/Dana/dana-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #21c86a;
    --primary-dark: #158a47;
    --primary-glow: rgba(33, 200, 106, 0.3);
    --bg: #0b1120;
    --bg-light: #111827;
    --surface: rgba(17, 24, 39, 0.65);
    --surface-border: rgba(255, 255, 255, 0.08);
 --text: #f0f4f8;
 --text-muted: #94a3b8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
 --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Dana', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    background-image: 
 radial-gradient(circle at 10% 20%, rgba(33, 200, 106, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(33, 200, 106, 0.05) 0%, transparent 40%);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}

.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ball {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 0.8s ease-in-out infinite alternate;
    box-shadow: 0 0 30px var(--primary-glow);
    margin-bottom: 20px;
}

.preloader p {
    color: var(--text-muted);
    font-size: 14px;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* ---------- HEADER ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    padding: 18px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
  
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--bg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.brand-text span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn {
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ---------- HERO SECTION ---------- */
.shop-hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 200, 106, 0.12) 0%, transparent 70%);
    z-index: -1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.shop-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero p {
    font-size: 18px;
    color: var(--text-muted);
}

/* ---------- SHOP LAYOUT ---------- */
.shop-section {
    padding: 40px 0 100px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 35px;
    align-items: start;
}

/* ---------- SIDEBAR ---------- */
.shop-sidebar {
    position: sticky;
    top: 110px;
    padding: 28px;
}

.filter-widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--surface-border);
}

.filter-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
}

.filter-icon {
    width: 32px;
    height: 32px;
    background: rgba(33, 200, 106, 0.12);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
}

/* Search Box */
.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-control::placeholder {
    color: #64748b;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(33, 200, 106, 0.05);
    box-shadow: 0 0 0 4px rgba(33, 200, 106, 0.1);
}

.search-btn {
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

/* Custom Radio */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-radio,
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.filter-radio:hover,
.filter-checkbox:hover {
    background: rgba(255, 255, 255, 0.04);
}

.filter-radio input,
.filter-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.filter-radio input:checked + .radio-circle {
    border-color: var(--primary);
    background: rgba(33, 200, 106, 0.15);
}

.filter-radio input:checked + .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.radio-text {
    flex-grow: 1;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.radio-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 9px;
    border-radius: 99px;
}

.filter-radio input:checked ~ .radio-text {
    color: var(--text);
    font-weight: 600;
}

/* Custom Checkbox */
.check-square {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.filter-checkbox input:checked + .check-square {
    border-color: var(--primary);
    background: var(--primary);
}

.filter-checkbox input:checked + .check-square::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg);
    font-size: 13px;
    font-weight: 800;
}

.check-text {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.filter-checkbox input:checked ~ .check-text {
    color: var(--text);
}

/* Price Range */
.price-range input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    margin-bottom: 12px;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- TOOLBAR ---------- */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    margin-bottom: 25px;
}

.results-count {
    font-size: 14px;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--primary);
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-border);
    transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

/* ---------- PRODUCTS GRID ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* List View Mode */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    flex-direction: row;
    min-height: unset;
}

.products-grid.list-view .product-image {
    width: 300px;
    height: auto;
    min-height: 240px;
}

.products-grid.list-view .product-content {
    flex-grow: 1;
    justify-content: center;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(33, 200, 106, 0.3);
    box-shadow: 
 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(33, 200, 106, 0.12);
}

.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-img-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.product-card:hover .product-img-bg {
    transform: scale(1.1);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.product-badge.new {
    background: var(--primary);
    color: var(--bg);
}

.product-badge.bestseller {
    background: var(--warning);
    color: var(--bg);
}

.product-badge.sale {
    background: var(--danger);
    color: #fff;
}

/* Action Buttons (Wishlist/Compare) */
.product-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid var(--surface-border);
    color: var(--text);
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.action-btn.active {
    background: var(--danger);
    border-color: var(--danger);
}

/* Product Content */
.product-content {
    flex-grow: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    background: rgba(33, 200, 106, 0.1);
    padding: 5px 12px;
    border-radius: 99px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.stars {
    color: #fbbf24;
    letter-spacing:1px;
}

.rating-count {
    color: var(--text-muted);
}

.product-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 55px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Footer - Price + Button */
.product-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    direction: rtl;
    font-feature-settings: "tnum";
}

.brand-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

.product-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 800;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.product-btn:hover::before {
    left: 100%;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 30px;
}

.empty-state.show {
    display: flex;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.reset-btn {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
}

.reset-btn:hover {
    background: var(--primary);
    color: var(--bg);
}


.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-widget {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    
    .shop-hero h1 {
        font-size: 28px;
    }
    
    .shop-sidebar {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-title {
        min-height: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.footer {
    padding: 36px 0;
    background: rgba(0,0,0,0.20);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: #94a9ba;
}



.footer {
    padding: 70px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 35px;
}

.footer-brand p,
.footer-contact p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 2;
    margin-top: 18px;
}

.footer .brand-logo img {
    width: 55px;
    height: auto;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a,
.footer-socials a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: 0.3s ease;
}

    .footer-col a:hover,
    .footer-socials a:hover {
        color: #21c86a;
    }

.footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

    .footer-socials a {
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .product-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .product-content {
        padding: 18px;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}
