/* Category Page Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb nav a:hover {
    color: #96722E;
}

.breadcrumb nav span:last-child {
    color: #0A4B3E;
    font-weight: 500;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}

.category-header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

.category-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #0A4B3E;
    margin-bottom: 15px;
    line-height: 1.2;
}

.category-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 600px;
}

.category-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.products-count {
    font-size: 1rem;
    font-weight: 500;
    color: #96722E;
    padding: 8px 16px;
    background: rgba(10, 75, 62, 0.1);
    border-radius: 20px;
}

/* Main Content */
.category-main {
    padding: 40px 0 80px;
}

.category-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.category-sidebar {
    position: sticky;
    top: 100px;
}

.filter-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title i {
    color: #d4a574;
}

.filter-group {
    margin-bottom: 30px;
}

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

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-option:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.filter-option.active {
    background: rgba(212, 165, 116, 0.1);
    color: #d4a574;
    border-color: rgba(212, 165, 116, 0.3);
    font-weight: 500;
}

/* Price Filter */
.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-input label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
}

.price-input input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.price-input input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.btn-apply-filter,
.btn-clear-filter {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-apply-filter {
    background: #d4a574;
    color: white;
}

.btn-apply-filter:hover {
    background: #c19654;
    transform: translateY(-1px);
}

.btn-clear-filter {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-clear-filter:hover {
    background: #dc3545;
    color: white;
    text-decoration: none;
}

/* Quick Price Ranges */
.quick-price-ranges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-range-option {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #6c757d;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-range-option:hover {
    background: #d4a574;
    color: white;
    text-decoration: none;
    border-color: #d4a574;
}

/* Products Content */
.products-content {
    min-height: 600px;
}

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-mode {
    display: flex;
    gap: 5px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2px;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #d4a574;
    color: white;
}

.results-info {
    font-size: 14px;
    color: #6c757d;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-dropdown select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #d4a574;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    align-items: center;
}

.products-grid.list-view .product-image {
    height: 200px;
}

.products-grid.list-view .product-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

/* Product Card - inherits from homepage.css but with some overrides */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-add-to-wishlist,
.btn-quick-view {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-add-to-wishlist:hover,
.btn-quick-view:hover {
    background: #d4a574;
    color: white;
    transform: scale(1.1);
}

.btn-add-to-wishlist.active {
    background: #dc3545;
    color: white;
}

.product-details {
    padding: 25px;
    text-align: center;
}

.product-name {
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #d4a574;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: #6c757d;
}

.product-price {
    margin-bottom: 20px;
    font-weight: 600;
}

.sale-price {
    font-size: 1.3rem;
    color: #dc3545;
    margin-right: 8px;
}

.regular-price {
    font-size: 1.1rem;
    color: #6c757d;
    text-decoration: line-through;
}

.current-price {
    font-size: 1.3rem;
    color: #333;
}

.product-actions {
    margin-top: 15px;
}

.btn-add-to-cart,
.btn-out-of-stock {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-add-to-cart {
    background: #d4a574;
    color: white;
}

.btn-add-to-cart:hover {
    background: #c19654;
    transform: translateY(-2px);
}

.btn-out-of-stock {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f8f9fa;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn,
.pagination-number {
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover,
.pagination-number:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.pagination-number.active {
    background: #d4a574;
    color: white;
    border-color: #d4a574;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-products-icon {
    margin-bottom: 30px;
}

.no-products-icon i {
    font-size: 4rem;
    color: #dee2e6;
}

.no-products h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.no-products p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-products-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-clear-filters,
.btn-browse-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-clear-filters {
    background: #dc3545;
    color: white;
}

.btn-clear-filters:hover {
    background: #c82333;
    text-decoration: none;
    color: white;
}

.btn-browse-all {
    background: #d4a574;
    color: white;
}

.btn-browse-all:hover {
    background: #c19654;
    text-decoration: none;
    color: white;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Category Banner */
.category-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d4a574" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4a574" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d4a574" opacity="0.1"/><circle cx="20" cy="80" r="0.5" fill="%23d4a574" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-text p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.banner-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(212, 165, 116, 0.2);
    transform: translateY(-2px);
}

.feature i {
    font-size: 1.2rem;
    color: #d4a574;
    width: 20px;
    text-align: center;
}

.feature span {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.banner-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-image:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
}

.offer-badge {
    background: linear-gradient(135deg, #d4a574 0%, #c19654 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.4);
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.offer-badge:hover {
    transform: rotate(0deg) scale(1.05);
}

.offer-text {
    display: block;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 5px;
}

.offer-percentage {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.offer-subtext {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* Promotional Strip */
.promotional-strip {
    background: #fff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 25px 0;
}

.promo-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(212, 165, 116, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.promo-item:hover {
    background: rgba(212, 165, 116, 0.1);
    transform: translateY(-2px);
}

.promo-item i {
    font-size: 1.5rem;
    color: #d4a574;
    width: 30px;
    text-align: center;
}

.promo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-text strong {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.promo-text span {
    font-size: 13px;
    color: #6c757d;
}

/* Promotional Strip Responsive */
@media (max-width: 768px) {
    .promotional-strip {
        padding: 20px 0;
    }
    
    .promo-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .promo-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .promo-item i {
        width: auto;
    }
}

@media (max-width: 576px) {
    .promo-content {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .promo-item {
        padding: 10px;
        gap: 8px;
    }
    
    .promo-item i {
        font-size: 1.2rem;
    }
    
    .promo-text strong {
        font-size: 13px;
    }
    
    .promo-text span {
        font-size: 12px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .category-content {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .category-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-sidebar {
        position: static;
        order: 2;
    }
    
    .products-content {
        order: 1;
    }
    
    .filter-section {
        padding: 25px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .category-banner {
        padding: 50px 0;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .banner-text h2 {
        font-size: 2.2rem;
    }
    
    .banner-image {
        height: 350px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .banner-features {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 40px 0;
    }
    
    .category-header-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .category-image {
        margin: 0 auto;
    }
    
    .category-title {
        font-size: 2.2rem;
    }
    
    .products-toolbar {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .toolbar-left {
        justify-content: space-between;
    }
    
    .sort-dropdown select {
        min-width: auto;
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid.list-view .product-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .no-products-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .category-main {
        padding: 30px 0 60px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .filter-section {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .price-inputs {
        gap: 15px;
    }
    
    .view-mode {
        display: none;
    }
    
    .banner-content {
        gap: 30px;
    }
    
    .banner-text h2 {
        font-size: 1.6rem;
    }
    
    .feature {
        padding: 12px;
    }
    
    .feature span {
        font-size: 13px;
    }
    
    .banner-image {
        height: 250px;
    }
}
