/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* Global Red Overrides */
.text-danger {
    color: #F5242A !important;
}

.bg-danger {
    background-color: #F5242A !important;
}

.btn-danger {
    background-color: #F5242A;
    border-color: #F5242A;
}

.btn-danger:hover {
    background-color: #c01217;
    border-color: #c01217;
}

.btn-outline-danger {
    color: #F5242A;
    border-color: #F5242A;
}

.btn-outline-danger:hover {
    background-color: #F5242A;
    color: #fff;
}

/* Specific Element Overrides */
.ribbon.off {
    background-color: #F5242A !important;
    background-image: none !important;
}

.ribbon.off:before {
    border-color: #F5242A transparent transparent !important;
}

.rating .voted {
    color: #F5242A !important;
}

.new_price {
    color: #F5242A !important;
}

/* Product Card Redesign */
.grid_item {
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 15px 5px 15px;
    height: 100%;
    margin-bottom: 30px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.grid_item > .d-flex {
    margin-top: auto;
}

.grid_item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.grid_item figure {
    border-radius: 10px;
    margin-bottom: 15px !important;
}

/* Discount Badge */
.ribbon.off {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #F5242A !important;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -5px;
    right: -5px;
    left: auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 0;
    z-index: 9;
}

.ribbon.off:before {
    display: none;
}

/* Title */
.grid_item a h3 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
    height: auto;
    min-height: auto;
}

/* Price */
.price_box {
    text-align: left;
    margin-bottom: 5px !important;
}

.price_box .old_price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

.price_box .new_price {
    font-size: 18px !important;
    font-weight: 700;
    color: #F5242A !important;
    /* Purple for price */
}

/* Buttons */
.grid_item .cart_add_btn {
    width: 100%;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    margin-top: 0;
}

/* Buy Now Button */
.grid_item .cart_add_btn[data-buy_now="1"] {
    background-color: #F5242A;
    color: white;
    border: none;
    width: auto;
    flex-grow: 1;
    border-radius: 8px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    padding: 0 15px;
    /* Horizontal padding only */
}

.grid_item .cart_add_btn[data-buy_now="1"]:hover {
    background-color: #c01217;
}

/* Add to Cart Button (Icon only style) */
.grid_item .cart_add_btn:not([data-buy_now="1"]) {
    background: white !important;
    background-image: none !important;
    color: #F5242A !important;
    border: 1px solid #F5242A !important;
    width: 45px;
    height: 38px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.grid_item .cart_add_btn:not([data-buy_now="1"]):hover {
    background: #F5242A !important;
    background-image: none !important;
    color: white !important;
}

.grid_item .cart_add_btn:not([data-buy_now="1"]) i {
    font-size: 17px;
    vertical-align: middle;
}

/* Ensure no text is displayed (just in case) */
.grid_item .cart_add_btn:not([data-buy_now="1"]) {
    font-size: 16px;
    /* text size for icon is controlled by font-size */
}

/* Rating alignment */
.grid_item .rating {
    text-align: left;
    margin-bottom: 5px;
    display: block;
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
    .grid_item .cart_add_btn {
        font-size: 11px;
        /* Smaller font for mobile */
        padding: 6px 8px;
        /* Reduced padding */
    }

    .grid_item .cart_add_btn[data-buy_now="1"] {
        width: auto;
        /* Ensure it shares space flexibility */
    }

    .grid_item .cart_add_btn:not([data-buy_now="1"]) {
        width: 35px;
        /* Smaller icon button */
        height: 32px;
    }

    .grid_item .cart_add_btn:not([data-buy_now="1"]) i {
        font-size: 14px;
        /* Smaller icon */
    }

    .grid_item {
        padding: 10px;
        /* Thinner padding on mobile card */
    }

    .price_box {
        margin-bottom: 5px !important;
        /* Even tighter spacing */
    }

    .main_title h2,
    .cat-title {
        font-size: 18px !important;
        padding: 10px 25px !important;
    }
}

/* Footer Styles Override */
#newsletter-container {
    background: #1c1e22 !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
}

footer {
    background: #141619 !important;
    color: #fff;
    padding-top: 40px !important;
}

footer h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 18px !important;
}

footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: #F5242A;
}

.service-color {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.service-color:hover {
    color: #F5242A !important;
}

body {
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #F5242A #f1f1f1;
}

/* Custom Scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #F5242A;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #B31B20 !important;
}

.footer-bottom {
    background: #0f1012 !important;
    padding: 15px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile Menu Overrides - Maximum Specificity */
#menu,
#menu.mm-menu,
.mm-menu,
.mm-menu.mm-theme-black,
.mm-menu.mm-theme-white,
.mm-menu.mm-theme-dark,
.mm-menu.mm-theme-light,
.mm-wrapper .mm-menu,
div#menu {
    background: #F5242A !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

#menu .mm-panel,
#menu .mm-panels,
#menu .mm-listview,
#menu .mm-navbar,
.mm-menu .mm-panel,
.mm-menu .mm-panels,
.mm-menu .mm-listview,
.mm-menu .mm-navbar {
    background: #F5242A !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

#menu .mm-navbar a,
#menu .mm-navbar > *,
.mm-menu .mm-navbar a,
.mm-menu .mm-navbar > * {
    color: white !important;
}

#menu .mm-btn:after,
#menu .mm-btn:before,
.mm-menu .mm-btn:after,
.mm-menu .mm-btn:before {
    border-color: white !important;
}

#menu .mm-listview > li .mm-next:after,
.mm-menu .mm-listview > li .mm-next:after {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* List Item Text Color - Force White */
#menu .mm-listview > li a,
#menu .mm-listview > li span,
.mm-menu .mm-listview > li a,
.mm-menu .mm-listview > li span {
    color: white !important;
}

/* Selected Item */
#menu .mm-listview > li.mm-selected > a:not(.mm-next),
#menu .mm-listview > li.mm-selected > span,
.mm-menu .mm-listview > li.mm-selected > a:not(.mm-next),
.mm-menu .mm-listview > li.mm-selected > span {
    background: #c01217 !important;
    color: white !important;
    font-weight: 600;
}

/* Hover State */
#menu .mm-listview > li > a:not(.mm-next):hover,
#menu .mm-listview > li > span:hover,
.mm-menu .mm-listview > li > a:not(.mm-next):hover,
.mm-menu .mm-listview > li > span:hover {
    background: #c01217 !important;
    color: white !important;
}

/* Submenu Arrow Interaction */
#menu .mm-listview > li .mm-next:active,
#menu .mm-listview > li .mm-next:focus,
.mm-menu .mm-listview > li .mm-next:active,
.mm-menu .mm-listview > li .mm-next:focus {
    background: #c01217 !important;
    color: white !important;
}

/* Mobile Menu (User Specified) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #F5242A !important;
    z-index: 2000;
    transition: left 0.3s;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    left: 0;
}

/* Cart Button Background */
#cart_button {
    background: #e0c6ff !important;
    border: 1px dashed #F5242A;
}

/* Checkout Page Overrides */
.box_general.summary .total {
    color: #F5242A !important;
}

#confirm_order {
    background-color: #F5242A !important;
    color: white !important;
    border: none;
}

#confirm_order:hover {
    background-color: #c01217 !important;
}

/* Radio Button Color Override */
.container_radio input:checked ~ .checkmark {
    background-color: #F5242A !important;
    border: 1px solid #F5242A !important;
}

/* Order Confirmation Modal Overrides */
#default_modal .btn_1 {
    background-color: #F5242A !important;
    color: white !important;
    border: none;
}

#default_modal .btn_1:hover {
    background-color: #c01217 !important;
}

#default_modal .modal_close.close {
    opacity: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Optional: for better look */
}

/* Offcanvas Cart Overrides */
.total_drop .btn_1 {
    background-color: #F5242A !important;
    color: white !important;
    border: 1px solid #F5242A !important;
}

.total_drop .btn_1:hover {
    background-color: #c01217 !important;
    color: white !important;
}

.total_drop .btn_1.outline {
    background-color: white !important;
    color: #F5242A !important;
    border: 1px solid #F5242A !important;
}

/* Homepage Section Header - Glassmorphism Style */
.main_title h2,
.cat-title {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    padding: 12px 35px !important;
    border-radius: 50px !important;
    background: rgba(245, 36, 42, 0.1) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #F5242A !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    font-weight: 700 !important;
}

/* Glass Header Bar Layout */
.glass-header-bar {
    background: rgba(245, 36, 42, 0.06) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.glass-header-bar .title-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.glass-header-bar .title-text span {
    color: #F5242A;
}

.glass-header-bar .view-all-link {
    color: #F5242A;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.glass-header-bar .view-all-link:hover {
    color: #c01217;
    transform: translateX(3px);
}

/* Remove old gradient if present or specify for cat-title specifically if needed */
.cat-title {
    text-align: center;
    font-size: 28px;
}

/* Remove old underline */
.main_title h2::after {
    display: none !important;
}

/* Carousel/Slider Dots */
.owl-theme .owl-dots .owl-dot span {
    background: transparent !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    border-color: #F5242A !important;
}

.owl-theme .owl-dots .owl-dot span::before {
    background-color: #F5242A !important;
}

/* Custom 5-column grid for products */
@media (min-width: 992px) {
    .col-lg-custom-5 {
        flex: 0 0 auto !important;
        width: 20% !important;
    }
}

.subcategory-header {
    background: rgba(245, 36, 42, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 15px;
    padding: 15px 25px !important;
    box-shadow: 0 4px 15px rgba(245, 36, 42, 0.05);
    border-bottom: none !important;
    margin-bottom: 25px !important;
}

.pt-reduced {
    padding-top: 15px !important;
}

.pb-reduced {
    padding-bottom: 0px !important;
}

/* Circular Social Icons */
.social-links-circular {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 0;
    justify-content: flex-start;
}

.social-icon-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.social-icon-circle.facebook {
    background-color: #1877f2;
}

.social-icon-circle.instagram {
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
}

.social-icon-circle.youtube {
    background-color: #ff0000;
}

.margin_15 {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* Mobile Spacing Optimizations */
@media (max-width: 767px) {
    .container.margin_15 {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }

    .glass-header-bar {
        margin-top: 0 !important;
        margin-bottom: 5px !important;
        padding: 8px 15px !important;
    }

    .pt-reduced {
        padding-top: 0px !important;
    }

    .pb-reduced {
        padding-bottom: 0px !important;
    }

    header .main_nav {
        padding: 5px 0 !important;
    }

    .container.margin_60_35 {
        padding-top: 5px !important;
        padding-bottom: 0px !important;
    }

    .container.margin_30 {
        padding-top: 5px !important;
        padding-bottom: 0px !important;
    }

    .grid_item {
        margin-bottom: 5px !important;
    }

    .cat-container {
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        margin-top: 0px !important;
    }

    .owl-carousel {
        margin-bottom: 0 !important;
    }

    .owl-carousel .owl-dots {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1 !important;
    }

    .owl-theme .owl-dots .owl-dot span {
        margin: 2px 7px !important;
    }

    .best-selling-section {
        margin-top: 8px !important;
    }

    .brands-bento-container {
        padding-bottom: 20px !important;
    }
}
