/* Products Page Styles */
.products-hero {
    padding: 10rem 3rem 6rem;
    background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
    text-align: center;
    margin-top: 80px;
}

.products-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.products-hero-content p {
    font-size: 1.2rem;
    color: var(--primary-grey);
    letter-spacing: 1px;
}

.products-shop {
    padding: 6rem 3rem;
    background: var(--white);
}

.products-shop-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Filters */
.products-filters {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.products-filters h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-black);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary-black);
    background: var(--primary-black);
    color: var(--white);
}

.filter-btn.active {
    background: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Products Grid Shop */
.products-grid-shop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-black);
}

.product-image-container {
    width: 100%;
    height: 300px;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-like-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-like-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.product-like-btn i {
    color: #999;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.product-like-btn.liked i {
    color: #e74c3c;
}

.product-like-btn .like-count {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--primary-black);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.filter-btn-liked {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
}

.filter-btn-liked:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.product-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-black);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-grey);
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
    letter-spacing: 1px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--primary-grey);
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 40px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.product-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-view {
    flex: 1;
    min-width: 120px;
    padding: 0.9rem 1.2rem;
    background: transparent;
    border: 1px solid var(--primary-black);
    color: var(--primary-black);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-view:hover {
    background: var(--primary-black);
    color: var(--white);
}

.btn-buy {
    flex: 1;
    min-width: 120px;
    padding: 0.9rem 1.2rem;
    background: var(--primary-black);
    border: 1px solid var(--primary-black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-buy:hover {
    background: transparent;
    color: var(--primary-black);
}

.btn-view i,
.btn-buy i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Product Modal */
.product-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);
    animation: fadeIn 0.3s ease;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    margin: auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-grey);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-grey);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-black);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-black);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--white);
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--primary-black);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-product-image {
    width: 100%;
    height: 400px;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.modal-product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-product-info h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.modal-product-category {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-grey);
    margin-bottom: 1.5rem;
}

.modal-product-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.modal-product-description {
    font-size: 1rem;
    color: var(--primary-grey);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-product-details {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-grey);
    border-left: 3px solid var(--primary-black);
}

.modal-product-details h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.modal-product-details ul {
    list-style: none;
    padding: 0;
}

.modal-product-details li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--primary-black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-product-details li:last-child {
    border-bottom: none;
}

.modal-product-details li strong {
    color: var(--primary-black);
    margin-right: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-modal-buy {
    flex: 1;
    min-width: 200px;
    padding: 1.2rem 2rem;
    background: var(--primary-black);
    border: 2px solid var(--primary-black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-modal-buy:hover {
    background: transparent;
    color: var(--primary-black);
}

.btn-modal-whatsapp {
    flex: 1;
    min-width: 200px;
    padding: 1.2rem 2rem;
    background: #25D366;
    border: 2px solid #25D366;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-modal-whatsapp:hover {
    background: transparent;
    color: #25D366;
}

.btn-modal-buy i,
.btn-modal-whatsapp i {
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Tablet and Medium Screens */
@media (max-width: 1024px) {
    .products-grid-shop {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .product-actions {
        flex-direction: row;
    }

    .btn-view,
    .btn-buy {
        flex: 1;
        min-width: 0;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .products-hero {
        padding: 8rem 2rem 4rem;
    }

    .products-shop {
        padding: 4rem 2rem;
    }

    .products-grid-shop {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }

    .filter-buttons {
        gap: 0.8rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-view,
    .btn-buy {
        width: 100%;
        min-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 2rem;
    }

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

    .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-modal-buy,
    .btn-modal-whatsapp {
        width: 100%;
        min-width: 100%;
    }

    .modal-content {
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 7rem 1.5rem 3rem;
    }

    .products-shop {
        padding: 3rem 1.5rem;
    }

    .products-grid-shop {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .products-filters h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .filter-buttons {
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.7rem;
    }

    .filter-btn i {
        font-size: 0.7rem;
    }

    .product-image-container {
        height: 250px;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-height: 98vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-product-image {
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .modal-product-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .products-hero {
        padding: 6rem 1rem 2rem;
    }

    .products-hero-content h1 {
        font-size: 2rem;
    }

    .products-hero-content p {
        font-size: 1rem;
    }

    .products-shop {
        padding: 2rem 1rem;
    }

    .products-grid-shop {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-filters {
        margin-bottom: 2rem;
    }

    .products-filters h3 {
        font-size: 1.2rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.65rem;
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }

    .filter-btn span {
        display: none;
    }

    .product-image-container {
        height: 220px;
    }

    .product-info {
        padding: 1.2rem;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-view,
    .btn-buy {
        width: 100%;
        padding: 0.9rem 1.2rem;
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .modal-product-image {
        height: 200px;
        margin-bottom: 1rem;
    }

    .modal-product-info h2 {
        font-size: 1.5rem;
    }

    .modal-product-details {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .modal-product-details h3 {
        font-size: 1.1rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-modal-buy,
    .btn-modal-whatsapp {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }
}

