/* Products Page Specific Styles */
:root {
    --gold: #d4af37;
    --black: #0a0a0a;
    --gray-dark: #1a1a1a;
    --gray-medium: #333333;
    --gray-light: #666666;
    --white: #ffffff;
    --white-soft: #f8f8f8;
}

/* Products Hero */
.products-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.page-description {
    font-size: 18px;
    color: var(--gray-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Products Content */
.products-content {
    padding: 60px 0;
    background: var(--gray-dark);
}

/* Products Controls */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--black);
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
}

.filters-section {
    display: flex;
    gap: 30px;
    align-items: end;
    flex-wrap: wrap;
}

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

.filter-group label {
    color: var(--gold);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    background: var(--gray-dark);
    color: var(--white);
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

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

.search-input {
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--gray-medium);
    background: var(--gray-dark);
    color: var(--white);
    font-size: 14px;
    min-width: 250px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
}

.search-group i {
    position: absolute;
    left: 15px;
    bottom: 15px;
    color: var(--gold);
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-option {
    background: var(--gray-dark);
    border: 1px solid var(--gray-medium);
    color: var(--gray-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-option:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.view-option.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.results-count {
    color: var(--gray-light);
    font-size: 14px;
}

/* Products Container */
.products-container {
    min-height: 400px;
    position: relative;
}

/* List View Styles */
.products-grid.list-view {
    grid-template-columns: 1fr !important;
}

.products-grid.list-view .product-card {
    display: flex;
    height: auto;
}

.products-grid.list-view .product-image-container {
    width: 300px;
    height: 250px;
    flex-shrink: 0;
}

.products-grid.list-view .product-details {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.list-view .product-name {
    font-size: 1.5rem;
}

.products-grid.list-view .product-description {
    display: block;
    margin-bottom: 15px;
}

.products-grid.list-view .product-actions {
    margin-top: auto;
    padding-top: 15px;
}

.products-grid.list-view .product-price {
    font-size: 1.3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

/* Responsive columns for products grid (products pages) */
@media (max-width: 1279px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid.list-view .product-image-container {
        width: 250px;
        height: 200px;
    }
}

@media (max-width: 991px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-controls {
        flex-direction: column;
        gap: 20px;
    }
    .view-controls {
        width: 100%;
        justify-content: space-between;
    }
    .filters-section {
        width: 100%;
        flex-wrap: wrap;
    }
    .filter-group, .search-group {
        flex: 1 1 200px;
    }
}

@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    .products-grid.list-view .product-image-container {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 575px) {
    .products-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .filters-section {
        flex-direction: column;
        gap: 15px;
    }
    .filter-group, .search-group {
        width: 100%;
    }
    .filter-select, .search-input {
        width: 100%;
    }
    .view-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.product-card {
    background: var(--black);
    border: 1px solid var(--gray-medium);
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    border-color: var(--gold);
}

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

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    background: var(--gold);
    color: var(--black);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.featured {
    background: var(--gold);
}

.badge.new {
    background: #28a745;
}

.product-info {
    padding: 22px 22px 20px;
}

.product-category {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-name {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.32;
}

.product-description {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.product-price {
    font-size: 20px;
    color: var(--gold);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.product-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-attribute {
    background: var(--gray-dark);
    color: var(--gray-light);
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid var(--gray-medium);
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray-light);
}

.loading-container .loading {
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-light);
}

.no-results i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 24px;
}

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

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

.page-btn {
    padding: 12px 16px;
    border: 1px solid var(--gray-medium);
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 44px;
    text-align: center;
}

.page-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    border-color: var(--gray-medium);
    color: var(--white);
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--black);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--gold);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
}

.close:hover {
    color: var(--white);
    background: var(--gold);
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-product-image {
    height: 500px;
}

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

.modal-product-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-category {
    color: var(--gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-product-name {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.modal-product-description {
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-product-price {
    font-size: 32px;
    color: var(--gold);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
}

.modal-product-meta {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-medium);
}

.meta-label {
    color: var(--gold);
    font-weight: 500;
}

.meta-value {
    color: var(--white);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.contact-btn {
    flex: 1;
    background: var(--gold);
    color: var(--black);
    padding: 15px 25px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .products-controls {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .filters-section {
        flex-direction: column;
        gap: 15px;
    }

    .filter-select,
    .search-input {
        min-width: auto;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .modal-product {
        grid-template-columns: 1fr;
    }

    .modal-product-image {
        height: 300px;
    }

    .modal-product-details {
        padding: 30px 20px;
    }

    .modal-product-name {
        font-size: 24px;
    }

    .modal-product-price {
        font-size: 26px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-hero {
        padding: 120px 0 40px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-description {
        font-size: 16px;
    }

    .products-content {
        padding: 40px 0;
    }

    .products-controls {
        padding: 20px;
    }

    .modal-product-details {
        padding: 20px 15px;
    }
}