:root {
    --primary-color: #04803e;
    --sunnah-blue: #0056b3;
    --vz-primary: var(--primary-color);
}

/* number input arrow remove */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {/* Chrome, Safari, Edge, Opera */
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {/* Firefox */
    -moz-appearance: textfield;
}

/**/
del {
    opacity: 0.5;
}
.product-thumbnail-slider {
    cursor: pointer;
}
.bg-primary {
    background-color: var(--sunnah-blue) !important;
}
.text-success {
    color: var(--primary-color) !important;
}
.btn-success {
    background-color: var(--primary-color);
}
.btn-outline-secondary {
    border-color: var(--sunnah-blue);
    color: var(--sunnah-blue);
}
.btn-outline-secondary:hover {
    border-color: var(--sunnah-blue);
    background-color: var(--sunnah-blue);
}
.btn-success:hover, .btn-success:focus {
    background-color: var(--sunnah-blue);
    border-color: var(--sunnah-blue);
}
button.swal2-confirm {
    background-color: var(--primary-color);
}
button.swal2-confirm:hover, button.swal2-confirm:focus {
    background-color: var(--sunnah-blue);
}

/* Adjustment for additional spacing */
[data-layout="horizontal"] .navbar-menu {
    margin-top: 110px;
}
.page-content {
  padding: calc(90px + 1.5rem) calc(1.5rem * .5) 60px calc(1.5rem * .5);
}
[data-layout="horizontal"] .page-content {
  padding: calc(85px + 1.5rem) calc(1.5rem * .5) 60px calc(1.5rem * .5);
}
#page-topbar {
    max-width: 100vw;
}

.effect-card .card-title a {
    color: var(--sunnah-blue);
    transition: color 0.3s ease;
    font-size: 15px;
    font-weight: 400;
}

/* */
.navbar-menu {
    background: linear-gradient(-45deg, var(--primary-color) 0%, #0056b3 100%);
}
.effect-card a.btn-primary {
    background-color: var(--sunnah-blue);
}
.add-cart-quick {
    background-color: var(--sunnah-blue);
    color: white;
}

/* Topbar Announcement Styles */
#topbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    overflow: hidden;
    position: relative;
    height: 40px;
    z-index: 1000;
}

.announcement-bar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.announcement-content {
    height: 40px;
}
.announcement-text {
    text-align: center;
    line-height: 40px;
}

:is([data-layout="vertical"], [data-layout="semibox"]) .horizontal-logo {
    display: block;
}

[data-layout="horizontal"] .navbar-menu {
    /*background-color: var(--primary-color);*/
}
[data-layout="horizontal"] .navbar-menu ul.navbar-nav li.nav-item .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Section Header Styles */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-title .title-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.2rem;
    white-space: nowrap;
}

.section-title .title-line {
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
}

.section-title .title-line::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.section-title .title-line:last-child::after {
    right: auto;
    left: -5px;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-title .title-text {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-title .title-text {
        font-size: 1.6rem;
    }
    
    .section-title .title-line {
        height: 1px;
    }
    
    .section-title .title-line::after {
        width: 6px;
        height: 6px;
    }
    .effect-card .card-title a {
        font-size: 12px;
    }
    .row.product-grid > * {
        padding: 0 0.25rem;
    }
    .row.product-grid .card {
        margin-bottom: 0.5rem;
    }
}

/* Full-width Call to Action Styles */
.full-width-call-to-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.full-width-call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.full-width-call-to-action::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.full-width-call-to-action .container {
    position: relative;
    z-index: 2;
}

.full-width-call-to-action h2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.full-width-call-to-action p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.full-width-call-to-action .btn {
    background: #fff;
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.full-width-call-to-action .btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.full-width-call-to-action .btn:active {
    transform: translateY(-1px);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Additional decorative elements */
.full-width-call-to-action::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

/* Responsive design */
@media (max-width: 768px) {
    .full-width-call-to-action {
        padding: 60px 0;
        margin: 40px 0;
    }
    
    .full-width-call-to-action h2 {
        font-size: 2.2rem;
    }
    
    .full-width-call-to-action p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .full-width-call-to-action .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .full-width-call-to-action {
        padding: 50px 15px;
    }
    
    .full-width-call-to-action h2 {
        font-size: 1.8rem;
    }
    
    .full-width-call-to-action p {
        font-size: 1rem;
    }
}

/* Hover effect for the entire section */
.full-width-call-to-action:hover::after {
    animation-duration: 4s;
}

/* Ribbon */
.ribbon-box .ribbon {
    z-index: 1;
}

/* Product effect-card Hover Effects */
.effect-card {
    transition: all 0.3s ease;
    border: 1px solid #e3e6f0;
    position: relative;
    overflow: hidden;
}

.effect-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.effect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.effect-card:hover::before {
    left: 100%;
}

.card-img-top {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
}

.effect-card:hover .card-img-top {
    transform: scale(1.05);
}

.effect-card .card-body {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.effect-card:hover .card-body {
    background: rgba(255, 255, 255, 0.95);
}

.effect-card:hover .card-title {
    color: var(--primary-color);
}

.effect-card .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.effect-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.effect-card:hover .btn::before {
    left: 100%;
}

.effect-card:hover .btn {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

/* Category effect-card Hover Effects */
.effect-card .card-body h5 {
    transition: all 0.3s ease;
}

.effect-card:hover .card-body h5 {
    transform: translateY(-3px);
    font-weight: 600;
}

.card-text {
    transition: color 0.3s ease;
}

.effect-card:hover .card-text {
    color: #666;
}

/* Swiper effect-card Hover Effects */
.swiper-slide .effect-card {
    height: 100%;
}

.swiper-slide .effect-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Animation delays for staggered effect */
.col-md-3:nth-child(1) .effect-card {
    transition-delay: 0ms;
}

.col-md-3:nth-child(2) .effect-card {
    transition-delay: 50ms;
}

.col-md-3:nth-child(3) .effect-card {
    transition-delay: 100ms;
}

.col-md-3:nth-child(4) .effect-card {
    transition-delay: 150ms;
}

/* Mobile responsiveness for hover effects */
@media (max-width: 768px) {
    .effect-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .effect-card:hover .card-img-top {
        transform: scale(1.02);
    }
}

/* Accessibility - reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .effect-card,
    .effect-card .card-img-top,
    .effect-card .card-body,
    .effect-card .card-title,
    .effect-card .btn,
    .effect-card .card-body h5,
    .effect-card .card-text {
        transition: none;
    }

    .effect-card:hover {
        transform: none;
    }

    .effect-card:hover .card-img-top {
        transform: none;
    }
}

/* Loyalty Offer Styles */
#loyalty-offer {
    padding: 40px 30px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#loyalty-offer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(4, 128, 62, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

#loyalty-offer::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 100px;
    height: 100px;
    background: rgba(4, 128, 62, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

#loyalty-offer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

#loyalty-offer h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

#loyalty-offer p {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

#loyalty-offer .form-control {
    border: 2px solid #dee2e6;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

#loyalty-offer .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(4, 128, 62, 0.25);
    transform: translateY(-2px);
}

#loyalty-offer .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(4, 128, 62, 0.3);
    position: relative;
    z-index: 2;
    width: 100%;
}

#loyalty-offer .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(4, 128, 62, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-color) 100%);
}

#loyalty-offer .btn:active {
    transform: translateY(-1px);
}

/* Add pulse animation to the offer */
#loyalty-offer h1::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(4, 128, 62, 0.1);
    border-radius: 10px;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    #loyalty-offer {
        padding: 30px 20px !important;
        border-radius: 10px;
    }
    
    #loyalty-offer h1 {
        font-size: 2.2rem;
    }
    
    #loyalty-offer p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    #loyalty-offer .form-control {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    #loyalty-offer .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #loyalty-offer {
        padding: 25px 15px !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    #loyalty-offer h1 {
        font-size: 1.8rem;
    }
    
    #loyalty-offer p {
        font-size: 1rem;
    }
    .page-content {
        padding-left: 0;
        padding-right: 0;
    }
    #loyalty-section {
        margin: 0 !important;
    }
    .call-to-action {
        margin: 0 !important;
    }
}

/* Footer Styles */
.footer {
    position: relative;
    /*background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;*/
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    margin-top: auto;
    height: auto;
}

.footer .footer-section h5,
.footer .footer-section h6 {
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.footer .footer-section h5::after,
.footer .footer-section h6::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 1px;
}

.footer .footer-links {
    list-style: none;
    padding: 0;
}

.footer .footer-links li {
    margin-bottom: 0.5rem;
}

.footer .footer-links a {
    color: #b8b8b8 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer .footer-links a:hover {
    color: #007bff !important;
    transform: translateX(5px);
}

.footer .footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #007bff;
    transition: width 0.3s ease;
}

.footer .footer-links a:hover::before {
    width: 10px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #b8b8b8 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer .social-links a:hover {
    background: #007bff;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.footer .contact-info {
    line-height: 1.8;
}

.footer .contact-info i {
    width: 20px;
    flex-shrink: 0;
}

.footer .app-links img {
    transition: all 0.3s ease;
    border-radius: 8px;
    opacity: 0.9;
}

.footer .app-links img:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer .newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 25px 0 0 25px;
}

.footer .newsletter-form .form-control::placeholder {
    color: #b8b8b8;
}

.footer .newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #007bff;
    color: #fff;
    box-shadow: none;
}

.footer .newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    border: none;
    background: linear-gradient(45deg, #007bff, #0056b3);
    transition: all 0.3s ease;
}

.footer .newsletter-form .btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.footer .payment-methods .badge {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer .payment-methods .badge:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.footer .footer-legal a {
    color: #b8b8b8 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-legal a:hover {
    color: #007bff !important;
}

.footer .text-light-emphasis {
    color: #b8b8b8 !important;
}

.footer .text-primary {
    color: #007bff !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        margin-bottom: 70px;
    }
    .footer .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer .footer-section h5::after,
    .footer .footer-section h6::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer .social-links {
        justify-content: center;
    }
    
    .footer .app-links {
        align-items: center;
    }
    
    .footer .payment-methods {
        justify-content: center !important;
    }
    
    .footer .footer-legal {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Stripe Form */
.hidden {
    display: none;
}
#payment-form #error-message {
    color: red;
}

/* Mobile Footer Navigation */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e3e6f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    height: 70px;
}

.mobile-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
    background: rgba(4, 128, 62, 0.1);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mobile-nav-item:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(4, 128, 62, 0.05);
}

.mobile-nav-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    background: #dc3545;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Animation on tap */
.mobile-nav-item:active {
    transform: scale(0.95);
}

/* Ripple effect */
.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(4, 128, 62, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.mobile-nav-item:active::before {
    width: 40px;
    height: 40px;
}

/* Hide on larger screens */
@media (min-width: 768px) {
    .mobile-footer-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

.truncate-multiline {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Number of lines to display */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Optional: adds ellipsis if content is truncated */
}

/* product labels */
#product-labels .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

#product-labels .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

.bg-success-gradient {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%) !important;
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%) !important;
}

#product-labels .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

#product-labels .badge:hover::before {
    left: 100%;
}

/* Animated SVG Icons */
.animated-icon {
    display: inline-block;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
                        
.fire-icon {
    animation: fireFlicker 1.5s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

.fire-icon path:nth-child(1) {
    animation: fireFlicker 1.5s ease-in-out infinite alternate;
}

.fire-icon path:nth-child(2) {
    animation: fireFlicker 1.3s ease-in-out infinite alternate 0.2s;
}

.fire-icon path:nth-child(3) {
    animation: fireFlicker 1.7s ease-in-out infinite alternate 0.4s;
}
.star-icon {
    animation: starTwinkle 2s ease-in-out infinite;
    transform-origin: center;
}

.sparkle-icon {
    animation: sparkleRotate 3s linear infinite;
    transform-origin: center;
}

.warning-icon {
    animation: warningPulse 2s ease-in-out infinite;
    transform-origin: center;
}
                
@keyframes fireFlicker {
    0% { transform: scale(1) rotate(-1deg) skewX(0deg); opacity: 0.9; }
    25% { transform: scale(1.05) rotate(1deg) skewX(1deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(-0.5deg) skewX(-0.5deg); opacity: 0.95; }
    75% { transform: scale(1.03) rotate(0.8deg) skewX(0.8deg); opacity: 1; }
    100% { transform: scale(1.08) rotate(-1.2deg) skewX(-1deg); opacity: 0.92; }
}
@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.2) rotate(5deg); opacity: 0.8; }
    50% { transform: scale(1) rotate(0deg); opacity: 1; }
    75% { transform: scale(1.1) rotate(-5deg); opacity: 0.9; }
}

@keyframes sparkleRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Hover animations */
#product-labels .badge:hover .fire-icon {
    animation: fireFlicker 0.8s ease-in-out infinite alternate;
}

#product-labels .badge:hover .star-icon {
    animation: starTwinkle 1s ease-in-out infinite;
}

#product-labels .badge:hover .sparkle-icon {
    animation: sparkleRotate 1.5s linear infinite;
}

#product-labels .badge:hover .warning-icon {
    animation: warningPulse 1s ease-in-out infinite;
}

@media (max-width: 576px) {
    #product-labels .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .animated-icon {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Mobile Filter Sidebar Styles */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Desktop - no changes */
@media (min-width: 992px) {
    #filterSidebar {
        position: relative !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        z-index: auto !important;
    }
    
    #mobile-filter,
    #closeMobileSidebar {
        display: none !important;
    }
}

/* Mobile - slide-in sidebar */
@media (max-width: 991.98px) {
    #filterSidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        padding: 20px 15px;
    }
    
    #filterSidebar.mobile-sidebar-active {
        transform: translateX(0);
    }
    
    /* Smooth scrolling for sidebar */
    #filterSidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    #filterSidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    #filterSidebar::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    #filterSidebar::-webkit-scrollbar-thumb:hover {
        background: var(--sunnah-blue);
    }
    
    /* Mobile filter button styling */
    #mobile-filter {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    #mobile-filter:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    #mobile-filter i {
        font-size: 18px;
    }
    
    /* Close button styling */
    #closeMobileSidebar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    #closeMobileSidebar:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: rotate(90deg);
    }
    
    /* Adjust sidebar cards for mobile */
    #filterSidebar .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 20px;
    }
    
    #filterSidebar .card-body {
        padding: 20px;
    }
}

/* Tablet adjustments */
@media (max-width: 767.98px) {
    #filterSidebar {
        width: 90%;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    #filterSidebar {
        width: 95%;
    }
}