/* Shop Page Layout */
.shop-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Header Area (Hero Style) */
.shop-header {
    background-color: #0f172a;
    /* Dark Premium Background */
    padding-top: 30px;
    padding-bottom: 30px;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shop-header__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.shop-header__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.shop-header__results {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Search Bar */
.shop-search {
    padding: 0 20px;
    margin-bottom: 15px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.2s;
}

.search-input-group input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.search-input-group input::placeholder {
    color: #94a3b8;
}

.search-input-group button {
    position: absolute;
    right: 8px;
    background: transparent;
    color: #3b82f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-input-group button:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

/* Horizontal Categories Scroll */
.filters-section {
    padding: 10px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    /* Space for scrollbar if visible or touch target */
}

.filters-section::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.filter-chip:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.filter-chip.active {
    background: #0f172a;
    color: #fff !important;
    border-color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

/* Sort Bar */
.sort-bar {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    background: #fff;
}

.sort-chip {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.sort-chip:hover {
    color: #64748b;
}

.sort-chip.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

/* Products Grid */
.products-container {
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile first: 2 cols */
    gap: 15px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1350px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

/* Product Card Override/Enhancement */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-card__image {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f8fafc;
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__category {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
    /* Force height for 2 lines alignment */
}

.product-card__price-section {
    margin-top: auto;
}

.product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.product-card__price--old {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.pagination-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}