.shop-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ===========================
   FILTER BAR
   =========================== */
.filter-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-section label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #666;
}

#sort-select {
    padding: 10px 16px;
    border: 1.5px solid #d4d4d4;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#sort-select:hover {
    border-color: #000;
}

#sort-select:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
    border-color: #000;
}

/* ===========================
   PRODUCTS GRID
   =========================== */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* ===========================
   PRODUCT CARD
   =========================== */
.shop-product-card {
    background: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.shop-product-card:hover {
    transform: translateY(-4px);
}

.shop-product-card:focus {
    outline: 2px solid #000;
    outline-offset: 4px;
}

.shop-product-card .product-image {
    position: relative;
    aspect-ratio: 1/1;
    background: #f9f9f9;
    overflow: hidden;
}

.shop-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Badge (Discount) */
.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ===========================
   PRODUCT INFO
   =========================== */
.shop-product-card .product-info {
    padding: 16px 0;
    text-align: center;
}

.shop-product-card .product-info h3 {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #e5e5e5;
    transition: border-color 0.2s ease;
}

.swatch.black {
    background: #000;
}

.swatch.white {
    background: #fff;
}

.swatch:hover {
    border-color: #000;
}

/* Price */
.shop-product-card .price {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.shop-product-card .current-price {
    color: #000;
    font-weight: 900;
}

.shop-product-card .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 968px) {
    .shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .shop-main {
        padding: 24px 16px 48px;
    }

    .filter-bar {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .sort-section {
        gap: 8px;
    }

    .sort-section label {
        font-size: 11px;
    }

    #sort-select {
        padding: 8px 12px;
        font-size: 11px;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .shop-product-card .product-info h3 {
        font-size: 13px;
    }

    .shop-product-card .price {
        font-size: 13px;
    }

    .product-badge {
        top: 12px;
        right: 12px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sort-section {
        width: 100%;
        justify-content: space-between;
    }

    #sort-select {
        flex: 1;
        max-width: 200px;
    }

    .shop-products-grid {
        gap: 12px;
    }

    .color-swatches .swatch {
        width: 14px;
        height: 14px;
    }
}

/* ===========================
   TOUCH DEVICE OPTIMIZATIONS
   =========================== */
@media (hover: none) and (pointer: coarse) {
    .shop-product-card:hover {
        transform: none;
    }

    .shop-product-card:active {
        opacity: 0.9;
        transform: scale(0.98);
    }
}