.bgcolor {
    background-color: #2B74E5 !important;
}
.bordercolor{
    border: 1px solid #2B74E5 !important;
}
.color {
    color: #2B74E5 !important;
}
/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    padding-top: calc(60px + env(safe-area-inset-top)); /* Adjust body content padding */
    font-family: 'Poppins', sans-serif;
    font-size: 12pt;
    background-color: #fafafa;
    color: #333;
    text-align: center;
    padding: 5px;
    margin: 0;
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;

}
/* Heading styles */
h1 {
    margin-bottom: 20px;
    color:white;
    font-size: 1.5rem;
}

/* Heading styles */
h2,h3,h4 {
    margin-bottom: 20px;
    color:#333;
}

h3 {
    font-size: 1rem;
}

/* Message */
.message {
    text-align: center;
    font-size: 16px;
    padding: 10px;
    margin-top: 20px;
}

.message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}


/* Center alignment */
.center-align {
    text-align: center;
}

/* Category slider */
.category-slider {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.category-links {
    display: inline-flex;
    gap: 10px;
}

.category-link {
    display: inline-block;
    text-align: center;
    width: 80px;
    word-wrap: break-word;
    white-space: normal;
}

/*.category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 50%;
}*/

.category-link:hover {
    cursor: pointer;
    font-weight: bold;
}

/* Scroll to WhatsApp button */
.scroll-to-whatsapp {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    padding:10px;
    align-items: center;
}



/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Order recap */
.order-recap {
    margin: 0px;
    border: 0px solid #ddd;
    padding: 0px;
    border-radius: 5px;
    background-color:white;
}

.order-recap h3 {
    margin-top: 0;
}


.order-recap label {
    display: block; /* Ensure labels appear on separate lines */
    margin-top: 5px; /* Space above each label */
    color:grey;
}

.order-recap input[type="text"],
.order-recap input[type="tel"],
.order-recap textarea {
    width: 100%; /* Full width of input and textarea fields */
    padding: 8px; /* Add padding inside the fields */
    margin-top: 0px; /* Space between label and field */
    border: none;
    border-bottom: 1px solid #ccc; /* Light grey border */
    border-radius: 0px; /* Rounded corners */
    box-sizing: border-box; /* Include padding in the total width */
}

.order-recap input[type="text"]:focus,
.order-recap input[type="tel"],
.order-recap textarea {
    outline: none;
    border: 1px solid #2B74E5;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px; /* Space between products */
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
}

/* Adjust for mobile devices */
@media (max-width: 480px) { /* Target screens up to 480px wide */
    .product-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns, equal width */
    }
}

@media (max-width: 320px) { /* Narrower screens */
    .product-container {
        grid-template-columns: repeat(1, 1fr); /* One product per row */
    }
}

.product-row {
    background-color: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.product-image-wrapper {
    position: relative; /* Ensure child elements are positioned correctly */
    width: 100%; /* Adjust as needed */
    height: auto; /* Maintain aspect ratio */
    display: inline-block;
}

/* Spinner (Loading Indicator) */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-top: 4px solid #3498db; /* Blue spinner color */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite; /* Spinning animation */
    z-index: 10;
}

/* Keyframes for spinner rotation */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.product-image {
    opacity: 0; /* Fully hidden at first */
    visibility: hidden;
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in */
    width: 100%; /* Ensure it fits */
    height: auto;
}

.info-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    width:20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 5px;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Icon hover effect */
.info-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 8px;
}

th {
    background-color: #c8e6c9;
}

tr:nth-child(odd) {
    background-color: #f9f9f9;
}

tr:nth-child(even) {
    background-color: #fff;
}

table tr td:first-child,
table tr th:first-child {
    border-left: none;
}

table tr td:last-child,
table tr th:last-child {
    border-right: none;
}

table tr:first-child th {
    border-top: none;
}

table tr:last-child td {
    border-bottom: none;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    margin: 20px 0;
}

input[type="text"],
input[type="tel"],
textarea,
select {
    width: calc(100% - 10px);
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2B74E5; /* Change the border color on focus */
    box-shadow: 0 0 5px rgba(43, 116, 229, 0.5); /* Add a subtle shadow */
}

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="submit"]:hover,
textarea:hover,
select:hover {
    filter: brightness(115%);
}


input[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #4caf50;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input::placeholder {
    font-style: italic;
    color: #888; /* Optional: Make the placeholder text a bit gray */
}

/* Filter form */
.filter-form {
    margin-bottom: 20px;
}

.filter-form label,
.filter-form select,
.filter-form button {
    font-size: 16px;
    margin-right: 10px;
}

.filter-form select,
.filter-form button {
    padding: 5px;
}

.filter-form button {
    cursor: pointer;
}

/* Button styles */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button.calculate {
    background-color: brown;
}

button.confirm {
    background-color: orange;
}

button.whatsapp {
    background-color: green;
}

button.cancel {
    background-color: red;
}

button.finish {
    background-color: cyan;
}

button.grey {
    background-color: grey;
}

/* Login area */
.login-area h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.login-area form {
    display: flex;
    flex-direction: column;
}

.login-area form label {
    margin-bottom: 8px;
}

.login-area form input[type="text"],
.login-area form input[type="password"] {
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-area form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}


/* Product grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-thumbnail {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: left;
    width: calc(50% - 20px);
}

.product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-thumbnail strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
}

.product-thumbnail span {
    display: block;
    margin-top: 5px;
    color: #888;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        touch-action: manipulation;
    }
    
    table {
        font-size: 0.9em;
    }

    input[type="text"],
    input[type="tel"],
    textarea {
        width: calc(100% - 16px);
        font-size: 0.9em;
    }
    .shipping-section {
        padding: 5px; /* Adjust padding for smaller screens */
        margin: 0px;
    }

    .shipping-section h3 {
        font-size: 1.2em; /* Adjust heading size for smaller screens */
    }

    .processing-message {
        font-size: 22px;
    }
    
    .progress-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .progress-bar li {
        flex-direction: row;
    }
    .progress-bar::before {
        height: 100%;
        width: 6px;
        left: 40px;
    }
    .progress-bar li.completed::after {
        height: 50%;
        width: 6px;
        left: 40px;
    }
}
/* dari index.php */
        .header {
            height: 50vh; /* Adjust height as needed */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
            background-color: rgba(0, 0, 0, 0.4); /* Adds a semi-transparent overlay */
        }

        .header h1 {
            font-size: 3em;
            margin: 0;
        }

        /* Slideshow Styles */
.slideshow-container {
    position: relative;
    aspect-ratio: 750 / 350; /* or simplified: 2.14 / 1 */
    width: 100%;
    max-width: 750px;
    margin: auto;
    overflow: hidden;
    border-radius: 20px;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: white;
    background-color: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 50%;
    z-index: 10;
    width: 35px;
}

.prev { left: 10px; }
.next { right: 10px; }

.dots {
    text-align: center;
    margin-top: 10px;
}

.dots span {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dots span.active {
    background-color: #717171;
}

        

        .headcover {
            position: fixed; /* Fixes it at the top */
            top: 0; /* Position at the very top */
            left: 0; /* Align to the left */
            right: 0; /* Align to the right */
            z-index: 1000; /* Ensure it stays above other elements */
            height: env(safe-area-inset-top, 44px); /* Uses safe area inset for devices with notches (44px for iPhone X, 20px for others) */
            background-color: blue; /* Blue background */
            width: 100%; /* Full width */
            font-size: 0; /* Hide any text */
        }
        
    /*Untuk hidden button dan input jumlah barang*/

    .hidden {
        display: none;
    }
    .quantity-selector {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size:13px;
    }
    
    .minus-btn {
        border-radius: 15px 0px 0px 15px;
    }
    
    .plus-btn {
        border-radius: 0px 15px 15px 0px;
    }
    
    .quantity-btn {
        color: white;
        border: none;
        cursor: pointer;
        font-size: 13px;
        margin: 0px;
    }

    .quantity-btn:disabled {
        background-color: #ccc; /* Gray for disabled buttons */
        cursor: not-allowed;
    }

    .amount {
        text-align: center; /* Center the text inside the field */
        border: 0px !important; /* Light gray border */
        border-radius: 0px !important; /* Rounded corners for a modern look */
        font-size: 17px; /* Font size for readability */
        padding: 5px; /* Padding for better spacing inside */
        background-color: #f9f9f9; /* Light background to indicate read-only */
        color: #333; /* Text color */
        pointer-events: none; /* Disable interactions */
        outline: none; /* Remove focus outline */
    }
    
    /* 5 Januari 2025*/
    .top-background {
        position: absolute; /* Sticks to the top of the page */
        top: 0; /* Align at the top */
        left: 0; /* Align at the left */
        width: 100%; /* Full width */
        height: calc(170px + env(safe-area-inset-top)); /* Add safe area padding for iOS/Android */
        background-color: #2B74E5; /* Solid background color */
        background-image: url('https://coldymart.com/images/topbg.png'); /* Replace with your image path */
        background-size: cover; /* Make the image cover the entire area */
        background-repeat: no-repeat; /* Prevent tiling */
        background-position: center; /* Center the image */
        z-index: -1; /* Push it behind other elements */
        border-bottom-left-radius: 50% 20px;
        border-bottom-right-radius: 50% 20px;
    }


    .bottom-background {
        width: 100%; /* Full width */
        height: calc(170px + env(safe-area-inset-top)); /* Add safe area padding for iOS/Android */
        background-color: #2B74E5;
        z-index: -1; /* Push it behind other elements */
    }

    .tambah-keranjang {
        background-color: transparent;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        font-size: 12px;
        align-items: center;
        font-weight:light;
    }
    
    .tambah-keranjang:hover {
        filter: brightness(115%);
        color: white;
    }
    .stockpoint{
        color: white;
        text-align: right;
        margin-left: auto;
    }
    .stockpoint label{
        background-color: rgba(43, 116, 229, 0.5); /* 50% opacity of #2B74E5 */
    }
    select[name="stockpoint"] {
        background-color: rgba(43, 116, 229, 0.5); /* 50% opacity of #2B74E5 */
        border: 1px solid #ccc; /* Optional: Add a subtle border for visibility */
        border-radius: 20px;
        width: 100%; /* Set to full width of its container */
        padding: 5px 10px; /* Add some padding for better appearance */
        outline: none; /* Removes default focus outline */
        text-align: right; /* Align text to the right */
        direction: rtl; /* Ensures dropdown text aligns right */
        color: white; /* Ensures text is readable */
    }

    select[name="stockpoint"] option {
        background-color: rgba(43, 116, 229, 0.5); /* 50% opacity of #2B74E5 */
        color: white; /* Ensures text is readable */
        text-align: right; /* Align option text to the right */
        direction: rtl; /* Ensures dropdown options text aligns right */
    }

    /* Optional: Align the <select> element to the right of its container */
    form {
        display: flex; /* Enables flexbox for layout */
        justify-content: flex-end; /* Aligns the content (dropdown) to the right */
    } 
    
    .divider-section {
        background-color: #2B74E5; /* Light grey background */
        width: 100vw; /* Full width of the viewport */
        margin-left: calc(-50vw + 50%); /* Center the full-width background */
        padding: 10px; /* Add spacing inside the section */
        box-sizing: border-box; /* Include padding in the total width/height */
    }
    
    .shipping-section-wrapper {
        background-color: white; /* Make the entire section white */
        width: 100%; /* Ensure it spans the full width of the viewport */
        padding: 5px; /* Add padding at the top and bottom */
        margin: 0px;
    }
        
    .shipping-section {
            background-color: white; /* Light grey background */
        max-width: 800px; /* Set maximum width */
        width: 100%; /* Make it responsive to screen size */
        margin: 0 auto; /* Center the section horizontally */
        padding: 0px; /* Add some padding for spacing */
        box-sizing: border-box; /* Include padding and border in width calculation */
    }
    
    .shipping-section input[type="text"],
    .shipping-section select {
        width: 100%; /* Ensure inputs and selects span the full width */
        padding: 10px; /* Add padding for better UX */
        margin: 8px 0; /* Add spacing between inputs */
        box-sizing: border-box; /* Include padding and border in width calculation */
    }
    
    .shipping-section h3 {
        margin-bottom: 16px; /* Add space below the heading */
        font-size: 1.5em; /* Adjust heading size */
    }

    #delivery-schedule {
        padding: 8px;
        border-radius: 5px;
        background-color: white;
        width: 100%;
        margin-top: 15px;
        color: #333;
    }

    .shipping-recap {
        padding-left:10px;
    }
    
    /* Close button */
    .close {
        color: red;
        float: right;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
    }
    
.suggestions-dropdown {
    position: absolute;
    width: calc(100% - 2px); 
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    list-style: none;
    z-index: 1000;
    display: none;
}

.suggestions-dropdown li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestions-dropdown li:hover {
    filter: brightness(115%);
}

button:disabled {
    background-color: grey;
    cursor: not-allowed;
    opacity: 0.6;
}

.disabled {
    background-color: grey;
    cursor: not-allowed;
    opacity: 0.6;
}

#confirm-order-btn:disabled {
    background-color: grey;
    cursor: not-allowed;
    opacity: 0.6;
}


.placeholder-text {
    color: grey;
    font-style: italic;
}

.tagline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.tagline-box {
    background-color: #e9ff6e; /* Light background for better readability #ff9800 */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 10px 20px; /* Space around the text */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

.tagline-icon {
    color: #f5f5f5; /* Accent color for the icon */
    margin-right: 10px; /* Space between the icon and text */
    font-size: 25px; /* Icon size */
}

.tagline-text {
    font-size: 14px; /* Text size */
    font-style: italic; /* Italicize the tagline */
    color: #333; /* Text color */
    
}

.notification-bar {
    position: fixed;
    top: -150px; /* Initially hidden above the viewport */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: #4caf50; /* Green for success */
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 1.1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Ensure it appears above other elements */
    transition: top 0.5s ease; /* Smooth slide-down effect */
    margin: 0px;
    border-radius: 20px;
}

.notification-bar.show {
    top: 10px; /* Slide into view */
}

.notification-bar .close-notification {
    top: 0px;
    right: 10px;
    background: none;
    border: 2px solid white;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    cursor: pointer;
}

.notification-bar .close-notification:hover {
    filter: brightness(115%);
}


.brand-display-container {
    display: flex;
    justify-content: center; /* Center the text horizontally */
    align-items: center; /* Center the text vertically */
    margin: 20px auto; /* Center the container and add spacing */
    padding: 15px 20px; /* Add padding for a better appearance */
    background-color: #2B74E5; /* Your theme color */
    border-radius: 15px; /* Smooth rounded corners */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
    max-width: 600px; /* Restrict the width for large screens */
    text-align: center; /* Center-align the text */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add hover animation */
}

.brand-display-container:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.brand-display {
    font-size: 20px; /* Slightly larger font for emphasis */
    font-weight: 600; /* Bold text for clarity */
    color: #fff; /* White text for contrast */
    margin: 0; /* Remove extra margin from <h3> */
    text-transform: uppercase; /* Make the text stand out */
    letter-spacing: 1px; /* Add spacing between letters */
}

/* For order.php */
        .progress-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            list-style-type: none;
            position: relative;
        }
        .progress-bar::before {
            content: '';
            position: absolute;
            top: 35%;
            left: 0;
            width: 100%;
            height: 10px;
            background: #ccc;
            z-index: -1;
        }
        .progress-bar li {
            display: flex;
            align-items: center;
            flex-direction: column;
            text-align: center;
            flex: 1;
            position: relative;
        }
        .progress-bar li .icon-circle {
            width: 50px;
            height: 50px;
            line-height: 50px;
            border-radius: 50%;
            background: #ccc;
            display: inline-block;
            color: white;
            font-size: 24px;
            text-align: center;
        }
        .progress-bar li.completed .icon-circle {
            background: #2B74E5;
        }
        .progress-bar li.completed .icon-circle i {
            content: '\f00c'; /* FontAwesome check icon */
            font-weight: 900;
        }
        .progress-bar li.completed::after {
            content: '';
            position: absolute;
            top: 27%;
            left: 0;
            width: 100%;
            height: 10px;
            background: #2B74E5;
            z-index: -1;
        }
        
        
        .delivery-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        
    .date-display {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .day-number {
        font-size: 32px;
        font-weight: bold;
        color: #333;
        display: block;
    }
    
    .month-year {
        font-size: 16px;
        color: #666;
        display: block;
    }


        /* Delivery options container */
        .delivery-options-scroll {
            display: flex;
            overflow-x: auto;
            padding: 10px 0;
            gap: 10px;
            scroll-behavior: smooth;
        }
        
        .delivery-box {
            flex: 0 0 auto;
            width: 120px;
            height: 120px;
            text-align: center;
            background-color: #f0f0f0;
            border: 1px solid #ccc;
            border-radius: 10px;
            padding: 10px;
            cursor: pointer;
            transition: background-color 0.3s, color 0.3s;
            position: relative;
            z-index: 1;
            display: block;
            visibility: visible;
            opacity: 1;

        }
        
        .delivery-box p {
            margin: 0;
            font-size: 14px;
            font-weight: bold;
        }

        .delivery-box.selected {
            background-color: #3780de;
            color: white;
            border-color: #0056b3;
        }
        
        .delivery-box.active {
            background-color: #2B74E5;
            color: white;
            border-color: #3780de;
        }
        
        /* Change the color of the date text when active */
        .delivery-box.active .day-number,
        .delivery-box.active .month-year {
            color: white;
        }
    .description-link {
        position: absolute;
        top: 0;
        right: 0;
        text-decoration: none;
        background: none;
        border: none;
        outline: none;
    }
    
    .description-link:hover {
        filter: brightness(115%);
    }
    

    #description-text {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 20px;
    }
    
    
    .category-image-wrapper {
        position: relative; /* Ensure child elements position correctly */
        width: 80px; /* Adjust the size as needed */
        height: 80px; /* Ensure square aspect ratio */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
    }
    
    .category-image {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        width: 100%; /* Ensure it fits */
        height: auto;
        border-radius: 50%;
    }
    
    .category-icon {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0; /* Hidden by default */
        transition: opacity 0.5s ease; /* Smooth fade-in */
    }
    
    .category-icon.image-loaded {
        opacity: 1; /* Fully visible when loaded */
    }
    
    .lazy-load {
        transition: opacity 0.5s ease-in-out;
        background-image: url('https://coldymart.com/images/loading-spinner.gif'); /* Replace with your image path */
        opacity: 1;
    }
    
    .image-loaded {
        opacity: 1;
    }
    
    .radio-group {
        display: flex;
        align-items: center;
        gap: 10px; /* Space between options */
    }
    
    .radio-group input[type="radio"] {
        display: none; /* Hide the default radio button */
    }
    
    .radio-group label {
        padding: 8px 15px;
        border: 2px solid #ccc;
        border-radius: 8px;
        cursor: pointer;
        background-color: #f5f5f5;
        transition: background-color 0.3s, border-color 0.3s;
        font-size: 14px;
        font-weight: bold;
    }
    
    .radio-group input[type="radio"]:checked + label {
        background-color: #3780de;
        color: white;
        border-color: #0056b3;
    }
    
    .radio-group label:hover {
        filter: brightness(115%);
    }
    
    .stockpoint-info {
        border: 1px solid #ccc;
        border-radius:10px;
        padding: 10px;
        margin:10px 20px;
        font-size: 12px;
        max-width: 300px;
    }
    
    #subwrapper {
        display: inline-block; /* Allows it to expand based on content */
        background-color: #2B74E5; /* Change to your preferred button color */
        color: white; /* Text color */
        padding: 15px; /* Adjust padding to make it look like a button */
        border-radius: 8px; /* Rounded edges */
        font-size: 14px; /* Text size */
        text-align: center; /* Center the text */
        min-width: 80px; /* Ensures minimum button width */
        transition: all 0.3s ease; /* Smooth animation */
        white-space: nowrap; /* Prevents text from wrapping */
        cursor: pointer; /* Cursor pointer effect */
    }
    
    .cart-badge {
        position: absolute;
        top: 5px; /* Position it near the top */
        right: 5px; /* Position it near the right */
        background-color: red; /* Red background for the badge */
        color: white; /* White text for better contrast */
        font-size: 11px; /* Small font size */
        font-weight: bold;
        width: 20px; /* Fixed width to make it circular */
        height: 20px; /* Fixed height to match width for a perfect circle */
        line-height: 20px; /* Center text vertically */
        text-align: center; /* Center text horizontally */
        border-radius: 50%; /* Makes it circular */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* Optional shadow for styling */
        pointer-events: none; /* Prevent the badge from blocking clicks */
    }
    


    .out-of-stock-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.7);
        color: black;
        font-size: 14px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
    }    
    
    
    .processing-animation {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.5);
        z-index: 9999;
        border-radius: 10px;
        text-align: center;
    }

    .processing-message {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-bottom: 10px;
    }
    
    body.modal-open {
        overflow: hidden; /* ✅ Prevents background scrolling */
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.6);
        justify-content: center;
        align-items: center;
    }

    .modal.show {
        display: flex;
    }

    .modal-content {
        background-color: white;
        padding: 15px;
        border-radius: 10px;
        max-width: 90%;
        max-height: 80vh; /* Limits height */
        overflow-y: auto; /* Enables scrolling */
        width: 600px; /* ✅ Adjust the width (increase as needed) */
    }

    .modal-scrollable {
        white-space: pre-line; /* Preserves line breaks */
        font-size: 14px;
        line-height: 1.6;
        overflow-y: auto;
        max-height: 60vh; /* Makes content scrollable */
        padding-right: 10px;
        text-align: left; /* ✅ Ensures text is aligned to the left */
    }


    .close-modal {
        float: right;
        font-size: 22px;
        cursor: pointer;
        margin-bottom: 10px;
    }
    
    .profile-header {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align left */
        gap: 5px; /* Optional spacing between image and text */
    }

    /* Profile picture */
    .profile-pic {
        width: 50px;
        height: 77px;
        margin-bottom: 10px;
        margin-right: 5px;
        object-fit: cover;
    }
    
    .profile-title {
        font-size: 0.8rem;
        font-weight: 800;
        margin: 0; /* Remove default margin */
        color: white;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 20px 0;
        display: flex;
        flex-wrap: wrap; /* Allows wrapping on smaller screens */
        gap: 16px; /* space between links */
        justify-content: center;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .footer-links a {
        text-decoration: none;
        color: #ccc; /* Light grey */
        font-size: 14px;
        transition: color 0.3s ease;
    }
    
    .footer-links a:hover {
        color: #fff; /* Brighter on hover */
        text-decoration: underline;
    }

    .selected-category {
        border: 3px solid #2B74E5;
        border-radius: 50px;
        transition: 0.3s ease;
        padding-top: 7px;
    }
        
    .selected-category-text {
        font-weight: bold;
    }
        