﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: white !important;
    color: #1f2937 !important;
    line-height: 1.5 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.containerpage {
    background-color: white;
    border: none !important;
    /*padding: 1rem;*/
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

::selection {
    background-color: lightgray;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 6px solid #e5e7eb;
    /*border-bottom: 6px solid #bb6446;*/
    padding: 1rem;
}

.shop-title {
    font-size: 1.5rem;
    font-weight: 700;
}
/*
        .cart-button {
            background-color: #2563eb;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }

            .cart-button:hover {
                background-color: #1d4ed8;
            }
            */
/* Main Layout */
.main-layout {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
}

/* Card Styles */
.card {
    background: white;
    /*border-radius: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            overflow: hidden;*/
}

/* Sidebar Styles */
/*.sidebar {
        width: 16rem;
        flex-shrink: 0;
        background: white;
        border-radius: 0.5rem;
        padding: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }*/
.sidebar {
    width: 250px;
    height: 80vh !important;
    overflow: auto;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.filters-container {
    padding: 1rem;
    border: none !important;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.filter-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

    .filter-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

    .filter-header h3 {
        font-size: 16px;
        font-weight: 600;
    }

.filter-items {
    display: block;
}

.filter-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

    .filter-item input[type="checkbox"] {
        margin-right: 8px;
    }

.checkbox-label {
    font-size: 0.875rem;
}

.slider-container {
    margin-top: 1rem;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.clear-filters {
    width: 100%;
    padding: 0.5rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .clear-filters:hover {
        background-color: #f3f4f6;
    }

/* Main Content Styles */
.main-content {
    flex: 1;
}

/* Search Styles */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    height: 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    /*top: 38%;*/
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-results {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Product Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    /*display: flex;
    flex-direction: column;
    gap: 1rem;*/
}

.product-card {
    padding: 0.7rem;
}

.product-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 500;
}

.product-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.product-price {
    margin-top: 0.25rem;
}

.product-stock {
    font-size: 0.875rem;
}

.product-weight {
    font-size: 0.875rem;
    color: #6b7280;
}

.product-categories {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.feature-tag {
    font-size: 0.75rem;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/*.add-to-cart {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .add-to-cart:hover {
        background-color: #1d4ed8;
    }*/

/* Cart Styles */
.cart-container {
    padding: 1rem;
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-empty {
    color: #6b7280;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item-info h3 {
    font-weight: 500;
}

.cart-item-price {
    font-size: 0.875rem;
    color: #6b7280;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: white;
    border: 1px solid #d1d5db;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .quantity-btn:hover {
        background-color: #f3f4f6;
    }

.remove-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .remove-btn:hover {
        background-color: #dc2626;
    }

.cart-total {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.enquiry-section {
    margin-top: 1rem;
}

.enquiry-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.enquiry-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    height: 6rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.submit-order {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
}

    .submit-order:hover {
        background-color: #1d4ed8;
    }

/* Price Range Slider */
input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

.hidden {
    display: none !important;
}
/*
.cart-btn,
.filter-toggle-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.filter-toggle-btn {
    display: none; 
}

*/

/* NEW RESPONSIVE STYLES */
/*.filter-toggle-btn, .cart-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

    .filter-toggle-btn:hover, .cart-btn:hover {
        background-color: #1d4ed8;
    }*/

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-header-buttons {
    display: none;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 250px;
        z-index: 999;
        overflow-y: auto;
        height: 100%;
        padding-top: 60px;
        border-radius: 0;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

        .sidebar.open {
            left: 0;
        }

    .mobile-header-buttons {
        /*display: flex;*/
        display: unset;
        /*margin-bottom: 1rem;*/
    }

    .sidebar-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        font-size: 1.25rem;
        cursor: pointer;
        color: #1f2937;
    }

    .product-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-input {
        width: 90%;
    }

    .cart-item {
        flex-direction: column;
        gap: 1rem;
        align-items: normal;
    }

    .EnquiryDetails {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        align-items: normal;
    }

    #cart-summary {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        align-items: normal;
    }

    #submit-order {
        float: left !important;
    }
}

.card {
    /*border:none !important;*/
}

/*#products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}*/

#filter-toggle {
    float: right;
    padding: 0.5rem;
}

.EnquiryDetails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tblCart {
    display: block;
    /*overflow-x: auto;
    white-space: nowrap;*/
}

.enquirybtns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#cart-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#submit-order {
    width: 10rem;
    float: right;
}

#price-range {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}


/*.verification-container {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}*/

.robot-check {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .robot-check:hover {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

.checkbox-container {
    width: 26px;
    height: 26px;
    border: 2px solid #ddd;
    margin-right: 15px;
    position: relative;
    cursor: pointer;
    border-radius: 3px;
}

    .checkbox-container.checked {
        background-color: #4CAF50;
        border-color: #4CAF50;
    }

        .checkbox-container.checked::after {
            content: '✓';
            position: absolute;
            font-size: 18px;
            color: white;
            top: 0px;
            left: 6px;
            font-weight: bold;
        }

.verification-text {
    font-size: 16px;
    color: #333;
}

.loading-dots {
    display: none;
    margin-left: 10px;
}

.challenge-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.image-challenge {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.challenge-image {
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .challenge-image:hover {
        transform: scale(1.05);
    }

    .challenge-image.selected {
        border-color: #4CAF50;
        transform: scale(1.1);
    }

.drag-challenge {
    display: none;
    text-align: center;
    padding: 20px;
}

.drag-container {
    width: 100%;
    height: 60px;
    border: 2px dashed #ddd;
    border-radius: 30px;
    position: relative;
    background-color: #f0f0f0;
    margin: 20px 0;
}

.drag-slider {
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: -2px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

    .drag-slider:active {
        cursor: grabbing;
    }

.success-check {
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.retry-button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
}

.continue-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: none;
    margin-top: 20px;
}

.verification-status {
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    display: none;
    font-size: 18px;
}

.carticon {
    font-size: 1.3rem;
}

.spinner {
    border: 12px solid #f3f3f3;
    border-top: 12px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.filter-items {
    max-height: 15rem;
    overflow: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

img.product-img {
    width: 5rem;
    margin-right: 5px;
}

.clstxt-right-align {
    text-align: right !important;
    padding-right: 7px !important;
}

.whitespace-wrap {
    white-space: break-spaces;
}

.product-grid {
    /*height: 80vh !important;*/
    height: 65vh !important;
    overflow: auto;
}


.cart-count {
    position: relative;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    left: 10px;
}

    .cart-count.hidden {
        display: none !important;
    }

.quantity-controls-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
}


.cart-table-container {
    overflow-x: auto;
    margin: 20px 0 10px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

    .cart-table th,
    .cart-table td {
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #ddd;
        vertical-align: middle;
    }

    .cart-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
    }

    .cart-table tbody tr:hover {
        background-color: #f8f9fa;
    }

.po-qty-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cart-action-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .cart-action-btn:hover {
        background: #f8f9fa;
    }

    .cart-action-btn.primary {
        background: #007bff;
        color: white;
        border-color: #007bff;
    }

        .cart-action-btn.primary:hover {
            background: #0056b3;
            border-color: #0056b3;
        }

.clsCatelogProduct {
    color: #1f6d40
}

.clsNonCatelogProduct {
    color: #FF8C00;
}

/*.stock-column {
    background-color: #e8f5e8;
}*/


.select2-selection {
    padding-bottom: 2.25rem !important
}

#LogoImg {
    background-color: white !important;
}

iframe {
    height: calc(100vh - 62px);
    width: 100%;
    box-sizing: border-box;
    border: none;
}

/*@media only screen and (max-width: 736px) {
                .img-fluid {
                    margin-top: -10px !important;
                }
            }*/

.clsFixedMenu {
    position: absolute;
    float: right;
    right: 20%;
    display: block;
    top: 15px;
}

    .clsFixedMenu i {
        margin-right: 1rem;
        font-size: 22px;
    }

/*#btnDashboard i {
    margin-right: 0px !important;
}*/

/*.ti-shopping-cart:after {
            content: attr(value);
            font-size: 15px;
            color: #fff;
            background: red;
            border-radius: 50%;
            padding: 0px 5px;
            position: relative;
            left: -8px;
            top: -10px;
            opacity: 0.9;
        }*/
.cart-count {
    position: absolute;
    top: -8px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    left: 10px;
}

    .cart-count.hidden {
        display: none;
    }

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /*display: inline-block;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease;
    /* margin: 10px; */
    text-align: center;
}

    .avatar:hover {
        transform: scale(1.1);
    }

/* Different sizes */
.avatar-small {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

#cart-summary {
    display: grid;
    grid-template-columns: none !important;
}

.cart-total {
    margin-top: 0px !important
}

.info-card {
    background: white;
    /*padding: 30px;*/
    padding: 10px 10px 10px 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    /*border-bottom: 1px solid #ecf0f1;*/
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-label {
    font-weight: 600;
    color: #555;
    min-width: 150px;
}

.info-value {
    color: #2c3e50;
    /*text-align: right;*/
    word-break: break-word;
    flex: 1;
    padding-left: 20px;
}
