html {
    height: 100%;
    overflow-x: hidden;
    background-color: #1a2428;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

:root {
    --brand-dark: #1f2a2e;
    --brand-dark-hover: #162024;
    --font-body: 'Lato', sans-serif;
    --font-display: 'Playfair Display', serif;
}

body {
    background-size: cover;
    color: #555;
    font-family: var(--font-body);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body.home-page {
    background: url('/static/images/homepage_background_hero.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
}

body.home-page::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -2;
}

.site-main {
    flex: 1 0 auto;
    min-height: calc(100vh - 164px - 96px);
}

.home-hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 164px - 96px);
}

.home-hero>.row {
    width: 100%;
}

.hero-copy {
    transform: translateY(44px);
}

h1,
h2,
h3,
h4,
.logo-font {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

/* Base (xs: <576px) — small phones */
.hero-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(30, 30, 30, 0.6);
    padding: 0.4em 0.45em 0.4em 0.5em;
    border-radius: 0.35em;
    display: inline-block;
    width: fit-content;
    max-width: min(20rem, calc(100vw - 2rem));
    text-align: left;
    white-space: normal;
    overflow-wrap: normal;
    box-sizing: border-box;
    margin: 0;
}

.hero-title span {
    display: block;
}

#id_product_size {
    min-width: 130px !important;
}

/* sm: ≥576px */
@media (min-width: 576px) {
    .hero-title {
        font-size: 1.9rem;
    }
}

/* md: ≥768px */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.05rem;
        line-height: 1.25;
    }

    .size-selector,
    .qty-control-group {
        width: 270px !important;
    }

    .size-selector,
    .qty_input,
    .qty-btn {
        height: 40px !important;
        font-size: 1rem;
    }
}

/* lg: ≥992px */
@media (min-width: 992px) {
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
        max-width: 46ch;
        white-space: nowrap;
    }

    .home-page .home-hero {
        align-items: flex-start;
        min-height: auto;
        padding-top: 2.35rem;
        padding-bottom: 0.5rem;
    }

    .home-page .hero-copy {
        transform: translateY(30px);
        max-width: 23.5rem;
    }

    .home-page .shop-now-button {
        min-width: 0;
        width: auto;
        min-height: 42px;
        max-width: 200px;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }

    .home-page .hero-copy .my-5 {
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .home-page .hero-copy .my-5 {
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .size-selector,
    .qty-control-group {
        width: 270px !important;
    }

    .size-selector,
    .qty_input,
    .qty-btn {
        height: 40px !important;
        font-size: 1rem;
    }
}


/* xl: ≥1200px */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 2.35rem;
    }
}

/* xxl: ≥1400px */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 2.55rem;
    }
}

/* from Bulma */
.icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
}

.logo-font {
    text-transform: uppercase;
}

.main-logo-link {
    width: fit-content;
}

.shop-now-button {
    background: #d9a441;
    color: var(--brand-dark);
    min-width: 240px;
    border: 1px solid #d9a441;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 10px;
}

.btn-black {
    background: var(--brand-dark);
    color: white;
    border-radius: 10px;
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-black {
    background: white;
    color: var(--brand-dark) !important;
    border: 1px solid var(--brand-dark);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 0.5rem 1rem;
    min-height: 40px;

}

.btn-outline-black:hover,
.btn-outline-black:active,
.btn-outline-black:focus {
    background: var(--brand-dark);
    color: white !important;
}

.shop-now-button:hover,
.shop-now-button:active,
.shop-now-button:focus,
.btn-black:hover,
.btn-black:active,
.btn-black:focus {
    background: #c28c2e;
    color: var(--brand-dark);
}

.btn {
    border-radius: 10px;
    letter-spacing: 0.03em;
}

.btn.rounded-0 {
    border-radius: 10px !important;
}

.search-btn {
    border-radius: 0 !important;
}

.search-btn,
.search-btn.rounded-0 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.btn:focus,
.btn:active {
    box-shadow: 0 0 0 0.2rem rgba(217, 164, 65, 0.25);
}

.form-action-button {
    padding: 0.38rem 0.9rem;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.product-form-actions {
    margin-top: 1rem;
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.product-management-form {
    margin-bottom: 1.25rem !important;
}

.product-management-form .form-action-button {
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    line-height: 1.2;
}

.topnav-wrap {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.mobile-header-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.mobile-header-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 42, 46, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 241, 233, 0.96) 100%);
    box-shadow: 0 6px 14px rgba(35, 39, 43, 0.08);
}

.mobile-header-label {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.mobile-header-bag-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(31, 42, 46, 0.08);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.mobile-header-link--bag-active {
    color: var(--brand-dark) !important;
}

.mobile-header-link--bag-active .mobile-header-icon-wrap {
    border-color: rgba(194, 140, 46, 0.3);
    box-shadow: 0 8px 18px rgba(194, 140, 46, 0.12);
}

.mobile-header-link--bag-active .mobile-header-bag-total {
    background: rgba(217, 164, 65, 0.16);
    color: #9a6c1c;
}

.mobile-search-dropdown {
    min-width: 18rem;
    margin-top: 0.65rem !important;
    padding: 0.85rem !important;
    border: 1px solid rgba(31, 42, 46, 0.1) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(31, 42, 46, 0.12);
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

.mobile-search-dropdown .form-control {
    border-color: rgba(31, 42, 46, 0.2);
}

.mobile-search-dropdown .form-control:not(.btn) {
    height: 44px;
    border-top-left-radius: 999px !important;
    border-bottom-left-radius: 999px !important;
    padding-left: 0.95rem;
}

.mobile-search-dropdown .search-btn {
    min-width: 44px;
    border-top-right-radius: 999px !important;
    border-bottom-right-radius: 999px !important;
}

.mobile-account-dropdown {
    min-width: 14rem;
    margin-top: 0.65rem !important;
    padding: 0.45rem !important;
    border: 1px solid rgba(31, 42, 46, 0.1) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(31, 42, 46, 0.12);
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

.mobile-account-dropdown .dropdown-item {
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-account-dropdown .dropdown-item:hover,
.mobile-account-dropdown .dropdown-item:focus {
    background: rgba(217, 164, 65, 0.12);
    color: #c28c2e;
    transform: translateX(1px);
}

.desktop-bag-link {
    color: var(--brand-dark) !important;
}

.desktop-bag-link--active {
    color: var(--brand-dark) !important;
}

.desktop-bag-total {
    transition: color 0.2s ease;
}

.desktop-bag-link--active .desktop-bag-total {
    color: #9a6c1c;
}

.products-home-link {
    color: var(--brand-dark);
    text-decoration: none;
}

.products-home-link:hover,
.products-home-link:focus {
    color: #000;
    text-decoration: none;
}

.products-home-separator {
    color: #b7b7b7;
    margin-left: 0.18rem;
}

.nav-with-dividers .nav-link {
    padding: 0.5rem 1rem;
}

.nav-divider {
    display: flex;
    align-items: center;
    color: #9aa3a8;
    padding: 0 0.6rem;
    user-select: none;
}

.main-logo-link .logo-font {
    letter-spacing: 0.08em;
}

.text-black {
    color: #000 !important;
}

.border-black {
    border: 1px solid var(--brand-dark) !important;
}

.bg-black {
    background: var(--brand-dark) !important;
}

.overlay {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background: white;
    z-index: -1;
}

a.category-badge>span.badge:hover {
    background: #212529 !important;
    color: #fff !important;
}

.btt-button {
    height: 42px;
    width: 42px;
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.btt-link,
.update-link,
.remove-item {
    cursor: pointer;
}

.delivery-text {
    font-family: var(--font-body);
    letter-spacing: 0;
}

.delivery-banner {
    position: relative;
    background-color: #b88934 !important;
    background-image:
        linear-gradient(135deg, rgba(255, 220, 150, 0.25), rgba(217, 164, 65, 0)),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.12), transparent 65%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 2px, transparent 2px, transparent 6px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0px, rgba(0, 0, 0, 0.12) 2px, transparent 2px, transparent 7px);
    background-size: 100% 100%, 180px 180px, 220px 220px, 10px 10px, 12px 12px;
}

.delivery-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.delivery-banner .delivery-text {
    position: relative;
    z-index: 1;
}

.site-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
}

.footer-icon-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-icon-link {
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(35, 39, 43, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 241, 233, 0.96) 100%);
    box-shadow: 0 8px 18px rgba(35, 39, 43, 0.08);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-icon-link:visited {
    color: var(--brand-dark);
}

.footer-icon-link:hover,
.footer-icon-link:focus {
    color: #c28c2e;
    border-color: rgba(194, 140, 46, 0.45);
    box-shadow: 0 12px 24px rgba(35, 39, 43, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-icon-link i {
    font-size: 1.05rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--brand-dark);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #5f6b70;
}

.footer-link {
    color: var(--brand-dark);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-copy {
    font-size: 0.9rem;
    color: #5f6b70;
}

.footer-link:hover {
    color: #c28c2e;
    text-decoration: none;
}

.footer-sep {
    color: #9aa3a8;
    margin: 0 0.35rem;
}

/* Remove blue flash on dropdown selection */
.dropdown-item:active,
.dropdown-item:focus {
    background-color: rgba(31, 42, 46, 0.08);
    color: #1f2a2e;
}

input[name='q']::placeholder {
    color: #aab7c4;
}

/* Form refinements */
.form-control,
.custom-select {
    border-radius: 0;
    border-color: rgba(31, 42, 46, 0.35);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 0.2rem rgba(31, 42, 46, 0.15);
}

label {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #2f3a3f;
}

/* ------------------------------- bootstrap toasts */

.message-container {
    position: fixed;
    top: 96px;
    right: 15px;
    z-index: 99999999999;
}

.custom-toast {
    overflow: visible;
}

.toast-capper {
    height: 2px;
}

/* from CSS-tricks.com: https://css-tricks.com/snippets/css/css-triangle/ */
.arrow-up {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 10px solid black;
    position: absolute;
    top: -10px;
    right: 36px;
}

.toast-account-action .arrow-up {
    right: 106px;
}

.toast-bag-action .arrow-up {
    right: 36px;
}

/* Convenience classes - colours copied from Bootstrap */
.arrow-primary {
    border-bottom-color: #007bff !important;
}

.arrow-secondary {
    border-bottom-color: #6c757d !important;
}

.arrow-success {
    border-bottom-color: #28a745 !important;
}

.arrow-danger {
    border-bottom-color: #dc3545 !important;
}

.arrow-warning {
    border-bottom-color: #ffc107 !important;
}

.arrow-info {
    border-bottom-color: #17a2b8 !important;
}

.arrow-light {
    border-bottom-color: #f8f9fa !important;
}

.arrow-dark {
    border-bottom-color: #343a40 !important;
}

.bag-notification-wrapper {
    height: 100px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Style assistant widget */
.style-assistant {
    position: fixed;
    right: 22px;
    bottom: 78px;
    z-index: 1045;
    font-family: var(--font-body);
}

.style-assistant__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(130deg, #1f2a2e, #3a4a51);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 3rem;
    height: 3rem;
    padding: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: width 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.style-assistant__toggle:focus,
.style-assistant__toggle:hover {
    outline: none;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.style-assistant__toggle-icon {
    font-size: 1rem;
    flex: 0 0 auto;
}

.style-assistant__toggle-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.22s ease, opacity 0.18s ease, margin-left 0.22s ease;
}

@media (min-width: 992px) {

    .style-assistant__toggle:hover,
    .style-assistant__toggle:focus-visible {
        width: 10.5rem;
        padding: 0 1rem 0 0.95rem;
        gap: 0;
    }

    .style-assistant__toggle:hover .style-assistant__toggle-text,
    .style-assistant__toggle:focus-visible .style-assistant__toggle-text {
        max-width: 7rem;
        margin-left: 0.55rem;
        opacity: 1;
    }
}

.style-assistant__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 320px;
    max-width: 88vw;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.style-assistant__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.style-assistant__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
    color: #6c7a80;
}

.style-assistant__title {
    font-size: 1.05rem;
    margin: 0;
    color: #1f2a2e;
}

.style-assistant__close {
    background: transparent;
    border: none;
    color: #6c7a80;
}

.style-assistant__close:focus,
.style-assistant__close:hover {
    color: #1f2a2e;
    outline: none;
}

.style-assistant__body {
    padding: 0.75rem 1rem 0.5rem;
}

.style-assistant__log {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.style-assistant__bubble {
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.style-assistant__bubble--bot {
    background: rgba(31, 42, 46, 0.08);
    color: #1f2a2e;
    align-self: flex-start;
}

.style-assistant__bubble--user {
    background: #d9a441;
    color: #fff;
    align-self: flex-end;
}

.style-assistant__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.style-assistant__chip {
    border: 1px solid rgba(31, 42, 46, 0.2);
    background: #fff;
    color: #1f2a2e;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
}

.style-assistant__chip:hover,
.style-assistant__chip:focus {
    border-color: #c28c2e;
    color: #c28c2e;
    outline: none;
}

.style-assistant__form {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.style-assistant__input {
    flex: 1;
    border: 1px solid rgba(31, 42, 46, 0.2);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

.style-assistant__input:focus {
    outline: none;
    border-color: #c28c2e;
    box-shadow: 0 0 0 0.15rem rgba(217, 164, 65, 0.2);
}

.style-assistant__send {
    background: #1f2a2e;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

.style-assistant__send:hover,
.style-assistant__send:focus {
    background: #c28c2e;
    outline: none;
}

/* -------------------------------- Media Queries */

/* Slightly larger container on xl screens */
@media (min-width: 1200px) {
    .container {
        max-width: 80%;
    }

    .home-page .hero-copy {
        transform: translateY(40px);
    }
}

/* Allauth form formatting */

.allauth-form-inner-content p {
    margin-top: 1.5rem;
    color: #6c757d;
}

.allauth-form-inner-content {
    margin-top: 0;
}

.allauth-form-inner-content> :not(.page-title-block) {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-login-page .allauth-form-inner-content> :not(.page-title-block) {
    max-width: 480px;
}

.allauth-login-page .page-title-block {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-reset-password-page .page-title-block {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-confirm-email-page .page-title-block {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-reset-password-page .allauth-form-inner-content> :not(.page-title-block) {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-change-password-page .allauth-form-inner-content> :not(.page-title-block),
.allauth-confirm-email-page .allauth-form-inner-content> :not(.page-title-block) {
    max-width: 480px;
}

.allauth-login-page .login-secondary-action,
.allauth-login-page form.login .form-check,
.allauth-login-page form.login .checkbox,
.allauth-change-password-page .login-secondary-action {
    text-align: right;
}

.allauth-login-page form.login .form-check {
    padding-left: 0;
}

.allauth-login-page form.login .form-check-input {
    position: static;
    margin-left: 0;
    margin-right: 0.4rem;
}

.allauth-logout-page .allauth-form-inner-content> :not(.page-title-block) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-change-password-page .allauth-form-inner-content> :not(.page-title-block) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-change-password-done-page .allauth-form-inner-content> :not(.page-title-block) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.allauth-logout-page .allauth-form-actions {
    justify-content: flex-start;
}

.allauth-change-password-page .allauth-form-actions {
    justify-content: flex-end;
}

.allauth-change-password-done-page .allauth-form-actions {
    justify-content: flex-start;
}

.allauth-confirm-email-page .allauth-form-actions {
    justify-content: flex-start;
}

.page-title-block {
    padding-top: 1.25rem;
}

.page-title-block hr,
.allauth-form-inner-content hr {
    border: 0;
    border-top: 1px solid rgba(31, 42, 46, 0.14);
    margin: 0.85rem 0 1.15rem;
}

.page-title-block h2.logo-font,
.allauth-form-inner-content h2.logo-font {
    margin-bottom: 1rem !important;
    color: var(--brand-dark);
}

.allauth-form-inner-content input {
    border-color: #000;
    border-radius: 0;
}

.allauth-form-inner-content label:not([for='id_remember']) {
    display: none;
}

.allauth-form-inner-content input::placeholder {
    color: #aab7c4;
}

.allauth-form-inner-content button,
.allauth-form-inner-content input[type='submit'] {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #000;
    border: 1px solid #000;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.allauth-form-inner-content button:hover,
.allauth-form-inner-content input[type='submit']:hover {
    color: #fff;
    background-color: #222;
    border-color: #222;
}

.allauth-form-inner-content button.btn.btn-black,
.allauth-form-inner-content input[type="submit"].btn.btn-black,
.allauth-form-inner-content a.btn.btn-black {
    background: var(--brand-dark);
    color: #fff !important;
    border-radius: 10px;
    border: 1px solid var(--brand-dark);
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.allauth-form-inner-content button.btn.btn-black:hover,
.allauth-form-inner-content input[type="submit"].btn.btn-black:hover,
.allauth-form-inner-content a.btn.btn-black:hover,
.allauth-form-inner-content a.btn.btn-black:focus,
.allauth-form-inner-content a.btn.btn-black:active {
    background: #c28c2e;
    border-color: #c28c2e;
    color: #fff !important;
}

.allauth-form-inner-content .btn,
.allauth-form-inner-content button,
.allauth-form-inner-content input[type='submit'] {
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    line-height: 1.2;
}

.allauth-form-inner-content .btn.btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
}

.allauth-form-inner-content .allauth-form-actions .btn,
.allauth-form-inner-content form.login .btn,
.allauth-form-inner-content form.signup .btn,
.allauth-form-inner-content form button.btn,
.allauth-form-inner-content p .btn {
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    line-height: 1.2;
}

.allauth-form-inner-content a {
    color: #17a2b8;
}

.allauth-login-page .allauth-form-inner-content p a,
.allauth-signup-page .allauth-form-inner-content p a,
.allauth-logout-page .allauth-form-inner-content p a,
.allauth-reset-password-page .allauth-form-inner-content p a,
.allauth-confirm-email-page .allauth-form-inner-content p a {
    color: #c28c2e;
    text-decoration: underline;
    text-decoration-color: #c28c2e;
    text-underline-offset: 0.15em;
}

.allauth-login-page .allauth-form-inner-content p a:hover,
.allauth-signup-page .allauth-form-inner-content p a:hover,
.allauth-logout-page .allauth-form-inner-content p a:hover,
.allauth-reset-password-page .allauth-form-inner-content p a:hover,
.allauth-confirm-email-page .allauth-form-inner-content p a:hover {
    color: #a67622;
    text-decoration-color: #a67622;
}

.order-history a {
    color: #c28c2e;
    text-decoration: underline;
    text-decoration-color: #c28c2e;
    text-underline-offset: 0.15em;
}

.order-history a:hover {
    color: #a67622;
    text-decoration-color: #a67622;
}

.allauth-form-actions {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

/* Product cards */
.product-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.product-image-wrap {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f3f4f5;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-weight: 600;
    color: #1f2a2e;
}

.qty-btn {
    border-radius: 8px;
    line-height: 1;
    width: 38px;
    height: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: rgba(31, 42, 46, 0.35) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 241, 233, 0.96) 100%);
    color: var(--brand-dark) !important;
}

.qty-btn,
.qty-btn.btn-outline-black,
.qty-btn.btn {
    border-radius: 8px !important;
}

.qty-btn:hover,
.qty-btn:focus-visible {
    background: linear-gradient(180deg, #fff 0%, #f6f1e9 100%);
    color: #c28c2e !important;
    border-color: rgba(194, 140, 46, 0.45) !important;
    box-shadow: 0 0 0 0.15rem rgba(217, 164, 65, 0.12);
}

.qty-btn:active {
    background: #f6f1e9 !important;
    color: #c28c2e !important;
    border-color: rgba(194, 140, 46, 0.45) !important;
    box-shadow: none;
}

.qty-btn:focus {
    box-shadow: none;
}

.qty-btn:disabled,
.qty-btn.disabled {
    background: #f3f4f5;
    color: #9aa3a8 !important;
    border-color: rgba(31, 42, 46, 0.16) !important;
    box-shadow: none;
    opacity: 1;
}

.qty-btn.decrement-qty {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.qty-btn.increment-qty {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.qty-btn i {
    font-size: 0.9rem;
}

.qty-control-group {
    flex-wrap: nowrap;
    align-items: stretch;
}

.qty-control-group .input-group-prepend,
.qty-control-group .input-group-append {
    display: flex;
}

.qty-control-group .form-control {
    border-color: rgba(31, 42, 46, 0.35);
    min-width: 56px;
}

.qty-control-group .input-group-prepend .btn,
.qty-control-group .input-group-append .btn {
    height: 38px;
    min-height: 38px;
}

.qty_input {
    height: 38px;
    min-height: 38px;
    line-height: 38px;
    text-align: center;
    font-weight: 600;
    color: var(--brand-dark);
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.bag-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.bag-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 164px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-detail-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 210px;
    max-width: 100%;
    white-space: nowrap;
}

.superuser-admin-actions {
    font-size: 0.875rem;
    line-height: 1.2;
}

.superuser-admin-action {
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
    background: transparent;
    border: 0;
}

.size-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 38px;
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(31, 42, 46, 0.22);
    background-color: #fff;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%231f2a2e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #fff 0%, #fff 100%);
    background-position:
        calc(100% - 0.95rem) 50%,
        0 0;
    background-size:
        14px 14px,
        100% 100%;
    background-repeat: no-repeat;
    padding: 0.35rem 2.4rem 0.35rem 0.9rem;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.2;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.size-selector:hover {
    border-color: rgba(194, 140, 46, 0.45);
}

.size-selector:focus {
    border-color: rgba(31, 42, 46, 0.22);
    box-shadow: none;
    outline: none;
}

/* Product Form */

.form-control-file {
    display: block;
    width: 100%;
}

.product-image-widget__preview {
    object-fit: cover;
}

.product-image-widget__remove {
    display: inline-block;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0;
    border-color: #dc3545;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0;
}

/* fixed top navbar only on medium and up */
@media (min-width: 992px) {
    .fixed-top-desktop-only {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    .header-container {
        padding-top: 220px;
    }

    .allauth-page .allauth-form-inner-content {
        padding-top: 3.5rem;
    }

    .allauth-signup-page .allauth-form-inner-content {
        padding-top: 1.0rem;
    }

    .allauth-login-page .page-title-block {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-reset-password-page .page-title-block {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-change-password-page .page-title-block {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-confirm-email-page .page-title-block,
    .allauth-confirm-email-page .allauth-form-inner-content> :not(.page-title-block) {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-signup-page .page-title-block {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-logout-page .page-title-block {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-change-password-page .page-title-block {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-logout-page .allauth-form-inner-content,
    .allauth-change-password-done-page .allauth-form-inner-content {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Make shopping bag title a bit wider on large screens and keep its rule equal width */
    .bag-page .bag-page-title,
    .bag-page .bag-title-rule,
    .bag-page .bag-empty-state {
        max-width: 800px;
        margin-left: 0;
        margin-right: auto;
    }

    .bag-page .bag-page-title {
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Ensure the title has no left offset */
    .bag-page .bag-page-title,
    .bag-page .bag-empty-state,
    .bag-page .bag-empty-state .form-action-button {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .bag-page .bag-title-rule {
        display: block;
        width: 100%;
    }

    /* Ensure empty-state text and button align with the title/underline */
    .bag-page .bag-empty-state {
        text-align: left;
    }

    .bag-page .bag-empty-state .form-action-button {
        margin-left: 0;
        display: inline-block;
    }

    .page-title-block {
        padding-top: 2rem;
    }

    .home-page .hero-copy {
        transform: translateY(100px);
    }

    .home-page .hero-title {
        font-size: 2rem;
        white-space: normal;
        word-break: break-word;
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.08em;
        width: fit-content;
        text-align: left;
    }

    .home-page .hero-title span {
        display: block;
        width: 100%;
    }

    .products-header-container {
        padding-top: 220px;
    }

    .products-title-wrap {
        margin-top: 1.1rem !important;
    }

    .products-page-title {
        font-size: 1.7rem;
    }

    .bag-header-container {
        padding-top: 220px;
    }

    .bag-page-title {
        margin-bottom: 0.5rem !important;
    }

    .bag-title-rule {
        margin-top: 0.35rem;
        margin-bottom: 1rem;
    }

    .bag-empty-state {
        margin-top: 0.9rem;
    }

    .checkout-header-container {
        padding-top: 220px;
    }

    .checkout-page-title {
        margin-bottom: 0.75rem !important;
    }

    .checkout-form-intro {
        margin-top: -0.55rem;
    }

}

/* Mobile fixes - only affects phones/small screens, desktop unchanged */
@media (max-width: 991.98px) {
    .mobile-header-icons .dropdown {
        position: static;
    }

    /* Keep sign-out and password-change confirmation closer to the desktop layout */
    .allauth-logout-page .allauth-form-inner-content,
    .allauth-change-password-done-page .allauth-form-inner-content {
        padding-top: 3rem;
    }

    .allauth-logout-page .page-title-block,
    .allauth-logout-page .allauth-form-inner-content> :not(.page-title-block),
    .allauth-change-password-done-page .page-title-block,
    .allauth-change-password-done-page .allauth-form-inner-content> :not(.page-title-block) {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .allauth-confirm-email-page .page-title-block {
        padding-top: 3rem;
    }

    .fixed-top.container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .fixed-top.container-fluid>.row {
        margin-left: 0;
        margin-right: 0;
    }

    body.home-page {
        background:
            url('/static/images/homepage_background_hero.jpg') no-repeat center top;
        background-size: cover;
        background-attachment: scroll;
    }

    body.home-page::before {
        display: none;
    }

    .header-container {
        padding-top: 116px;
    }

    .products-header-container {
        padding-top: 92px;
    }

    .bag-header-container {
        padding-top: clamp(124px, 14vw, 138px);
    }

    .checkout-header-container {
        padding-top: 112px;
    }

    /* Fix footer being hidden */
    .site-main {
        min-height: auto;
    }

    .home-page .site-main {
        display: flex;
        flex-direction: column;
        min-height: calc(100svh - 116px - 96px);
        min-height: calc(100dvh - 116px - 96px);
    }

    @supports (-webkit-touch-callout: none) {
        .home-page .site-main {
            min-height: calc(100svh - 116px - 96px);
        }
    }

    .home-page .site-footer {
        margin-top: 0 !important;
        background: #fff;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .site-footer {
        background: #fff;
        overflow-x: hidden;
    }

    .site-footer .container {
        background: #fff;
        overflow-x: hidden;
    }

    /* Fix text size on iPhone */
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .nav-link,
    .dropdown-item,
    .btn,
    .navbar-toggler {
        min-height: 44px;
    }

    .btn-outline-black {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .allauth-form-inner-content .btn,
    .allauth-form-inner-content button,
    .allauth-form-inner-content input[type='submit'] {
        min-height: 40px;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        position: relative;
    }

    .row>[class*='col-'] {
        min-width: 0;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive td,
    .table-responsive th {
        overflow-wrap: anywhere;
    }

    .home-page .hero-title {
        margin-bottom: 0;
        margin-left: 0;
        margin-right: auto;
    }

    .home-page .shop-now-button {
        min-width: 0;
        width: auto;
        min-height: 40px;
        max-width: 220px;
        padding: 0.65rem 1.1rem !important;
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .home-page .home-hero {
        flex: 1 0 auto;
        align-items: flex-start;
        min-height: auto;
        padding-top: 1.25rem;
        padding-bottom: 0.75rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }

    .home-page .hero-copy {
        width: 100%;
        max-width: 24rem;
        padding-top: 0.5rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-left: 0;
        margin-right: auto;
        text-align: left;
        box-sizing: border-box;
    }

    .home-page .hero-copy .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 0 !important;
    }

    .hero-copy {
        transform: none;
    }

    .message-container {
        left: auto;
        right: 12px;
        width: min(350px, calc(100vw - 24px));
    }

    .message-container .toast {
        width: 100%;
        max-width: 350px;
    }

    .update-link,
    .remove-item,
    .footer-link {
        display: inline-block;
        min-height: 44px;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .style-assistant {
        right: 16px;
        bottom: 70px;
    }

    .style-assistant__toggle {
        width: 3rem;
        height: 3rem;
        padding: 0;
    }

    .style-assistant__toggle-text {
        display: none;
    }

    .style-assistant__panel {
        width: min(290px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .bag-page .site-footer {
        margin-top: 1rem !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }

    .bag-page .site-main {
        min-height: auto;
    }

    .bag-page .container.mb-2 {
        margin-bottom: 0 !important;
    }

    .bag-page .overlay {
        background: #fff;
    }

    .bag-action-buttons {
        justify-content: flex-start;
    }

    .product-form-actions {
        margin-top: 1rem;
        margin-bottom: 0.85rem;
        display: flex;
        justify-content: flex-end;
        align-items: center !important;
        /* Fixed syntax */
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .bag-action-button {
        line-height: 1.15;
    }

    .bag-action-button>span:not(.icon) {
        display: inline-flex;
        align-items: center;
        position: relative;
        top: 1px;
    }

    .footer-mobile {
        justify-content: center;
        row-gap: 0.5rem;
        margin: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-mobile .col-12.mb-2 {
        margin-bottom: 0 !important;
    }

    .mobile-search-dropdown,
    .mobile-account-dropdown {
        position: absolute !important;
        top: calc(100% + 0.45rem) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-top: 0 !important;
    }

    .mobile-account-dropdown {
        left: auto !important;
        right: 0.75rem !important;
        width: min(18rem, calc(100vw - 1.5rem)) !important;
        max-width: 18rem !important;
    }
}

@media (max-width: 767.98px) {
    .bag-action-button {
        min-width: 0;
        padding: 0.45rem 0.8rem;
        font-size: 0.84rem;
    }
}

/* Bootstrap sm and above (576px+) — hero title fits on one line */
@media (min-width: 576px) and (max-width: 991.98px) {
    .home-page .hero-title {
        font-size: 1.9rem;
        white-space: normal;
        text-align: left;
    }

    .home-page .hero-title span {
        display: block;
    }

    .home-page .hero-copy {
        margin-left: 0;
        margin-right: auto;
        text-align: left;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .home-page .hero-copy {
        margin-left: -0.75rem;
    }
}

@media (min-width: 1200px) {
    .home-page .hero-copy {
        max-width: 25rem;
    }

    .home-page .hero-title {
        font-size: 2.15rem;
    }

    .home-page .shop-now-button {
        max-width: 210px;
        padding: 0.58rem 1.05rem !important;
        font-size: 0.82rem;
    }
}

@media (min-width: 1400px) {
    .home-page .hero-copy {
        max-width: 26rem;
    }

    .home-page .hero-title {
        font-size: 2.35rem;
    }

    .home-page .shop-now-button {
        max-width: 220px;
        padding: 0.6rem 1.1rem !important;
        font-size: 0.84rem;
    }
}

@media (max-width: 575.98px) {
    .site-footer .container {
        padding-top: 1rem !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0)) !important;
    }

    .home-page .site-footer {
        margin-top: auto !important;
    }

    .bag-action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .bag-action-button {
        width: 100%;
        min-width: 0;
        padding: 0.42rem 0.75rem;
        font-size: 0.82rem;
    }

    .bag-action-button--checkout>span:first-child {
        padding-left: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .header-container {
        padding-top: 100px;
    }

    .home-page .home-hero {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }

    .home-page .hero-copy {
        width: min(100%, 22rem);
        max-width: calc(100vw - 3.5rem);
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        margin-left: 0;
        margin-right: auto;
        text-align: left;
    }

    .products-header-container {
        padding-top: 84px;
    }

    .bag-header-container {
        padding-top: 124px;
    }

    .checkout-header-container {
        padding-top: 112px;
    }

    .home-page .site-main {
        min-height: calc(100svh - 132px - 96px);
        min-height: calc(100dvh - 132px - 96px);
    }

    @supports (-webkit-touch-callout: none) {
        .home-page .site-main {
            min-height: calc(100svh - 132px - 96px);
        }
    }

    .navbar {
        align-items: center;
        padding-left: clamp(0.35rem, 2.2vw, 0.6rem);
        padding-right: clamp(0.35rem, 2.2vw, 0.6rem);
    }

    .navbar-toggler {
        padding: clamp(0.18rem, 0.8vw, 0.3rem) clamp(0.28rem, 1vw, 0.4rem);
    }

    .navbar-toggler-icon {
        width: clamp(0.98em, 3.8vw, 1.15em);
        height: clamp(0.98em, 3.8vw, 1.15em);
    }

    .mobile-header-icons {
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: clamp(0.14rem, 0.9vw, 0.28rem);
    }

    .mobile-header-icons .list-inline-item {
        margin-right: 0;
    }

    .mobile-header-icons .nav-link {
        min-height: 40px;
        padding: 0.25rem 0.15rem;
        line-height: 1;
    }

    .mobile-header-label {
        display: none;
    }

    .mobile-header-icons .nav-link i {
        font-size: clamp(0.95rem, 3.5vw, 1.08rem);
        vertical-align: middle;
    }

    .mobile-header-icon-wrap {
        width: clamp(2rem, 8.8vw, 2.25rem);
        height: clamp(2rem, 8.8vw, 2.25rem);
    }

    .mobile-search-dropdown {
        min-width: 0;
    }

    .mobile-header-bag-total {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 0 !important;
        padding: 0.12rem 0.38rem;
        font-size: clamp(0.64rem, 2.4vw, 0.76rem);
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    .home-page .home-hero {
        min-height: auto;
        padding-top: 1.75rem;
    }

    .home-page .hero-copy {
        padding-top: 0.75rem;
    }
}

/* Ensure logout and bag-empty content align at md and up (fix 768-992 drift) */
@media (min-width: 768px) {

    .allauth-logout-page .page-title-block,
    .allauth-logout-page .allauth-form-inner-content> :not(.page-title-block),
    .bag-page .bag-page-title,
    .bag-page .bag-empty-state {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .bag-page .table-responsive th:nth-child(3),
    .bag-page .table-responsive td:nth-child(3),
    .bag-page .table-responsive th:nth-child(5),
    .bag-page .table-responsive td:nth-child(5) {
        white-space: nowrap;
        width: 1%;
    }

    .bag-page .table-responsive th:nth-child(4),
    .bag-page .table-responsive td:nth-child(4) {
        width: 20%;
    }

    .bag-page .qty-control-group {
        min-width: 0;
    }

    .bag-page .qty-control-group .form-control {
        min-width: 44px;
    }

    .bag-page .bag-item-actions {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        margin-top: 0.35rem;
        width: 100%;
        white-space: nowrap;
    }

    .bag-page .update-link,
    .bag-page .remove-item {
        float: none !important;
        display: inline-block;
        white-space: nowrap;
    }

    .bag-page .remove-item {
        margin-left: auto;
    }
}

@media (max-width: 767.98px),
(min-width: 992px) {
    .bag-page .bag-item-actions {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        margin-top: 0.35rem;
        width: 100%;
        white-space: nowrap;
    }

    .bag-page .update-link,
    .bag-page .remove-item {
        float: none !important;
        display: inline-block;
        white-space: nowrap;
    }

    .bag-page .remove-item {
        margin-left: auto;
    }
}

@media (min-width: 1400px) {
    .bag-page .bag-item-actions {
        display: inline-flex;
        width: auto;
        margin-top: 0.35rem;
        align-items: center;
        gap: 2.5rem;
        white-space: nowrap;
    }

    .bag-page .table-responsive th:nth-child(4),
    .bag-page .table-responsive td:nth-child(4) {
        padding-left: 2.5rem;
    }

    .bag-page .remove-item {
        margin-left: 9rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {

    .bag-page .table-responsive th:nth-child(2),
    .bag-page .table-responsive td:nth-child(2) {
        padding-right: 1.5rem;
    }

    .bag-page .table-responsive th:nth-child(3),
    .bag-page .table-responsive td:nth-child(3) {
        padding-left: 0.75rem;
    }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {

    .bag-page .table-responsive th:nth-child(2),
    .bag-page .table-responsive td:nth-child(2) {
        padding-right: 1.5rem;
    }

    .bag-page .table-responsive th:nth-child(3),
    .bag-page .table-responsive td:nth-child(3) {
        padding-right: 1.5rem;
    }

    .bag-page .table-responsive th:nth-child(4),
    .bag-page .table-responsive td:nth-child(4) {
        padding-left: 1.75rem;
        padding-right: 1.25rem;
    }

    .bag-page .table-responsive th:nth-child(5),
    .bag-page .table-responsive td:nth-child(5) {
        padding-left: 3rem;
    }
}

@media (min-width: 1600px) {

    .bag-page .table-responsive th:nth-child(2),
    .bag-page .table-responsive td:nth-child(2) {
        padding-right: 2rem;
    }

    .bag-page .table-responsive th:nth-child(4),
    .bag-page .table-responsive td:nth-child(4) {
        padding-right: 1.75rem;
    }

    .bag-page .table-responsive th:nth-child(5),
    .bag-page .table-responsive td:nth-child(5) {
        padding-left: 4rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .allauth-signup-page .page-title-block {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
}
