html {
    font-size: 16px; /* Base unit */
}

h1 {
    font-size: 2.5rem; /* 40px */
}
h2 {
    font-size: 2rem; /* 32px */
}
h3 {
    font-size: 1.75rem; /* 28px */
}
h4 {
    font-size: 1.5rem; /* 24px */
}
h5 {
    font-size: 1.25rem; /* 20px */
}
h6 {
    font-size: 1rem; /* 16px */
}
p, span, label, li, a {
    font-size: 1rem; /* 16px */
}







.column{
    width:50%;
    gap:5%;
    height:70%;
}
.modal-content {
    padding: 20px;
    /* border-radius: 10px; */
    border:3px solid rgb(215, 202, 202);
}

.form-check{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
}
.form-label {
    font-weight: bold;
}
.form-control {
    border-radius: 5px;
    padding: 10px;
}
/* .border {
    cursor: pointer;
    background-color: #f8f9fa;
    border-radius: 5px;
} */
.btn-primary {
    background-color: #007bff;
    border: none;
    
}
.btn-primary:hover {
    background-color: #0056b3;
}
.modal-footer {
    display: flex;
    justify-content: center;
}


.modal-footer button {
    width: 50%;
}
#product {
    float:right; /* Moves the button to the right */
    margin-bottom: 5px; /* Adds spacing below the button */
}


container {
    max-width: 1000px;
    margin-top: 20px;
}
.card {
    padding: 10px;
}
.btn-save {
    float: right;
    margin-top: 10px;
    /* width: 15%; */
}
#save{
    position: absolute;
    right:30%;
    top: 20px;
    width: 15%;
}
.table{
   width:100%;
}
.container-fluid{
    width:100%;
   
}


.upload-box{
    border:2px dashed blue;
    width:100%;
    justify-content:center;
    padding:10px;
    margin: 10px;
    height:40%;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    cursor: pointer;
    /* position: relative; */
}

.fixed-save-btn {
    position: fixed !important;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
}


.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15)!important;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#uploadSection:hover {
    background-color: #f8f9fa;
}

.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    border-bottom: 2px solid #f8f9fa;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}



    .bg-primary-subtle {
        background-color: rgba(13, 110, 253, 0.1);
    }
    .bg-success-subtle {
        background-color: rgba(25, 135, 84, 0.1);
    }
    .bg-secondary-subtle {
        background-color: rgba(108, 117, 125, 0.1);
    }
    .text-primary {
        color: #0d6efd !important;
    }
    .text-success {
        color: #198754 !important;
    }
    .text-secondary {
        color: #6c757d !important;
    }
    .table > :not(caption) > * > * {
        padding: 1rem;
    }
    .form-check-input:checked {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }
    .hover-lift {
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }
    .hover-lift:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
    .search-group {
        transition: all 0.2s ease-in-out;
    }
    .search-group:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }
    .dropdown-item:hover {
        background-color: rgba(13, 110, 253, 0.1);
    }
    .btn {
        transition: all 0.2s ease-in-out;
    }
    .btn:hover {
        transform: translateY(-1px);
    }
    .product-image {
        transition: transform 0.2s ease-in-out;
    }
    .product-image:hover {
        transform: scale(1.05);
    }
    .badge {
        transition: all 0.2s ease-in-out;
    }
    .badge:hover {
        transform: translateY(-1px);
    }



@media (max-width: 576px) {
    .fixed-save-btn {
        right: 30px;
        bottom: 20px;
    }
}


/* .container-fluid{
    width:100%;
    margin-top: 5px;
    background-color: aquamarine;

} */
@media (min-width: 768px) and (max-width: 1400px) {

    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem; /* 32px */
    }
    h2 {
        font-size: 1.75rem; /* 28px */
    }
    h3 {
        font-size: 1.5rem; /* 24px */
    }
    p, span, label, li, a {
        font-size: 1rem; /* 15px */
    }
    .row.tab-column {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    .row.tab-column > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .col-md-6 {
        margin-bottom: 25px;
        width: 100%;
    }

    #unit {
        display: flex;
        flex-direction: row;
    }

    #add-size {
        width: 50%;
    }

    .main-content {
        margin-left: 70px;
        
    }

    .table-responsive {
        width: 97%;
    }

    .container-fluid {
        margin-right: 60px;
        width: 100%;
        overflow: hidden;
    }

    .navbar {
        width: 100%;
        max-width: 2000px;
    }
    
}

/* ---------- Mobile View: Up to 767.98px ---------- */
@media (max-width: 767.98px) {

    html {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem; /* 28px */
    }
    h2 {
        font-size: 1.5rem; /* 24px */
    }
    h3 {
        font-size: 1.25rem; /* 20px */
    }
    h4 {
        font-size: 1.125rem; /* 18px */
    }
    p, span, label, li, a {
        font-size: 0.95rem; /* 13.5px */
    }
    .row.tab-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .row.tab-column > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }

    .d-grid {
        width: 100%;
    }

    .container-fluid {
        width: 100%;
        overflow: hidden;
    }

    .navbar {
        width: 100%;
    }
    .input-group{
        width: 50% !important;
       
    }

    
}

@media (max-width:400px) {
    #category{
        width: 30%;
       
    }
    
    
    
}

.form-check-input {
    cursor: pointer;
    border: 2px solid rgb(141, 136, 136);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.zone-checkbox {
    /* width: 2.5em !important;
    height: 1.25em !important; */
    border: 2px solid rgb(141, 136, 136);

   
}

.zone-checkbox + label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.zone-price-input {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.form-check-label {
    cursor: pointer;
}

/* Ensure all product cards have the same height */
.product-card {
    height: 420px; /* Adjust as needed for your design */
    display: flex;
    flex-direction: column;
 
}

/* Ensure image and placeholder have the same height and are centered */
.product-image {
    width: 100%;
    height: 180px; /* Adjust as needed */
    max-height: 250px;
    object-fit: cover;
 
    background: #f8f9fa;
    margin-bottom: 0;
    padding: 0;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.product-card {
    height: 420px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
    /* Optional: for consistent width */
    width: 300px; /* Adjust as needed */
}

.product-image {
    width: 100%;
    height: 180px; /* Adjust as needed */
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin-bottom: 0;
    padding: 0;
}

.product-card h6,
.product-card p {
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
    /* Ensures button stays at the bottom */
    align-self: flex-end;
}


  