/* =============================================
   CATALOG PAGE STYLES
   ============================================= */

/* Mobile bottom padding for nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.15) 0%, rgba(0, 102, 255, 0.1) 50%, rgba(26, 26, 46, 0.15) 100%),
                url('../../images/hero/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(0, 102, 255, 0.2) 50%, rgba(26, 26, 46, 0.5) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

/* Catalog Filters */
.catalog-filters {
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(240, 242, 250, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    color: #0a0e27;
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
    color: #0066ff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

/* Catalog Section */
.catalog-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(248, 249, 255, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

@media (max-width: 768px) {
    .catalog-section {
        padding: 50px 20px 100px;
    }
}

.catalog-category {
    margin-bottom: 80px;
    animation: fadeInUp 0.6s ease;
}

.catalog-category.hidden {
    display: none;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.category-header p {
    font-size: 1.1rem;
    color: #666;
    opacity: 0.8;
    margin-top: 15px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.product-specs {
    background: rgba(0, 102, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
}

.product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li {
    font-size: 0.9rem;
    color: #333;
    padding: 6px 0;
    line-height: 1.4;
}

.product-specs li:before {
    content: '✓ ';
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

.btn-details {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.btn-details:active {
    transform: translateY(0);
}

/* CTA Section */
.catalog-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.08) 100%);
    border-top: 2px solid rgba(0, 102, 255, 0.2);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-buttons .btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.cta-buttons .btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.3);
}

.cta-buttons .btn.whatsapp {
    background: #25D366;
    color: white;
}

.cta-buttons .btn.whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
}

.cta-buttons .btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Large Tablets (1024px and below) */
@media (max-width: 1024px) {
    .page-header {
        padding: 70px 20px;
        min-height: 350px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .catalog-filters {
        padding: 35px 20px;
    }

    .filter-group {
        gap: 10px;
    }

    .filter-btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }

    .category-header h2 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }

    .product-image {
        height: 200px;
    }

    .catalog-cta {
        padding: 70px 20px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px;
        min-height: 300px;
        background-attachment: scroll;
        margin-top: 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .catalog-filters {
        padding: 30px 20px;
    }

    .filter-group {
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .category-header {
        margin-bottom: 40px;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .category-header p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 20px;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-desc {
        font-size: 0.9rem;
    }

    .product-specs {
        padding: 12px;
    }

    .product-specs li {
        font-size: 0.85rem;
        padding: 4px 0;
    }

    .btn-details {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .catalog-cta {
        padding: 50px 20px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        gap: 12px;
    }

    .cta-buttons .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
    .page-header {
        padding: 50px 15px;
        min-height: 280px;
        margin-top: 65px;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .catalog-filters {
        padding: 25px 15px;
    }

    .filter-group {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .category-header h2 {
        font-size: 1.3rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 170px;
    }

    .catalog-cta {
        padding: 40px 15px;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .page-header {
        padding: 40px 15px;
        min-height: 250px;
        margin-top: 65px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .page-header-content {
        max-width: 100%;
    }

    .catalog-filters {
        padding: 20px 15px;
    }

    .filter-group {
        flex-direction: column;
        gap: 10px;
    }

    .filter-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .category-header {
        margin-bottom: 30px;
    }

    .category-header h2 {
        font-size: 1.2rem;
    }

    .category-header p {
        font-size: 0.85rem;
        margin-top: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 200px;
    }

    .product-badge {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .product-desc {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .product-specs {
        padding: 10px;
        margin-bottom: 15px;
    }

    .product-specs ul {
        padding: 0;
    }

    .product-specs li {
        font-size: 0.8rem;
        padding: 3px 0;
    }

    .btn-details {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .catalog-cta {
        padding: 35px 15px;
    }

    .cta-content {
        padding: 0 10px;
    }

    .cta-content h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* =============================================
   PRODUCT MODAL STYLES
   ============================================= */

.product-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.product-modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

.product-modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
    animation: slideUpModal 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.modal-close:hover {
    background: rgba(0, 102, 255, 0.2);
    color: var(--primary);
    transform: scale(1.1);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    position: relative;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.modal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-specs {
    background: rgba(0, 102, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
}

.modal-specs h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.specs-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-content li {
    font-size: 0.95rem;
    color: #333;
    padding: 8px 0;
    line-height: 1.5;
}

.specs-content li:before {
    content: '✓ ';
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-actions .btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions .btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.modal-actions .btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.3);
}

.modal-actions .btn.whatsapp {
    background: #25D366;
    color: white;
}

.modal-actions .btn.whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.modal-actions .btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Modal Responsive */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .product-modal-overlay {
        padding: 20px;
    }

    .product-modal {
        max-width: 700px;
    }

    .modal-content {
        gap: 30px;
        padding: 30px;
    }

    .modal-image img {
        max-height: 350px;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }

    .modal-description {
        font-size: 0.95rem;
    }

    .modal-specs {
        padding: 15px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .product-modal-overlay {
        padding: 15px;
    }

    .product-modal {
        max-width: 90%;
        border-radius: 15px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
    }

    .modal-image {
        height: auto;
    }

    .modal-image img {
        max-height: 300px;
        width: 100%;
    }

    .modal-info h2 {
        font-size: 1.3rem;
    }

    .modal-description {
        font-size: 0.9rem;
    }

    .modal-specs {
        padding: 12px;
    }

    .modal-specs h4 {
        font-size: 0.95rem;
    }

    .specs-content li {
        font-size: 0.85rem;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
    .product-modal-overlay {
        padding: 15px;
    }

    .product-modal {
        max-width: 95%;
        border-radius: 12px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .modal-info h2 {
        font-size: 1.2rem;
    }

    .modal-description {
        font-size: 0.85rem;
    }

    .modal-specs {
        padding: 12px;
    }

    .modal-specs h4 {
        font-size: 0.9rem;
    }

    .specs-content li {
        font-size: 0.8rem;
    }

    .modal-close {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    .product-modal-overlay {
        padding: 10px;
        top: 0;
    }

    .product-modal {
        max-width: 100%;
        border-radius: 0;
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .modal-image {
        height: auto;
        min-height: 180px;
    }

    .modal-image img {
        max-height: 250px;
        width: 100%;
        object-fit: contain;
    }

    .modal-info h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .modal-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .modal-specs {
        padding: 10px;
        margin-bottom: 12px;
    }

    .modal-specs h4 {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .specs-content {
        padding-left: 0;
    }

    .specs-content li {
        font-size: 0.75rem;
        padding: 2px 0;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
    }

    .modal-actions .btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}
