/* ==========================================================
   PRODUCT ARCHIVE PAGE - COMPLETE STYLES
   ========================================================== */

/* Container */
.products .container {
    padding: 0 20px !important;
    max-width: 1366px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* ===== MAIN LAYOUT ===== */
section.products {
    padding: 80px 0px;
}

section.products .main {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* ===== FILTERS SECTION ===== */
.products .filters {
    max-width: 280px;
    width: 100%;
    border-right: 1px solid rgb(194, 194, 194);
    padding-right: 30px;
}

.filters > h3 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 24px;
    font-family: 'Montserrat';
    font-weight: 500;
    padding-bottom: 16px;
    border-bottom: 1px solid rgb(194, 194, 194);
}

/* Applied Filters */
.applied-filters {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #FBC333;
}

.applied-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.applied-filters-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1C3F60;
    font-weight: 600;
}

.clear-all-btn {
    color: #FBC333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 10px;
    border: 1px solid #FBC333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #FBC333;
    color: #1C3F60;
}

.filter-tag {
    display: inline-block;
    background: #fff;
    padding: 5px 12px;
    margin: 0 8px 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-tag .remove,
.remove-filter {
    background: none;
    border: none;
    margin-left: 8px;
    color: #999;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.filter-tag .remove:hover,
.remove-filter:hover {
    color: #ff0000;
}

/* Choose Filters */
.choose-filters {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.choose-filters h4 {
    margin: 15px 0 10px 0;
    font-size: 14px;
    color: #333;
}

.choose-filters h4:first-child {
    margin-top: 0;
}

.choose-filters .category,
.choose-filters .brands {
    padding: 16px 0px;
    border-bottom: 1px solid #ccc;
}

.choose-filters .price h4 {
    padding-top: 16px;
}

.choose-filters label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.choose-filters label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 3px;
    position: relative;
}

.choose-filters label input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

.choose-filters label input[type="checkbox"]:checked::after {
    content: "\2713";
    color: #fff;
    font-size: 13px;
    position: absolute;
    left: 2px;
    top: -1px;
}

.choose-filters .category br {
    display: none;
}

/* Price Range */
.choose-filters .price .inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.choose-filters .price .inputs input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.apply-price-btn {
    padding: 5px 10px;
    background: #1C3F60;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-price-btn:hover {
    background: #FBC333;
    color: #1C3F60;
}

/* ===== PRODUCTS CONTENT ===== */
.products-content {
    max-width: 860px;
    width: 100%;
}

/* Header */
.product-content__header {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.breadcrumbs {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: #1C3F60;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #FBC333;
}

.products-content .details {
    width: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.products-content .details h1 {
    font-size: 24px;
    font-family: 'Montserrat';
    font-weight: 600;
    color: #1C3F60;
    margin: 0;
}

.products-content .details span {
    display: block;
    font-size: 16px;
    text-transform: capitalize;
    font-family: 'Montserrat';
    font-weight: 400;
    color: #666;
}

.sort-by {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

#sort-products {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6H0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    height: fit-content;
}

#sort-products:hover,
#sort-products:focus {
    border-color: #1C3F60;
}

/* Login Prompt */
.login-prompt {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.login-prompt h3 {
    color: #1C3F60;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.login-prompt p {
    color: #666;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.login-prompt .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.login-prompt .btn-primary {
    background: #1C3F60;
    color: white;
    margin-right: 10px;
}

.login-prompt .btn-primary:hover {
    background: #0f2a40;
}

.login-prompt .btn-secondary {
    background: #6c757d;
    color: white;
}

.login-prompt .btn-secondary:hover {
    background: #5a6268;
}

/* ===== PRODUCT CARDS ===== */
.products .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-card .header {
    height: 200px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.product-card .header img {
    max-width: 90% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-card .body {
    padding: 15px;
    text-align: center;
}

.product-card .body h3 {
    font-size: 16px;
    font-family: 'Montserrat';
    font-weight: 600;
    color: #1C3F60;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-card .body p {
    font-size: 14px;
    font-family: 'Montserrat';
    color: #666;
    margin-bottom: 5px;
}

.availability {
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat';
    margin: 5px 0;
}

.price {
    font-family: 'Montserrat';
    font-size: 16px;
    font-weight: 700;
    color: #1C3F60;
    margin: 5px 0;
}

.btn-get-quote {
    margin-top: 10px;
}

.btn-get-quote a {
    text-decoration: none;
}

.btn-get-quote button {
    font-size: 14px;
    border: 2px solid #1C3F60;
    background: #1C3F60;
    color: #fff;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.btn-get-quote button:hover {
    background: #fff;
    color: #1C3F60;
}

.btn-register-prompt a {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s ease;
}

.btn-register-prompt a:hover {
    background: #005a87;
}

.price-blurred {
    background: #ddd;
    height: 18px;
    width: 50%;
    margin: 10px auto;
    border-radius: 3px;
}

/* ===== PAGINATION ===== */
.products .products-content .pagination {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-family: 'Montserrat';
    font-weight: 500;
}

.products .products-content .pagination a,
.products .products-content .pagination span {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #1C3F60;
    text-decoration: none;
    transition: all 0.3s ease;
}

.products .products-content .pagination a:hover {
    background: #FBC333;
    border-color: #FBC333;
    color: #1C3F60;
}

.products .products-content .pagination span.current {
    background: #1C3F60;
    border-color: #1C3F60;
    color: #fff;
}

/* ===== MOBILE FILTERS ===== */
.mobile-filters {
    display: none;
    margin: 20px 0;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1C3F60;
    border-radius: 10px 10px 0 0;
    color: #fff;
}

.mobile-filter-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-mobile-filters {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-filter-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.filter-dropdown-content {
    display: none;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 5px;
}

.filter-dropdown-content.active {
    display: block;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
}

.price-range-wrapper {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-field {
    flex: 1;
}

.price-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mobile-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mobile-apply-filters-btn,
.mobile-clear-filters-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-apply-filters-btn {
    background: #FBC333;
    color: #1C3F60;
}

.mobile-apply-filters-btn:hover {
    background: #e6a500;
}

.mobile-clear-filters-btn {
    background: #f0f0f0;
    color: #666;
}

.mobile-clear-filters-btn:hover {
    background: #e0e0e0;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .products .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-content .details h1 {
        font-size: 22px;
    }
}

@media screen and (max-width: 768px) {
    section.products .main {
        flex-direction: column;
    }
    
    .products .filters {
        display: none;
    }
    
    .mobile-filters {
        display: block;
    }
    
    .products-content {
        max-width: 100%;
    }
    
    .product-content__header {
        flex-direction: column;
    }
    
    .products-content .details,
    .sort-by {
        width: 100%;
    }
    
    .sort-by {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .products .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card .header {
        height: 180px;
    }
    
    .product-card .header img {
        max-width: 85% !important;
        max-height: 85% !important;
    }
}

@media screen and (max-width: 480px) {
    .products .cards {
        grid-template-columns: 1fr;
    }
    
    .products-content .details h1 {
        font-size: 20px;
    }
    
    .breadcrumbs {
        font-size: 13px;
    }
    
    .product-card .header {
        height: 200px;
    }
    
    .login-prompt h3 {
        font-size: 18px;
    }
    
    .login-prompt p {
        font-size: 14px;
    }
    
    .mobile-filter-actions {
        flex-direction: column;
    }
}


/******************************************************************************************************/


/* ===== LOGIN PROMPT STYLES ===== */
.login-prompt {
    background: #f8f9fa;
    border: 2px solid #FBC333;
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.login-prompt-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.login-prompt h4 {
    color: #1C3F60;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.login-prompt p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-prompt-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.login-prompt-buttons .btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-prompt-buttons .btn-primary {
    background: #FBC333;
    color: #1C3F60;
}

.login-prompt-buttons .btn-primary:hover {
    background: #1C3F60;
    color: white;
    transform: translateY(-2px);
}

.login-prompt-buttons .btn-secondary {
    background: #1C3F60;
    color: white;
}

.login-prompt-buttons .btn-secondary:hover {
    background: #0f2a40;
    transform: translateY(-2px);
}

.login-prompt-note {
    font-size: 14px;
    color: #999;
}

.login-prompt-note a {
    color: #FBC333;
    font-weight: 600;
    text-decoration: none;
}

.login-prompt-note a:hover {
    text-decoration: underline;
}

/* Price placeholder for non-logged in users */
.price-placeholder a {
    color: #FBC333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px dashed #FBC333;
}

.price-placeholder a:hover {
    color: #1C3F60;
    border-bottom-color: #1C3F60;
}

/* Shimmer animation for blurred price */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Product meta information */
.product-meta {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
    text-align: center;
}

.product-meta strong {
    color: #1C3F60;
    font-weight: 600;
    margin-right: 5px;
}