/* ==========================================================================
   Smart Shopping - Premium E-Commerce Design System
   Farmart & Modern Shopping Aesthetics Integration
   ========================================================================== */

/* Layout & Container Reset */
.shop-body-bg {
    background-color: #f7f9fc !important;
}

/* Border Radius Overrides for Premium Modern Look */
.shop-rounded {
    border-radius: 12px !important;
}
.shop-rounded-sm {
    border-radius: 6px !important;
}
.shop-rounded-lg {
    border-radius: 18px !important;
}
.shop-rounded-pill {
    border-radius: 50px !important;
}
.shop-rounded-circle {
    border-radius: 50% !important;
}

/* ==========================================================================
   Header Widget & Navigation (Search, Categories, Helpline)
   ========================================================================== */
.shop-header-wrap {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}

.shop-search-bar-container {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.shop-search-bar-container:focus-within {
    border-color: var(--brand-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 171, 242, 0.15);
}

.shop-search-category-select {
    border: none !important;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    padding: 8px 16px;
    outline: none !important;
    border-right: 1px solid #cbd5e1 !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 150px;
}

.shop-search-input {
    border: none !important;
    background: transparent;
    padding: 8px 16px;
    width: 100%;
    outline: none !important;
    font-size: 0.9rem;
    color: #1e293b;
}

.shop-search-btn {
    background-color: transparent;
    border: none;
    color: #64748b;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.15s;
}
.shop-search-btn:hover {
    color: var(--brand-primary);
}

.shop-helpline-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.shop-helpline-icon {
    font-size: 1.5rem;
    color: var(--brand-primary);
}
.shop-helpline-number {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--brand-secondary);
    line-height: 1.1;
}

.shop-user-meta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.15s;
}
.shop-user-meta-btn:hover {
    color: var(--brand-primary);
}

.shop-header-cart-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
    padding: 8px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.shop-header-cart-box:hover {
    background-color: var(--brand-light);
    border-color: var(--brand-primary);
}
.shop-header-cart-icon-wrapper {
    position: relative;
}
.shop-header-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ea580c;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Secondary Navigation */
.shop-sub-nav {
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
}
.shop-category-dropdown-btn {
    background-color: #fbbf24;
    color: #1e293b;
    border: none;
    padding: 14px 24px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.shop-category-dropdown-btn:hover {
    background-color: #f59e0b;
}

.shop-sub-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}
.shop-sub-nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 0;
    display: inline-block;
    transition: color 0.15s;
    border-bottom: 2px solid transparent;
}
.shop-sub-nav-link:hover, .shop-sub-nav-link.active {
    color: var(--brand-secondary);
    border-bottom-color: var(--brand-secondary);
}

/* ==========================================================================
   Hero Banners Section
   ========================================================================== */
.shop-hero-section {
    padding: 24px 0;
}
.shop-hero-banner-main {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    position: relative;
    overflow: hidden;
    height: 380px;
    display: flex;
    align-items: center;
    padding: 40px;
}
.shop-hero-banner-main::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 350px; height: 350px;
    border-radius: 50% !important;
    background: rgba(0, 171, 242, 0.12);
    filter: blur(40px);
}
.shop-hero-subtitle {
    color: var(--brand-primary);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.shop-hero-title {
    color: var(--brand-secondary);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 12px 0;
    max-width: 500px;
}
.shop-hero-desc {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 450px;
}
.shop-hero-btn {
    background-color: #ffffff;
    color: #1e293b;
    border: none;
    padding: 12px 28px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}
.shop-hero-btn:hover {
    background-color: var(--brand-secondary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 54, 125, 0.2);
}

.shop-hero-side-promo {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.shop-hero-side-promo::before {
    content: '';
    position: absolute;
    bottom: -10%; left: -10%;
    width: 200px; height: 200px;
    border-radius: 50% !important;
    background: rgba(251, 191, 36, 0.15);
    filter: blur(30px);
}
.shop-promo-badge {
    color: #d97706;
    font-weight: 900;
    font-size: 1.5rem;
    margin: 0;
}
.shop-promo-title {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 10px 0;
}
.shop-promo-desc {
    color: #4b5563;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   Browse by Category Section
   ========================================================================== */
.shop-section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.shop-section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-secondary);
    margin: 0;
}
.shop-section-view-all {
    text-decoration: none;
    color: #64748b;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.shop-section-view-all:hover {
    color: var(--brand-primary);
}

.shop-category-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 16px 0;
    scrollbar-width: thin;
}
.shop-category-scroller::-webkit-scrollbar {
    height: 6px;
}
.shop-category-scroller::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
}

.shop-category-card {
    flex: 0 0 140px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}
.shop-category-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 171, 242, 0.1);
    transform: translateY(-4px);
}
.shop-category-icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.2s;
}
.shop-category-card:hover .shop-category-icon-box {
    transform: scale(1.1);
}
.shop-category-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.2;
}

/* Dynamic color tints for Category icon circles */
.cat-bg-1 { background-color: #eff6ff; color: #3b82f6; }
.cat-bg-2 { background-color: #ecfdf5; color: #10b981; }
.cat-bg-3 { background-color: #fef2f2; color: #ef4444; }
.cat-bg-4 { background-color: #fffbeb; color: #f59e0b; }
.cat-bg-5 { background-color: #faf5ff; color: #a855f7; }
.cat-bg-6 { background-color: #fdf2f8; color: #ec4899; }

/* ==========================================================================
   Featured Brands Section
   ========================================================================== */
.shop-brand-card {
    position: relative;
    overflow: hidden;
    height: 150px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.3s;
}
.shop-brand-card:hover {
    transform: scale(1.02);
}
.shop-brand-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 24, 59, 0.8) 0%, rgba(0, 24, 59, 0.2) 100%);
    z-index: 1;
}
.shop-brand-content {
    position: relative;
    z-index: 2;
}
.shop-brand-tag {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--brand-primary);
    letter-spacing: 0.05em;
    margin: 0;
}
.shop-brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 0 0;
}

/* ==========================================================================
   Top Saver Today (Countdown & Daily Deals)
   ========================================================================== */
.shop-saver-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.shop-saver-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ef4444;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.shop-saver-timer-digits {
    font-family: monospace;
    font-size: 0.85rem;
}

/* Featured Large Product Deal Card */
.shop-featured-deal-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.shop-featured-deal-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    margin-bottom: 20px;
    overflow: hidden;
}
.shop-featured-deal-img-box img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.shop-featured-deal-card:hover .shop-featured-deal-img-box img {
    transform: scale(1.06);
}
.shop-badge-sale {
    position: absolute;
    top: 15px; left: 15px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 8px;
    letter-spacing: 0.05em;
    z-index: 5;
}

.shop-product-rating {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 0.75rem;
    margin-bottom: 8px;
}
.shop-product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.shop-product-title-large {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-secondary);
    line-height: 1.3;
    margin-bottom: 12px;
}
.shop-product-title-large a {
    color: inherit;
    text-decoration: none;
}
.shop-product-title-large a:hover {
    color: var(--brand-primary);
}

.shop-stock-progress-wrap {
    margin: 16px 0;
}
.shop-stock-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 6px;
}
.shop-stock-progress-bar {
    height: 6px;
    background-color: #e2e8f0;
    overflow: hidden;
}
.shop-stock-progress-bar-fill {
    height: 100%;
    background-color: #f59e0b;
    transition: width 0.5s ease-out;
}

/* Deals List (Small Cards) */
.shop-deal-list-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.shop-deal-list-item:last-child {
    margin-bottom: 0;
}
.shop-deal-list-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 171, 242, 0.05);
}
.shop-deal-list-img-box {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    overflow: hidden;
}
.shop-deal-list-img-box img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
}
.shop-deal-list-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.shop-deal-list-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-secondary);
    line-height: 1.2;
    margin-bottom: 4px;
}
.shop-deal-list-title a {
    color: inherit;
    text-decoration: none;
}
.shop-deal-list-title a:hover {
    color: var(--brand-primary);
}

.shop-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: auto;
}
.shop-price-current {
    font-size: 1.1rem;
    font-weight: 900;
    color: #1e293b;
}
.shop-price-old {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Membership promo register card */
.shop-member-register-box {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 30px 24px;
    height: 100%;
}
.shop-member-title-large {
    font-size: 1.5rem;
    font-weight: 900;
    color: #b45309;
    line-height: 1.1;
    margin-bottom: 8px;
}
.shop-member-desc {
    color: #78350f;
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.shop-member-form-control {
    border: 1px solid #fcd34d !important;
    background-color: #ffffff;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #1e293b;
}
.shop-member-form-control:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
    border-color: #f59e0b !important;
}

/* ==========================================================================
   Best Seller & Tab grids
   ========================================================================== */
.shop-tab-nav {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}
.shop-tab-link {
    text-decoration: none !important;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border: 1px solid transparent;
    display: inline-block;
    transition: all 0.15s;
}
.shop-tab-link:hover {
    color: var(--brand-secondary);
}
.shop-tab-link.active {
    color: var(--brand-secondary);
    border-color: #e2e8f0;
    background-color: #ffffff;
}

/* Product grid cards (standard catalog card) */
.shop-grid-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.shop-grid-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 25px -5px rgba(0, 171, 242, 0.12);
    transform: translateY(-4px);
}
.shop-grid-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.1;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.shop-grid-card-img-wrapper img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.shop-grid-card:hover .shop-grid-card-img-wrapper img {
    transform: scale(1.06);
}

.shop-grid-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-grid-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--brand-secondary);
    line-height: 1.3;
    margin-bottom: 8px;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.shop-grid-card-title a {
    color: inherit;
    text-decoration: none;
}
.shop-grid-card-title a:hover {
    color: var(--brand-primary);
}

.shop-grid-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.shop-grid-card-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: #1e293b;
}

.shop-grid-card-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.shop-grid-card-btn:hover {
    background-color: var(--brand-primary);
    color: #ffffff;
}

/* ==========================================================================
   Catalog Filter Layout (Sidebar + Results)
   ========================================================================== */
.shop-catalog-sidebar {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
}
.shop-catalog-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-secondary);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.shop-catalog-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    transition: all 0.15s;
}
.shop-catalog-filter-link:hover, .shop-catalog-filter-link.active {
    background-color: var(--brand-light);
    color: var(--brand-secondary);
    border-left: 3px solid var(--brand-primary);
}

/* ==========================================================================
   Other Legacy Layout support (Cart, Checkout, success, timelines)
   ========================================================================== */
.shop-card {
    background-color: #ffffff;
    border: 3px solid var(--brand-dark);
    box-shadow: 0px 0px 0px rgba(0,0,0,0);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translate(-6px, -6px);
    box-shadow: 8px 8px 0px var(--brand-primary);
    border-color: var(--brand-secondary);
}
.shop-card .card-img-wrapper {
    position: relative;
    background-color: var(--brand-light);
    border-bottom: 3px solid var(--brand-dark);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.shop-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.shop-card .badge-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--brand-dark);
    padding: 4px 8px;
    z-index: 5;
}
.shop-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.shop-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-secondary);
    line-height: 1.3;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.shop-card-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-top: auto;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.shop-card-price small {
    font-size: 0.8rem;
    color: var(--brand-text-dark);
    font-weight: 500;
}
.shop-sidebar {
    background-color: #ffffff;
    border: 3px solid var(--brand-dark);
    padding: 24px;
}
.shop-sidebar .filter-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--brand-dark);
    border-bottom: 3px solid var(--brand-dark);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.shop-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--brand-text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.shop-filter-link:hover, .shop-filter-link.active {
    background-color: var(--brand-light);
    border-color: var(--brand-dark);
    color: var(--brand-secondary);
}

.quantity-widget {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
}
.quantity-widget button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s;
}
.quantity-widget button:hover {
    background-color: #f1f5f9;
}
.quantity-widget input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    font-weight: 700;
    color: #1e293b;
    outline: none;
}

.mobile-cart-badge {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    background-color: var(--brand-primary);
    color: #ffffff;
    border: 1px solid var(--brand-dark);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 171, 242, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-cart-badge:hover {
    transform: translateY(-2px);
}
.mobile-cart-badge .badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ea580c;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 6px;
}

.tracking-timeline {
    position: relative;
    padding-left: 45px;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background-color: #e2e8f0;
}
.tracking-timeline.active::before {
    background: linear-gradient(to bottom, var(--brand-success) 50%, #e2e8f0 100%);
}
.tracking-step {
    position: relative;
    margin-bottom: 30px;
}
.tracking-step:last-child {
    margin-bottom: 0;
}
.tracking-dot {
    position: absolute;
    left: -45px;
    top: 2px;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s;
}
.tracking-step.completed .tracking-dot {
    background-color: var(--brand-success);
    border-color: var(--brand-dark);
    color: #ffffff;
}
.tracking-step.current .tracking-dot {
    background-color: var(--brand-primary);
    border-color: var(--brand-dark);
    color: #ffffff;
    animation: trackingPulse 2s infinite ease-in-out;
}
.tracking-step.completed .tracking-content h6 {
    color: var(--brand-dark);
    font-weight: 800;
}
.tracking-step.current .tracking-content h6 {
    color: var(--brand-secondary);
    font-weight: 900;
}

@keyframes trackingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.checkout-summary-box {
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    padding: 24px;
}
.checkout-summary-box hr {
    border-top: 1px dashed #cbd5e1;
    opacity: 1;
}
.order-item-mini-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.order-item-mini-card:last-child {
    border-bottom: none;
}
.order-item-mini-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}

@media print {
    header, footer, .mobile-bottom-nav, .mobile-cart-badge, .btn-sharp-primary, .btn-sharp-outline, .breadcrumb,
    .d-print-none, .success-hero-badge, .success-message-container, .wallet-pts-container, .invoice-actions-container {
        display: none !important;
    }
    body {
        background-color: #ffffff;
        color: #000000;
        padding: 0;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .card, .checkout-summary-box {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 991px) {
    /* Remove wrapper top padding on mobile */
    .shop-body-bg {
        padding-top: 0 !important;
    }

    /* Sticky search bar header sitting flush under main nav header */
    .shop-header-wrap {
        position: sticky !important;
        top: 67px !important;
        z-index: 1020 !important;
        background-color: #ffffff !important;
        padding: 10px 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important; /* Sit flush with hero section */
        border-bottom: 1px solid #cbd5e1 !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
        border-radius: 0px !important;
    }
    .shop-search-bar-container {
        border-radius: 6px !important;
        border: 1px solid #cbd5e1 !important;
        background-color: #f8fafc !important;
    }
    .shop-header-cart-box {
        padding: 8px 12px !important;
        border-radius: 6px !important;
        background-color: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* Mobile hero section layout adjustments sitting flush */
    .shop-hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .shop-hero-banner-main {
        padding: 30px 20px !important;
        height: auto !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 8px !important;
    }
    /* Hide background elements for clean flat look */
    .shop-hero-banner-main::before {
        display: none !important;
    }
    /* Remove carousel shadows, outer borders, and roundings */
    #shopHeroCarousel {
        box-shadow: none !important;
        border-radius: 0px !important;
        background: transparent !important;
    }
    /* Set inner heights auto for text wrapping */
    .carousel-item {
        height: auto !important;
    }
    .shop-hero-title {
        font-size: 1.8rem !important;
        margin-top: 10px !important;
        line-height: 1.2 !important;
    }
    .shop-hero-desc {
        font-size: 0.85rem !important;
        margin-bottom: 16px !important;
        line-height: 1.4 !important;
    }
    
    /* Scrollbars and listing categories padding on mobile */
    .shop-category-scroller {
        padding-bottom: 12px !important;
    }

    /* Style catalog sidebar to be compact on mobile */
    .shop-catalog-sidebar {
        padding: 12px !important;
        border: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        margin-bottom: 8px !important;
    }
    
    .shop-catalog-sidebar-title {
        font-size: 0.9rem !important;
        border-bottom: none !important;
        margin-bottom: 10px !important;
        padding-bottom: 0 !important;
        text-align: left;
    }
    
    /* Make sidebar categories list scroll horizontally on mobile! */
    .shop-catalog-sidebar .d-flex.flex-column {
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 10px !important;
        scrollbar-width: none;
    }
    .shop-catalog-sidebar .d-flex.flex-column::-webkit-scrollbar {
        display: none;
    }
    .shop-catalog-filter-link {
        flex: 0 0 auto !important;
        border: 1px solid #cbd5e1 !important;
        background-color: #ffffff !important;
        border-radius: 20px !important;
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    .shop-catalog-filter-link.active {
        background-color: var(--brand-secondary) !important;
        color: #ffffff !important;
        border-color: var(--brand-secondary) !important;
    }
    .shop-catalog-filter-link i {
        display: none !important; /* Hide arrows on mobile scroller */
    }
}

/* Responsive overrides for mobile and tablet views */
@media (max-width: 991px) {
    /* Hide description text on mobile cards to keep cards compact */
    .shop-grid-card-body p {
        display: none !important;
    }
    
    /* Spacing between sticky header and breadcrumbs on mobile */
    .breadcrumb-nav-wrapper {
        margin-top: 15px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Responsive breadcrumbs on mobile: swipeable single-line row */
    .breadcrumb {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 10px 15px !important;
        scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .breadcrumb-item {
        display: inline-block !important;
        float: none !important;
        font-size: 0.75rem !important;
    }
}
