@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Vazirmatn:wght@100..900&display=swap');

.product-card {
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.price-stack {
    line-height: 1.2;
}

.price-stack .badge {
    font-size: 0.66rem;
    padding: 0.18rem 0.42rem;
}

.card-img-top {
   /* height: 300px;*/
    object-fit: cover;
}

body {
    background-color: #FDFBF7;
    /* Warm White */
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
}

.navbar {
    background-color: #FDFBF7 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #E6DCC5;
    /* Soft Gold */
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: #10452f !important;
    /* Deep Green */
    letter-spacing: -1px;
}

.nav-link {
    color: #0a2e1f !important;
    /* Darker Green */
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #C5A059 !important;
    /* Gold */
}

.no-caret::after {
    display: none !important;
}

/* Mega Dropdown styling */
.has-mega-menu {
    position: static !important;
}

.mega-dropdown-menu {
    width: 600px;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 100%;
    border-radius: 12px;
    background-color: #ffffff !important;
    border: 1px solid #E6DCC5;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(16, 69, 47, 0.1);
}

.category-toggle:hover {
    background-color: #FDFBF7;
}

.category-toggle[aria-expanded="true"] .transition-icon {
    transform: rotate(45deg);
    color: #C5A059 !important;
}

.category-toggle {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.dropdown-item:active {
    background-color: #10452f;
}

.dropdown-column {
    min-width: 200px;
}

.dropdown-column h6 {
    color: #10452f;
    font-weight: 900;
    border-bottom: 2px solid #E6DCC5;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.dropdown-item {
    color: #1a1a1a;
    padding: 8px 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #FDFBF7;
    color: #C5A059;
    padding-right: 5px;
}

.dropdown-menu .dropend .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-right: 0.15rem;
}

.search-input {
    border-radius: 20px;
    border: 1px solid #E6DCC5;
    padding: 8px 20px;
    background-color: #ffffff;
}

.footer {
    background-color: #0a2e1f !important;
    /* Dark Green Footer */
    color: #FDFBF7;
    border-top: 5px solid #C5A059;
}

.footer p,
.footer a,
.footer li,
.footer span,
.footer .text-muted {
    color: #C5A059 !important;
}

.footer .text-brown {
    color: #C5A059 !important;
}

/* User Profile & General Colors */
.bg-brown {
    background-color: #10452f !important;
}

.text-brown {
    color: #10452f !important;
}

.btn-brown {
    background-color: #10452f;
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
}

.btn-brown:hover {
    background-color: #C5A059;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.card {
    border: none;
    transition: transform 0.3s ease;
}

.rounded-4 {
    border-radius: 1.25rem !important;
}

/* Home Categories Section */
.category-box {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-box:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: center;
}

.category-overlay h4 {
    margin-bottom: 5px;
    font-weight: 800;
}

.category-overlay span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.section-title {
    position: relative;
    margin-bottom: 0px;
    font-weight: 900;
    color: #10452f;
    margin-top: 34px;
}

.popular-header-row {
    flex-wrap: nowrap;
    align-items: center !important;
    gap: 0.6rem;
}

.popular-header-row .section-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2;
}

.popular-header-row .btn-link {
    margin: 0 !important;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    white-space: nowrap;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #E6DCC5;
} */

/* Typography for Brand Name */
.brand-typography {
    font-family: 'Lalezar', cursive;
    font-weight: normal;
    font-size: 6rem;
    color: #10452f;
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
}

.brand-typography span {
    display: block;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 12px;
    text-indent: 12px;
    /* Centers text when letter-spacing is used */
    text-transform: uppercase;
    color: #C5A059;
    margin-top: -10px;
    text-align: center;
}

.brand-typography::before {
    content: '';
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 1px;
    background: #E6DCC5;
}

/* User Dashboard Styles */
.dashboard-sidebar .list-group-item {
    border: none;
    padding: 15px 20px;
    margin-bottom: 5px;
    border-radius: 10px !important;
    color: #0a2e1f;
    transition: all 0.3s;
    font-weight: 500;
}

.dashboard-sidebar .list-group-item i {
    width: 25px;
    text-align: center;
}

.dashboard-sidebar .list-group-item:hover,
.dashboard-sidebar .list-group-item.active {
    background-color: #FDFBF7 !important;
    color: #10452f !important;
    padding-right: 25px;
}

.dashboard-sidebar .list-group-item.active {
    font-weight: 800;
}

.form-control:focus {
    border-color: #E6DCC5;
    box-shadow: 0 0 0 0.25rem rgba(230, 220, 197, 0.25);
}

.badge.bg-danger {
    background-color: #c94c4c !important;
}

@media (max-width: 991.98px) {
    .mega-dropdown-menu {
        width: 100%;
        transform: none !important;
        left: 0 !important;
    }
}

/* Admin Panel & Dashboard Styles */
.sidebar {
    height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #FDFBF7 !important;
}

.mobile-header-bar {
    display: none;
}

/* Header Responsiveness Fixes */
@media (min-width: 992px) {
    .navbar .container-fluid {
        flex-wrap: nowrap !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-wrap: nowrap !important;
        justify-content: space-between;
    }

    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }

    .search-form {
        flex-grow: 1 !important;
        flex-shrink: 1 !important;
        max-width: 350px !important;
        min-width: 100px !important;
        margin-right: 1rem !important;
        margin-left: 1rem !important;
    }

    .navbar-brand {
        white-space: nowrap;
        font-size: 1.6rem !important;
        margin-left: 1rem !important;
        flex-shrink: 0;
        font-family: 'Playfair Display', serif;
    }

    .nav-link {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        display: flex;
        align-items: center;
    }

    .auth-cart-section {
        flex-shrink: 0;
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .navbar .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .navbar-brand {
        font-size: 1.4rem !important;
        margin-left: 0.5rem !important;
    }

    .nav-link {
        font-size: 0.85rem !important;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }

    .search-form {
        max-width: 250px !important;
    }
}

.nav-link {
    white-space: nowrap !important;
}

.dashboard-sidebar .nav-link {
    color: #0a2e1f;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 0.2s;
    font-weight: 500;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    color: #10452f;
    background-color: #E6DCC5;
    font-weight: 800;
}

/* Global Overrides for Theme Consistency */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-info {
    border: none !important;
}

/* Convert default BS colors to Theme colors sparingly where semantic meaning allows */
.bg-light {
    background-color: #fcfcfc !important;
}

.form-select:focus,
.form-control:focus {
    border-color: #10452f;
    box-shadow: 0 0 0 0.25rem rgba(16, 69, 47, 0.25);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    border-right: 5px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    border-right: 5px solid #dc3545;
}

/* Hoorrokh Theme Overrides */

/* Override Bootstrap Buttons */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.btn-dark,
.btn-light,
.btn-pastel,
.btn-cream,
.btn-brown {
    background-color: #10452f !important;
    /* Deep Green */
    color: #fff !important;
    border: none !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-dark:hover,
.btn-light:hover,
.btn-pastel:hover,
.btn-cream:hover,
.btn-brown:hover {
    background-color: #C5A059 !important;
    /* Gold */
    color: #fff !important;
}

/* Exception: Outline buttons */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-brown,
.btn-outline-dark,
.btn-outline-danger {
    color: #10452f !important;
    border-color: #10452f !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-brown:hover,
.btn-outline-dark:hover,
.btn-outline-danger:hover {
    background-color: #10452f !important;
    color: #fff !important;
}


/* Alerts - Hoorrokh Theme */
.alert,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    background-color: #FDFBF7 !important;
    color: #0a2e1f !important;
    border-color: #E6DCC5 !important;
    border-right: 5px solid #10452f !important;
}

/* Right align all form labels and selects for Persian */
label,
.form-label,
.form-select,
.form-control,
.card-title,
.card-text,
.section-title {
    text-align: right !important;
}

/* Ensure options inside select are also right aligned */
select option {
    text-align: right !important;
}

/* Force direction on common elements */
body,
div,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select {
    text-align: right;
}

/* Price Color -> Black */
.text-price,
.fw-bold.text-primary,
.fw-bold.text-dark {
    color: #000000 !important;
}



/* Footer Styles */
.text-brown {
    color: #10452f !important;
}

/* Footer specific overrides */
footer .text-brown {
    color: #C5A059 !important;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E6DCC5;
    border-radius: 8px;
    color: #10452f;
    transition: all 0.3s;
    text-decoration: none;
    background: white;
}

.social-icon:hover {
    background-color: #10452f;
    color: white;
    transform: translateY(-3px);
}

.footer-links a:hover {
    color: #C5A059 !important;
    padding-right: 5px;
    transition: all 0.3s;
}

/* Hero slider sizing */
.hero-carousel {
    --hero-slide-height: 400px;
}

.hero-carousel .carousel-inner {
    height: var(--hero-slide-height);
}

.hero-carousel .carousel-item,
.hero-carousel .hero-slide {
    height: var(--hero-slide-height);
    min-height: var(--hero-slide-height);
}

.hero-carousel .hero-slide > .d-flex {
    height: 100%;
    padding-bottom: 3.1rem !important;
}

.hero-carousel .carousel-indicators {
    bottom: 0.9rem;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    margin-left: 0.3rem;
    margin-right: 0.3rem;
}

.hero-slide-logo {
    max-height: 220px;
}

.hero-product-image {
    max-height: 350px;
    object-fit: contain;
}

.hero-image-col {
    justify-content: flex-start !important;
    padding-left: 2rem;
    direction: ltr;
    background: transparent !important;
    border-right: none !important;
}

/* Mobile bottom navbar */
.mobile-bottom-nav {
    display: none;
}

.mobile-special-icon-btn {
    color: #b77318;
    border-color: #f0d2a2;
    background: linear-gradient(180deg, #fffaf0 0%, #fff3df 100%);
}

.mobile-special-offer-link {
    display: none;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 74px;
    }

    .navbar {
        padding: 0.25rem 0 !important;
        min-height: 50px;
    }

    .desktop-brand {
        display: none !important;
    }

    .mobile-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        width: 100%;
        min-height: 40px;
        padding: 0 0.2rem;
    }

    .mobile-header-right,
    .mobile-header-left {
        width: 78px;
        display: flex;
        align-items: center;
    }

    /* .mobile-header-right {
        justify-content: flex-end;
        padding-right: 0.02rem;
    } */

    .mobile-header-left {
        justify-content: flex-start;
        gap: 0.24rem;
        padding-left: 0.02rem;
        direction: ltr;
    }

    .mobile-header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        pointer-events: none;
    }

    .mobile-navbar-brand {
        font-family: 'Lalezar', cursive;
        color: #10452f;
        font-size: 1.3rem;
        line-height: 1;
        gap: 0.22rem;
        pointer-events: none;
        user-select: none;
    }

    .mobile-navbar-brand img {
        height: 22px;
        width: 22px;
        object-fit: cover;
    }

    .mobile-header-icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
        padding: 0;
        line-height: 1;
        border-radius: 50%;
        border: 1px solid #E6DCC5;
        color: #10452f;
        text-decoration: none;
        background: #fff;
        font-size: 0.72rem;
    }

    .mobile-header-cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        font-size: 0.5rem;
        min-width: 14px;
        line-height: 1.1;
        padding: 0.12rem 0.24rem;
    }

    .admin-sidebar {
        display: block !important;
        height: auto;
        border: 1px solid #E6DCC5;
        border-radius: 14px;
        box-shadow: none;
        margin-bottom: 1rem;
    }

    .admin-sidebar .position-sticky {
        position: static !important;
        top: auto !important;
        padding-top: 0.5rem !important;
    }

    .admin-sidebar .dashboard-sidebar {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.35rem;
        padding-bottom: 0.2rem;
    }

    .admin-sidebar .dashboard-sidebar .nav-item {
        flex: 0 0 auto;
    }

    .admin-sidebar .dashboard-sidebar .nav-link {
        margin-bottom: 0;
        border: 1px solid #E6DCC5;
        border-radius: 999px;
        padding: 0.45rem 0.85rem;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .navbar .container-fluid {
        justify-content: space-between !important;
        padding-right: 0.2rem !important;
        padding-left: 0.2rem !important;
    }

    .navbar-toggler,
    .desktop-navbar-content {
        display: none !important;
    }

    .hero-carousel {
        --hero-slide-height: 200px;
        max-width: 95%;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 0.55rem !important;
    }

    .hero-carousel .hero-slide {
        min-height: var(--hero-slide-height) !important;
        height: var(--hero-slide-height) !important;
    }

    .hero-carousel .hero-slide .h-100 {
        height: 100% !important;
        min-height: 0 !important;
    }

    .hero-carousel .hero-slide > .d-flex {
        padding-bottom: 0 !important;
    }

    .hero-carousel .hero-slide .p-5 {
        padding: 0.45rem !important;
    }

    .hero-carousel .carousel-inner .carousel-item:first-child .d-flex {
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-slide-logo {
        max-height: 68px !important;
    }

    .hero-slide-tagline {
        font-size: 0.55rem !important;
        margin-bottom: 0.24rem !important;
    }

    .hero-product-image {
        max-height: 110px !important;
    }

    .hero-image-col {
        justify-content: center !important;
        padding-left: 0;
    }

    .hero-product-content {
        padding: 0.4rem !important;
    }

    .hero-cta-wrap {
        margin-bottom: 0.12rem;
    }

    .hero-slide-title {
        font-size: 0.92rem !important;
        margin-bottom: 0.2rem !important;
    }

    .hero-slide-price {
        font-size: 0.84rem !important;
        margin-bottom: 0.2rem !important;
    }

    .hero-carousel .badge {
        font-size: 0.55rem !important;
        padding: 0.18rem 0.45rem !important;
        margin-bottom: 0.22rem !important;
    }

    .hero-carousel .btn-lg {
        font-size: 0.64rem !important;
        padding: 0.26rem 0.55rem !important;
    }

    .hero-carousel .carousel-indicators {
        bottom: 0.08rem;
        margin-bottom: 0;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }

    .home-products-row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.55rem;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
    }

    .home-products-row .home-product-col {
        flex: 0 0 calc(50% - 0.28rem);
        max-width: calc(50% - 0.28rem);
        padding-left: 0;
        padding-right: 0;
    }

    .home-products-row .product-card .card-img-top {
         height: 100% !important;
        object-fit: contain;
        width: 100% !important;
    }

    .home-products-row .product-card .card-body {
        padding: 0.45rem;
    }

    .home-products-row .product-card .card-title {
        font-size: 0.76rem;
        margin-bottom: 0.3rem;
    }

    .home-products-row .product-card .btn {
        font-size: 0.68rem;
        padding: 0.22rem 0.35rem;
    }

    .home-products-row .price-stack small {
        font-size: 0.63rem;
    }

    .home-products-row .price-stack .badge {
        font-size: 0.52rem;
        padding: 0.12rem 0.32rem;
    }

    .home-products-row .price-stack p {
        font-size: 0.88rem;
    }

    .home-categories-grid {
        row-gap: 0.7rem !important;
    }

    .home-category-col {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }

    .home-category-col .category-box {
        height: 89px;
        border-radius: 10px;
    }

    .home-category-col .category-overlay {
        padding: 10px 8px;
    }

    .home-category-col .category-overlay h4 {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .home-category-col .category-overlay span {
        display: none;
    }

    .shop-products-grid {
        margin-left: 0;
        margin-right: 0;
    }

    .shop-products-grid > .col {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .shop-products-grid .product-card > div:first-child {
        height: 104px !important;
    }

    .shop-products-grid .product-card .card-body {
        padding: 0.5rem;
    }

    .shop-products-grid .product-card .card-title {
        font-size: 0.84rem;
        margin-bottom: 0.25rem;
    }

    .shop-products-grid .product-card .card-text,
    .shop-products-grid .product-card p {
        font-size: 0.76rem;
    }

    .shop-products-grid .product-card .btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.45rem;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background-color: #FDFBF7;
        border-top: 1px solid #E6DCC5;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-link {
        flex: 1;
        padding: 0.45rem 0.1rem;
        text-decoration: none;
        color: #10452f;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 0.7rem;
        font-weight: 600;
        position: relative;
    }

    .mobile-nav-link i {
        font-size: 1rem;
    }

    .mobile-nav-link.active {
        color: #C5A059;
    }

    .mobile-cart-badge {
        position: absolute;
        top: 3px;
        right: 22%;
        font-size: 0.62rem;
        min-width: 16px;
        line-height: 1.2;
    }

    .mobile-products-list .list-group-item + .list-group-item {
        border-top: 1px solid #f1eee6 !important;
    }

    .mobile-products-accordion .accordion-button {
        font-size: 0.96rem;
        background: transparent !important;
        box-shadow: none !important;
    }

    .mobile-products-accordion .accordion-button::after {
        transform: scale(0.85);
    }

    .mobile-products-accordion .accordion-body a {
        font-size: 0.92rem;
        color: #2a2a2a;
        font-weight: 500;
    }

    .mobile-special-offer-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        text-decoration: none;
        color: #8e5d15;
        font-weight: 800;
        border: 1px solid #f0d2a2;
        border-radius: 999px;
        background: linear-gradient(180deg, #fffaf0 0%, #fff3df 100%);
        padding: 0.55rem 0.8rem;
    }

    .mobile-special-offer-link i {
        font-size: 0.95rem;
    }

    .mobile-shop-filter-accordion .accordion-button {
        font-size: 0.95rem;
        background: #fff !important;
        box-shadow: none !important;
    }

    .mobile-shop-filter-accordion .accordion-button:not(.collapsed) {
        color: #10452f;
    }

    .mobile-shop-filter-accordion .accordion-body {
        padding: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .order-tracking-input-group {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .order-tracking-input-group > .form-control,
    .order-tracking-input-group > .btn {
        width: 100% !important;
        border-radius: 12px !important;
    }
}

/* Auth: OTP + password login */
.auth-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.auth-card .nav-pills .nav-link {
    color: #12683f;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    font-weight: 700;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-card .nav-pills .nav-link.active {
    background-color: #0b7a43;
    border-color: #0b7a43;
    color: #fff !important;
}

.auth-card .nav-pills .show > .nav-link,
.auth-card .nav-pills .nav-link.active:hover,
.auth-card .nav-pills .nav-link.active:focus {
    color: #fff !important;
}
/* ===========================================
   Shopping Cart Responsive Styles
   =========================================== */

/* Desktop: Show table, hide mobile cards */
.cart-desktop-view {
    display: block;
}

.cart-mobile-view {
    display: none;
}

/* Mobile: Hide table, show mobile cards */
@media (max-width: 991.98px) {
    .cart-desktop-view {
        display: none;
    }
    
    .cart-mobile-view {
        display: block;
        padding: 0 0.25rem;
    }
    
    /* Cart header spacing on mobile */
    .cart-header {
        margin-bottom: 1.5rem !important;
        padding: 0 0.25rem;
    }
    
    .cart-header h1 {
        font-size: 1.35rem !important;
    }
    
    /* Mobile Cart Item Card Styles */
    .cart-item-card {
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
        margin-bottom: 1rem !important;
    }
    
    .cart-item-card:active {
        transform: scale(0.98);
    }
    
    .cart-item-card .card-body {
        padding: 1.25rem !important;
    }
    
    .cart-item-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-left: 1rem;
    }
    
    .cart-item-image img,
    .cart-item-image .bg-light {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .cart-item-image .bg-light {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-item-image .fa-image {
        font-size: 2.5rem;
    }
    
    .cart-item-card h6 {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .cart-item-card .badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-bottom {
        background-color: #FDFBF7;
        margin: 1rem -1.25rem -1.25rem -1.25rem;
        padding: 1rem 1.25rem;
        border-radius: 0 0 16px 16px;
    }
    
    .cart-item-quantity {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .cart-item-quantity .badge {
        font-size: 0.95rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: 0;
    }
    
    .cart-item-quantity .text-muted {
        font-size: 0.9rem;
    }
    
    .cart-item-price {
        text-align: left;
    }
    
    .cart-item-price .small {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        display: block;
    }
    
    .cart-item-price .text-brown {
        font-size: 1rem;
    }
    
    .cart-item-total {
        background-color: #fff;
        margin: 0.75rem -1.25rem -1rem -1.25rem;
        padding: 1rem 1.25rem;
        border-top: 2px solid #E6DCC5;
    }
    
    .cart-item-total .text-secondary {
        font-size: 0.9rem;
    }
    
    .cart-item-total .text-dark {
        font-size: 1.15rem;
    }
    
    /* Delete button styling */
    .cart-item-card form button {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .cart-item-card form button:hover {
        background-color: #fee;
    }
    
    .cart-item-card form button i {
        font-size: 1rem;
    }
    
    /* Make summary card sticky on mobile for better UX */
    .col-lg-4 .card {
        position: sticky;
        top: 70px;
        z-index: 10;
        margin-bottom: 1rem;
    }
    
    /* Summary card spacing improvements */
    .col-lg-4 .card-body {
        padding: 1.25rem !important;
    }
    
    .col-lg-4 .card-body > div {
        margin-bottom: 1rem !important;
    }
    
    .col-lg-4 .card-body h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }
    
    .col-lg-4 .card-body .btn {
        padding: 0.85rem 1.25rem !important;
        font-size: 1rem;
    }
}

/* Extra small devices - optimize for very small screens */
@media (max-width: 576px) {
    .cart-item-image {
        width: 85px;
        min-width: 85px;
        height: 85px;
    }
    
    .cart-item-image img,
    .cart-item-image .bg-light {
        width: 85px;
        height: 85px;
    }
    
    .cart-item-card h6 {
        font-size: 0.95rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .cart-header h1 {
        font-size: 1.2rem !important;
    }
}