/* 
 * Products Pages Unified Styles
 * Primary Color: #0fabd4
 */
 
 
 /* ===== FILTER SECTION - MOBILE OPTIMIZED ===== */
.filter-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(15, 171, 212, 0.2);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.filter-toggle-btn {
    display: none; /* Hidden on desktop */
    background: rgba(15, 171, 212, 0.2);
    border: 2px solid rgba(15, 171, 212, 0.5);
    color: #0fabd4;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle-btn:hover {
    background: rgba(15, 171, 212, 0.3);
    border-color: #0fabd4;
}

.toggle-icon {
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.filter-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.filter-buttons-wrapper {
    max-height: none;
    overflow: visible;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(15, 171, 212, 0.5);
    background: rgba(15, 171, 212, 0.1);
    color: #0fabd4;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0fabd4;
    color: white;
    border-color: #0fabd4;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.4);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
    .filter-section {
        padding: 1.25rem;
    }

    .filter-title {
        font-size: 1.2rem;
    }

    .filter-toggle-btn {
        display: flex;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .filter-buttons-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .filter-buttons-wrapper.show {
        max-height: 800px;
        opacity: 1;
        margin-top: 1rem;
    }

    .filter-buttons {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .filter-section {
        padding: 1rem;
        border-radius: 15px;
    }

    .filter-header {
        margin-bottom: 0;
    }

    .filter-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .filter-title i {
        font-size: 1rem;
    }

    .filter-toggle-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }

    .toggle-text {
        display: inline;
    }

    .filter-buttons-wrapper.show {
        max-height: 600px;
    }

    .filter-buttons {
        gap: 0.6rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 140px;
        justify-content: center;
    }

    .filter-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .filter-section {
        padding: 0.875rem;
        margin-bottom: 2rem;
    }

    .filter-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .filter-title {
        font-size: 1rem;
        text-align: center;
    }

    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    .filter-buttons-wrapper.show {
        max-height: 700px;
        margin-top: 0.75rem;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        flex: none;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }

    /*.filter-btn span {*/
        /*flex: 1;*/
        /*text-align: left;*/
    /*}*/
}

@media (max-width: 480px) {
    .filter-section {
        padding: 0.75rem;
    }

    .filter-title {
        font-size: 0.95rem;
    }

    .filter-title .me-3 {
        margin-right: 0.5rem !important;
    }

    .toggle-text {
        font-size: 0.75rem;
    }

    .filter-btn {
        padding: 0.7rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* ===== COMMON STYLES ===== */
.product-section,
.detail-section {
    background: #0f172a;
    min-height: 100vh;
    padding: 100px 0 50px;
}

.detail-section {
    padding: 120px 0 60px;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(15, 171, 212, 0.2);
}

.filter-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(15, 171, 212, 0.5);
    background: rgba(15, 171, 212, 0.1);
    color: #0fabd4;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0fabd4;
    color: white;
    border-color: #0fabd4;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.4);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 171, 212, 0.2);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(15, 171, 212, 0.3);
    border-color: rgba(15, 171, 212, 0.5);
}

.product-image-container {
    position: relative;
    height: 280px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.quick-view-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.product-card:hover .quick-view-overlay {
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-tag {
    background: #0fabd4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.60rem;
    font-weight: 600;
}

.product-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #0fabd4;
}

.spec-label {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.spec-value {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 171, 212, 0.2);
}

.view-details-btn {
    background: #0fabd4;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.4);
    color: white;
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #475569;
    font-size: 3rem;
}

.no-image-placeholder i {
    margin-bottom: 1rem;
}

.no-image-placeholder p {
    font-size: 1rem;
    margin: 0;
}

.no-products {
    text-align: center;
    color: #94a3b8;
    padding: 4rem 0;
    font-size: 1.2rem;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb-nav a {
    color: #0fabd4;
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-nav a:hover {
    color: #0c8db0;
}

.breadcrumb-nav span {
    color: #94a3b8;
    margin: 0 0.5rem;
}

.product-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    border: 1px solid rgba(15, 171, 212, 0.2);
    overflow: hidden;
}

.product-header-section {
    background: linear-gradient(135deg, rgba(15, 171, 212, 0.1) 0%, rgba(15, 171, 212, 0.05) 100%);
    padding: 3rem;
    border-bottom: 2px solid rgba(15, 171, 212, 0.3);
}

.product-model {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.product-categories-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-badge-large {
    background: #0fabd4;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.specs-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    padding: 3rem;
}

.image-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(15, 171, 212, 0.1);
}

.main-product-image {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(15, 171, 212, 0.1);
}

.main-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid rgba(15, 171, 212, 0.2);
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #0fabd4;
    transform: scale(1.05);
}

.specifications-grid {
    display: grid;
    gap: 1.5rem;
}

.spec-group {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(15, 171, 212, 0.1);
}

.spec-group-title {
    color: #0fabd4;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.spec-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0fabd4;
    transition: all 0.3s;
}

.spec-box:hover {
    background: rgba(15, 171, 212, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(15, 171, 212, 0.2);
}

.spec-label-detail {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.spec-value-detail {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.spec-unit {
    font-size: 1rem;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.highlight-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(15, 171, 212, 0.1) 0%, rgba(15, 171, 212, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(15, 171, 212, 0.3);
    text-align: center;
    transition: all 0.3s;
}

.highlight-box:hover {
    border-color: #0fabd4;
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.2);
}

.highlight-icon {
    font-size: 2.5rem;
    color: #0fabd4;
    margin-bottom: 1rem;
}

.highlight-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.highlight-label {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.applications-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(15, 171, 212, 0.1);
    margin-top: 2rem;
}

.applications-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.applications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.application-tag {
    background: rgba(15, 171, 212, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid rgba(15, 171, 212, 0.3);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== BUTTONS ===== */
.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(15, 171, 212, 0.3);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.back-btn:hover {
    background: #0fabd4;
    border-color: #0fabd4;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.3);
    color: white;
}

.download-spec-btn,
.get-quote-btn {
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
}

.get-quote-btn {
    background: linear-gradient(135deg, #0fabd4 0%, #0c8db0 100%);
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.4);
}

.get-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(15, 171, 212, 0.5);
    color: white;
}

.download-spec-btn {
    background: #0fabd4;
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.4);
}

.download-spec-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(15, 171, 212, 0.5);
    color: white;
}

/* ===== BOOTSTRAP MODAL CUSTOMIZATION ===== */

#quoteModal .modal-dialog {
    margin: 1.75rem auto;
    max-width: 800px;
}

#quoteModal .modal-content {
    border-radius: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(15, 171, 212, 0.3);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

#quoteModal .modal-header {
    border-radius: 18px 18px 0 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0fabd4 0%, #0c8db0 100%);
    border-bottom: 1px solid rgba(15, 171, 212, 0.3);
    flex-shrink: 0;
}

#quoteModal .modal-body {
    padding: 2rem;
    color: white;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    max-height: 450px !important;
    min-height: 450px !important;
}

/* FORCE lock body scroll when modal is open */
body.modal-open,
html.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.modal {
    overflow-y: auto !important;
}

.modal-open .modal {
    overflow-y: auto !important;
}

/* Ensure form elements don't cause issues */
#quoteModal .form-group {
    position: relative;
}

#quoteModal form {
    width: 100%;
}

/* Make sure scrollbar is visible */
#quoteModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#quoteModal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#quoteModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(15, 171, 212, 0.5);
    border-radius: 10px;
}

#quoteModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 171, 212, 0.8);
}

.product-info-box {
    background: rgba(15, 171, 212, 0.1);
    border: 2px solid rgba(15, 171, 212, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.product-info-box h3 {
    color: #0fabd4;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.product-info-box p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(15, 171, 212, 0.3);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0fabd4;
    background: rgba(15, 171, 212, 0.1);
    box-shadow: 0 0 0 3px rgba(15, 171, 212, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 171, 212, 0.2);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #0fabd4 0%, #0c8db0 100%);
    border: none;
    color: white;
    padding: 0.875rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(15, 171, 212, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 171, 212, 0.5);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .specs-container {
        grid-template-columns: 1fr;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
    }

    .spec-grid,
    .highlight-specs {
        grid-template-columns: 1fr;
    }

    .product-model {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .quote-modal-body {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== ADMIN LINK ===== */
.admin-link {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.admin-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.5);
    color: white;
}


/* ==========================================
   PRODUCTS PAGE PAGINATION STYLING
   Primary: Black (#000000)
   Secondary: #0fabd4
   ========================================== */

:root {
    /*--primary-color: #000000;*/
    --secondary-color: #0fabd4;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    /*--bg-dark: #0f172a;*/
    /*--bg-darker: #020617;*/
}


/* ==========================================
   PAGINATION STYLES
   ========================================== */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease;
}

.pagination-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.pagination-item {
    transition: all 0.3s ease;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    background: rgba(15, 171, 212, 0.1);
    border: 2px solid rgba(15, 171, 212, 0.2);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pagination-link:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(15, 171, 212, 0.2);
    box-shadow: 0 4px 12px rgba(15, 171, 212, 0.15);
}

.pagination-link i {
    font-size: 0.9rem;
}

/* Active Page */
.pagination-item.active .pagination-link {
    background: linear-gradient(135deg, var(--secondary-color), rgba(15, 171, 212, 0.8));
    border-color: var(--secondary-color);
    color: #000000;
    box-shadow: 0 8px 20px rgba(15, 171, 212, 0.3);
    font-weight: 700;
}

/* Disabled State */
.pagination-item.disabled .pagination-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(15, 171, 212, 0.05);
    border-color: rgba(15, 171, 212, 0.1);
    color: var(--text-muted);
}

.pagination-item.disabled .pagination-link:hover {
    border-color: rgba(15, 171, 212, 0.1);
    background: rgba(15, 171, 212, 0.05);
    box-shadow: none;
}

/* Page Info */
.pagination-info {
    text-align: center;
}

.page-info-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.page-info-text strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .product-section {
        padding: 60px 0;
    }

    .filter-section {
        padding: 25px;
        margin-bottom: 40px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 9px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .product-section {
        padding: 50px 0;
    }

    .filter-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .filter-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .filter-btn i {
        display: none;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
    }

    .pagination-list {
        gap: 6px;
    }

    .pagination-link {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .pagination-link span {
        display: none;
    }

    .pagination-item:nth-child(1) .pagination-link span,
    .pagination-item:nth-child(n+7) .pagination-link span {
        display: inline;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-section {
        padding: 40px 0;
    }

    .filter-section {
        padding: 15px;
        margin-bottom: 25px;
    }

    .filter-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image-container {
        height: 180px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-specs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .spec-item {
        padding: 8px;
    }

    .spec-label {
        font-size: 0.7rem;
    }

    .pagination-container {
        padding: 30px 15px;
        gap: 20px;
    }

    .pagination-list {
        gap: 4px;
        max-width: 100%;
        overflow-x: auto;
        padding: 10px 0;
    }

    .pagination-link {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .pagination-link span {
        display: none;
    }

    .pagination-item:nth-child(1) .pagination-link,
    .pagination-item:nth-child(n+7) .pagination-link {
        min-width: 45px;
    }

    .pagination-item:nth-child(1) .pagination-link span,
    .pagination-item:nth-child(n+7) .pagination-link span {
        display: inline;
    }

    .results-info {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .page-info-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 12px;
    }

    .product-image-container {
        height: 160px;
    }

    .product-info {
        padding: 15px;
    }

    .product-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .product-specs {
        gap: 6px;
        margin-bottom: 10px;
    }

    .spec-item {
        padding: 6px;
    }

    .view-details-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .pagination-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .pagination-list {
        gap: 3px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination-container {
    animation: fadeInUp 0.6s ease;
}



