/* ============================================
   SHOP PAGE - MODERN ECOMMERCE (NO BORDERS, SQUARE EDGES)
   ============================================ */

/* Shop Hero - Enhanced */
.shop-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.shop-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.shop-hero-subtitle {
    font-size: 18px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shop Main Container */
.shop-main {
    padding: 40px 0 80px;
    background: #ffffff;
}

/* Enhanced Search & Filter Bar */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 0 0 32px 0;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    position: relative;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.shop-search {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 2px solid #eef2f6;
    border-radius: 56px;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.shop-search:hover {
    border-color: #cbd5e1;
}

.shop-search:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.shop-search:focus + .search-icon {
    color: #2563eb;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    background: #ffffff;
    border: 2px solid #eef2f6;
    padding: 14px 28px;
    border-radius: 56px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.filter-toggle-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.filter-toggle-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.filter-toggle-btn:hover i {
    transform: rotate(90deg);
    color: white;
}

/* Category Filters Wrapper */
.category-filters-wrapper {
    background: #ffffff;
    border: 1px solid #eef2f6;
    margin-bottom: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.category-filters-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #fafcff;
    border-bottom: 1px solid #eef2f6;
}

.category-filters-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

.close-filters {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-filters:hover {
    background: #f1f5f9;
    color: #ef4444;
}

/* Category Filters Grid */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px;
}

.category-btn {
    background: #f8fafc;
    border: none;
    padding: 10px 24px;
    border-radius: 48px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.category-btn:hover::before {
    width: 100%;
    height: 100%;
}

.category-btn:hover {
    background: #eef2ff;
    color: #2563eb;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.category-btn.active:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Active Filters Section */
.active-filters {
    margin-bottom: 28px;
    min-height: 44px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    color: #2563eb;
    padding: 8px 16px 8px 20px;
    border-radius: 48px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.active-filter-tag i {
    font-size: 12px;
}

.remove-filter {
    cursor: pointer;
    font-size: 18px;
    margin-left: 4px;
    transition: all 0.2s ease;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.remove-filter:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

/* Results Count */
.results-count {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    padding: 8px 0;
    border-bottom: 2px solid #eef2f6;
}

.results-count i {
    font-size: 18px;
    color: #2563eb;
}

.results-count span {
    font-weight: 700;
    color: #2563eb;
    font-size: 16px;
}

/* ============================================
   PRODUCTS GRID - NO BORDERS, SQUARE EDGES
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 8px;
}

/* Product Card - NO BORDER, SQUARE EDGES */
.product-card {
    background: #ffffff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
}

/* Product Image Container - SQUARE */
.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f8fafc;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Product Info */
.product-info {
    padding: 16px;
}

.product-category {
    font-size: 11px;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: inline-block;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 14px;
}

.product-price span {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
}

/* Product Button - SQUARE EDGES */
.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.product-btn i {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.product-btn:hover {
    background: #2563eb;
    color: white;
}

.product-btn:hover i {
    transform: translateX(4px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 40px;
    background: #fafcff;
    margin: 40px 0;
}

.no-results i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 24px;
    display: inline-block;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.no-results p {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 16px;
}

#clearFiltersBtn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clearFiltersBtn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 80px;
    font-size: 16px;
    color: #64748b;
    grid-column: 1 / -1;
}

.loading-spinner i {
    font-size: 32px;
    color: #2563eb;
    margin-bottom: 16px;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE SHOP PAGE - MODERN ECOMMERCE
   ============================================ */

/* Desktop (1200px+) - 4 columns */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* Desktop Small (992px - 1199px) - 3 columns */
@media (max-width: 1199px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .shop-hero-title {
        font-size: 48px;
    }
}

/* Tablet (768px - 991px) - 3 columns */
@media (max-width: 991px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .shop-hero {
        padding: 60px 0 40px;
    }
    
    .shop-hero-title {
        font-size: 42px;
    }
}

/* Mobile (481px - 768px) - 2 COLUMNS SIDE BY SIDE */
@media (max-width: 768px) {
    .shop-hero {
        padding: 48px 0 32px;
    }
    
    .shop-hero-title {
        font-size: 32px;
    }
    
    .shop-hero-subtitle {
        font-size: 15px;
        padding: 0 20px;
    }
    
    .shop-main {
        padding: 24px 0 60px;
    }
    
    .shop-controls {
        margin-bottom: 24px;
        gap: 16px;
    }
    
    .search-wrapper {
        max-width: none;
        flex: 1;
    }
    
    .shop-search {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
    }
    
    .filter-toggle-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    /* Mobile Filter Drawer */
    .category-filters-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        z-index: 2000;
        margin: 0;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 25px rgba(0, 0, 0, 0.15);
    }
    
    .category-filters-wrapper.open {
        left: 0;
    }
    
    .category-filters-header {
        display: flex;
    }
    
    .category-filters {
        flex-direction: column;
        padding: 20px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 8px;
    }
    
    .category-btn {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        border-radius: 48px;
    }
    
    .filter-toggle-btn {
        display: flex;
    }
    
    /* 2 COLUMNS ON MOBILE */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-category {
        font-size: 9px;
        margin-bottom: 6px;
    }
    
    .product-name {
        font-size: 13px;
        min-height: 36px;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .product-price span {
        font-size: 11px;
    }
    
    .product-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .product-btn i {
        font-size: 10px;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }
    
    .results-count {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .no-results {
        padding: 50px 24px;
    }
    
    .no-results i {
        font-size: 48px;
    }
    
    .no-results h3 {
        font-size: 20px;
    }
}

/* Small Mobile (361px - 480px) - 2 COLUMNS */
@media (max-width: 480px) {
    .shop-hero-title {
        font-size: 28px;
    }
    
    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .filter-toggle-btn {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 12px;
        min-height: 34px;
    }
    
    .product-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .product-price span {
        font-size: 10px;
    }
    
    .product-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .product-category {
        font-size: 8px;
    }
    
    .active-filter-tag {
        font-size: 12px;
        padding: 6px 12px 6px 16px;
    }
}

/* Very Small Mobile (under 360px) - still 2 COLUMNS */
@media (max-width: 360px) {
    .products-grid {
        gap: 10px;
    }
    
    .product-name {
        font-size: 11px;
        min-height: 30px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    .product-btn {
        padding: 5px 8px;
        font-size: 9px;
    }
}

/* Desktop (min-width: 769px) */
@media (min-width: 769px) {
    .filter-toggle-btn {
        display: none;
    }
    
    .category-filters-wrapper {
        display: block !important;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .shop-main .container {
        max-width: 1400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
    
    .shop-hero-title {
        font-size: 64px;
    }
    
    .shop-hero-subtitle {
        font-size: 20px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .product-price {
        font-size: 20px;
    }
}