/* 
* Toys By Thomas - Store CSS
* Additional styles for the store page
*/

/* ===== STORE FILTERS SECTION ===== */
.store-filters {
    padding-top: 0;
}

.filter-sidebar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 25px;
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.filter-header h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
    color: var(--primary);
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-group h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.form-check {
    margin-bottom: 10px;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--gray);
    cursor: pointer;
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.price-slider {
    padding: 10px 0;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-range {
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary);
}

.form-range::-moz-range-thumb {
    background: var(--primary);
}

.price-value {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary);
}

.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-filter {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-circle);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.color-filter:hover, .color-filter.active {
    transform: scale(1.1);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}

/* ===== STORE HEADER ===== */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.store-search {
    flex: 1;
    max-width: 400px;
}

.store-search .input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.store-search .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.store-search .btn {
    padding: 0 20px;
}

.store-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-sort label {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.store-sort .form-select {
    width: auto;
    padding: 8px 35px 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    cursor: pointer;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: all var(--transition-medium);
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-badge.new {
    background-color: var(--primary);
    color: var(--white);
}

.product-badge.sale {
    background-color: #ff5252;
    color: var(--white);
}

.product-badge.bestseller {
    background-color: var(--secondary);
    color: var(--white);
}

.product-badge.limited {
    background-color: #9c27b0;
    color: var(--white);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-medium);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-medium);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background-color: var(--white);
    color: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.product-info h3 a {
    color: var(--dark);
    transition: all var(--transition-fast);
}

.product-info h3 a:hover {
    color: var(--primary);
}

.product-category {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.product-price {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.95rem;
    margin-right: 8px;
}

.price-current {
    color: #ff5252;
}

.product-rating {
    color: var(--secondary);
    font-size: 0.9rem;
}

.product-rating span {
    color: var(--gray);
    margin-left: 5px;
}

/* ===== PAGINATION ===== */
.store-pagination {
    margin-top: 50px;
}

.pagination {
    gap: 5px;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link {
    color: var(--primary);
    border-radius: var(--radius-md);
    padding: 8px 16px;
}

.page-link:hover {
    color: var(--primary);
    background-color: rgba(30, 136, 229, 0.1);
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 136, 229, 0.25);
}

/* ===== FEATURED COLLECTION ===== */
.featured-collection {
    background-color: var(--light);
    padding: var(--section-spacing) 0;
}

.featured-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.featured-overlay h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.featured-overlay p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.featured-details {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-details h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.featured-details p {
    margin-bottom: 30px;
}

.featured-highlights {
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.highlight-content p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* ===== PRODUCT SHOWCASE ===== */
.product-showcase {
    padding: var(--section-spacing) 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 600px;
}

.showcase-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.showcase-large {
    grid-row: span 2;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-medium);
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.showcase-content h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.showcase-large .showcase-content {
    padding: 30px;
}

.showcase-large .showcase-content h3 {
    font-size: 1.8rem;
}

.showcase-large .showcase-content p {
    margin-bottom: 20px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .store-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .store-search {
        max-width: 100%;
        width: 100%;
    }
    
    .showcase-grid {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .showcase-item {
        height: 300px;
    }
    
    .showcase-large {
        grid-row: auto;
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .featured-image {
        margin-bottom: 30px;
    }
    
    .featured-details {
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .product-image {
        height: 200px;
    }
    
    .showcase-item, .showcase-large {
        height: 250px;
    }
    
    .showcase-content h3, .showcase-large .showcase-content h3 {
        font-size: 1.2rem;
    }
}
