/* ================================
   SHOP PAGE SPECIFIC STYLES
   ================================ */

/* ===== SHOP HERO ===== */
.page-hero {
    height: 400px;
    background: linear-gradient(rgba(44, 44, 44, 0.5), rgba(44, 44, 44, 0.5)),
                url('../images/breadcrumb.jpg') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: clamp(48px, 6vw, 72px);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.breadcrumb {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--secondary-color);
}


/* ===== SHOP SECTION ===== */
.shop-section {
    padding: 60px 0 100px;
    background-color: var(--white);
}

.container-shop {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
}

/* ===== SIDEBAR ===== */
.shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background-color: var(--bg-cream);
    padding: 30px 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-dark);
    letter-spacing: 1px;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Search Form */
.search-form {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--font-primary);
}

.search-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background-color: var(--text-dark);
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 15px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 0;
    transition: var(--transition);
}

.category-link:hover,
.category-link.active {
    color: var(--primary-color);
}

.category-link .count {
    font-size: 12px;
    color: var(--text-light);
}

/* Price Filter */
.price-filter {
    margin-top: 20px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 13px;
    font-family: var(--font-primary);
}

.price-separator {
    color: var(--text-light);
}

.btn-filter {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    font-size: 12px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn-filter:hover {
    background-color: var(--text-dark);
}

/* Recent Products */
.recent-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-product-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.recent-product-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.recent-product-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

.recent-product-info .rating {
    font-size: 11px;
    color: var(--gold);
    margin-bottom: 5px;
}

.recent-product-info .price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.recent-product-info .price del {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 5px;
}

/* Banner Widget */
.banner-widget {
    padding: 0;
    overflow: hidden;
}

.banner-content {
    position: relative;
    height: 300px;
}

.banner-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.banner-overlay h4 {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.banner-overlay p {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

/* ===== MAIN SHOP AREA ===== */
.shop-main {
    min-height: 800px;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.showing-results {
    font-size: 14px;
    color: var(--text-light);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.view-btn:hover,
.view-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-primary);
    background-color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.shop-product-card {
    background-color: var(--bg-cream);
    transition: var(--transition);
    position: relative;
}

.shop-product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-cream);
    height: 350px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-product-card:hover .product-img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    z-index: 2;
}

.product-badge.sale {
    background-color: #e74c3c;
}

.product-badge.new {
    background-color: #27ae60;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.shop-product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 42px;
    height: 42px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.product-info {
    padding: 25px 20px;
    text-align: center;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 400;
}

.product-price {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price del {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 8px;
    font-size: 14px;
}

.product-info .rating {
    font-size: 13px;
    color: var(--gold);
}

/* List View */
.products-grid.list-view .shop-product-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.products-grid.list-view .product-image-wrapper {
    height: 250px;
}

.products-grid.list-view .product-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn,
.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 14px;
}

.page-btn:hover:not(:disabled),
.page-number:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-number.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section-shop {
    padding: 80px 0;
    background-color: var(--accent-color);
    text-align: center;
}

.newsletter-brand-shop {
    margin-bottom: 25px;
}

.newsletter-logo-shop {
    font-size: 28px;
    letter-spacing: 4px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.newsletter-tagline-shop {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.newsletter-title-shop {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 30px;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.newsletter-form-shop {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: var(--white);
}

.newsletter-input-shop {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 14px;
    outline: none;
    font-family: var(--font-primary);
}

.btn-newsletter-shop {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-newsletter-shop:hover {
    background-color: var(--text-dark);
}

/* ===== FOOTER SHOP ===== */
.footer-grid-shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column-shop h3 {
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: var(--font-primary);
    font-weight: 700;
}

.footer-links-shop {
    list-style: none;
}

.footer-links-shop li {
    margin-bottom: 10px;
}

.footer-links-shop a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links-shop a:hover {
    color: var(--white);
}

.footer-bottom-shop {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--white);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container-shop {
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }
}

@media (max-width: 968px) {
    .container-shop {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .toolbar-right {
        flex-direction: column;
        gap: 15px;
    }
    
    .sort-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        height: 250px;
    }
    
    .shop-sidebar {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .shop-product-card {
        grid-template-columns: 1fr;
    }
    
    .product-image-wrapper {
        height: 300px;
    }
    
    .newsletter-form-shop {
        flex-direction: column;
    }
    
    .newsletter-input-shop {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .footer-grid-shop {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .product-image-wrapper {
        height: 250px;
    }
    
    .action-btn {
        width: 38px;
        height: 38px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn,
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}