/* 
    Ravionce_main.css
    Refined specifically for the PartsMart model
*/

:root {
    --primary: #003366;
    /* Deeper Navy from mockup */
    --accent-blue: #0066cc;
    /* Primary blue accent */
    --accent-orange: #ff6600;
    /* Bright orange/red CTA */
    --accent-green: #28a745;
    /* Green for price/success */

    --text-dark: #1a1a1a;
    --text-light: #555555;
    --text-white: #ffffff;

    --bg-light: #f4f7f9;
    --bg-white: #ffffff;
    --bg-footer: #000000;
    /* Pure Black */

    --border-soft: #e1e8ed;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1400px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: #fff;
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

a:hover {
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.mini-page-banner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 10px auto;
    overflow: hidden;
}

.mini-page-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 1. HEADER REFINEMENT */
.header-main {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
}

.header-top-bar {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: var(--text-light);
}

.navbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    gap: 40px;
}

.logo-parts-mart {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.logo-parts-mart img {
    display: block;
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-parts-mart:hover {
    opacity: 0.8;
}

.search-bar-parts-mart {
    flex: 1;
    max-width: 700px;
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    padding: 2px;
    transition: var(--transition-smooth);
}

.search-bar-parts-mart:focus-within {
    border-color: var(--accent-blue);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.1);
}

.search-bar-parts-mart input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    font-weight: 500;
}

.search-bar-parts-mart .btn-search-trigger {
    background: var(--accent-blue);
    color: #fff;
    width: 50px;
    height: 44px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.search-bar-parts-mart .btn-search-trigger:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.header-icons-parts-mart {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-shrink: 0;
}

.header-icons-parts-mart a {
    position: relative;
    font-size: 24px;
    color: #333;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons-parts-mart a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

.header-icons-parts-mart .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* CART DROPDOWN POPUP */
.cart-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.cart-dropdown-popup {
    position: absolute;
    top: 150%;
    right: -10px;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 1000;
    cursor: default;
}

.cart-dropdown-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid var(--border-soft);
    border-left: 1px solid var(--border-soft);
}

.cart-dropdown-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-soft);
}

.cart-popup-header h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.cart-popup-count {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.cart-popup-items {
    padding: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    padding: 20px 0;
}

/* Cart popup individual item */
.cart-popup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-popup-item:last-child {
    border-bottom: none;
}

.cart-popup-item-img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.cart-popup-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-popup-item-info {
    flex: 1;
    overflow: hidden;
}

.cart-popup-items .cart-popup-item-name,
.cart-popup-items .cart-popup-item-name:link,
.cart-popup-items .cart-popup-item-name:visited {
    display: block;
    font-size: 13px !important;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    transition: 0.2s;
    font-family: var(--font-body);
}

.cart-popup-items .cart-popup-item-name:hover {
    color: var(--accent-blue);
}

.cart-popup-item-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.cart-popup-item-qty {
    color: var(--text-light);
}

.cart-popup-item-price {
    color: var(--accent-blue);
    font-weight: 700;
}

.cart-popup-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: 0.2s;
    flex-shrink: 0;
}

.cart-popup-remove:hover {
    background: #fee;
    color: #e74c3c;
}


.cart-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-soft);
    background: #fdfdfd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.cart-popup-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cart-popup-actions {
    display: flex;
    gap: 10px;
}

.cart-popup-actions a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    color: var(--text-dark); /* Fallback */
}

.btn-view-cart {
    background: #f0f0f0;
}

.btn-view-cart:hover {
    background: #e4e4e4;
}

.btn-checkout {
    background: var(--accent-blue);
    color: #fff !important;
}

.btn-checkout:hover {
    background: var(--primary);
    color: #fff !important;
}

/* 2. NAVIGATION */
.nav-bar-links {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 5px 0;
    position: relative;
}

.nav-bar-links .container {
    display: flex;
    align-items: center;
    position: relative;
}

.category-dropdown-wrapper {
    position: relative;
    margin-right: 40px;
}

.category-toggle-btn {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.category-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.3s;
}

.category-dropdown-menu li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--accent-blue);
}

.category-dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--accent-blue);
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 4px;
}

.nav-links-list {
    display: flex;
    gap: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-links-list a:hover {
    color: var(--accent-blue);
}

.btn-find-parts {
    background: var(--accent-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: auto;
}

/* 3. HERO SECTION (SPLIT 50/50) */
.hero-split-container {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.hero-banner {
    flex: 1;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
    color: #fff;
}

.hero-banner-left {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/ravionce-hero-slider-1.png');
    background-size: cover;
}

.hero-banner-right {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../images/ravionce-hero-slider-2.png');
    background-size: cover;
    color: #1a1a1a;
}

.hero-banner h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 350px;
}

.hero-banner p {
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
    opacity: 0.9;
}

.hero-banner .btn-shop {
    background: #fff;
    color: #000;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    width: fit-content;
}

.hero-banner-right .btn-shop {
    background: #000;
    color: #fff;
}

/* 4. SECONDARY BANNERS (3 COLUMNS) */
.secondary-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.secondary-card {
    height: 450px;
    border-radius: 12px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.secondary-card h3 {
    font-size: 24px;
    margin-bottom: 30px;
    max-width: 200px;
}

.secondary-card .btn-small {
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
}

/* 5. SLIM PART FINDER BAR */
.finder-bar-parts-mart {
    background: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    border: 1px solid #f0f0f0;
}

.finder-bar-parts-mart h4 {
    font-size: 18px;
    color: var(--accent-blue);
    white-space: nowrap;
}

.finder-bar-parts-mart select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.btn-finder-action {
    background: var(--accent-blue);
    color: #fff;
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* 6. CIRCULAR CATEGORY LIST */
.categories-circles-row {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-circle-item {
    text-align: center;
    cursor: pointer;
}

.category-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
    font-size: 32px;
    color: var(--primary);
}

.category-circle-item:hover .category-icon-wrapper {
    background: #fff;
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-circle-item span {
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

/* 7. SHOP PAGE SPECIFIC LAYOUT */
.shop-layout-split {
    display: flex;
    gap: 50px;
    padding: 60px 0;
}

.shop-sidebar {
    flex: 0 0 300px;
}

.shop-sidebar-wrapper {
    background: #fdfdfd;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.02);
}

.filter-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.custom-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid var(--border-soft);
    border-radius: 4px;
    cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.custom-checkbox .form-check-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    padding-left: 8px;
    transition: 0.3s;
}

.custom-checkbox .form-check-label:hover {
    color: var(--accent-blue);
}

/* Color Filter */
.color-filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-label {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #eee;
    transition: 0.3s;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.color-item input:checked+.color-label {
    border-color: var(--accent-blue);
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.color-item input:checked+.color-label::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Price Input Refinements */
.price-range-wrapper {
    padding: 10px 0;
}

.price-input-group {
    position: relative;
    flex: 1;
}

.price-input-group .currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
}

.price-input-group input {
    padding: 12px 12px 12px 28px !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    width: 100%;
}

.price-divider {
    font-weight: 800;
    color: #ccc;
}

/* Pagination */
.custom-pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    margin: 0 5px;
    border: 1px solid var(--border-soft);
    color: #555;
    font-weight: 700;
    transition: 0.3s;
}

.custom-pagination .page-item.active .page-link {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Loading Spinner */
#shop-loader {
    backdrop-filter: blur(2px);
}

.scroll-area::-webkit-scrollbar {
    width: 5px;
}

.scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scroll-area::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.shop-main {
    flex: 1;
}

.filter-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.filter-card h4 {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-filter-btn {
    display: none;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.close-filter-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 10;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sort Select - matching search bar style */
.sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    padding: 10px 42px 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    min-width: 180px;
}

.sort-select:focus,
.sort-select:hover {
    border-color: var(--accent-blue);
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.1);
}

/* 8. PRODUCT ITEM CARDS REFINED (Global) */
.product-grid-parts-mart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card-parts-mart {
    position: relative;
    background: #fff;
    padding: 25px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card-parts-mart:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.item-img-box {
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

.item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card-parts-mart:hover .item-img-box img {
    transform: scale(1.05);
}

/* Overlaid Badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: #e74c3c;
    color: #fff;
}

.badge-featured {
    background: var(--accent-blue);
    color: #fff;
}

/* Overlaid Action Buttons */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.card-action-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    transform: scale(1.1);
}

.item-rating-stars {
    color: #ffcc00;
    font-size: 12px;
    margin-bottom: 10px;
}

.item-title-parts-mart {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em;
}

.item-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-price-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-green);
}

.item-price-old-val {
    text-decoration: line-through;
    color: #aaa;
    font-size: 14px;
}

/* 8. PROMOTIONAL (QUESTIONS / AGENT) */
.promo-question-section {
    display: flex;
    gap: 60px;
    padding: 100px 0;
}

.agent-box {
    flex: 0 0 350px;
    text-align: left;
}

.agent-box img {
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.accordion-parts-mart {
    flex: 1;
}

.acc-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-item h4 {
    font-size: 18px;
    color: #333;
}

/* 9. FOOTER CLEANUP */
.footer-dark-parts-mart {
    background: var(--bg-footer);
    color: #fff;
    padding: 100px 0 50px;
    margin-top: 100px;
}

.footer-parts-mart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-parts-mart-col h4 {
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.footer-parts-mart-col ul li {
    list-style: none;
    margin-bottom: 15px;
}

.footer-parts-mart-col ul li a {
    color: #8892b0;
    font-size: 14px;
    transition: 0.3s;
}

.footer-parts-mart-col ul li a:hover {
    color: #fff;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #8892b0;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .product-grid-parts-mart {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-parts-mart-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout-split {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .shop-layout-split {
        flex-direction: column;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .close-filter-btn {
        display: block;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 90vw;
        height: 100vh;
        z-index: 9999;
        background: #fff;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .shop-sidebar.show {
        left: 0;
    }

    .shop-sidebar-wrapper {
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding-top: 50px;
        /* Space for close button */
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between !important;
    }

    .product-grid-parts-mart {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-split-container {
        flex-direction: column;
    }

    .secondary-banners-grid {
        grid-template-columns: 1fr;
    }

    .finder-bar-parts-mart {
        flex-direction: column;
        text-align: center;
    }

    .product-grid-parts-mart {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .product-grid-parts-mart {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .product-card-parts-mart {
        padding: 15px !important;
    }

    .container {
        padding: 0 10px !important;
    }
}

/* 10. BREADCRUMBS REFINED */
.breadcrumb-area {
    border-bottom: 1px solid var(--border-soft);
    background: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    padding: 20px 0 !important;
    margin: 0;
    list-style: none;
    align-items: center;
}

.breadcrumb-item {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\f054";
    /* fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding: 0 15px;
    color: #cbd5e0;
    font-size: 10px;
    display: inline-block;
}

.breadcrumb-item a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* 11. PAGINATION FIXES */
.custom-pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    justify-content: center;
}

.custom-pagination .page-item {
    display: inline-block;
}

.custom-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    color: #555;
    text-decoration: none;
    font-weight: 700;
    background: #fff;
    transition: 0.2s;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.custom-pagination .page-item.active .page-link {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.custom-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
    background: #fafafa;
}

.custom-pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Global layout helpers */
.top-bar-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.section-header-parts-mart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ==========================================================================
   MOBILE RESPONSIVE MEDIA QUERIES (12. MOBILE RESPONSIVE)
   ========================================================================== */

/* Tablets and below */
@media (max-width: 992px) {

    /* Hero Banners */
    .hero-split-container {
        flex-direction: column !important;
    }

    .hero-banner {
        min-height: 350px !important;
    }

    /* Secondary Banners */
    .secondary-banners-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Finder Bar */
    .finder-bar-parts-mart {
        flex-direction: column;
        align-items: stretch;
    }

    .finder-bar-parts-mart>* {
        margin-bottom: 10px;
    }

    .finder-bar-parts-mart select,
    .finder-bar-parts-mart button {
        width: 100%;
    }

    /* Product Grid */
    .product-grid-parts-mart {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Promo Question / FAQ */
    .promo-question-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Footer */
    .footer-parts-mart-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Phones and smaller */
@media (max-width: 991px) {

    /* Container Padding Fix */
    .container {
        padding: 0 15px !important;
    }

    /* Header & Navigation */
    .navbar-main {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 15px 0 !important;
    }

    .logo-parts-mart img {
        max-height: 40px !important;
    }

    .search-bar-parts-mart {
        width: 100% !important;
        max-width: none !important;
        order: 3;
    }

    .header-icons-parts-mart {
        gap: 15px !important;
    }

    .logo-parts-mart img {
        max-height: 35px !important;
    }

    .search-bar-parts-mart {
        width: 100%;
        max-width: none;
        order: 3;
    }

    .nav-bar-links .container {
        justify-content: space-between;
        gap: 10px;
        padding: 0 10px;
    }

    .category-dropdown-wrapper {
        margin-right: 0;
    }

    .category-toggle-btn {
        font-size: 11px;
        gap: 5px;
        white-space: nowrap;
        padding: 8px 0;
    }

    .btn-find-parts {
        font-size: 10px;
        padding: 8px 12px;
        margin-left: 0;
        white-space: nowrap;
    }

    .mobile-nav-toggle {
        font-size: 24px;
        padding: 0;
        border: none;
        display: flex;
        align-items: center;
    }

    .nav-links-list {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 999;
        border-top: 1px solid var(--border-soft);
    }

    .nav-links-list.active {
        display: flex;
    }

    .header-icons-parts-mart {
        align-self: center;
        position: static;
        gap: 10px;
    }

    /* Features Row */
    .features-row-parts-mart {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 25px;
        padding: 30px 0 !important;
    }

    /* Product Grid */
    .product-grid-parts-mart {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Circular Categories */
    .categories-circles-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
    }

    /* Footer */
    .footer-parts-mart-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Header Top Bar Fix */
    .top-bar-nav {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
    }

    /* Section Header Fixes (e.g. Flash Deal) */
    .section-header-parts-mart {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header-parts-mart h2 {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .section-header-parts-mart .sub-heading {
        margin-left: 0 !important;
    }

    /* FAQ Section Stack Fix */
    .promo-question-section .agent-box {
        margin-bottom: 20px;
    }

    .promo-question-section .accordion-parts-mart {
        width: 100%;
    }
}

/* Prevent horizontal overflow completely on all screens */
body,
html {
    overflow-x: hidden;
    max-width: 100%;
}

/* 11. PRODUCT DETAIL PAGE STYLING */
.product-detail-area {
    padding: 30px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-gallery-wrapper {
    position: sticky;
    top: 20px;
}

.main-image-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
}

.main-image-box img {
    max-width: 100%;
    height: auto;
    transition: var(--transition-smooth);
}

.main-image-box:hover img {
    transform: scale(1.05);
}

.product-details-content .badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 10px;
}

.bg-primary { background-color: var(--accent-blue) !important; color: #fff; }
.bg-danger { background-color: var(--accent-orange) !important; color: #fff; }
.bg-light { background-color: #f8f9fa !important; color: var(--text-dark); }

.product-title-large {
    font-size: 42px;
    font-weight: 800;
    font-family: var(--font-heading);
    margin: 15px 0;
    line-height: 1.2;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-blue);
}

.old-price {
    font-size: 20px;
    color: #aaa;
    text-decoration: line-through;
}

.meta-info-list {
    margin-bottom: 30px;
}

.meta-info-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 15px;
}

.meta-info-item strong {
    min-width: 120px;
    color: var(--text-dark);
}

.meta-info-item span {
    color: var(--text-light);
}

.text-success { color: var(--accent-green) !important; }
.text-danger { color: #dc3545 !important; }

.purchase-row {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
    width: 140px;
}

.qty-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover { background: #f0f0f0; }

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.btn-add-cart-large {
    flex: 2;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    height: 55px;
}

.btn-add-cart-large:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.btn-wish-large {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    transition: 0.2s;
}

.btn-wish-large:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.trust-badges-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.trust-badge-item i {
    font-size: 24px;
    color: #aaa;
}

.trust-badge-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Tabs */
.detail-tabs-wrapper {
    margin-top: 80px;
}

.tabs-nav {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-link {
    padding: 15px 0;
    font-weight: 700;
    color: #888;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.tab-link.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.tab-pane {
    display: none;
    color: var(--text-light);
    line-height: 1.8;
}

.tab-pane.active {
    display: block;
}

.specs-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
}

.specs-table th {
    text-align: left;
    background: #f8f9fa;
    padding: 12px 20px;
    width: 180px;
    border: 1px solid #eee;
}

.specs-table td {
    padding: 12px 20px;
    border: 1px solid #eee;
}

/* Utilities for Alignment */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 10px !important; }
.mb-3 { margin-bottom: 15px !important; }
.mb-4 { margin-bottom: 25px !important; }
.mt-5 { margin-top: 50px !important; }
.py-5 { padding-top: 50px !important; padding-bottom: 50px !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-muted { color: #888 !important; }
.breadcrumb-item.active { font-weight: 700; color: var(--accent-blue); }

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #ccc;
    font-weight: 400;
}

/* =============================================
   AUTH PAGES – Register & Login
   ============================================= */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f4f7f9 0%, #edf2f7 100%);
    padding: 60px 0;
}

.auth-container {
    display: flex;
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    min-height: 580px;
}

/* Left brand panel */
.auth-left {
    flex: 0 0 40%;
    background: linear-gradient(160deg, var(--primary) 0%, #0055aa 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.auth-brand h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 30px 0 15px;
    line-height: 1.25;
    font-family: var(--font-heading);
}

.auth-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.auth-features {
    margin-top: 40px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    font-weight: 500;
}

.auth-features li i {
    color: #4cd964;
    font-size: 16px;
    flex-shrink: 0;
}

/* Right form panel */
.auth-right {
    flex: 1;
    background: #fff;
    padding: 50px 45px;
    display: flex;
    align-items: center;
}

.auth-form-box {
    width: 100%;
}

.auth-form-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.auth-form-header p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.auth-form-header a {
    color: var(--accent-blue);
    font-weight: 700;
}

/* Alert boxes */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.auth-alert i { margin-top: 2px; flex-shrink: 0; }

.auth-alert-error {
    background: #fff2f2;
    border: 1px solid #ffcccc;
    color: #c0392b;
}

.auth-alert-error ul {
    margin: 0;
    padding-left: 15px;
}

.auth-alert-success {
    background: #f2fff5;
    border: 1px solid #b2f2c4;
    color: #1a7a3a;
}

/* Form fields */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > i {
    position: absolute;
    left: 16px;
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.auth-input-wrap input {
    width: 100%;
    padding: 13px 45px 13px 42px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
    background: #fafafa;
}

.auth-input-wrap input:focus {
    border-color: var(--accent-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,102,204,0.08);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    padding: 0;
    transition: 0.2s;
}

.toggle-password:hover { color: var(--accent-blue); }

/* Submit button */
.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary));
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.35);
}

.auth-terms {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin-top: 15px;
}

.auth-terms a {
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-left { display: none; }
    .auth-right { padding: 40px 25px; }
    .auth-container { border-radius: 12px; }
}
/* =============================================
   CUSTOMER DASHBOARD
   ============================================= */

/* =============================================
   CART PAGE
   ============================================= */
.cart-page-section { padding: 40px 0 70px; background: #f4f7f9; min-height: 70vh; }

.cart-page-layout { display: flex; gap: 30px; align-items: flex-start; }

/* Left column */
.cart-items-col { flex: 1; min-width: 0; }

.cart-items-header { display: flex; align-items: baseline; gap: 15px; margin-bottom: 20px; }
.cart-page-title { font-size: 24px; font-weight: 800; color: #003366; font-family: 'Outfit', sans-serif; margin: 0; }
.cart-items-count { font-size: 14px; color: #999; font-weight: 600; }

.cart-items-list { display: flex; flex-direction: column; gap: 16px; }

.cart-item-row {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s, opacity 0.3s;
}
.cart-item-row:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.06); }

.cart-item-img-link { flex-shrink: 0; }
.cart-item-img { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; background: #f8f9fa; border: 1px solid #eee; display: block; }

.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 700; color: #1a1a1a; display: block; margin-bottom: 6px; transition: 0.2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-name:hover { color: #0066cc; }
.cart-item-unit-price { font-size: 13px; color: #999; margin-bottom: 14px; }

.cart-qty-control { display: inline-flex; align-items: center; border: 2px solid #eee; border-radius: 8px; overflow: hidden; }
.cart-qty-btn { width: 36px; height: 36px; background: #f8f9fa; border: none; cursor: pointer; font-size: 13px; color: #555; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.cart-qty-btn:hover { background: #0066cc; color: #fff; }
.cart-qty-input { width: 48px; height: 36px; border: none; border-left: 2px solid #eee; border-right: 2px solid #eee; text-align: center; font-size: 15px; font-weight: 700; color: #1a1a1a; background: #fff; outline: none; }
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.cart-item-total { font-size: 18px; font-weight: 800; color: #003366; font-family: 'Outfit', sans-serif; }
.cart-remove-btn { background: none; border: 1px solid #eee; color: #bbb; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.cart-remove-btn:hover { background: #fff2f2; border-color: #e74c3c; color: #e74c3c; }

.cart-page-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 20px; }
.btn-continue-shopping { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #555; transition: 0.2s; }
.btn-continue-shopping:hover { color: #0066cc; }
.btn-clear-cart { background: none; border: 1px solid #eee; color: #bbb; padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.btn-clear-cart:hover { background: #fff2f2; border-color: #e74c3c; color: #e74c3c; }

/* Right column – summary */
.cart-summary-col { width: 340px; flex-shrink: 0; position: sticky; top: 20px; }
.cart-summary-box { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid #f0f0f0; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.summary-title { font-size: 18px; font-weight: 800; color: #003366; font-family: 'Outfit', sans-serif; margin-bottom: 22px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.summary-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #555; font-weight: 600; }
.text-green { color: #28a745; font-weight: 700; }
.summary-total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: #1a1a1a; padding: 18px 0; border-top: 2px solid #f0f0f0; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.btn-proceed-checkout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: linear-gradient(135deg, #0066cc, #003366); color: #fff; padding: 15px; border-radius: 10px; font-size: 16px; font-weight: 800; font-family: 'Outfit', sans-serif; transition: 0.3s; margin-bottom: 20px; }
.btn-proceed-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,102,204,0.35); color: #fff; }
.summary-trust-badges { display: flex; justify-content: space-around; margin-bottom: 22px; }
.trust-badge-sm { font-size: 11px; font-weight: 700; color: #999; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.trust-badge-sm i { font-size: 18px; color: #0066cc; }

.promo-code-box { border-top: 1px solid #f0f0f0; padding-top: 18px; }
.promo-label { font-size: 13px; font-weight: 700; color: #555; margin-bottom: 10px; }
.promo-input-row { display: flex; gap: 8px; }
.promo-input { flex: 1; padding: 10px 14px; border: 2px solid #eee; border-radius: 8px; font-size: 13px; outline: none; font-family: 'Inter', sans-serif; transition: 0.2s; }
.promo-input:focus { border-color: #0066cc; }
.btn-apply-promo { background: #003366; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.btn-apply-promo:hover { background: #0066cc; }

/* Empty cart state */
.cart-empty-state { text-align: center; padding: 100px 20px; }
.cart-empty-icon { font-size: 80px; color: #e0e7ef; margin-bottom: 25px; }
.cart-empty-state h2 { font-size: 28px; font-weight: 800; color: #003366; font-family: 'Outfit', sans-serif; margin-bottom: 12px; }
.cart-empty-state p { font-size: 15px; color: #999; max-width: 400px; margin: 0 auto 30px; line-height: 1.7; }
.btn-start-shopping { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #0066cc, #003366); color: #fff; padding: 14px 35px; border-radius: 10px; font-size: 16px; font-weight: 800; font-family: 'Outfit', sans-serif; transition: 0.3s; }
.btn-start-shopping:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,102,204,0.3); color: #fff; }

@media (max-width: 900px) {
    .cart-page-layout { flex-direction: column; }
    .cart-summary-col { width: 100%; position: static; }
}
@media (max-width: 600px) {
    .cart-item-row { flex-wrap: wrap; }
    .cart-item-img { width: 70px; height: 70px; }
    .cart-item-right { width: 100%; flex-direction: row; justify-content: space-between; }
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-page { padding: 40px 0 80px; background: #f4f7f9; min-height: 70vh; }
.checkout-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #bbb; }
.progress-step span { width: 36px; height: 36px; border-radius: 50%; background: #e9ecef; color: #bbb; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; transition: 0.3s; }
.progress-step.active span { background: #0066cc; color: #fff; box-shadow: 0 4px 15px rgba(0,102,204,0.3); }
.progress-step.active { color: #0066cc; }
.progress-step.done span { background: #28a745; color: #fff; }
.progress-step.done { color: #28a745; }
.progress-line { flex: 1; height: 3px; background: #e9ecef; max-width: 80px; margin: 0 8px; margin-bottom: 20px; }
.progress-line.active { background: #0066cc; }

.checkout-layout { display: flex; gap: 28px; align-items: flex-start; }
.checkout-form-col { flex: 1; min-width: 0; }
.checkout-summary-col { width: 320px; flex-shrink: 0; position: sticky; top: 20px; }

.checkout-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; margin-bottom: 20px; }
.checkout-section-title { font-size: 17px; font-weight: 800; color: #003366; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.checkout-section-title i { color: #0066cc; }

.checkout-alert { display: flex; gap: 10px; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.checkout-alert-error { background: #fff2f2; border: 1px solid #ffcccc; color: #c0392b; }
.checkout-alert-error ul { margin: 0; padding-left: 15px; }

.checkout-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-field { display: flex; flex-direction: column; gap: 7px; }
.checkout-field.full { grid-column: 1 / -1; }
.checkout-field label { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.4px; }
.checkout-field input { padding: 12px 14px; border: 2px solid #eee; border-radius: 9px; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; transition: 0.25s; background: #fafafa; color: #1a1a1a; }
.checkout-field input:focus { border-color: #0066cc; background: #fff; box-shadow: 0 0 0 4px rgba(0,102,204,0.07); }

/* Payment method options */
.payment-method-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.payment-option { cursor: pointer; }
.payment-option input[type="radio"] { display: none; }
.payment-option-inner { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 2px solid #eee; border-radius: 10px; transition: 0.25s; }
.payment-option.selected .payment-option-inner { border-color: #0066cc; background: #f0f6ff; }
.payment-option-icon { width: 42px; height: 42px; border-radius: 9px; background: #eff6ff; color: #0066cc; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.payment-option-icon.cod { background: #f0fff4; color: #28a745; }
.payment-option-label { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.payment-option-sub { font-size: 12px; color: #999; margin-top: 2px; }
.payment-option-check { margin-left: auto; color: #ccc; font-size: 20px; transition: 0.2s; }
.payment-option.selected .payment-option-check { color: #0066cc; }

.btn-place-order { width: 100%; background: linear-gradient(135deg, #0066cc, #003366); color: #fff; border: none; padding: 15px; border-radius: 10px; font-size: 16px; font-weight: 800; font-family: 'Inter', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
.btn-place-order:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,102,204,0.35); }

/* Checkout item list */
.checkout-item-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.checkout-item-row { display: flex; align-items: center; gap: 12px; }
.checkout-item-img { position: relative; flex-shrink: 0; }
.checkout-item-img img { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; background: #f8f9fa; border: 1px solid #eee; }
.checkout-item-qty { position: absolute; top: -6px; right: -6px; background: #0066cc; color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.checkout-item-name { flex: 1; font-size: 13px; font-weight: 700; color: #1a1a1a; }
.checkout-item-price { font-size: 13px; font-weight: 800; color: #003366; flex-shrink: 0; }
.checkout-totals { border-top: 1px solid #f0f0f0; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.checkout-total-row { display: flex; justify-content: space-between; font-size: 14px; color: #555; font-weight: 600; }
.checkout-total-row.grand { font-size: 18px; font-weight: 800; color: #003366; border-top: 2px solid #f0f0f0; padding-top: 14px; margin-top: 4px; }

/* =============================================
   DUMMY PAYMENT GATEWAY
   ============================================= */
.gateway-card { max-width: 480px; margin: 0 auto; }
.gateway-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; }
.gateway-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: #003366; }
.gateway-logo i { color: #0066cc; }
.gateway-badge { background: #ff9800; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.5px; }
.gateway-amount { font-size: 14px; font-weight: 700; color: #555; }
.gateway-amount strong { color: #003366; font-size: 16px; }

.test-cards-notice { background: #fffbec; border: 1px solid #ffe58f; border-radius: 9px; padding: 12px 16px; margin-bottom: 22px; font-size: 13px; color: #555; display: flex; gap: 10px; line-height: 1.7; }
.test-cards-notice i { color: #f59e0b; margin-top: 2px; flex-shrink: 0; }

/* Animated card preview */
.card-display { background: linear-gradient(135deg, #0a1128 0%, #003366 50%, #0066cc 100%); border-radius: 16px; padding: 24px; color: #fff; margin-bottom: 24px; position: relative; overflow: hidden; box-shadow: 0 12px 35px rgba(0,51,102,0.4); }
.card-display::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.card-chip i { font-size: 28px; color: rgba(255,255,255,0.6); margin-bottom: 20px; display: block; }
.card-number-display { font-size: 20px; font-weight: 700; letter-spacing: 3px; margin-bottom: 20px; font-family: 'Courier New', monospace; }
.card-bottom-row { display: flex; align-items: flex-end; gap: 20px; }
.card-field-label { font-size: 9px; letter-spacing: 1px; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 3px; }
.card-holder-display, .card-expiry-display { font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.card-brand-icon { margin-left: auto; font-size: 32px; color: rgba(255,255,255,0.7); }

/* Gateway form */
.gateway-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.gw-field { display: flex; flex-direction: column; gap: 7px; }
.gw-field label { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.4px; }
.gw-input-wrap { position: relative; }
.gw-field input, .gw-input-wrap input { width: 100%; padding: 13px 16px; border: 2px solid #eee; border-radius: 9px; font-size: 15px; font-family: 'Courier New', monospace; outline: none; transition: 0.25s; background: #fafafa; color: #1a1a1a; }
.gw-field input:focus, .gw-input-wrap input:focus { border-color: #0066cc; background: #fff; box-shadow: 0 0 0 4px rgba(0,102,204,0.07); }
.gw-card-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #0066cc; pointer-events: none; }
.gw-cvv-hint { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #bbb; cursor: help; }
.gw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-pay-now { width: 100%; background: linear-gradient(135deg, #28a745, #1a7a3a); color: #fff; border: none; padding: 16px; border-radius: 10px; font-size: 18px; font-weight: 800; font-family: 'Inter', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; margin-bottom: 16px; }
.btn-pay-now:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(40,167,69,0.4); }

.gateway-footer { text-align: center; font-size: 12px; color: #bbb; font-weight: 600; }
.test-watermark { display: inline-block; background: #ff9800; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 20px; margin-left: 10px; letter-spacing: 0.5px; }
.btn-back-checkout { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #555; margin-top: 16px; transition: 0.2s; }
.btn-back-checkout:hover { color: #0066cc; }

/* =============================================
   CHECKOUT RESULT PAGES
   ============================================= */
.checkout-result-page { padding: 60px 0 80px; background: #f4f7f9; min-height: 70vh; }
.result-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.07); border: 1px solid #f0f0f0; text-align: center; }
.result-icon { margin: 0 auto 25px; }

/* Animated SVG checkmark */
.success-icon .checkmark { width: 80px; height: 80px; }
.checkmark-circle { stroke: #28a745; stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; stroke-linecap: round; animation: stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards; }
.checkmark-check { stroke: #28a745; stroke-width: 2.5; stroke-dasharray: 48; stroke-dashoffset: 48; stroke-linecap: round; animation: stroke 0.4s cubic-bezier(0.65,0,0.45,1) 0.6s forwards; }
@keyframes stroke { 100% { stroke-dashoffset: 0; } }

.failed-icon i { font-size: 75px; color: #e74c3c; animation: pop-in 0.5s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes pop-in { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.result-title { font-size: 28px; font-weight: 800; color: #003366; font-family: 'Outfit', sans-serif; margin-bottom: 10px; }
.failed-card .result-title { color: #c0392b; }
.result-subtitle { font-size: 15px; color: #888; max-width: 420px; margin: 0 auto 30px; line-height: 1.7; }

.order-summary-box { background: #f8f9fa; border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; text-align: left; }
.order-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.order-detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.order-detail-row span:first-child { color: #888; font-weight: 600; }
.order-number-badge { background: #003366; color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 800; }
.pill-green { background: #f0fff4; color: #28a745; }
.pill-blue  { background: #eff6ff; color: #0066cc; }
.pill-red   { background: #fff2f2; color: #e74c3c; }

.ordered-items { text-align: left; margin-bottom: 28px; }
.ordered-items-title { font-size: 13px; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.ordered-item-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.ordered-item-row:last-child { border-bottom: none; }
.ordered-item-row img { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: #f8f9fa; border: 1px solid #eee; }
.ordered-item-info { flex: 1; }
.ordered-item-name { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.ordered-item-qty { font-size: 12px; color: #999; margin-top: 3px; }
.ordered-item-price { font-size: 14px; font-weight: 800; color: #003366; flex-shrink: 0; }

.result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-result-primary { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #0066cc, #003366); color: #fff; padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; transition: 0.3s; }
.btn-result-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,102,204,0.3); color: #fff; }
.btn-result-secondary { display: inline-flex; align-items: center; gap: 8px; background: #f4f7f9; color: #555; padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; transition: 0.3s; border: 1px solid #e0e7ef; }
.btn-result-secondary:hover { background: #e0e7ef; color: #003366; }

.failed-tips { background: #fff8ec; border: 1px solid #ffe58f; border-radius: 10px; padding: 18px 22px; margin-bottom: 28px; text-align: left; }
.failed-tip-title { font-size: 14px; font-weight: 800; color: #f59e0b; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.failed-tips ul { margin: 0; padding-left: 20px; }
.failed-tips li { font-size: 14px; color: #555; margin-bottom: 6px; }

@media (max-width: 900px) {
    .checkout-layout { flex-direction: column; }
    .checkout-summary-col { width: 100%; position: static; }
}
@media (max-width: 600px) {
    .checkout-fields-grid { grid-template-columns: 1fr; }
    .gw-row { grid-template-columns: 1fr; }
    .result-actions { flex-direction: column; }
}

/* SOCIAL LOGIN */
.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #888;
    font-size: 13px;
    font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1px;
    background: #eee;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.social-login-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.btn-social-google, .btn-social-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 50px; /* Fixed height for perfect symmetry */
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s;
}
.btn-social-google {
    background: #fff !important;
    color: #444 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-social-google img { 
    width: 20px; 
    height: 20px; 
    display: block;
}
.btn-social-google:hover { 
    background: #f8f9fa !important; 
    border-color: #cbd5e0 !important;
}

.btn-social-apple {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000;
}
.btn-social-apple i { 
    font-size: 20px; 
    margin-bottom: 2px; /* Visual optical alignment for Apple logo */
}
.btn-social-apple:hover { 
    background: #222 !important; 
    transform: translateY(-1px); 
}

@media (max-width: 480px) {
    .social-login-group { grid-template-columns: 1fr; }
}
