/* ================================
   Base Styles (Existing)
================================= */

/* Basic styling for the home page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
}

button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.zoom-container {
    overflow: hidden;
    position: relative;
}

.zoom-image {
    transition: transform 0.3s ease;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    transition: width 0.3s ease, height 0.3s ease;
}

@media (max-width: 768px) {
    .thumbnail-image {
        width: 50px;
        height: 50px;
    }
}

/* Styling for weight buttons */
.weight-btn {
    border: 2px solid #ccc;
    padding: 10px;
    background-color: transparent;
    color: #333;
    cursor: pointer;
}

.weight-btn.selected {
    border-color: #007bff;
    background-color: #007bff;
    color: white;
}

/* ================================
   Extended Styles (New Additions)
================================= */

/* Base Logo Styles */
.header-logo {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    height: 60px;
    width: 60px;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.logo-subtext {
    font-size: 0.9rem;
    margin-left: 10px;
    color: #6c757d;
    transition: all 0.3s ease;
}

/* Input & Button Styles */
.input-group .form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

.input-group .btn-outline-secondary:hover,
.input-group .btn-outline-secondary:focus {
    background-color: white !important;
    border-color: #0a0a0a96 !important;
    color: black !important;
}

/* Footer */
.footer {
    background-color: #333 !important;
    color: #ccc !important;
    padding: 40px 20px !important;
    position: relative !important;
    z-index: 100 !important;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.social-icons i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #ccc;
}

.social-icons i:hover {
    color: #fff;
}

/* Footer Modal */
.footer-modal .modal-content {
    background-color: #f8f9fa;
    border-radius: 15px;
}

.footer-modal .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.footer-modal .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    padding: 12px 20px;
}

.footer-modal .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background: transparent;
}

.footer-modal .tab-content {
    padding: 20px;
}

.footer-modal .accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
}

.footer-modal .policy-section {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Card */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Header Combined */
.header-combined-box {
    border-radius: 12px;
    background-color: #f8f9fa;
    padding: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.header-combined-box .btn-outline-primary {
    border-color: transparent;
    transition: all 0.2s ease;
}

.header-combined-box .vr {
    opacity: 0.3;
}

/* Autocomplete */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestion {
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.autocomplete-suggestion:hover {
    background: #f8f9fa;
}

.suggestion-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.suggestion-row {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.suggestion-row:hover {
    background-color: #f1f1f1;
}

/* Zoom Enhancements */
#zoomLens {
    position: absolute;
    border: 2px solid #000;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    display: none;
}

#zoomResult {
    position: absolute;
    top: 0;
    left: 100%;
    width: 1000px;
    height: 1000px;
    background-repeat: no-repeat;
    border: 2px solid #ddd;
    display: none;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    margin-top: 5px;
    transition: opacity 0.3s ease-in-out;
}

.dropdown-item:hover {
    background-color: #e2e6ea;
    color: #212529;
}

.dropdown-item:focus {
    background-color: #dee2e6;
    color: #0a0a0a;
}

/* Delivery Overlay */
#deliveryOverlay {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: -4px 0px 10px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #007bff;
    z-index: 9999;
    text-align: center;
    transition: right 0.4s ease-in-out;
}

#deliveryOverlay.show {
    right: 0;
}

.overlay-content {
    width: 80%;
    max-width: 400px;
    padding: 20px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#result {
    margin-top: 10px;
    font-size: 18px;
}

/* Hover effects for icons */
.location-icon:hover,
.user-icon:hover,
.cart-icon:hover {
    color: #1a1a1a !important;
}

/* ================================
   Responsive Styles
================================= */

@media (max-width: 1199.98px) {
    .logo {
        height: 55px;
        width: 55px;
    }
    .logo-text {
        font-size: 1.7rem;
    }
    .logo-subtext {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .header-logo {
        font-size: 2.5rem;
    }
    .logo {
        height: 50px;
        width: 50px;
    }
    .logo-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 991.98px) {
    .header-logo {
        font-size: 2.2rem;
    }
    .logo {
        height: 45px;
        width: 45px;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .desktop-search {
        display: none !important;
    }
    .mobile-search-btn {
        display: inline-block !important;
    }
    .mobile-search-container {
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    .mobile-search-container.show {
        display: block;
    }
    .header-icons-container {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .logo {
        height: 40px;
        width: 40px;
    }
    .logo-text {
        font-size: 1.3rem;
        margin-left: 8px;
    }
    .logo-subtext {
        font-size: 0.7rem;
        margin-left: 8px;
    }
    header {
        padding: 10px 0 !important;
    }
    .btn-outline-primary {
        padding: 0.25rem 0.5rem !important;
    }
    .fa-lg {
        font-size: 1em !important;
    }
    .btn-text-hide-xs {
        display: none !important;
    }
    .mobile-search-container {
        padding: 0 15px;
    }
}

@media (max-width: 575.98px) {
    .logo {
        height: 35px;
        width: 35px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-icons-container {
        margin-top: 8px;
    }
}

@media (min-width: 992px) {
    .mobile-search-btn,
    .mobile-search-container {
        display: none !important;
    }
    .desktop-search {
        display: flex !important;
    }
    #deliveryOverlay {
        width: 400px;
        right: -400px;
    }
}