/*
 * Storefront theme overrides (loaded after aiz-core-front.css).
 * Brand colors are never hardcoded here: --primary / --hov-primary and the
 * secondary-base variables are printed from the database settings in
 * frontend/layouts/app.blade.php.
 */

html {
    font-size: 18px !important;
}

body {
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
}

/* ---------- Common ---------- */
.pagination .page-link,
.page-item.disabled .page-link {
    min-width: 32px;
    min-height: 32px;
    line-height: 32px;
    text-align: center;
    padding: 0;
    border: 1px solid var(--soft-light);
    font-size: 0.875rem;
    border-radius: 0 !important;
    color: var(--dark);
}
.pagination .page-item {
    margin: 0 5px;
}
.aiz-carousel.coupon-slider .slick-track {
    margin-left: 0;
}
.form-control:focus {
    border-width: 2px !important;
}
.modal-content {
    border: 0 !important;
    border-radius: 0 !important;
}
.tagify.tagify--focus {
    border-width: 2px;
    border-color: var(--primary);
}
#map,
#edit_map {
    width: 100%;
    height: 250px;
}
.pac-container {
    z-index: 100000;
}
.productNameInDetailPage::first-letter {
    text-transform: uppercase !important;
}
.customTitleColor {
    color: var(--hov-primary) !important;
}

/* ---------- Back to top & WhatsApp ---------- */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    padding: 15px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    line-height: 25px;
}
.whatsappCtrl {
    position: fixed;
    left: 25px;
    bottom: 30px;
    z-index: 9999;
}
.whatsappCtrl a {
    width: 55px;
    height: 55px;
    display: inline-block;
    border-radius: 50%;
}
@media (max-width: 575px) {
    .whatsappCtrl {
        left: 20px;
        bottom: 110px;
    }
    #backToTopBtn {
        bottom: 100px;
    }
}

/* ---------- Top bar ---------- */
@media (min-width: 992px) {
    .top-navbar {
        height: 27px !important;
    }
    .top-navbar .sz {
        margin-top: -6px;
    }
}
.addBoxShadow {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px !important;
    color: #fff !important;
    border-color: transparent !important;
    border-radius: 45px !important;
    border: none !important;
}
.addBoxShadow:hover {
    background: var(--hov-primary) !important;
}

/* ---------- Header ---------- */
.logo-bar-area {
    height: 64px;
}
@media (max-width: 991.98px) {
    .top-1.d-flex.align-items-center {
        height: 12px;
    }
}
.mobileSearch {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- Others dropdown (header menu bar) ---------- */
.others-menu-wrapper {
    position: relative;
}
.others-menu-wrapper:hover .others-submenu-left {
    display: block !important;
}
.others-submenu-left {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    z-index: 999;
    min-width: 200px;
    list-style: none;
    margin: 0;
}
.others-submenu-left li a:hover {
    background-color: #f0f0f0;
    color: var(--primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- Home ---------- */
/* full-width banner: height follows the image so there is no side gap or crop */
.custom-slider-height {
    height: auto !important;
}
.custom-slider-height img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none;
    object-fit: initial !important;
}
#mobileQuickBnts .card {
    font-size: 22px;
    padding: 35px 10px;
    background: #fff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    color: var(--primary);
}
#mobileQuickBnts .card .card-title {
    font-size: 16px;
    color: var(--dark);
}
#section_featured .slick-slider .slick-list {
    background: #fff;
}
#section_featured .slick-slider .slick-list .slick-slide {
    margin-bottom: -5px;
}
@media (max-width: 575px) {
    #section_featured .slick-slider .slick-list .slick-slide {
        margin-bottom: -4px;
    }
}

/* ---------- Footer ---------- */
.footer-widget {
    background-color: #212129 !important;
}
.footer-widget .aiz-accordion-panel {
    background-color: #212129 !important;
}
#footerForMobile {
    background: var(--hov-primary);
}
.footerSocialLinks.social a {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50em !important;
    line-height: 31px !important;
    font-size: 16px !important;
}
.footerSocialLinks.social i {
    font-size: 16px;
}
@media screen and (max-width: 575px) {
    #footerForMobile {
        margin-bottom: 85px;
    }
}
@media (max-width: 375px) {
    .social {
        text-align: center !important;
    }
}

/* ---------- Mobile bottom nav ---------- */
.aiz-mobile-bottom-nav {
    background-color: #fff !important;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
.homeCircleMobileBtn {
    height: 50px;
    width: 50px;
    padding: 0;
    margin-top: -35px;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    line-height: 46px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* ---------- Auth pages ---------- */
@media (max-width: 991px) {
    .right-content {
        background: var(--white);
        margin-top: -60%;
        border-radius: 24px;
        min-height: 550px;
    }
}
@media (min-width: 991px) {
    .right-content {
        height: 100%;
    }
}

/* ---------- Checkout (single page) ---------- */
.checkout-card {
    background: var(--white);
    border: 1px solid var(--soft-light);
    border-radius: 8px;
    padding: 20px 16px;
}
@media (min-width: 768px) {
    .checkout-card {
        padding: 24px;
    }
}
.checkout-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}
.checkout-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.checkout-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 2px solid var(--soft-light);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.checkout-option:hover,
.checkout-option.active {
    border-color: var(--primary);
}
.checkout-option.active {
    background-color: var(--soft-primary);
}
.checkout-option:focus-within {
    box-shadow: 0 0 0 3px var(--soft-primary);
}
.checkout-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.checkout-option-radio {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--soft-white);
    border-radius: 50%;
    transition: border-color 0.2s ease;
}
.checkout-option.active .checkout-option-radio {
    border-color: var(--primary);
}
.checkout-option.active .checkout-option-radio:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.payment-option {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
}
.checkout-payment-img {
    max-width: 100%;
    height: 32px;
    object-fit: contain;
}
.checkout-items th {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    border-top: 0;
    border-bottom: 2px solid var(--light);
}
.checkout-items td {
    font-size: 14px;
    vertical-align: middle;
    border-top: 1px solid var(--light);
}
.checkout-items .min-w-0 {
    min-width: 0;
}
.checkout-product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
}
.checkout-product-name:hover {
    color: var(--primary) !important;
}
.checkout-totals td {
    font-size: 14px;
    padding: 6px 0;
    border-top: 0;
}
.checkout-totals .checkout-grand-total td {
    font-size: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--soft-light);
}
.checkout-note {
    font-size: 14px;
    background: var(--light);
    border-radius: 6px;
    padding: 12px;
}
.checkout-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 40px;
    color: var(--success);
    background: var(--soft-success);
    border-radius: 50%;
}
