html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 110px;
}

body {
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
}

.home-hero-dots button,
.home-hero-dots button.is-active {
    width: 28px;
    height: 2px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.home-hero-dots button.is-active {
    width: 48px;
}

.brand > .brand-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
}

.site-header .brand {
    min-width: 0;
    flex: 0 0 auto;
}

.site-header .brand > span {
    display: none;
}

.site-header .brand > .brand-logo {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
}

.site-header .header-main {
    height: 124px;
}

.mega-panel[data-menu-panel="bedroom"] .mega-column:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 8px;
}

.mega-panel[data-menu-panel="bedroom"] .mega-column:first-child h4 {
    grid-column: 1 / -1;
}

.mega-panel[data-menu-panel="bedroom"] .mega-column:first-child a {
    min-width: 0;
}

.mega-columns {
    grid-template-columns: repeat(var(--mega-column-count), minmax(0, 1fr)) !important;
}

.footer .brand > .brand-logo {
    width: 112px !important;
    height: 112px !important;
    flex-basis: 112px;
}

.order-tracking-form {
    display: grid;
    max-width: 520px;
    gap: 14px;
}

.order-tracking-form .form-field {
    display: grid;
    gap: 6px;
}

.order-tracking-form .form-field input {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--velavan-border);
    border-radius: 4px;
}

.order-tracking-form > p {
    margin: 0;
    color: var(--velavan-muted);
    font-size: 13px;
}

.order-tracking-error {
    padding: 12px 16px;
    border-left: 3px solid #a30d20;
    background: #fff1f0;
    color: #7a0010;
}

.order-tracking-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.order-tracking-steps li {
    padding-top: 10px;
    border-top: 3px solid var(--velavan-border);
    color: var(--velavan-muted);
    font-size: 12px;
}

.order-tracking-steps li.is-complete {
    border-color: var(--velavan-yellow);
    color: var(--velavan-text);
}

.order-tracking-steps li.is-current {
    font-weight: 700;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
[role="button"],
input[type="checkbox"],
input[type="radio"],
select {
    touch-action: manipulation;
}

button,
.button,
a.button {
    min-height: 44px;
}

:focus-visible {
    outline: 2px solid var(--velavan-maroon);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .container {
        width: calc(100% - 48px);
    }

    .header-main {
        gap: 16px;
    }

    .brand {
        min-width: 190px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-action {
        min-width: 64px;
        padding-inline: 6px;
    }

    .main-nav {
        justify-content: space-between;
        gap: 14px;
        letter-spacing: .04em;
    }

    .home-product-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .popular-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .category-visuals {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 125px;
    }

    .container,
    .mega-inner {
        width: calc(100% - 40px);
    }

    .site-header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .header-main {
        padding-bottom: 50px;
    }

    .location-action.hide-mobile {
        display: flex;
        min-width: 40px;
        width: 40px;
        min-height: 44px;
        height: 44px;
        padding: 4px;
        border: 0;
    }

    .location-action > span {
        display: none;
    }

    .header-action {
        min-width: 38px;
        width: 38px;
        min-height: 44px;
        height: 44px;
        padding: 4px;
        overflow: visible;
    }

    .header-action[href*="wishlist"]::before,
    .header-action[href*="cart"]::before {
        content: none;
    }

    .action-icon {
        display: block;
    }

    .header-action .count {
        top: 0;
        right: 0;
    }

    .product-grid,
    .home-product-grid,
    .home-product-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-layout,
    .product-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .cart-layout {
        padding-top: 24px;
        padding-bottom: 56px;
    }

    .summary {
        width: 100%;
    }

    .payment-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
    }

    .home-collection {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
    }

    .home-collection-copy {
        padding: 36px;
    }

    .home-room-grid {
        grid-template-rows: repeat(2, minmax(180px, 24vw));
    }

    .home-room-carousel .home-room-card {
        height: clamp(220px, 35vw, 300px);
    }

    .mega-menu {
        top: 125px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100dvh - 145px);
        max-height: calc(100vh - 145px);
        transform: translateY(-8px);
        border-radius: 0;
    }

    .mega-menu.open {
        transform: translateY(0);
    }

    .mega-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 115px;
    }

    .container,
    .mega-inner {
        width: calc(100% - 32px);
    }

    .header-main {
        height: 72px;
        gap: 4px;
        padding-bottom: 48px;
    }

    .mobile-menu-toggle {
        flex: 0 0 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 6px;
        font-size: 14px;
    }

    .brand {
        flex: 0 1 82px;
        min-width: 0;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .site-header .brand > .brand-logo {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }

    .site-header .header-main {
        height: 92px;
    }

    .footer .brand > .brand-logo {
        width: 88px !important;
        height: 88px !important;
        flex-basis: 88px;
    }

    .order-tracking-steps {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .order-tracking-steps li {
        padding: 8px 10px;
        border-top: 0;
        border-left: 3px solid var(--velavan-border);
    }

    .order-tracking-steps li.is-complete {
        border-left-color: var(--velavan-yellow);
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 0;
        margin-left: auto;
    }

    .header-action,
    .location-action.hide-mobile {
        flex: 0 0 34px;
        width: 38px;
        min-width: 38px;
        height: 44px;
        min-height: 44px;
        border-radius: 8px;
    }

    .header-action .count {
        top: 0;
        right: -1px;
        min-width: 14px;
        height: 14px;
        line-height: 14px;
        font-size: 8px;
    }

    .search {
        top: 72px;
        left: 16px;
        right: 16px;
        height: 40px;
        min-height: 40px;
    }

    .search input {
        min-width: 0;
        font-size: 16px;
    }

    .announcement-inner {
        min-height: 30px;
        width: calc(100% - 20px);
        gap: 6px;
        font-size: 8px;
    }

    .announcement-benefits {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    .announcement-benefits span:not(:first-child) {
        display: none;
    }

    .page-title {
        padding: 38px 0 16px;
    }

    .page-title h1,
    .category-intro h1 {
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.05;
    }

    .section,
    .home-section,
    .home-reviews {
        padding-block: 52px;
    }

    .section-heading,
    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px;
    }

    .section-heading h2,
    .home-section-heading h2 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .home-section-heading .text-link {
        align-self: flex-start;
    }

    .home-hero {
        height: clamp(420px, 72vh, 590px);
    }

    @supports (height: 100svh) {
        .home-hero {
            height: clamp(420px, 72svh, 590px);
        }
    }

    .home-hero-copy {
        padding: 30px 22px;
    }

    .home-hero-copy h1 {
        font-size: clamp(38px, 10vw, 54px);
        max-height: none;
    }

    .home-hero-copy > p:not(.eyebrow) {
        max-height: none;
        font-size: 14px;
    }

    .home-hero-prev {
        left: 12px;
    }

    .home-hero-next {
        right: 12px;
    }

    .home-hero-arrow {
        width: 38px;
        height: 38px;
    }

    .home-room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 200px 145px 145px;
        gap: 8px;
    }

    .home-room-grid .home-room-card:first-child {
        grid-row: auto;
        grid-column: span 2;
    }

    .home-room-grid .home-room-card:nth-child(4) {
        grid-column: auto;
    }

    .home-room-card span {
        left: 12px;
        bottom: 12px;
        font-size: 11px;
    }

    .home-room-carousel,
    .home-product-carousel {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 5px;
    }

    .home-room-carousel > button,
    .home-product-carousel > button {
        width: 40px;
        min-width: 40px;
        height: 44px;
        padding: 0;
    }

    .home-room-carousel,
    .home-product-carousel {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .home-room-carousel .home-room-card {
        flex-basis: 82%;
        height: 220px;
    }

    .home-product-rail,
    .home-product-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 9px;
    }

    .home-product-card .product-info {
        padding: 12px 10px;
    }

    .home-product-card h3,
    .product-info h3 {
        min-height: 0;
        font-size: 16px;
    }

    .product-detail {
        gap: 22px;
        padding: 30px 0 52px;
    }

    .detail-copy h1 {
        font-size: clamp(32px, 8vw, 40px);
        line-height: 1.08;
    }

    .detail-form {
        flex-wrap: wrap;
    }

    .detail-form .button {
        flex: 1 1 100%;
    }

    .gallery-tools {
        flex-wrap: wrap;
    }

    .gallery-tools button,
    .quantity button {
        min-height: 44px;
    }

    .category-intro {
        padding: 38px 0 20px;
    }

    .category-visuals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .category-visual-card {
        min-height: 180px;
    }

    .category-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
        margin-top: 28px;
    }

    .form-grid,
    .payment-options {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .form-field input,
    .form-field textarea,
    .form-field select,
    .filter-bar input,
    .filter-bar select {
        min-height: 48px;
        font-size: 16px;
    }

    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px;
    }

    .payment-options label {
        min-height: 76px;
        padding: 14px 14px 14px 44px;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .cart-layout {
        gap: 22px;
        padding: 20px 0 48px;
    }

    .cart-line {
        display: grid;
        grid-template-columns: 24px 76px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 14px 0;
    }

    .cart-item-select {
        grid-column: 1 / -1;
        flex-basis: auto;
        min-height: 44px;
        margin-bottom: 0;
    }

    .cart-line-image {
        grid-column: 2;
        grid-row: 2;
        width: 76px;
        height: 86px;
    }

    .cart-line > div:not(.cart-line-image) {
        grid-column: 3;
        grid-row: 2;
        min-width: 0;
    }

    .cart-line h3 {
        font-size: 17px;
        line-height: 1.2;
    }

    .cart-line .remove {
        grid-column: 3;
        grid-row: 3;
        justify-self: start;
        margin: 0;
        min-height: 44px !important;
        height: 44px !important;
    }

    .cart-line .quantity {
        margin-top: 8px;
    }

    .summary {
        padding: 20px;
    }

    .summary h2 {
        font-size: 25px;
    }

    .summary-row {
        gap: 12px;
        font-size: 13px;
    }

    .summary-row > *:last-child {
        text-align: right;
    }

    .order-list {
        overflow-x: auto;
    }

    .order-row {
        min-width: 420px;
        gap: 16px;
    }

    .home-collection {
        grid-template-columns: minmax(0, 1fr);
        margin-block: 48px;
    }

    .home-collection-image {
        min-height: 250px;
        max-height: 320px;
    }

    .home-collection-copy {
        padding: 28px 22px;
    }

    .home-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
        padding: 24px 0;
    }

    .home-final-banner,
    .home-final-banner > img {
        height: 360px;
        min-height: 360px;
    }

    .home-final-banner > div {
        left: 20px;
        right: 20px;
    }

    .newsletter {
        gap: 24px;
        padding-block: 56px;
    }

    .newsletter h2 {
        font-size: 34px;
    }

    .newsletter form {
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
        padding-bottom: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        border-right: 0;
    }

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer .brand-logo {
        max-width: 145px;
    }

    .mobile-nav {
        padding-top: calc(64px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        overscroll-behavior: contain;
    }

    .location-modal {
        align-items: end;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .location-card {
        width: 100%;
        padding: 28px 22px 22px;
    }

    .location-card form {
        flex-wrap: wrap;
        gap: 8px;
    }

    .location-card input {
        min-width: 0;
        min-height: 44px;
    }

    .location-card form .button {
        flex: 1 1 100%;
    }

    .toast {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 32px);
        width: max-content;
    }
}

@media (max-width: 380px) {
    .container,
    .mega-inner {
        width: calc(100% - 24px);
    }

    .header-main {
        gap: 1px;
    }

    .mobile-menu-toggle {
        flex-basis: 40px;
        min-width: 40px;
    }

    .brand {
        flex-basis: 68px;
    }

    .brand-logo {
        width: 64px;
    }

    .header-action,
    .location-action.hide-mobile {
        flex-basis: 36px;
        width: 36px;
        min-width: 36px;
        height: 44px;
        min-height: 44px;
    }

    .search {
        left: 12px;
        right: 12px;
    }

    .home-product-rail,
    .home-product-grid,
    .product-grid {
        gap: 10px 7px;
    }

    .home-product-card .product-info {
        padding-inline: 8px;
    }

    .cart-line {
        grid-template-columns: 22px 66px minmax(0, 1fr);
        gap: 8px;
    }

    .cart-line-image {
        width: 66px;
        height: 76px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-brand,
    .footer-grid > div:last-child {
        grid-column: auto;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .home-hero {
        height: 100vh;
        min-height: 360px;
    }

    @supports (height: 100svh) {
        .home-hero {
            height: 100svh;
        }
    }

    .home-hero-copy {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .location-modal {
        overflow-y: auto;
        align-items: start;
    }

    .location-card {
        margin-block: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.profile-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-orders-page .page-title > p:last-child,
.order-tracking-page .page-title > p:last-child {
    max-width: 620px;
    color: var(--velavan-muted);
    line-height: 1.7;
}

.customer-orders-page .order-list {
    display: grid;
    gap: 12px;
    border: 0;
}

.customer-orders-page .order-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.45fr) minmax(110px, .8fr) minmax(130px, 1fr) minmax(100px, .7fr) auto;
    align-items: center;
    gap: 20px;
    padding: 21px 23px;
    border: 1px solid var(--velavan-border);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.customer-orders-page .order-row:hover {
    transform: translateY(-2px);
    border-color: rgba(92, 0, 11, .35);
    box-shadow: 0 12px 28px rgba(92, 0, 11, .08);
}

.customer-order-reference,
.customer-order-payment,
.customer-order-delivery,
.customer-order-total {
    display: grid;
    justify-items: start;
    gap: 5px;
}

.order-row-label {
    color: var(--velavan-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.customer-order-number {
    color: var(--velavan-maroon);
    font-weight: 700;
    letter-spacing: .02em;
}

.customer-order-number:hover,
.order-history-help a {
    text-decoration: underline;
    text-decoration-color: var(--velavan-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.customer-order-reference small,
.customer-order-payment small {
    color: var(--velavan-muted);
    font-size: 10px;
}

.customer-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize;
}

.customer-payment-paid {
    color: #23613d;
    background: #e8f4eb;
}

.customer-payment-pending {
    color: #805610;
    background: #fff2d7;
}

.customer-order-delivery strong,
.customer-order-total strong {
    color: var(--velavan-text);
    font-size: 12px;
}

.customer-order-track {
    min-height: 40px;
    gap: 10px;
    padding: 10px 12px;
    white-space: nowrap;
}

.order-history-help {
    margin: 20px 0 50px;
    color: var(--velavan-muted);
    font-size: 12px;
    line-height: 1.7;
}

.order-history-help a {
    color: var(--velavan-maroon);
    font-weight: 700;
}

.customer-orders-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 55px 24px;
    border: 1px solid var(--velavan-border);
    background: #fff;
}

.customer-orders-empty h2,
.customer-orders-empty p {
    margin: 0;
}

.customer-orders-empty h2 {
    color: var(--velavan-maroon);
    font: 500 27px Georgia, serif;
}

.customer-orders-empty p {
    max-width: 520px;
    line-height: 1.7;
}

.order-tracking-page {
    padding-bottom: 60px;
}

.order-tracking-page .order-tracking-form {
    width: min(100%, 680px);
    max-width: none;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--velavan-border);
    background: #fff;
    box-shadow: 0 16px 42px rgba(92, 0, 11, .06);
}

.order-tracking-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 3px;
}

.order-tracking-form-icon {
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
    color: var(--velavan-maroon);
    background: #f3efe6;
    font-size: 11px;
    letter-spacing: .08em;
}

.order-tracking-form-heading h2 {
    margin: 0;
    color: var(--velavan-maroon);
    font: 500 25px Georgia, serif;
}

.order-tracking-form-heading p {
    margin: 6px 0 0;
    color: var(--velavan-muted);
    font-size: 12px;
    line-height: 1.6;
}

.order-tracking-form .form-field {
    gap: 8px;
    color: var(--velavan-text);
    font-size: 11px;
    font-weight: 700;
}

.order-tracking-form .form-field input {
    border-radius: 0;
    background: var(--velavan-offwhite);
}

.order-tracking-form .button {
    width: 100%;
    justify-content: space-between;
}

.order-tracking-page .order-tracking-privacy {
    color: var(--velavan-muted);
    font-size: 11px;
    line-height: 1.6;
}

.order-tracking-error {
    width: min(100%, 680px);
}

.order-tracking-page .order-tracking-result {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid var(--velavan-border);
}

.order-tracking-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.order-tracking-result-heading .eyebrow {
    margin-bottom: 7px;
}

.order-tracking-result-heading h2 {
    margin: 0;
    color: var(--velavan-maroon);
    font: 500 30px Georgia, serif;
}

.order-tracking-current {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 0;
    padding: 14px 0;
    border-bottom: 1px solid #d6d1c8;
}

.order-tracking-current strong {
    color: var(--velavan-maroon);
}

.order-tracking-payment-note {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 3px solid var(--velavan-yellow);
    background: #fff9e9;
    color: #624d20;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .profile-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-orders-page .order-row {
        grid-template-columns: minmax(0, 1.4fr) minmax(110px, .8fr) minmax(130px, 1fr);
    }

    .customer-order-track {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .customer-orders-page .order-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px 12px;
        padding: 18px;
    }

    .customer-order-track {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .order-tracking-page .order-tracking-form,
    .order-tracking-page .order-tracking-result {
        padding: 21px;
    }
}

@media (max-width: 560px) {
    .profile-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-orders-page .order-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-order-track {
        grid-column: auto;
    }

    .order-tracking-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-tracking-current {
        flex-direction: column;
        gap: 6px;
    }
}
