/* Gallery Component Complete Styles */
/* Path: /app/assets/css/gallery-component.css */

:root {
    --golden-ratio: 1.618;
    --golden-inverse: 0.618;
    --text-reduction: 0.65;
    --forest-green: #138a36;
    --spring-green: #18ff6d;
    --black-olive: #34403a;
    --honeydew: #e4f2e9;
    --ash-gray: #b4d0bf;
}

/* Gallery Container */
.gallery-wrapper {
    background: linear-gradient(135deg, var(--honeydew) 0%, #f0f0f0 100%);
    min-height: 100vh;
    padding-top: calc(2rem * var(--golden-ratio));
    padding-bottom: calc(2rem * var(--golden-ratio));
}

/* Gallery Title - Main Header */
.gallery-golden-title {
    font-size: calc(2.5rem * var(--golden-ratio) * var(--text-reduction));
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--spring-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: calc(2rem * var(--golden-inverse) * var(--text-reduction));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gallery-golden-subtitle {
    font-size: calc(1.125rem * var(--text-reduction));
    color: var(--black-olive);
    text-align: center;
    max-width: calc(600px * var(--text-reduction));
    margin: 0 auto calc(3rem * var(--text-reduction));
    opacity: 0.8;
}

/* Section Titles */
.section-title {
    font-size: calc(2rem * var(--golden-ratio) * var(--text-reduction));
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--spring-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Featured Product Card */
.product-card {
    background: white;
    border-radius: calc(1rem * var(--golden-inverse));
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.382s cubic-bezier(0.382, 0, 0.618, 1);
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(19, 138, 54, 0.15);
}

/* Featured Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.product-image {
    position: absolute;
    margin: 5%;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    transition: transform 0.618s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
    animation: float-subtle 3s ease-in-out infinite;
}

@keyframes float-subtle {
    0%, 100% { transform: scale(1.1) translateY(0); }
    50% { transform: scale(1.1) translateY(-5px); }
}

/* Featured Product Info */
.product-info {
    padding: calc(1.5rem * var(--text-reduction));
}

.product-name {
    font-size: calc(1.25rem * var(--text-reduction));
    font-weight: 600;
    color: var(--black-olive);
    margin-bottom: calc(0.5rem * var(--text-reduction));
}

.product-price {
    font-size: calc(1.5rem * var(--text-reduction));
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: calc(1rem * var(--text-reduction));
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(2rem * var(--golden-inverse));
    margin-bottom: calc(4rem * var(--golden-ratio));
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* All Products Section */
.all-products-section {
    background: white;
    border-radius: calc(2rem * var(--golden-inverse));
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Grid Product Card */
.product-grid-card {
    background: white;
    border-radius: calc(1rem * var(--golden-inverse));
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.382s cubic-bezier(0.382, 0, 0.618, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(19, 138, 54, 0.15);
}

/* Grid Product Image */
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.618s ease;
}

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

/* Grid Product Info */
.product-info-section {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name-grid {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black-olive);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-grid {
    font-size: calc(1.875rem * var(--golden-ratio) * 0.618);
    font-weight: 700;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--spring-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 5;
}

.stock-badge.in-stock {
    background: linear-gradient(135deg, var(--forest-green), var(--spring-green));
    color: white;
}

.stock-badge.out-stock {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    color: white;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 10px;
    left: 100px;
    z-index: 5;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.382s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wishlist-btn.active {
    background: linear-gradient(135deg, #fff 0%, #ffe0e6 100%);
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-expand {
    flex: 1;
    background: white;
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
    padding: 0.618rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.382s ease;
}

.btn-expand:hover {
    background: var(--forest-green);
    color: white;
    transform: scale(1.05);
}

.btn-add-cart {
    flex: 2;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--spring-green) 100%);
    color: white;
    border: none;
    padding: 0.618rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.382s ease;
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(19, 138, 54, 0.3);
}

.btn-add-cart:disabled {
    background: var(--ash-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: calc(1rem * var(--golden-inverse));
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn {
    background: white;
    color: var(--black-olive);
    border: 2px solid var(--ash-gray);
    padding: 0.618rem 1.618rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.382s ease;
    margin: 0.25rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--spring-green) 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

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

.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--forest-green);
    border-radius: 8px;
    padding: 0.618rem 1rem;
    font-weight: 600;
    transition: all 0.382s ease;
}

.page-link:hover {
    background: var(--forest-green);
    color: white;
    border-color: var(--forest-green);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--spring-green) 100%);
    border-color: transparent;
}

/* Results Counter */
.results-counter {
    text-align: center;
    color: var(--black-olive);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Modal Styles */
.product-modal .modal-dialog {
    max-width: 800px;
}

.product-modal .modal-content {
    border-radius: calc(1rem * var(--golden-inverse));
    overflow: hidden;
}

.product-modal .product-modal-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
}

.product-modal-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--spring-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 5rem 0;
}

.no-products i {
    color: var(--ash-gray);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-golden-title {
        font-size: 2rem;
    }
    
    .product-img-wrapper {
        height: 200px;
    }
    
    .product-price-grid {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-expand {
        width: 100%;
    }
}

