/* =========================================================
   GLOBAL RESET / SAFETY
========================================================= */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =========================================================
   FULL-BLEED HELPER (TRUE EDGE TO EDGE)
========================================================= */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* =========================================================
   HERO BANNER (SINGLE IMAGE – NO SLIDER)
========================================================= */
.ko-hero {
    position: relative;
    height: 100vh;
    min-height: 420px;
}

.ko-hero-banner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* =========================================================
   HEADER SAFETY (PREVENT OVERLAP / SHRINK)
========================================================= */
.ko-header {
    position: relative;
    z-index: 1000;
}

/* =========================================================
   PAGE CONTENT (NORMAL WIDTH AFTER HERO)
========================================================= */
.ko-home-simplified {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    gap: 2.5rem;
}

/* =========================================================
   TRUST STRIP
========================================================= */
.ko-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ko-trust-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(251, 146, 60, 0.2);
    font-weight: 600;
}

/* =========================================================
   BUTTON FIX (HOVER COLOR GUARANTEED)
========================================================= */
.ko-btn,
.ko-btn:hover {
    color: #ffffff !important;
}

/* =========================================================
   RESPONSIVE FIXES
========================================================= */
@media (max-width: 768px) {
    .ko-hero {
        height: 45vh;
        min-height: 300px;
    }

    .ko-home-simplified {
        padding: 2rem 1rem;
    }
}


/* Normal flow of CSS file below this line */
:root {
    --brand-primary: #f97316;
    --brand-primary-hover: #ea580c;
    --brand-primary-light: #fff7ed;
    --brand-secondary: #4FA1D4;
    --text-strong: #292524;
    --text-body: #44403c;
    --text-muted: #78716c;
    --surface: #ffffff;
    --surface-soft: #fffbf5;
    --border-color: rgba(251, 146, 60, 0.15);
    --shadow-soft: 0 4px 20px rgba(251, 146, 60, 0.08);
    --transition-base: 200ms ease;
}

body {
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-body);
    background: linear-gradient(to bottom, #fffbf5 0%, #fff7ed 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-strong);
    letter-spacing: -0.01em;
    font-weight: 700;
}

p,
li {
    color: var(--text-body);
}

.navbar,
.navbar-default {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

.navbar a,
.navbar-brand,
.navbar-nav>li>a {
    color: var(--text-strong) !important;
    font-weight: 600;
    transition: color var(--transition-base), transform var(--transition-base);
}

.navbar a:hover,
.navbar-nav>li>a:hover {
    color: var(--brand-primary) !important;
    transform: translateY(-1px);
}

.navbar-nav>.active>a,
.navbar-nav>.open>a,
.navbar-nav>.active>a:hover,
.navbar-nav>.open>a:hover,
.navbar-nav>.active>a:focus,
.navbar-nav>.open>a:focus {
    color: var(--brand-primary) !important;
    background: transparent !important;
}

.navbar .dropdown-menu {
    z-index: 2000;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.ko-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.08);
    padding: 0.15rem 0;
}

.ko-topbar .ko-top-links>li>a,
.ko-topbar .ko-account-links>li>a {
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    color: var(--text-strong) !important;
}

.ko-topbar .ko-top-links>li>a:hover,
.ko-topbar .ko-account-links>li>a:hover {
    color: var(--brand-primary) !important;
}

/* Warm orange bar instead of black */
.navbar-inverse,
.navbar-dark,
.bg-dark,
.bg-black,
.panel-inverse,
.well.inverse,
.section-dark {
    background: linear-gradient(135deg, #f97316, #fb923c) !important;
    color: #fffaf0 !important;
    padding: 0.4rem 0 !important;
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav>li>a,
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav>li>a,
.section-dark a {
    color: #fffaf0 !important;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
}

.navbar-inverse .navbar-nav>li>a:hover,
.navbar-inverse .navbar-nav>li>a:focus,
.navbar-dark .navbar-nav>li>a:hover,
.navbar-dark .navbar-nav>li>a:focus,
.section-dark a:hover {
    color: #fef3c7 !important;
}

.navbar-inverse .navbar-nav>li>a .caret,
.navbar-dark .navbar-nav>li>a .caret,
.section-dark .navbar-nav>li>a .caret {
    border-top-color: #fffaf0 !important;
    border-bottom-color: #fffaf0 !important;
}

.navbar-inverse .navbar-nav>.active>a,
.navbar-inverse .navbar-nav>.open>a,
.navbar-dark .navbar-nav>.active>a,
.navbar-dark .navbar-nav>.open>a {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fffaf0 !important;
}

/* Navigation bar spacing optimization */
.navbar-inverse .container,
.navbar-dark .container,
.section-dark .container {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-inverse .navbar-collapse,
.navbar-dark .navbar-collapse {
    width: 100%;
    display: flex;
    align-items: center;
}

.navbar-inverse .navbar-nav,
.navbar-dark .navbar-nav {
    margin-left: 10% !important;
}

.navbar-inverse form,
.navbar-dark form,
.section-dark form {
    margin-left: auto !important;
    margin-right: 10% !important;
}

/* Browse store and search bar centered layout */
.navbar-inverse .navbar-form,
.navbar-dark .navbar-form {
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-inverse .form-inline,
.navbar-dark .form-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ko-header .navbar-toggle,
.ko-header .navbar-toggler {
    display: none !important;
}

@media (min-width: 768px) {

    .navbar-inverse .navbar-nav,
    .navbar-dark .navbar-nav {
        margin-right: 0;
    }
}

.ko-header .page_inner {
    padding: 0.6rem 2.25rem 0.4rem;
}

.ko-header .row {
    align-items: center;
    gap: 1rem;
}

.ko-header .ko-logo {
    max-height: 84px !important;
    width: auto;
}

.ko-header .ko-brand img,
.ko-header a img {
    max-height: 84px !important;
    height: auto !important;
    width: auto !important;
}

body#checkout .ko-header .ko-brand img,
body.checkout .ko-header .ko-brand img,
body[class*="checkout"] .ko-header .ko-brand img,
body#checkout .ko-header a img,
body.checkout .ko-header a img,
body[class*="checkout"] .ko-header a img {
    max-height: 64px !important;
}

body#checkout .ko-header .ko-logo,
body.checkout .ko-header .ko-logo,
body[class*="checkout"] .ko-header .ko-logo {
    max-height: 64px !important;
    height: 64px !important;
    width: auto !important;
    object-fit: contain;
}

.ko-logo {
    max-height: 84px;
}

.ko-header .mini-basket,
.ko-header .basket-mini,
.ko-header .mini-basket-wrapper {
    margin-right: 2rem;
}

.ko-header .mini-basket .btn,
.ko-header .basket-mini .btn {
    border-radius: 10px;
    padding: 0.45rem 1.25rem;
}

@media (max-width: 991px) {
    .ko-header .page_inner {
        padding: 0.75rem 1.1rem;
    }

    .ko-header .mini-basket,
    .ko-header .basket-mini,
    .ko-header .mini-basket-wrapper {
        margin-right: 0;
    }
}

.btn,
button,
input[type="submit"] {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.65rem 1.6rem;
    transition: background-color var(--transition-base),
        color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
    border: none;
}

.btn:active,
button:active,
input[type="submit"]:active {
    transform: translateY(1px);
}

/* Primary buttons - orange gradient */
.btn-primary,
.btn-success,
.btn-add-to-basket {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #dc8d4c 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover,
.btn-success:hover,
.btn-add-to-basket:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover) 0%, #f97316 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Secondary buttons - teal */
.btn-secondary,
.btn-info {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #14b8a6 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 164, 0.3);
}

.btn-secondary:hover,
.btn-info:hover {
    background: linear-gradient(135deg, #0d9488 0%, var(--brand-secondary) 100%);
    box-shadow: 0 6px 20px rgba(14, 165, 164, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Default/Light buttons - white with orange border */
.btn-default,
.btn-light {
    background: #ffffff;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.btn-default:hover,
.btn-light:hover {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary-hover);
    color: var(--brand-primary-hover);
    transform: translateY(-2px);
}

/* Outline buttons */
.btn-outline-primary {
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: var(--brand-secondary);
    border: 2px solid var(--brand-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--brand-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Danger/Delete buttons - red-orange */
.btn-danger,
.btn-delete {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover,
.btn-delete:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Search button */
.btn-search,
input[type="submit"].btn-search {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #fb923c 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.product_pod,
.thumbnail,
.card,
.panel {
    background: var(--surface);
    border-radius: 18px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
    overflow: hidden;
    padding: 1.5rem;
}

.product_pod {
    padding-bottom: 401px;
}

.product_pod:hover,
.thumbnail:hover,
.card:hover,
.panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(251, 146, 60, 0.25);
    border-color: rgba(251, 146, 60, 0.4);
}

/* Product images */
.product_pod img,
.thumbnail img,
.card img {
    border-radius: 12px;
    margin-bottom: 1rem;
    width: 100%;
    height: 390px;
    object-fit: cover;
}

/* Star ratings */
.product_pod .star-rating,
.card .star-rating,
.star-rating {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.star-rating .fa-star,
.star-rating i {
    color: #fbbf24;
}

/* Product title/name */
.product_pod .caption h3,
.product_pod .caption h4,
.product_pod h3,
.card-title,
.product_pod a h3 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--brand-secondary) !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    transition: color var(--transition-base);
    display: block !important;
    position: relative !important;
    z-index: 1;
    width: 100%;
}

.product_pod a:hover h3,
.card-title:hover {
    color: var(--brand-primary);
}

/* Product price */
.product_pod .price_color,
.product_price,
.product_pod .product_price {
    color: var(--brand-primary) !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    z-index: 1;
    width: 100%;
}

/* Stock availability */
.availability,
.product_pod .availability,
.instock,
.product_pod .instock {
    font-size: 0.875rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.5rem 0 1rem 0;
    font-weight: 600;
}

.availability i,
.instock i {
    color: #22c55e;
}

/* Add to cart button in product cards */
.product_pod .btn,
.card .btn,
.add-to-basket {
    width: 100%;
    margin-top: 0.5rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

/* Product grid layout - 3 items per row */
.product-list,
.browsing-summary+ol,
ol.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {

    .product-list,
    .browsing-summary+ol,
    ol.row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .product-list,
    .browsing-summary+ol,
    ol.row {
        grid-template-columns: 1fr;
    }
}

/* Fix column widths for product items */
.product-list li,
ol.row>li,
.col-sm-6.col-md-4.col-lg-3 {
    max-width: 100% !important;
    flex: none !important;
    width: auto !important;
}

.page-header,
.hero-unit,
.alert-info {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

input,
select,
textarea {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.55rem 0.85rem;
    transition: border-color var(--transition-base),
        box-shadow var(--transition-base);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    outline: none;
    background: var(--brand-primary-light);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.25rem;
}

.breadcrumb>li,
.breadcrumb>li>a {
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.breadcrumb>li>a:hover {
    color: var(--brand-primary);
}

.breadcrumb>.active {
    color: var(--brand-primary);
    font-weight: 600;
}

.badge,
.label {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

.badge-accent,
.label-primary {
    background: rgba(249, 115, 22, 0.18);
    color: var(--brand-primary);
    border: none;
}

/* Sidebar filters (Refine by) */
.sidebar,
.side_categories,
.facets,
.facet {
    width: 100%;
    text-align: left;
}

.sidebar .panel,
.side_categories .panel,
.facets .panel,
.facet .panel,
.sidebar .well,
.side_categories .well,
.facets .well,
.facet .well {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 2px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.sidebar .panel-heading,
.side_categories .panel-heading,
.facets .panel-heading,
.facet .panel-heading {
    background: transparent;
    border: 0;
    padding: 0 0 0.5rem;
}

.sidebar .panel-body,
.side_categories .panel-body,
.facets .panel-body,
.facet .panel-body {
    padding: 0;
}

.sidebar h3,
.sidebar h4,
.side_categories h3,
.side_categories h4,
.facets h3,
.facets h4,
.facet h3,
.facet h4 {
    margin: 0 0 0.5rem;
    color: var(--text-strong);
}

.sidebar ul,
.side_categories ul,
.facets ul,
.facet ul {
    margin: 0;
    padding-left: 0.1rem;
}

.sidebar a,
.side_categories a,
.facets a,
.facet a {
    color: var(--brand-secondary);
    font-weight: 600;
    text-transform: capitalize;
}

.sidebar a:hover,
.side_categories a:hover,
.facets a:hover,
.facet a:hover {
    color: var(--brand-primary);
}

.sidebar label,
.side_categories label,
.facets label,
.facet label {
    color: var(--text-body);
}

.sidebar li,
.side_categories li,
.facets li,
.facet li {
    margin: 0.15rem 0.5rem;
    padding: 0.1rem 0;
}

.sidebar input[type="checkbox"],
.side_categories input[type="checkbox"],
.facets input[type="checkbox"],
.facet input[type="checkbox"] {
    margin-right: 0.1rem;
}

/* Checkout: playful, game-like experience */
body#checkout,
body.checkout,
body[class*="checkout"] {
    background: radial-gradient(circle at top, #fff4e6 0%, #fffbf5 35%, #fff7ed 100%);
    position: relative;
    overflow-x: hidden;
}

body#checkout::before,
body.checkout::before,
body[class*="checkout"]::before {
    content: "";
    position: fixed;
    inset: -20% -10% auto -10%;
    height: 60vh;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.18), transparent 60%),
        radial-gradient(circle at 70% 20%, rgba(14, 165, 164, 0.18), transparent 55%);
    filter: blur(8px);
    pointer-events: none;
    animation: ko-float-bg 12s ease-in-out infinite;
    z-index: 0;
}

body#checkout::after,
body.checkout::after,
body[class*="checkout"]::after {
    content: "";
    position: fixed;
    inset: auto -15% -25% -15%;
    height: 55vh;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(20, 184, 166, 0.16), transparent 55%);
    filter: blur(10px);
    pointer-events: none;
    animation: ko-float-bg 14s ease-in-out infinite reverse;
    z-index: 0;
}

body#checkout .container,
body.checkout .container,
body[class*="checkout"] .container {
    position: relative;
    z-index: 1;
}

body#checkout .page-header,
body.checkout .page-header,
body[class*="checkout"] .page-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.98));
    border: 2px solid rgba(251, 146, 60, 0.25);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.18);
    animation: ko-pop 700ms ease;
}

body#checkout .page-header h1,
body.checkout .page-header h1,
body[class*="checkout"] .page-header h1 {
    background: linear-gradient(135deg, #f97316, #0ea5a4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body#checkout .panel,
body#checkout .well,
body.checkout .panel,
body.checkout .well,
body[class*="checkout"] .panel,
body[class*="checkout"] .well,
body#checkout .card,
body.checkout .card,
body[class*="checkout"] .card {
    border: 2px solid rgba(251, 146, 60, 0.2);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body#checkout .panel:hover,
body#checkout .well:hover,
body.checkout .panel:hover,
body.checkout .well:hover,
body[class*="checkout"] .panel:hover,
body[class*="checkout"] .well:hover,
body#checkout .card:hover,
body.checkout .card:hover,
body[class*="checkout"] .card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(14, 165, 164, 0.35);
    box-shadow: 0 18px 36px rgba(14, 165, 164, 0.18);
}

.card-body {
    margin-bottom: 20px;
}

body#checkout .btn,
body.checkout .btn,
body[class*="checkout"] .btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

body#checkout .btn::after,
body.checkout .btn::after,
body[class*="checkout"] .btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    transition: left 500ms ease;
}

body#checkout .btn:hover::after,
body.checkout .btn:hover::after,
body[class*="checkout"] .btn:hover::after {
    left: 140%;
}

body#checkout input:focus,
body#checkout select:focus,
body#checkout textarea:focus,
body.checkout input:focus,
body.checkout select:focus,
body.checkout textarea:focus,
body[class*="checkout"] input:focus,
body[class*="checkout"] select:focus,
body[class*="checkout"] textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.2);
}

body#checkout .breadcrumb,
body.checkout .breadcrumb,
body[class*="checkout"] .breadcrumb {
    background: transparent;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px dashed rgba(249, 115, 22, 0.3);
    display: inline-flex;
    gap: 0.5rem;
    animation: ko-slide-in 600ms ease;
}

@keyframes ko-float-bg {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(12px);
    }
}

@keyframes ko-pop {
    0% {
        transform: scale(0.97);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ko-slide-in {
    0% {
        transform: translateY(6px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Styling */
.ko-footer {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(249, 115, 22, 0.15);
}

.ko-footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.ko-footer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.ko-footer ul {
    padding-left: 0;
}

.ko-footer ul li {
    margin-bottom: 0.5rem;
}

.ko-footer a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color var(--transition-base);
    font-weight: 500;
}

.ko-footer a:hover {
    color: #fffbeb;
    text-decoration: none;
}

.ko-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.25);
    margin: 2rem 0 1.5rem;
}

.ko-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 767px) {

    .navbar-inverse .container,
    .navbar-dark .container,
    .section-dark .container {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-inverse .navbar-collapse,
    .navbar-dark .navbar-collapse {
        flex-wrap: wrap;
    }

    .navbar-inverse .navbar-nav,
    .navbar-dark .navbar-nav {
        margin-left: 0 !important;
        width: 100%;
        justify-content: flex-start;
        order: 1;
    }

    .navbar-inverse .navbar-nav>li,
    .navbar-dark .navbar-nav>li {
        width: 100%;
    }

    .navbar-inverse .navbar-nav>li>a,
    .navbar-dark .navbar-nav>li>a {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: 0.35rem;
    }

    .navbar-inverse form,
    .navbar-dark form,
    .section-dark form {
        margin: 0 !important;
        width: 100%;
        order: 2;
    }

    .navbar-inverse .form-inline,
    .navbar-dark .form-inline {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0 0.5rem 0.5rem;
    }

    .navbar-inverse .form-inline input,
    .navbar-dark .form-inline input,
    .navbar-inverse .form-inline .btn,
    .navbar-dark .form-inline .btn {
        width: 100%;
        max-width: 100%;
    }

    .navbar-inverse .form-inline input,
    .navbar-dark .form-inline input {
        margin-top: 0.35rem;
    }

    .navbar-inverse .form-inline .btn,
    .navbar-dark .form-inline .btn {
        margin-top: 0.5rem;
    }
}

/* Homepage styling */
.ko-home {
    display: grid;
    gap: 2.5rem;
}

/* Simplified landing page with animated slider */
.ko-home-simplified {
    display: grid;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    position: relative;
}

.ko-home-simplified::before {
    content: "";
    position: absolute;
    inset: -120px -120px auto auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(79, 161, 212, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.ko-home-simplified::after {
    content: "";
    position: absolute;
    inset: auto auto -160px -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.ko-home-simplified>section {
    position: relative;
    z-index: 1;
}

.ko-quick-ui {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.ko-quick-card {
    padding: 1.5rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ko-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(14, 165, 164, 0.18);
}

.ko-quick-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ko-hero-panel {
    background: linear-gradient(160deg, #fff7ed 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
    margin: 0;
    align-self: center;
    position: relative;
    z-index: 2;
}

.ko-hero-panel-badge {
    align-self: flex-start;
    background: rgba(79, 161, 212, 0.12);
    color: var(--brand-secondary);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.ko-hero-panel h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin: 0;
}

.ko-hero-panel ul {
    padding-left: 1.15rem;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.ko-hero-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ko-hero-panel-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(251, 146, 60, 0.3);
}

.ko-hero-panel-meta strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-strong);
}

.ko-hero-panel-meta span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ko-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ko-trust-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(251, 146, 60, 0.2);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.ko-highlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ko-highlight header h2 {
    margin-bottom: 0.3rem;
}

.ko-highlight-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.ko-highlight-copy ul {
    padding-left: 1.2rem;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.ko-highlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ko-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.ko-highlight-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.75rem;
    justify-items: flex-start;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.ko-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.15);
}

.ko-highlight-emoji {
    font-size: 2rem;
    background: rgba(249, 115, 22, 0.12);
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.ko-story {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.ko-story ul,
.ko-story ol {
    padding-left: 1.2rem;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.ko-story-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(79, 161, 212, 0.25);
    padding: 1.6rem;
    box-shadow: 0 16px 30px rgba(79, 161, 212, 0.15);
    display: grid;
    gap: 1rem;
}

.ko-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.75rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: var(--shadow-soft);
}

.ko-stats strong {
    display: block;
    font-size: 1.3rem;
    color: var(--text-strong);
}

.ko-stats span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ko-testimonials {
    display: grid;
    gap: 1.5rem;
}

.ko-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.ko-testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(79, 161, 212, 0.2);
    padding: 1.5rem;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 1rem;
}

.ko-testimonial-card p {
    font-size: 1rem;
    color: var(--text-body);
}

.ko-testimonial-card strong {
    display: block;
    font-weight: 700;
}

.ko-testimonial-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ko-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: #fffaf0;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

.ko-newsletter h2,
.ko-newsletter p {
    color: #fffaf0;
}

.ko-newsletter-actions {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
}

.ko-newsletter-actions span {
    font-size: 0.9rem;
    opacity: 0.85;
}


.ko-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(249, 115, 22, 0.12);
    color: var(--brand-primary);
}

.ko-home .ko-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 1rem 0 0.75rem;
}

.ko-home .ko-hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.ko-home .ko-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ko-home .ko-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    color: var(--text-muted);
}

.ko-home .ko-hero-stats strong {
    display: block;
    color: var(--text-strong);
    font-size: 1.2rem;
}

.ko-home .ko-hero-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 30px rgba(14, 165, 164, 0.14);
    padding: 1.75rem;
    text-align: center;
}

.ko-home .ko-hero-card img {
    max-width: 220px;
    width: 100%;
    margin: 0 auto 1rem;
    display: block;
}

.ko-home .ko-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ko-home .ko-feature-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.ko-home .ko-feature-icon {
    font-size: 1.8rem;
}

.ko-home .ko-highlight {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--surface-soft);
    border-radius: 22px;
}

.ko-home .ko-highlight ul {
    padding-left: 1.2rem;
    margin: 0;
}

.ko-home .ko-highlight-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.ko-home .ko-steps {
    text-align: center;
}

.ko-home .ko-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ko-home .ko-step {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.ko-home .ko-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 165, 164, 0.15);
    color: var(--brand-secondary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ko-home .ko-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(14, 165, 164, 0.12));
    border: 1px solid rgba(14, 165, 164, 0.2);
}

@media (max-width: 767px) {
    .ko-home .ko-hero {
        padding: 1.75rem;
    }

    .ko-home .ko-cta {
        padding: 1.5rem;
    }
}

/* =========================================================
   ULTRA-MODERN FILTER SIDEBAR (DJANGO OSCAR COMPATIBLE)
========================================================= */

/* Sidebar card */
.side_categories {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.96),
            rgba(255, 247, 237, 0.96));
    border-radius: 22px;
    padding: 1.6rem 1.4rem;
    box-shadow:
        0 18px 45px rgba(249, 115, 22, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: none;
    margin-bottom: 2rem;
    transition: box-shadow 0.25s ease;
}

/* Sidebar hover glow */
.side_categories:hover {
    box-shadow: 0 22px 55px rgba(249, 115, 22, 0.22);
}

/* Sidebar section titles */
.side_categories h3,
.side_categories h4 {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #78716c;
    margin-bottom: 1rem;
}

/* Filter group block */
.side_categories .facet,
.side_categories>ul {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1rem 0.75rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* Section separator */
.side_categories .facet:not(:last-child),
.side_categories>ul:not(:last-child) {
    border-bottom: 1px dashed rgba(249, 115, 22, 0.25);
    padding-bottom: 0.8rem;
}

/* List reset */
.side_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================================
   FILTER ROW LAYOUT (FIXED FOR OSCAR HTML)
========================================================= */

.side_categories li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}

/* Hover effect */
.side_categories li:hover {
    background: rgba(249, 115, 22, 0.06);
    border-radius: 10px;
    padding-left: 0.5rem;
}

/* Checkbox fixed size */
.side_categories li input[type="checkbox"] {
    flex-shrink: 0;
}

/* Label / link grows in middle */
.side_categories li a,
.side_categories li label {
    flex-grow: 1;
    font-weight: 700;
    color: var(--brand-secondary);
    cursor: pointer;
    transition: color 160ms ease;
}

.side_categories li a:hover {
    color: var(--brand-primary);
}

/* Count aligned right */
.side_categories li span,
.side_categories li small {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: #a8a29e;
}

/* =========================================================
   MODERN CHECKBOX STYLE
========================================================= */

.side_categories input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #fff7ed;
    border: 2px solid rgba(249, 115, 22, 0.35);
    display: grid;
    place-items: center;
    transition: all 150ms ease;
    cursor: pointer;
}

/* Hover */
.side_categories input[type="checkbox"]:hover {
    border-color: var(--brand-primary);
}

/* Checked */
.side_categories input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-color: #f97316;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.35);
}

.side_categories input[type="checkbox"]:checked::before {
    content: "✓";
    font-size: 12px;
    font-weight: 900;
    color: white;
}

/* Active filter chip effect */
.side_categories input[type="checkbox"]:checked+label,
.side_categories input[type="checkbox"]:checked~a {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white !important;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================================================
   ACTIVE CATEGORY CHIP (TOP CATEGORY LIST)
========================================================= */

.side_categories strong {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #ffffff;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* =========================================================
   SIDEBAR TITLE STYLE
========================================================= */

.page .col-md-3>h4 {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    display: inline-block;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.9rem;
}

/* =========================================================
   STICKY SIDEBAR
========================================================= */

.col-md-3 {
    position: sticky;
    top: 110px;
    align-self: flex-start;
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .side_categories {
        border-radius: 18px;
        padding: 1.25rem;
    }
}

/* ===============================
   SIDEBAR CARD STYLES
================================ */

.sidebar-card {
    background: hsl(40, 30%, 98%);
    border-radius: 16px;
    border: 1px solid hsl(38, 25%, 88%);
    box-shadow: 0 4px 20px -4px hsla(200, 25%, 15%, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(175, 50%, 30%);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(175, 50%, 85%);
}

/* ===============================
   CATEGORY LIST STYLES
================================ */

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin: 0.35rem 0;
}

.category-link {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    color: hsl(200, 25%, 25%);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.category-link:hover {
    background: hsl(175, 40%, 94%);
    color: hsl(175, 50%, 30%);
    border-color: hsl(175, 50%, 85%);
    text-decoration: none;
    transform: translateX(4px);
}

/* Active category tag (toggleable) - Ocean Teal theme */
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.category-tag--active {
    background: linear-gradient(135deg, hsl(175, 50%, 35%) 0%, hsl(175, 45%, 45%) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px hsla(175, 50%, 35%, 0.35);
}

.category-tag--active:hover {
    background: linear-gradient(135deg, hsl(175, 55%, 28%) 0%, hsl(175, 50%, 38%) 100%);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 6px 18px hsla(175, 50%, 30%, 0.45);
    transform: translateY(-2px);
}

.category-tag-name {
    font-weight: 600;
    color: #ffffff !important;
}

.category-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.category-tag--active:hover .category-tag-remove {
    background: rgba(255, 255, 255, 0.4);
}

.category-children {
    list-style: none;
    margin: 0.25rem 0 0 1rem;
    padding: 0;
    border-left: 2px solid hsl(175, 50%, 85%);
    padding-left: 0.75rem;
}

/* ===============================
   FACET/FILTER STYLES
================================ */

.facet-group {
    margin-bottom: 1.25rem;
}

.facet-group:last-child {
    margin-bottom: 0;
}

.facet-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(200, 25%, 35%);
    margin: 0 0 0.6rem 0;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.facet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.facet-item {
    margin: 0.3rem 0;
}

/* Unselected facet option */
.facet-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    color: hsl(200, 20%, 35%);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.facet-option:hover {
    background: hsl(175, 40%, 95%);
    color: hsl(175, 50%, 30%);
    border-color: hsl(175, 50%, 88%);
    text-decoration: none;
}

/* Fake checkbox for unselected */
.facet-checkbox-fake {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid hsl(38, 25%, 78%);
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.facet-option:hover .facet-checkbox-fake {
    border-color: hsl(175, 50%, 45%);
    background: hsl(175, 50%, 97%);
}

.facet-option-name {
    flex: 1;
    text-transform: capitalize;
}

.facet-option-count {
    font-size: 0.75rem;
    color: hsl(200, 15%, 55%);
    font-weight: 600;
}

/* Disabled facet */
.facet-option--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.facet-option--disabled:hover {
    background: transparent;
    color: hsl(200, 20%, 35%);
    border-color: transparent;
}

/* Selected facet tag (pill style) - Ocean Teal */
.facet-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.88rem;
}

.facet-tag--active {
    background: linear-gradient(135deg, hsl(175, 50%, 35%) 0%, hsl(175, 45%, 45%) 100%);
    color: #ffffff !important;
    box-shadow: 0 3px 12px hsla(175, 50%, 35%, 0.3);
}

.facet-tag--active:hover {
    background: linear-gradient(135deg, hsl(175, 55%, 28%) 0%, hsl(175, 50%, 38%) 100%);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 5px 16px hsla(175, 50%, 30%, 0.4);
    transform: translateY(-2px);
}

.facet-tag-check {
    font-size: 11px;
    font-weight: 700;
}

.facet-tag-name {
    text-transform: capitalize;
    color: #ffffff !important;
}

.facet-tag-count {
    font-size: 0.72rem;
    opacity: 0.85;
}

.facet-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.2rem;
    transition: all 0.2s ease;
}

.facet-tag--active:hover .facet-tag-remove {
    background: rgba(255, 255, 255, 0.45);
}

/* Clear all filters link */
.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    margin-top: 1rem;
    border-radius: 8px;
    background: hsl(0, 85%, 97%);
    color: hsl(0, 70%, 45%);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid hsl(0, 70%, 90%);
}

.clear-filters:hover {
    background: hsl(0, 85%, 94%);
    color: hsl(0, 70%, 38%);
    text-decoration: none;
}

/* Legacy facet styles override */
.facet-selected-container,
.facet-selected-box,
.facet-inline {
    display: none !important;
}

/* ===============================
   SHOP PAGE ENHANCEMENTS
================================ */

/* Page header for browse/catalogue */
.page.with-header-padding {
    padding-top: 1.5rem;
}

.page-header {
    background: linear-gradient(135deg, hsl(40, 30%, 98%) 0%, hsl(38, 35%, 96%) 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 20px -4px hsla(200, 25%, 15%, 0.06);
    border: 1px solid hsl(38, 25%, 88%);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    color: hsl(175, 50%, 30%);
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

/* Browsing summary / results bar */
.browsing-summary {
    background: hsl(40, 30%, 98%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid hsl(38, 25%, 90%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.browsing-summary strong {
    color: hsl(175, 50%, 35%);
    font-weight: 700;
}

.browsing-summary .float-right {
    float: none !important;
}

/* Product grid enhancements */
.row.list-unstyled {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 0 !important;
    padding: 0 !important;
}

.row.list-unstyled > li {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

/* Product cards in shop page */
.row.list-unstyled .product_pod {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    padding-bottom: 1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid hsl(38, 25%, 90%);
    box-shadow: 0 4px 16px -4px hsla(200, 25%, 15%, 0.06);
    transition: all 0.3s ease;
}

.row.list-unstyled .product_pod:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px -8px hsla(175, 50%, 35%, 0.18);
    border-color: hsl(175, 50%, 80%);
}

.row.list-unstyled .product_pod img {
    border-radius: 12px;
    height: 220px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

/* Alert styling */
.alert-info {
    background: hsl(175, 40%, 95%);
    border: 1px solid hsl(175, 50%, 80%);
    color: hsl(175, 50%, 28%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

/* Breadcrumbs enhancement */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: hsl(175, 50%, 35%);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: hsl(175, 55%, 28%);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: hsl(200, 15%, 50%);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: hsl(38, 25%, 75%);
}

/* Sort dropdown styling */
.browsing-summary select,
.browsing-summary .form-control {
    border: 1px solid hsl(38, 25%, 85%);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    background: #fff;
    color: hsl(200, 25%, 25%);
    transition: all 0.2s ease;
}

.browsing-summary select:focus,
.browsing-summary .form-control:focus {
    border-color: hsl(175, 50%, 55%);
    box-shadow: 0 0 0 3px hsla(175, 50%, 45%, 0.15);
    outline: none;
}

/* ===============================
   LEGACY FACET STYLES (kept for compatibility)
================================ */

.facet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.35rem 0;
}

.facet-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facet-left a {
    font-weight: 700;
    color: hsl(175, 50%, 35%);
    text-decoration: none;
    text-transform: capitalize;
}

.facet-left a:hover {
    color: hsl(175, 55%, 28%);
}

.facet-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(200, 15%, 60%);
}

/* ===============================
   SHOP PAGE BOTTOM MARGIN
================================ */

.page.with-header-padding {
    padding-bottom: 4rem;
}

.page .page_inner {
    padding-bottom: 3rem;
}

/* Ensure content area has breathing room */
.page .content {
    padding-bottom: 2rem;
}

/* Product grid bottom spacing */
.row.list-unstyled {
    margin-bottom: 2rem !important;
}

/* Pagination spacing */
.pagination {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* ===============================
   CART / BASKET PAGE STYLES
================================ */

/* Cart page header */
.basket-title,
h1:has(+ .basket-items),
.page-header h1 {
    font-family: 'Playfair Display', serif;
    color: hsl(175, 50%, 30%);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Cart container */
.basket-items,
.basket_summary,
#basket_formset {
    background: #fff;
    border-radius: 16px;
    border: 1px solid hsl(38, 25%, 88%);
    box-shadow: 0 4px 20px -4px hsla(200, 25%, 15%, 0.06);
    overflow: hidden;
}

/* Cart table styling */
.table.table-striped,
.basket-items table {
    margin-bottom: 0;
}

.table.table-striped thead th,
.basket-items th {
    background: hsl(175, 50%, 35%);
    color: #fff;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table.table-striped tbody tr,
.basket-items tr {
    transition: background 0.2s ease;
}

.table.table-striped tbody tr:nth-child(odd),
.basket-items tr:nth-child(odd) {
    background: hsl(40, 30%, 98%);
}

.table.table-striped tbody tr:hover,
.basket-items tr:hover {
    background: hsl(175, 50%, 96%);
}

.table.table-striped td,
.basket-items td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: hsl(38, 25%, 90%);
}

/* Cart product image */
.basket-items img,
.basket_summary img {
    border-radius: 10px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    box-shadow: 0 2px 8px hsla(200, 25%, 15%, 0.1);
}

/* Cart product name */
.basket-items a,
.basket_summary .product-title a {
    color: hsl(175, 50%, 30%);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.basket-items a:hover,
.basket_summary .product-title a:hover {
    color: hsl(175, 55%, 25%);
    text-decoration: underline;
}

/* Stock availability badge */
.availability,
.in-stock {
    color: hsl(150, 60%, 35%);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Quantity input */
.basket-items input[type="number"],
input.form-control[type="number"] {
    width: 70px;
    text-align: center;
    border: 2px solid hsl(38, 25%, 85%);
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.basket-items input[type="number"]:focus,
input.form-control[type="number"]:focus {
    border-color: hsl(175, 50%, 50%);
    box-shadow: 0 0 0 3px hsla(175, 50%, 45%, 0.15);
    outline: none;
}

/* Cart totals section */
.basket-totals,
.order-total,
#basket_totals {
    background: linear-gradient(135deg, hsl(40, 35%, 97%) 0%, hsl(38, 30%, 95%) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid hsl(38, 25%, 88%);
}

.basket-totals th,
#basket_totals th {
    background: hsl(200, 20%, 35%);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.basket-totals .total,
.order-total strong,
#basket_totals .total {
    color: hsl(175, 50%, 30%);
    font-size: 1.4rem;
    font-weight: 700;
}

/* Proceed to checkout button */
.btn-lg.btn-primary,
a[href*="checkout"].btn-primary,
.checkout-btn {
    background: linear-gradient(135deg, hsl(175, 50%, 35%) 0%, hsl(175, 45%, 42%) 100%);
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px hsla(175, 50%, 35%, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-lg.btn-primary:hover,
a[href*="checkout"].btn-primary:hover,
.checkout-btn:hover {
    background: linear-gradient(135deg, hsl(175, 55%, 28%) 0%, hsl(175, 50%, 35%) 100%);
    box-shadow: 0 8px 28px hsla(175, 50%, 30%, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* Update/Remove buttons */
.btn-info,
.btn[name="update"] {
    background: linear-gradient(135deg, hsl(175, 50%, 40%) 0%, hsl(175, 45%, 48%) 100%);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-info:hover,
.btn[name="update"]:hover {
    background: linear-gradient(135deg, hsl(175, 55%, 32%) 0%, hsl(175, 50%, 40%) 100%);
    color: #fff;
}

.basket-items .btn-danger,
.btn-remove {
    background: transparent;
    border: none;
    color: hsl(0, 70%, 50%);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.basket-items .btn-danger:hover,
.btn-remove:hover {
    color: hsl(0, 70%, 40%);
    text-decoration: underline;
}

/* Coupon code section */
.voucher,
.coupon-form,
#voucher_form_container {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid hsl(38, 25%, 88%);
}

.voucher h3,
.coupon-form h3 {
    font-family: 'Playfair Display', serif;
    color: hsl(200, 25%, 25%);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ===============================
   CHECKOUT PAGE STYLES
================================ */

/* Checkout progress bar */
.checkout-nav,
.checkout-progress,
nav.progress-bar-wrapper {
    background: linear-gradient(135deg, hsl(28, 85%, 55%) 0%, hsl(35, 80%, 55%) 100%);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px hsla(28, 85%, 45%, 0.25);
}

.checkout-nav a,
.checkout-progress a,
.progress-bar-wrapper a {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.checkout-nav a:hover,
.checkout-progress a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.checkout-nav .active,
.checkout-progress .active,
.progress-bar-wrapper .active a {
    color: #fff !important;
    font-weight: 700;
}

/* Checkout alerts */
.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: hsl(150, 50%, 94%);
    color: hsl(150, 60%, 28%);
    border-left: 4px solid hsl(150, 60%, 40%);
}

.alert-warning {
    background: hsl(45, 90%, 94%);
    color: hsl(35, 80%, 30%);
    border-left: 4px solid hsl(45, 90%, 50%);
}

.alert-danger,
.alert-error {
    background: hsl(0, 70%, 96%);
    color: hsl(0, 70%, 35%);
    border-left: 4px solid hsl(0, 70%, 50%);
}

.alert-info {
    background: hsl(175, 50%, 95%);
    color: hsl(175, 50%, 28%);
    border-left: 4px solid hsl(175, 50%, 40%);
}

.alert .close,
.alert button[data-dismiss="alert"] {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
}

.alert .close:hover {
    opacity: 1;
}

/* Checkout section headers */
.checkout h1,
.checkout-heading,
#checkout h1 {
    font-family: 'Playfair Display', serif;
    color: hsl(175, 50%, 30%);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.checkout h2,
#checkout h2 {
    font-family: 'Playfair Display', serif;
    color: hsl(200, 25%, 25%);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout h3,
#checkout h3 {
    color: hsl(200, 25%, 30%);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Address cards */
.address-card,
.shipping-address,
.address {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    border: 2px solid hsl(38, 25%, 88%);
    transition: all 0.25s ease;
    height: 100%;
}

.address-card:hover,
.shipping-address:hover,
.address:hover {
    border-color: hsl(175, 50%, 60%);
    box-shadow: 0 8px 24px hsla(175, 50%, 35%, 0.12);
}

.address-card.selected,
.shipping-address.selected {
    border-color: hsl(175, 50%, 45%);
    background: hsl(175, 50%, 98%);
}

.address-card h4,
.shipping-address h4 {
    color: hsl(200, 25%, 25%);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.address-card p,
.shipping-address p {
    color: hsl(200, 15%, 45%);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Ship to this address button */
.address-card .btn-primary,
.shipping-address .btn-primary,
.btn-ship {
    background: linear-gradient(135deg, hsl(175, 50%, 35%) 0%, hsl(175, 45%, 45%) 100%);
    border: none;
    color: #fff;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.address-card .btn-primary:hover,
.shipping-address .btn-primary:hover {
    background: linear-gradient(135deg, hsl(175, 55%, 28%) 0%, hsl(175, 50%, 38%) 100%);
    box-shadow: 0 4px 14px hsla(175, 50%, 35%, 0.3);
}

/* Edit address dropdown */
.btn-group .btn,
.address-card .btn-group .btn {
    border-radius: 10px;
}

.btn-group .dropdown-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Form styling */
.checkout form .form-group,
#checkout .form-group {
    margin-bottom: 1.25rem;
}

.checkout label,
#checkout label {
    font-weight: 600;
    color: hsl(200, 25%, 25%);
    margin-bottom: 0.5rem;
    display: block;
}

.checkout .form-control,
#checkout .form-control {
    border: 2px solid hsl(38, 25%, 85%);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.checkout .form-control:focus,
#checkout .form-control:focus {
    border-color: hsl(175, 50%, 50%);
    box-shadow: 0 0 0 4px hsla(175, 50%, 45%, 0.15);
    outline: none;
}

/* Shipping method cards */
.shipping-method,
.shipping-option {
    background: #fff;
    border: 2px solid hsl(38, 25%, 88%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-method:hover,
.shipping-option:hover {
    border-color: hsl(175, 50%, 60%);
}

.shipping-method.selected,
.shipping-option.selected {
    border-color: hsl(175, 50%, 45%);
    background: hsl(175, 50%, 98%);
}

.shipping-method input[type="radio"],
.shipping-option input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: hsl(175, 50%, 40%);
    width: 18px;
    height: 18px;
}

/* Payment section */
.payment-method,
.payment-option {
    background: #fff;
    border: 2px solid hsl(38, 25%, 88%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Order summary in checkout */
.order-summary,
.basket-summary {
    background: linear-gradient(135deg, hsl(40, 35%, 98%) 0%, hsl(38, 30%, 96%) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid hsl(38, 25%, 88%);
    position: sticky;
    top: 100px;
}

.order-summary h3,
.basket-summary h3 {
    font-family: 'Playfair Display', serif;
    color: hsl(200, 25%, 25%);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(38, 25%, 85%);
}

/* ===============================
   LOGIN / SIGNUP / AUTH STYLES
================================ */

/* Auth container */
.login-form,
.register-form,
.auth-form,
#login_form,
#registration_form,
form[action*="login"],
form[action*="register"] {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    margin: 2rem auto;
    box-shadow: 0 8px 40px hsla(200, 25%, 15%, 0.1);
    border: 1px solid hsl(38, 25%, 90%);
}

/* Auth page header */
.login h1,
.register h1,
.auth h1,
h1:contains("Login"),
h1:contains("Register"),
.page-header:has(+ form[action*="login"]) h1 {
    font-family: 'Playfair Display', serif;
    color: hsl(175, 50%, 30%);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Auth subtitle */
.auth-subtitle,
.login-subtitle {
    text-align: center;
    color: hsl(200, 15%, 50%);
    margin-bottom: 2rem;
}

/* Auth form groups */
.auth-form .form-group,
.login-form .form-group,
#login_form .form-group,
#registration_form .form-group {
    margin-bottom: 1.5rem;
}

/* Auth labels */
.auth-form label,
.login-form label,
#login_form label,
#registration_form label {
    font-weight: 600;
    color: hsl(200, 25%, 25%);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* Auth inputs */
.auth-form .form-control,
.login-form .form-control,
#login_form .form-control,
#registration_form .form-control {
    border: 2px solid hsl(38, 25%, 85%);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    transition: all 0.25s ease;
    width: 100%;
}

.auth-form .form-control:focus,
.login-form .form-control:focus,
#login_form .form-control:focus,
#registration_form .form-control:focus {
    border-color: hsl(175, 50%, 50%);
    box-shadow: 0 0 0 4px hsla(175, 50%, 45%, 0.15);
    outline: none;
}

/* Auth submit button */
.auth-form .btn-primary,
.login-form .btn-primary,
#login_form .btn-primary,
#registration_form .btn-primary,
button[type="submit"][name="login_submit"],
button[type="submit"][name="registration_submit"] {
    background: linear-gradient(135deg, hsl(175, 50%, 35%) 0%, hsl(175, 45%, 45%) 100%);
    border: none;
    color: #fff;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px hsla(175, 50%, 35%, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.auth-form .btn-primary:hover,
.login-form .btn-primary:hover,
#login_form .btn-primary:hover,
#registration_form .btn-primary:hover {
    background: linear-gradient(135deg, hsl(175, 55%, 28%) 0%, hsl(175, 50%, 38%) 100%);
    box-shadow: 0 8px 28px hsla(175, 50%, 30%, 0.4);
    transform: translateY(-2px);
}

/* Remember me checkbox */
.checkbox label,
.form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: hsl(200, 15%, 40%);
    cursor: pointer;
}

.checkbox input[type="checkbox"],
.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: hsl(175, 50%, 40%);
    cursor: pointer;
}

/* Forgot password link */
.forgot-password,
a[href*="password-reset"],
a[href*="forgot"] {
    color: hsl(175, 50%, 40%);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover,
a[href*="password-reset"]:hover {
    color: hsl(175, 55%, 30%);
    text-decoration: underline;
}

/* Auth divider */
.auth-divider,
.or-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: hsl(200, 15%, 60%);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after,
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: hsl(38, 25%, 85%);
}

/* Social login buttons */
.social-login,
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-google,
.btn-facebook,
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid hsl(38, 25%, 85%);
    background: #fff;
    color: hsl(200, 25%, 25%);
}

.btn-google:hover,
.btn-facebook:hover,
.social-btn:hover {
    border-color: hsl(175, 50%, 60%);
    background: hsl(175, 50%, 98%);
}

/* Auth footer links */
.auth-footer,
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(38, 25%, 90%);
    color: hsl(200, 15%, 50%);
}

.auth-footer a,
.login-footer a,
.register-footer a {
    color: hsl(175, 50%, 40%);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover,
.login-footer a:hover,
.register-footer a:hover {
    color: hsl(175, 55%, 30%);
    text-decoration: underline;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.password-strength.weak {
    color: hsl(0, 70%, 50%);
}

.password-strength.medium {
    color: hsl(45, 90%, 45%);
}

.password-strength.strong {
    color: hsl(150, 60%, 40%);
}

/* Error messages */
.errorlist,
.form-error,
.invalid-feedback {
    color: hsl(0, 70%, 50%);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    list-style: none;
    padding: 0;
}

.errorlist li {
    margin-bottom: 0.25rem;
}

/* Form field with error */
.has-error .form-control,
.is-invalid {
    border-color: hsl(0, 70%, 60%) !important;
}

/* Success field */
.has-success .form-control,
.is-valid {
    border-color: hsl(150, 60%, 45%) !important;
}

/* ===============================
   CUSTOMER DASHBOARD STYLES
================================ */

.dashboard,
.customer-dashboard,
#dashboard {
    background: hsl(40, 30%, 98%);
}

.dashboard .nav-list,
.dashboard-nav {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid hsl(38, 25%, 88%);
    box-shadow: 0 4px 16px hsla(200, 25%, 15%, 0.05);
}

.dashboard .nav-list a,
.dashboard-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: hsl(200, 25%, 30%);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dashboard .nav-list a:hover,
.dashboard-nav a:hover {
    background: hsl(175, 50%, 95%);
    color: hsl(175, 50%, 30%);
}

.dashboard .nav-list a.active,
.dashboard-nav a.active {
    background: hsl(175, 50%, 35%);
    color: #fff;
}

/* Dashboard cards */
.dashboard-card,
.account-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid hsl(38, 25%, 88%);
    box-shadow: 0 4px 16px hsla(200, 25%, 15%, 0.05);
    margin-bottom: 1.5rem;
}

.dashboard-card h3,
.account-card h3 {
    font-family: 'Playfair Display', serif;
    color: hsl(200, 25%, 25%);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(38, 25%, 88%);
}

/* Order history table */
.order-history table,
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.order-history th,
.orders-table th {
    background: hsl(175, 50%, 35%);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.order-history td,
.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid hsl(38, 25%, 90%);
}

.order-history tr:hover,
.orders-table tr:hover {
    background: hsl(175, 50%, 98%);
}

/* Order status badges */
.order-status,
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.pending,
.badge-warning {
    background: hsl(45, 90%, 90%);
    color: hsl(35, 80%, 35%);
}

.order-status.processing,
.badge-info {
    background: hsl(200, 70%, 92%);
    color: hsl(200, 70%, 35%);
}

.order-status.shipped,
.badge-primary {
    background: hsl(175, 50%, 92%);
    color: hsl(175, 50%, 30%);
}

.order-status.delivered,
.badge-success {
    background: hsl(150, 50%, 92%);
    color: hsl(150, 60%, 30%);
}

.order-status.cancelled,
.badge-danger {
    background: hsl(0, 70%, 94%);
    color: hsl(0, 70%, 40%);
}

/* ================================
   Checkout Preview Page Fixes
   ================================ */

/* Override Bootstrap table-dark header styling for checkout */
#basket_totals thead.table-dark,
#basket_totals .table-dark,
#basket_totals thead th.table-dark,
#basket_totals tr.table-dark,
#basket_totals th,
.checkout-preview #basket_totals th,
table#basket_totals thead th {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
}

/* Clean Totals Table Styling */
#basket_totals,
table#basket_totals {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px hsla(200, 25%, 15%, 0.08);
    border: 1px solid hsl(38, 25%, 88%);
}

#basket_totals tbody tr {
    border-bottom: 1px solid hsl(38, 25%, 90%);
}

#basket_totals tbody tr:last-child {
    border-bottom: none;
}

#basket_totals th,
#basket_totals td {
    padding: 1rem 1.25rem;
    text-align: left;
    vertical-align: middle;
    background: transparent !important;
}

/* Section Headers - Cart, Shipping, etc */
#basket_totals th[colspan],
#basket_totals thead th,
#basket_totals tr.basket-items th,
#basket_totals .section-header,
#basket_totals tr th:only-child {
    background: hsl(175, 45%, 35%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.25rem;
}

/* Line item labels */
#basket_totals td:first-child,
#basket_totals .totals-label {
    color: hsl(200, 25%, 30%);
    font-weight: 500;
}

/* Line item values/prices */
#basket_totals td:last-child,
#basket_totals .totals-value {
    color: hsl(175, 50%, 30%);
    font-weight: 600;
    text-align: right;
}

/* Order Total Row - emphasized */
#basket_totals tr.total,
#basket_totals tr.order-total,
#basket_totals .total td,
#basket_totals tr:last-child {
    background: linear-gradient(135deg, hsl(40, 35%, 97%) 0%, hsl(38, 30%, 95%) 100%) !important;
}

#basket_totals tr.total td,
#basket_totals tr.order-total td,
#basket_totals .total td:last-child,
#basket_totals tr:last-child td:last-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: hsl(175, 50%, 28%);
}

/* Remove any progress bar styling remnants */
#basket_totals .progress,
#basket_totals .progress-bar,
#basket_totals [role="progressbar"] {
    display: none !important;
}

/* Hide empty table cells that create visual noise */
#basket_totals td:empty,
#basket_totals th:empty {
    padding: 0;
    display: none;
}

/* Place Order Button Styling */
.checkout-preview .btn-primary,
.place-order-btn,
button[type="submit"].btn-primary,
#place_order_form .btn-primary {
    background: linear-gradient(135deg, hsl(175, 50%, 35%) 0%, hsl(175, 45%, 42%) 100%);
    border: none;
    color: #fff;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px hsla(175, 50%, 35%, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    margin-top: 1.5rem;
}

.checkout-preview .btn-primary:hover,
.place-order-btn:hover,
button[type="submit"].btn-primary:hover,
#place_order_form .btn-primary:hover {
    background: linear-gradient(135deg, hsl(175, 55%, 28%) 0%, hsl(175, 50%, 35%) 100%);
    box-shadow: 0 8px 28px hsla(175, 50%, 30%, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* Checkout Totals Box Container */
.order-contents,
.checkout-totals,
.basket-totals-container {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px hsla(200, 25%, 15%, 0.08);
    border: 1px solid hsl(38, 25%, 88%);
}

/* Totals Heading */
.order-contents h2,
.checkout-totals h2,
.totals-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(200, 25%, 20%);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(38, 25%, 88%);
}

/* ================================
   Checkout Pages - All Buttons Fix
   Override Bootstrap blue buttons
   ================================ */

/* All checkout page buttons - primary action */
[class*="checkout"] .btn-primary,
[class*="checkout"] .btn-success,
[class*="checkout"] .btn-info,
.checkout .btn-primary,
.checkout .btn-success,
.checkout .btn-info,
.checkout-page .btn-primary,
.checkout-page .btn-success,
form[action*="checkout"] .btn-primary,
form[action*="checkout"] .btn-success,
#checkout .btn-primary,
#checkout .btn-success,
.shipping-methods .btn-primary,
.payment-methods .btn-primary,
.place-order .btn-primary,
#new_shipping_address .btn-primary,
#shipping_address .btn-primary,
.address-actions .btn-primary {
    background: hsl(175, 45%, 38%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px hsla(175, 50%, 35%, 0.2) !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

[class*="checkout"] .btn-primary:hover,
[class*="checkout"] .btn-success:hover,
[class*="checkout"] .btn-info:hover,
.checkout .btn-primary:hover,
.checkout .btn-success:hover,
.checkout .btn-info:hover,
.checkout-page .btn-primary:hover,
.checkout-page .btn-success:hover,
form[action*="checkout"] .btn-primary:hover,
form[action*="checkout"] .btn-success:hover,
#checkout .btn-primary:hover,
#checkout .btn-success:hover,
.shipping-methods .btn-primary:hover,
.payment-methods .btn-primary:hover,
.place-order .btn-primary:hover,
#new_shipping_address .btn-primary:hover,
#shipping_address .btn-primary:hover,
.address-actions .btn-primary:hover {
    background: hsl(175, 50%, 32%) !important;
    box-shadow: 0 4px 12px hsla(175, 50%, 30%, 0.25) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Secondary/Cancel buttons on checkout */
[class*="checkout"] .btn-secondary,
[class*="checkout"] .btn-default,
[class*="checkout"] .btn-outline-primary,
.checkout .btn-secondary,
.checkout .btn-default {
    background: #fff !important;
    border: 2px solid hsl(175, 50%, 40%) !important;
    color: hsl(175, 50%, 35%) !important;
    box-shadow: none;
}

[class*="checkout"] .btn-secondary:hover,
[class*="checkout"] .btn-default:hover,
[class*="checkout"] .btn-outline-primary:hover,
.checkout .btn-secondary:hover,
.checkout .btn-default:hover {
    background: hsl(175, 50%, 35%) !important;
    color: #fff !important;
    border-color: hsl(175, 50%, 35%) !important;
}

/* Global Bootstrap btn-primary override for checkout context */
body .btn.btn-primary,
body .btn.btn-success {
    background: hsl(175, 45%, 38%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 6px hsla(175, 50%, 35%, 0.15);
}

body .btn.btn-primary:hover,
body .btn.btn-success:hover,
body .btn.btn-primary:focus,
body .btn.btn-success:focus {
    background: hsl(175, 50%, 32%);
    box-shadow: 0 3px 10px hsla(175, 50%, 30%, 0.2);
    color: #fff;
}

/* Large action buttons */
.btn-lg.btn-primary,
.btn-lg.btn-success,
.btn-block.btn-primary,
.btn-block.btn-success {
    background: hsl(175, 45%, 38%) !important;
    border: none !important;
    color: #fff !important;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 2px 8px hsla(175, 50%, 35%, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-lg.btn-primary:hover,
.btn-lg.btn-success:hover,
.btn-block.btn-primary:hover,
.btn-block.btn-success:hover {
    background: hsl(175, 50%, 32%) !important;
    box-shadow: 0 4px 12px hsla(175, 50%, 30%, 0.25);
    transform: translateY(-1px);
}

/* ===============================
   CATALOGUE/SHOP PAGE FIXES
================================ */

/* 1. Make entire product card clickable */
.product_pod {
    position: relative;
    cursor: pointer;
}

/* Stretch the first link (image link) to cover entire card */
.product_pod .image_container {
    position: static;
}

.product_pod .image_container a {
    position: static;
}

.product_pod .image_container a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Keep buttons and form clickable above the overlay */
.product_pod form,
.product_pod .btn,
.product_pod button,
.product_pod .product_price form,
.product_pod input,
.product_pod select,
.product_pod textarea {
    position: relative;
    z-index: 3;
}

/* 2. Hide stock count numbers only (keep "In stock" label visible) */
.product_pod .availability .stock-count,
.product_pod .instock .stock-count,
.facet-option-count,
.facet-tag-count {
    display: none !important;
}

/* 3. Make sidebar facet labels bolder and more visible */
.facet-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: hsl(175, 50%, 32%) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.75rem !important;
}

.facet-option-name,
.facet-tag-name {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: hsl(200, 25%, 25%) !important;
}

.facet-option:hover .facet-option-name {
    color: hsl(175, 50%, 28%) !important;
}

/* Sidebar card titles for "Type" and "Rating" */
.sidebar-card h4,
.sidebar-card h5,
.side_categories h4,
.side_categories h5,
.card-body h4,
.card-body h5 {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: hsl(175, 50%, 32%) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}
