:root {
    --topbar-height: 32px;
    --header-height: 64px;
    --primary-color: #e53935;
    --primary-hover: #c62828;
    --primary-light: #ffebee;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    height: 100%;
}

body {
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-dark);
}

.site-layout {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.site-layout > .site-header {
    flex-shrink: 0;
}

.site-layout > main {
    flex: 1 0 auto;
    width: 100%;
}

/* Top utility bar */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 1031;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-bottom: none;
    font-size: 0.75rem;
    line-height: 1;
}

.site-topbar button {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.site-topbar button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--topbar-height);
    gap: 1rem;
}

.site-topbar-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.site-topbar-nav-right {
    flex-shrink: 0;
}

.site-topbar-link {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
    transition: color var(--transition);
}

.site-topbar-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.site-topbar-lang-menu {
    position: relative;
}

.site-topbar-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
}

.site-topbar-lang-label {
    color: #fff;
}

.site-topbar-lang-toggle:hover,
.site-topbar-lang-menu.is-open .site-topbar-lang-toggle,
.site-topbar-lang-toggle:hover .site-topbar-lang-label,
.site-topbar-lang-menu.is-open .site-topbar-lang-label {
    color: #fff;
}

.site-topbar-lang-chevron {
    font-size: 0.6rem;
    color: #fff;
    transition: transform var(--transition);
}

.site-topbar-lang-menu.is-open .site-topbar-lang-chevron {
    transform: rotate(180deg);
    color: #fff;
}

.site-topbar-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 130px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.3rem;
    z-index: 1057;
}

.site-topbar-lang-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.site-topbar-lang-option {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
}

.site-topbar-lang-option:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.site-topbar-lang-option.is-active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Sticky header */
.site-header {
    position: sticky;
    top: var(--topbar-height);
    z-index: 1030;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.site-header .navbar {
    min-height: var(--header-height);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .site-header .navbar {
        padding-bottom: 0.4rem;
    }
}

/* Reset header buttons */
.site-header button,
.mobile-menu-overlay button,
.mobile-search-overlay button {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.site-header button:focus-visible,
.mobile-menu-overlay button:focus-visible,
.mobile-search-overlay button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-header .site-logo {
    color: #fff;
}

.site-logo:hover {
    color: var(--primary-hover);
}

.site-header .site-logo:hover {
    color: rgba(255, 255, 255, 0.9);
}

.site-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
}

.site-header .site-logo-icon {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Desktop search */
.header-search-wrap {
    flex: 1;
    max-width: 560px;
    width: 100%;
}

.header-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.35rem;
}

.header-search-keywords {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 0.35rem 0.65rem;
    padding: 0 0.3rem 0 0.85rem;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-search-keywords::-webkit-scrollbar {
    display: none;
}

.header-search-keyword {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition);
}

.header-search-keyword:hover {
    color: rgba(255, 255, 255, 0.85);
}

.header-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.3rem 0.3rem 0.85rem;
    gap: 0.5rem;
}

.header-search .form-control {
    border: none;
    font-size: 0.9rem;
    height: 38px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.header-search .form-control:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

.header-search .btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    padding: 0;
    flex-shrink: 0;
    background: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 6px;
}

.header-search .btn-search:hover {
    background: var(--primary-hover);
    color: #fff;
}

.site-header .header-search-input {
    color: var(--text-dark);
}

.site-header .header-search-input::placeholder {
    color: #9ca3af;
}

.site-header .header-search-input:focus {
    color: var(--text-dark);
}

.site-header .header-search .btn-search {
    background: var(--primary-color);
    color: #fff;
}

.site-header .header-search .btn-search:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.btn-cart,
.btn-notification,
.btn-search-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-search-toggle {
    font-size: 1.15rem;
}

.btn-cart:hover,
.btn-notification:hover,
.btn-search-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.site-header .btn-cart,
.site-header .btn-notification,
.site-header .btn-search-toggle {
    color: #fff;
}

.site-header .btn-cart:hover,
.site-header .btn-notification:hover,
.site-header .btn-search-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-notification,
.btn-cart[type="button"] {
    border: none;
    background: transparent;
    cursor: pointer;
}

.btn-cart .cart-badge,
.btn-notification .notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
    padding: 0 4px;
}

.site-header .btn-cart .cart-badge,
.site-header .btn-notification .notification-badge {
    background: #fff;
    color: var(--primary-color);
}

/* Desktop auth buttons */
.btn-auth {
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.btn-auth-login {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
}

.btn-auth-login:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-auth-signup {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-auth-signup:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.site-header .btn-auth-login {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.site-header .btn-auth-login:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

.site-header .btn-auth-signup {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.site-header .btn-auth-signup:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-hover);
    border-color: #fff;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
    max-width: 180px;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.header-user:hover,
.header-user-menu.is-open .header-user {
    background: var(--primary-light);
    color: var(--primary-color);
}

.site-header .header-user {
    color: #fff;
}

.site-header .header-user:hover,
.site-header .header-user-menu.is-open .header-user {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.header-user-menu {
    position: relative;
}

.header-cart-menu {
    position: relative;
}

.header-cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, 92vw);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.35rem;
    z-index: 1056;
    overflow: hidden;
}

.header-cart-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
    z-index: 0;
}

.header-cart-dropdown-kicker {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0.55rem 0.75rem 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.header-cart-dropdown-empty {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.header-cart-dropdown-list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.header-cart-dropdown-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
}

.header-cart-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.header-cart-dropdown-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.header-cart-dropdown-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-cart-dropdown-item-name {
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-cart-dropdown-item-price {
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

.header-cart-dropdown-foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
}

.header-cart-dropdown-more {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 0;
}

.header-cart-dropdown-btn,
.header-notification-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition);
}

.header-cart-dropdown-btn:hover,
.header-notification-dropdown-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.header-notification-menu {
    position: relative;
}

.header-notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(380px, 92vw);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1056;
    overflow: hidden;
}

.header-notification-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
    z-index: 0;
}

.header-notification-dropdown-kicker {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0.85rem 1rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.header-notification-dropdown-empty {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 1.1rem 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.header-notification-dropdown-list {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
}

.header-notification-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
    transition: background var(--transition), color var(--transition);
}

.header-notification-dropdown-item:hover {
    background: #fafafa;
    color: var(--text-dark);
}

.header-notification-dropdown-item.is-unread {
    background: rgba(229, 57, 53, 0.06);
}

.header-notification-dropdown-item.is-read,
.header-notification-dropdown-item:not(.is-unread) {
    background: #fff;
}

.header-notification-dropdown-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.header-notification-dropdown-item.is-unread .header-notification-dropdown-item-icon {
    background: var(--primary-light);
    color: var(--primary-color);
}

.header-notification-dropdown-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.header-notification-dropdown-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.header-notification-dropdown-item-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-notification-dropdown-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-notification-dropdown-foot {
    position: relative;
    z-index: 1;
    padding: 0.85rem 1rem;
    background: #fafafa;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 767.98px) {
    .site-header {
        top: 0;
    }

    .site-header .navbar,
    .site-header .container,
    .site-header .header-actions,
    .header-notification-menu,
    .header-cart-menu {
        overflow: visible;
    }

    .header-notification-dropdown,
    .header-cart-dropdown {
        position: fixed;
        top: calc(var(--header-height) + 0.5rem);
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-width: none;
    }

    .header-notification-dropdown::before {
        right: 4.75rem;
    }

    .header-cart-dropdown::before {
        right: 4.75rem;
    }

    .site-header:has(.header-notification-menu) .header-cart-dropdown::before {
        right: 7.75rem;
    }

    .header-notification-dropdown-kicker,
    .header-notification-dropdown-empty,
    .header-notification-dropdown-item,
    .header-notification-dropdown-foot,
    .header-cart-dropdown-kicker,
    .header-cart-dropdown-empty,
    .header-cart-dropdown-item,
    .header-cart-dropdown-foot {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .header-notification-dropdown-list,
    .header-cart-dropdown-list {
        max-height: min(52vh, 320px);
    }

    .header-notification-dropdown-btn,
    .header-cart-dropdown-btn {
        font-size: 0.82rem;
        padding: 0.55rem 0.75rem;
    }
}

.notifications-page-header {
    margin-bottom: 1.25rem;
}

.notifications-page-note {
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.notifications-page-unread-count {
    color: var(--primary-color);
    font-weight: 600;
}

.notifications-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
}

.notifications-page-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.notifications-page-select-all input,
.notifications-page-select input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.notifications-page-bulk-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.notifications-page-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.notifications-page-bulk-btn:hover:not(:disabled) {
    border-color: rgba(229, 57, 53, 0.3);
    color: var(--primary-color);
}

.notifications-page-bulk-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.notifications-page-bulk-btn-danger:hover:not(:disabled) {
    border-color: rgba(229, 57, 53, 0.45);
    background: rgba(229, 57, 53, 0.06);
    color: var(--primary-hover);
}

.notifications-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notifications-page-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.notifications-page-select {
    display: inline-flex;
    align-items: flex-start;
    padding-top: 1.15rem;
    flex-shrink: 0;
}

.notifications-page-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.notifications-page-item:hover {
    border-color: rgba(229, 57, 53, 0.25);
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

.notifications-page-item.is-unread {
    border-color: rgba(229, 57, 53, 0.28);
    background: rgba(229, 57, 53, 0.03);
}

.notifications-page-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    flex-shrink: 0;
}

.notifications-page-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.notifications-page-item-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.notifications-page-item-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.notifications-page-item-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.notifications-page-pagination {
    justify-content: center;
    margin-top: 1.25rem;
}

.header-user-chevron {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.header-user-menu.is-open .header-user-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.site-header .header-user-chevron {
    color: rgba(255, 255, 255, 0.85);
}

.site-header .header-user-menu.is-open .header-user-chevron {
    color: #fff;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.35rem;
    z-index: 1055;
}

.header-user-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.header-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
}

.header-user-dropdown-item i {
    font-size: 1rem;
    color: var(--text-muted);
    width: 1.1rem;
    text-align: center;
}

.header-user-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.header-user-dropdown-item:hover i {
    color: var(--primary-color);
}

.header-user-dropdown-item-danger {
    margin-top: 0.35rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-weight: 600;
}

.header-user-dropdown-item-danger i {
    color: #fff;
}

.header-user-dropdown-item-danger:hover {
    background: linear-gradient(135deg, var(--primary-hover), #c62828);
    color: #fff;
}

.header-user-dropdown-item-danger:hover i {
    color: #fff;
}

.header-user-icon {
    font-size: 1.65rem;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1;
}

.site-header .header-user-icon {
    color: #fff;
}

.header-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(229, 57, 53, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.site-header .header-user-avatar {
    border-color: rgba(255, 255, 255, 0.6);
}

.header-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hamburger button */
.btn-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: background var(--transition);
}

.btn-hamburger:hover {
    background: var(--primary-light);
}

.site-header .btn-hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 16px;
    gap: 4px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), background var(--transition);
    transform-origin: center;
}

.site-header .hamburger-icon span {
    background: #fff;
}

.btn-hamburger:hover .hamburger-icon span {
    background: var(--primary-color);
}

.site-header .btn-hamburger:hover .hamburger-icon span {
    background: #fff;
}

.btn-hamburger.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.btn-hamburger.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.btn-hamburger.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Shared icon close button */
.btn-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.btn-icon-close:hover {
    background: #f3f4f6;
    color: var(--text-dark);
}

/* Mobile search overlay */
.mobile-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
}

.mobile-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-search-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    transition: transform var(--transition);
}

.mobile-search-overlay.is-open .mobile-search-panel {
    transform: translateY(0);
}

.mobile-search-form {
    flex: 1;
    min-width: 0;
}

.mobile-search-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.3rem 0.3rem 0.85rem;
    gap: 0.5rem;
}

.mobile-search-input {
    border: none;
    font-size: 0.95rem;
    height: 38px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.mobile-search-input:focus {
    border: none;
    box-shadow: none;
    background: transparent;
    color: var(--text-dark);
}

.mobile-search-input::placeholder {
    color: #9ca3af;
}

.mobile-search-box .btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    padding: 0;
    flex-shrink: 0;
    background: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 6px;
}

.mobile-search-box .btn-search:hover {
    background: var(--primary-hover);
    color: #fff;
}

.mobile-search-panel .btn-icon-close {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-search-panel .btn-icon-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-menu-overlay.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(300px, 88vw);
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow: hidden;
}

.mobile-menu-overlay.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1rem 1.1rem 1.25rem;
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.mobile-menu-header .btn-icon-close {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-header .btn-icon-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.mobile-menu-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.mobile-menu-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.mobile-topbar-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-topbar-link {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
}

.mobile-topbar-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mobile-topbar-lang {
    padding: 0.85rem 1.25rem 0.5rem;
}

.mobile-topbar-lang-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.mobile-topbar-lang-options {
    display: flex;
    gap: 0.5rem;
}

.mobile-topbar-lang-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.mobile-topbar-lang-option:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-topbar-lang-option.is-active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.mobile-menu-footer .btn-auth-login {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.mobile-menu-footer .btn-auth-login:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

.mobile-menu-footer .btn-auth-signup {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.mobile-menu-footer .btn-auth-signup:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-hover);
    border-color: #fff;
}

.mobile-menu-auth {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
}

.mobile-menu-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.mobile-menu-user-block {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.mobile-menu-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    flex: 1;
    min-width: 0;
}

.mobile-menu-user-chevron {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.mobile-menu-user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
}

.mobile-menu-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mobile-user-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.mobile-user-menu-overlay[hidden] {
    display: none !important;
}

.mobile-user-menu-overlay.is-open {
    display: flex;
}

.mobile-user-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.mobile-user-menu-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-md);
    padding: 0.35rem 0.35rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.24s ease;
}

.mobile-user-menu-overlay.is-open .mobile-user-menu-panel {
    transform: translateY(0);
}

.mobile-user-menu-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.65rem 0.35rem;
}

.mobile-user-menu-panel-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c62828 55%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 0.5rem;
}

.mobile-user-menu-panel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), rgba(229, 57, 53, 0.2));
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.22);
}

.mobile-user-menu-close {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.mobile-user-menu-dropdown {
    position: static;
    top: auto;
    right: auto;
    min-width: 0;
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 0.15rem 0.35rem 0.35rem;
}

.mobile-user-menu-dropdown::before {
    display: none;
}

.mobile-user-menu-dropdown .header-user-dropdown-item {
    padding: 0.85rem 0.75rem;
}

.mobile-user-menu-dropdown .header-user-dropdown-item-danger {
    margin-top: 0.5rem;
}

.mobile-menu-signout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.mobile-menu-signout-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.mobile-menu-signout-text {
    line-height: 1.2;
}

.mobile-menu-signout:hover {
    background: #fef2f2;
    border-color: rgba(229, 57, 53, 0.25);
    color: var(--primary-hover);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    background: #f9fafb;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.mobile-menu-link:hover {
    background: var(--primary-light);
    border-color: rgba(229, 57, 53, 0.25);
    color: var(--primary-hover);
    transform: translateX(2px);
}

.mobile-menu-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.mobile-menu-link-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.mobile-menu-link-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.mobile-menu-link-text small {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
}

.mobile-menu-link-arrow {
    color: #9ca3af;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}

.mobile-menu-link:hover .mobile-menu-link-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
}

.mobile-menu-link-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

.mobile-menu-link-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #b71c1c);
    border-color: transparent;
    color: #fff;
    transform: translateX(2px);
}

.mobile-menu-link-primary .mobile-menu-link-icon {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.mobile-menu-link-primary .mobile-menu-link-text small {
    color: rgba(255, 255, 255, 0.85);
}

.mobile-menu-link-primary .mobile-menu-link-arrow {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-link-primary:hover .mobile-menu-link-arrow {
    color: #fff;
}

/* Hide mobile-only UI on desktop */
@media (min-width: 768px) {
    .btn-hamburger,
    .mobile-menu-overlay,
    .mobile-search-overlay {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .btn-search-toggle {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        font-size: 1.05rem;
        max-width: calc(100vw - 200px);
    }

    .site-logo span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        gap: 0.15rem;
    }
}

/* Auth pages */
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 2rem;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem 1.75rem;
}

.auth-card-signup {
    max-width: 480px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card-logo {
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.35rem;
}

.auth-card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.auth-alert {
    background: var(--primary-light);
    border: 1px solid rgba(229, 57, 53, 0.25);
    color: var(--primary-hover);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-success {
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-required {
    color: var(--primary-color);
}

.auth-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-phone-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.country-code-picker {
    position: relative;
    width: 96px;
    flex-shrink: 0;
}

.country-code-picker.is-disabled {
    opacity: 0.65;
    pointer-events: none;
}

.country-code-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 46px;
    padding: 0.35rem 0.45rem 0.35rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    text-align: left;
    gap: 0.2rem;
}

.country-code-trigger:hover {
    border-color: #d1d5db;
}

.country-code-picker.is-open .country-code-trigger,
.country-code-trigger:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.country-code-display {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.country-code-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
}

.country-code-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58px;
}

.country-code-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.country-code-picker.is-open .country-code-chevron {
    transform: rotate(180deg);
}

.country-code-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1060;
    width: min(260px, 78vw);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.country-code-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.country-code-search {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: transparent;
}

.country-code-search::placeholder {
    color: #9ca3af;
}

.country-code-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 220px;
    overflow-y: auto;
}

.country-code-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    transition: background var(--transition);
}

.country-code-option:hover,
.country-code-option.is-highlighted {
    background: var(--primary-light);
}

.country-code-option.is-selected {
    background: #fef2f2;
}

.country-code-option-code {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 42px;
}

.country-code-option-name {
    font-size: 0.82rem;
    color: var(--text-dark);
}

.country-code-empty {
    margin: 0;
    padding: 0.85rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-input-wrap-flex {
    flex: 1;
    min-width: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f3f4f6;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
}

.auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 42px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.auth-tab:hover {
    color: var(--text-dark);
}

.auth-tab.is-active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.is-active {
    display: block;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 1rem 0 2.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 46px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.auth-btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.auth-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.35rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-btn-google {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.auth-btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: var(--text-dark);
}

.auth-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-switch {
    text-align: center;
    margin: 1.35rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    text-align: center;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    border-top: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.site-footer-copy {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
}

.site-footer-logo {
    font-size: 0.8rem;
    gap: 0.35rem;
    color: #fff;
}

.site-footer-logo:hover {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer-logo .site-logo-icon {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-card-title {
        font-size: 1.3rem;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .country-code-picker {
        width: 88px;
    }

    .country-code-name {
        max-width: 50px;
    }
}

/* Homepage */
.home-page {
    flex: 1 0 auto;
    width: 100%;
}

.home-container {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.home-promo {
    margin-bottom: 2rem;
}

.home-promo-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    min-height: 300px;
}

.home-promo-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
}

.home-promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.home-promo-banner-main {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 300px;
}

.home-promo-banner-side:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.home-promo-banner-side:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
}

.home-promo-banner-1 {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 55%, #7f0000 100%);
}

.home-promo-banner-2 {
    background: linear-gradient(135deg, #ff6f61 0%, #e53935 100%);
}

.home-promo-banner-3 {
    background: linear-gradient(135deg, #c62828 0%, #880e4f 100%);
}

.home-promo-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    width: 100%;
}

.home-promo-banner-main .home-promo-content {
    padding: 1.75rem;
}

.home-promo-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.home-promo-title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.home-promo-title-sm {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.25;
}

.home-promo-text {
    font-size: 0.95rem;
    margin: 0 0 0.85rem;
    opacity: 0.92;
    max-width: 320px;
}

.home-promo-text-sm {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

.home-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-hover);
}

.home-promo-banner:hover .home-promo-cta {
    background: #fff;
}

@media (max-width: 767.98px) {
    .home-promo-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .home-promo-banner-main {
        grid-column: 1 / 3;
        grid-row: 1;
        min-height: 200px;
    }

    .home-promo-banner-side:nth-of-type(2) {
        grid-column: 1;
        grid-row: 2;
        min-height: 110px;
    }

    .home-promo-banner-side:nth-of-type(3) {
        grid-column: 2;
        grid-row: 2;
        min-height: 110px;
    }
}

/* Homepage categories */
.home-categories {
    margin-bottom: 2rem;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 0.5rem;
}

.home-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform var(--transition);
}

.home-category-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.home-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff8f8 0%, #ffebee 100%);
    border: 1px solid rgba(229, 57, 53, 0.1);
    font-size: 1.35rem;
    color: var(--primary-color);
    transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}

.home-category-item:hover .home-category-icon {
    background: linear-gradient(145deg, #ffe5e5 0%, #ffcdd2 100%);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.18);
    color: var(--primary-hover);
}

.home-category-icon .icon-paw {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5.5' cy='9.5' r='2.3'/%3E%3Ccircle cx='9.5' cy='6' r='2.3'/%3E%3Ccircle cx='14.5' cy='6' r='2.3'/%3E%3Ccircle cx='18.5' cy='9.5' r='2.3'/%3E%3Cpath d='M12 12c-3.3 0-5.8 2-5.8 4.8 0 1 .35 1.9.95 2.7h9.7c.6-.8.95-1.7.95-2.7 0-2.8-2.5-4.8-5.8-4.8z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5.5' cy='9.5' r='2.3'/%3E%3Ccircle cx='9.5' cy='6' r='2.3'/%3E%3Ccircle cx='14.5' cy='6' r='2.3'/%3E%3Ccircle cx='18.5' cy='9.5' r='2.3'/%3E%3Cpath d='M12 12c-3.3 0-5.8 2-5.8 4.8 0 1 .35 1.9.95 2.7h9.7c.6-.8.95-1.7.95-2.7 0-2.8-2.5-4.8-5.8-4.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-category-name {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.25;
    max-width: 72px;
}

@media (min-width: 576px) {
    .home-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }

    .home-category-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .home-category-icon .icon-paw {
        width: 1.5rem;
        height: 1.5rem;
    }

    .home-category-name {
        font-size: 0.8rem;
        max-width: 88px;
    }
}

@media (min-width: 992px) {
    .home-category-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

/* Homepage top products */
.home-top-products {
    margin-bottom: 2rem;
}

.home-top-products .product-card:nth-child(n + 9) {
    display: none;
}

@media (min-width: 576px) {
    .home-top-products .product-card:nth-child(n + 9) {
        display: flex;
    }

    .home-top-products .product-card:nth-child(n + 13) {
        display: none;
    }
}

@media (min-width: 992px) {
    .home-top-products .product-card:nth-child(n + 13) {
        display: flex;
    }

    .home-top-products .product-card:nth-child(n + 17) {
        display: none;
    }
}

@media (min-width: 1200px) {
    .home-top-products .product-card:nth-child(n + 17) {
        display: flex;
    }

    .home-top-products .product-card:nth-child(n + 25) {
        display: none;
    }
}

.home-section-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.home-section-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    max-width: 100%;
}

.home-section-title-block::before,
.home-section-title-block::after {
    content: '';
    position: absolute;
    top: calc(50% + 0.35rem);
    width: clamp(2rem, 8vw, 4.5rem);
    height: 2px;
    border-radius: 999px;
}

.home-section-title-block::before {
    right: 100%;
    margin-right: 1rem;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.home-section-title-block::after {
    left: 100%;
    margin-left: 1rem;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.home-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.8rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    border: 1px solid rgba(229, 57, 53, 0.15);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-section-eyebrow .bi {
    font-size: 0.8rem;
}

.home-section-title {
    margin: 0;
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 55%, #b71c1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.home-section-title-line {
    display: block;
    width: 3.5rem;
    height: 4px;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), #ff6f61);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
}

@media (max-width: 575.98px) {
    .home-section-title-block::before,
    .home-section-title-block::after {
        display: none;
    }
}

.home-section-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.home-see-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 8px 18px rgba(229, 57, 53, 0.28);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.home-see-more:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(229, 57, 53, 0.35);
    filter: brightness(1.02);
}

.home-see-more:focus-visible {
    outline: 3px solid rgba(229, 57, 53, 0.25);
    outline-offset: 3px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(229, 57, 53, 0.2);
}

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #f9fafb;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.product-card:hover .product-card-image {
    transform: scale(1.03);
}

.product-card-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem 0.75rem;
    flex: 1;
}

.product-card-name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.product-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card-price-original {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: auto;
}

.product-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #f59e0b;
}

.product-card-rating .bi-star-fill {
    font-size: 0.65rem;
}

.product-card-sold {
    white-space: nowrap;
}

.product-card-review-count {
    white-space: nowrap;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.product-card-review-count:hover {
    color: var(--primary-color);
}

.product-detail-image-wrap {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f9fafb;
}

.product-detail-media {
    min-width: 0;
    max-width: 100%;
}

.product-detail-page .col-md-5,
.product-detail-page .col-md-7 {
    min-width: 0;
}

.product-detail-media-stage {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f9fafb;
}

.product-detail-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
    opacity: 0;
}

.product-detail-media-nav.is-prev {
    left: 10px;
}

.product-detail-media-nav.is-next {
    right: 10px;
}

.product-detail-media-stage:hover .product-detail-media-nav {
    opacity: 1;
}

.product-detail-media-nav:hover {
    background: rgba(15, 23, 42, 0.55);
    transform: translateY(-50%) scale(1.03);
}

.product-detail-media-nav:focus-visible {
    opacity: 1;
    outline: 3px solid rgba(229, 57, 53, 0.25);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .product-detail-media-nav {
        opacity: 1;
    }
}

.product-detail-image {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-detail-video-frame {
    width: 100%;
    aspect-ratio: 1;
    background: #0b1220;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-detail-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.product-detail-video-fallback {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    line-height: 1.2;
}

.product-detail-video-fallback a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.product-detail-thumbs-wrap {
    margin-top: 0.75rem;
    min-width: 0;
    max-width: 100%;
}

.product-detail-thumbs-scroller {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.product-detail-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
}

.product-detail-thumbs::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.product-detail-thumb {
    flex: 0 0 auto;
    width: 64px;
    scroll-snap-align: start;
    position: relative;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(229, 57, 53, 0.35);
}

.product-detail-thumb.is-active {
    border-color: rgba(229, 57, 53, 0.65);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.product-detail-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
}

.product-detail-thumb:focus-visible {
    outline: 3px solid rgba(229, 57, 53, 0.22);
    outline-offset: 2px;
}

.product-detail-name {
    font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.35rem;
    text-wrap: balance;
    position: relative;
    padding-bottom: 0.55rem;
}

.product-detail-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), rgba(229, 57, 53, 0.25));
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-detail-description {
    font-size: 0.95rem;
    line-height: 1.55;
}

.product-detail-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-detail-fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.product-detail-fact-label {
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.product-detail-fact-label .bi {
    display: inline-block;
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    background: none;
    font-size: 1rem;
    vertical-align: -0.1em;
}

.product-detail-fact-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.product-detail-options {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-detail-option-group + .product-detail-option-group {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(229, 57, 53, 0.18);
}

@media (min-width: 768px) {
    .product-detail-option-group {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .product-detail-option-head {
        flex: 0 0 7.5rem;
        min-width: 7.5rem;
        padding-top: 0.35rem;
    }

    .product-detail-option-label {
        margin-bottom: 0;
        line-height: 1.3;
    }

    .product-detail-option-values,
    .product-detail-option-text {
        flex: 1;
        min-width: 0;
    }
}

.product-detail-option-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.55rem;
}

.product-detail-option-selected {
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-option-text {
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
}

.product-detail-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-detail-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-detail-option-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.product-detail-option-pill:hover {
    border-color: rgba(229, 57, 53, 0.35);
    transform: translateY(-1px);
}

.product-detail-option-input:checked + .product-detail-option-pill {
    border-color: rgba(229, 57, 53, 0.55);
    background: rgba(229, 57, 53, 0.06);
}

.product-detail-option-input:focus-visible + .product-detail-option-pill {
    outline: 3px solid rgba(229, 57, 53, 0.18);
    outline-offset: 2px;
}

.product-detail-option-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--swatch-color);
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.08);
    flex-shrink: 0;
}

.product-detail-cta-row .btn {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 575.98px) {
    .product-detail-cta-row .btn {
        padding: 0.75rem 0.65rem;
        font-size: 0.875rem;
    }
}

.product-detail-buy-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    color: #fff;
    box-shadow: 0 6px 18px rgba(229, 57, 53, 0.28);
}

.product-detail-buy-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), #b71c1c);
    border: none;
    color: #fff;
    box-shadow: 0 8px 22px rgba(229, 57, 53, 0.34);
}

.product-detail-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-detail-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
}

.product-detail-share-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}

.product-detail-share-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-detail-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(229, 57, 53, 0.25);
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.product-detail-share-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.product-detail-share-btn:focus-visible {
    outline: 3px solid rgba(229, 57, 53, 0.22);
    outline-offset: 2px;
}

.product-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-discount {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.product-detail-add-btn {
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.product-detail-add-btn:hover:not(:disabled) {
    background: #fff;
    border-color: var(--primary-hover);
    color: var(--primary-hover);
}

.product-detail-add-btn .bi {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.product-detail-add-btn:hover:not(:disabled) .bi {
    color: var(--primary-hover);
    -webkit-text-fill-color: var(--primary-hover);
}

.product-detail-specs-section {
    margin-top: 20px;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(229, 57, 53, 0.15);
}

.product-detail-specs-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 0.5rem;
}

.product-detail-specs-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), rgba(229, 57, 53, 0.25));
}

.product-detail-specs-table-wrap {
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.08);
}

.product-detail-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border-color);
}

.product-detail-spec-item {
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    background: #fff;
}

.product-detail-spec-label,
.product-detail-spec-value {
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
}

.product-detail-spec-label {
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(229, 57, 53, 0.04);
    border-right: 1px solid var(--border-color);
}

.product-detail-spec-value {
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
    background: #fff;
}

.product-detail-spec-item:hover .product-detail-spec-value {
    background: rgba(229, 57, 53, 0.02);
}

@media (min-width: 768px) {
    .product-detail-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product sales page (AIDA) */
.product-sales-page {
    margin-top: 20px;
    scroll-margin-top: 88px;
    border-top: 2px solid rgba(229, 57, 53, 0.15);
    padding-top: 1.25rem;
}

.product-sales-page-toolbar {
    margin-bottom: 1.25rem;
}

.product-sales-page-link-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-sales-page-link-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-sales-page-link-input {
    font-size: 0.88rem;
    border-radius: 10px;
    background: #f9fafb;
}

.product-sales-page-copy-btn {
    border: 1px solid rgba(229, 57, 53, 0.35);
    color: var(--primary-color);
    background: #fff;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
}

.product-sales-page-copy-btn:hover {
    background: rgba(229, 57, 53, 0.06);
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

.product-sales-page-copy-btn.is-copied {
    border-color: #16a34a;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

.product-sales-page-aida {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-sales-page-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-sales-page-attention {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08), rgba(229, 57, 53, 0.02));
    border: 1px solid rgba(229, 57, 53, 0.15);
}

.product-sales-page-headline {
    font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.65rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.product-sales-page-subheadline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.product-sales-page-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0;
    max-width: 68ch;
}

.product-sales-page-section-title,
.product-sales-page-action-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.65rem;
}

.product-sales-page-section-body,
.product-sales-page-action-subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 70ch;
}

.product-sales-page-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.product-sales-page-showcase-item {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-sales-page-showcase-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.product-sales-page-showcase-item figcaption {
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.product-sales-page-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.product-sales-page-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.product-sales-page-feature-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-sales-page-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.product-sales-page-feature-copy strong {
    color: var(--text-dark);
    font-size: 0.96rem;
}

.product-sales-page-action {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(229, 57, 53, 0.06), rgba(229, 57, 53, 0.02));
    border: 1px solid rgba(229, 57, 53, 0.18);
}

.product-sales-page-action .product-sales-page-kicker {
    margin-bottom: 0.75rem;
}

.product-sales-page-action-title {
    margin-bottom: 0.5rem;
}

.product-sales-page-action-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.15rem;
}

.product-sales-page-buy-btn {
    min-width: 220px;
    padding: 0.85rem 1.75rem;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 8px 22px rgba(229, 57, 53, 0.32);
}

.product-sales-page-buy-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-hover), #b71c1c);
    box-shadow: 0 10px 26px rgba(229, 57, 53, 0.38);
}

@media (min-width: 576px) {
    .product-sales-page-link-row {
        flex-direction: row;
        align-items: stretch;
    }

    .product-sales-page-link-input {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .product-sales-page-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-sales-page-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Product ratings */
.product-ratings {
    margin-top: 20px;
    scroll-margin-top: 88px;
    border-top: 2px solid rgba(229, 57, 53, 0.15);
    padding-top: 1.25rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.product-ratings-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.25rem;
    text-align: center;
}

.product-ratings-title {
    font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c62828 55%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 0.65rem;
    text-shadow: 0 8px 24px rgba(229, 57, 53, 0.12);
}

.product-ratings-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), rgba(229, 57, 53, 0.15));
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
}

.product-ratings-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.product-ratings-summary-score {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.product-ratings-summary-score .bi-star-fill {
    color: #f59e0b;
}

.product-ratings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.product-ratings-filters {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.product-ratings-filter-group + .product-ratings-filter-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-ratings-filter-label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-ratings-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-ratings-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product-ratings-filter-btn .bi-star-fill {
    color: #f59e0b;
    font-size: 0.78rem;
}

.product-ratings-filter-count {
    font-weight: 600;
    color: var(--text-muted);
}

.product-ratings-filter-btn:hover {
    border-color: rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.04);
}

.product-ratings-filter-btn.is-active {
    border-color: var(--primary-color);
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary-color);
}

.product-ratings-filter-btn.is-active .product-ratings-filter-count {
    color: var(--primary-color);
}

.product-ratings-list-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.product-ratings-empty {
    margin: 0 0 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    background: #fafafa;
    color: var(--text-muted);
    font-size: 0.92rem;
    text-align: center;
}

.product-ratings-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-review-pagination {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
    margin-top: 1.15rem;
    padding-top: 0.25rem;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.product-review-pagination .product-pagination-btn-nav {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
}

.product-review-pagination .product-pagination-pages {
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(100%, 12rem);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    justify-content: center;
    padding: 0;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

.product-review-pagination .product-pagination-btn,
.product-review-pagination .product-pagination-ellipsis {
    scroll-snap-align: center;
}

.product-review-pagination[hidden] {
    display: none !important;
}

.product-review-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    padding: 1rem 1.05rem;
    box-shadow: var(--shadow-sm);
}

.product-review-card[hidden] {
    display: none !important;
}

.product-review-card-head {
    margin-bottom: 0.85rem;
}

.product-review-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 2px solid rgba(229, 57, 53, 0.12);
}

.product-review-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-review-user-meta {
    min-width: 0;
}

.product-review-user-name {
    margin: 0 0 0.2rem;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-dark);
}

.product-review-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.product-review-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    color: #d1d5db;
    font-size: 0.82rem;
}

.product-review-stars .bi-star-fill.is-filled {
    color: #f59e0b;
}

.product-review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.product-review-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
}

.product-review-detail {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.product-review-detail dt {
    margin: 0;
    font-weight: 800;
    color: var(--text-muted);
}

.product-review-detail dd {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.product-review-comment {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.product-review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.product-review-media-item {
    position: relative;
    width: 84px;
    height: 84px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
}

.product-review-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-review-media-item:hover {
    border-color: rgba(229, 57, 53, 0.35);
}

.product-review-media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.35);
    color: #fff;
    font-size: 1.35rem;
}

.product-review-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-color);
}

.product-review-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-review-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product-review-like-btn:hover {
    border-color: rgba(229, 57, 53, 0.35);
    color: var(--primary-color);
    background: rgba(229, 57, 53, 0.04);
}

.product-review-like-btn.is-liked {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(229, 57, 53, 0.08);
}

.product-review-like-btn.is-guest {
    opacity: 0.9;
}

.product-review-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.product-review-report-btn:hover {
    color: var(--primary-color);
}

.product-review-report-btn.is-reported {
    color: var(--primary-color);
    cursor: default;
}

.product-review-report-btn.is-guest {
    opacity: 0.9;
}

.product-review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-review-lightbox[hidden] {
    display: none !important;
}

.product-review-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.72);
}

.product-review-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 900px);
    max-height: 90vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}

.product-review-lightbox-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-review-lightbox-content img,
.product-review-lightbox-content iframe {
    display: block;
    width: 100%;
    max-height: 90vh;
    border: 0;
}

.product-review-lightbox-content iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 240px;
}

@media (min-width: 768px) {
    .product-ratings-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .product-ratings-filters {
        position: sticky;
        top: 88px;
    }

    .product-review-pagination .product-pagination-pages {
        max-width: min(100%, 10rem);
    }

    .product-review-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .product-review-detail {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* Centered add-to-cart toast */
.product-toast-container {
    z-index: 2000;
    width: auto;
    max-width: min(92vw, 420px);
    pointer-events: none;
}

.product-toast {
    min-width: 260px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    pointer-events: auto;
}

.product-toast .toast-body {
    padding: 0.85rem 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .product-card-name {
        font-size: 0.875rem;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .home-section-header {
        margin-bottom: 1.75rem;
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    /* Homepage only: show 6 columns for Top Products */
    .home-top-products .product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Search page */
.search-page-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-page-main {
    min-width: 0;
}

.search-page-header {
    margin-bottom: 1.25rem;
}

.search-page-results {
    max-height: none;
    overflow: visible;
}

.search-filters-aside {
    width: 100%;
}

@media (min-width: 992px) {
    .search-filters-aside {
        position: sticky;
        top: calc(var(--header-height) + 0.75rem);
        align-self: start;
        height: fit-content;
        z-index: 20;
    }

    /* Use browser scrollbar for product lists (no inner scroll container). */
    .search-page-results {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

.search-filters-sticky {
    max-height: none;
    overflow: visible;
}

/* (intentionally no scroll styling; filters not scrollable) */

.search-filters-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    padding: 1rem;
    color: #fff;
}

.search-filters-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-filters-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.search-filters-reset {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    text-decoration: none;
}

.search-filters-reset:hover {
    color: #fff;
    text-decoration: underline;
}

.search-filters-group {
    margin-bottom: 0.85rem;
}

.search-filters-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.search-filters-control {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
    font-size: 0.88rem;
}

.search-filters-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.search-filters-check {
    margin-bottom: 0.3rem;
}

.search-filters-check .form-check-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.88rem;
}

.search-filters-check .form-check-input {
    border-color: rgba(255, 255, 255, 0.85);
    background-color: #fff;
}

.search-filters-check .form-check-input:checked {
    background-color: #fff;
    border-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23e53935' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.search-filters-submit {
    margin-top: 0.35rem;
    background: #fff;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.65rem 1rem;
}

.search-filters-submit:hover {
    background: #fff;
    color: var(--primary-hover);
    filter: brightness(0.98);
}

/* Override mobile-menu button reset */
.mobile-menu-overlay .search-filters-submit {
    background: #fff;
    border: none;
    color: var(--primary-color);
    padding: 0.65rem 1rem;
}

.mobile-menu-overlay .search-filters-submit:hover {
    background: #fff;
    color: var(--primary-hover);
}

.search-filters-mobile {
    border: none;
}

.search-filters-toggle {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.28);
}

.search-filters-toggle::-webkit-details-marker {
    display: none;
}

.search-filters-mobile[open] .search-filters-toggle {
    margin-bottom: 0.75rem;
}

@media (min-width: 992px) {
    .search-page-layout {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .search-page-main {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .search-filters-aside {
        grid-column: 1;
        grid-row: 1;
        width: 300px;
    }

    .search-page-header {
        margin-bottom: 1.5rem;
        justify-content: flex-start;
    }

    .search-page-header .home-section-title-block {
        align-items: flex-start;
        text-align: left;
        padding-left: 0;
    }

    .search-page-header .home-section-title-block::before,
    .search-page-header .home-section-title-block::after {
        display: none;
    }
}

.mobile-menu-search-filters {
    padding: 1rem;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-search-filters .search-filters-panel {
    border-radius: var(--radius-md);
    max-width: 260px;
    margin: 0 auto;
}

/* Mobile product filter fab + bottom sheet */
.mobile-filter-chips-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.1rem;
}

.mobile-filter-chips-row::-webkit-scrollbar {
    display: none;
}

.mobile-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.mobile-filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.mobile-filter-chip i {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mobile-filter-chip:hover i {
    color: var(--primary-color);
}

.mobile-filter-fab {
    position: fixed;
    left: 1rem;
    bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
    z-index: 1045;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--primary-color);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(229, 57, 53, 0.28),
        0 8px 24px rgba(15, 23, 42, 0.22),
        0 3px 10px rgba(229, 57, 53, 0.18);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.mobile-filter-fab i {
    font-size: 0.95rem;
}

.mobile-filter-fab:hover {
    color: var(--primary-hover);
    background: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(229, 57, 53, 0.35),
        0 10px 28px rgba(15, 23, 42, 0.26),
        0 4px 12px rgba(229, 57, 53, 0.22);
}

.mobile-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(229, 57, 53, 0.35);
}

.mobile-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.mobile-filter-overlay[hidden] {
    display: none !important;
}

.mobile-filter-overlay.is-open {
    display: flex;
}

.mobile-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.mobile-filter-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    background: #fff;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.24s ease;
}

.mobile-filter-overlay.is-open .mobile-filter-panel {
    transform: translateY(0);
}

.mobile-filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem 0.55rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.mobile-filter-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mobile-filter-reset {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.2rem 0.35rem;
}

.mobile-filter-reset:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.mobile-filter-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-filter-panel-body {
    flex: 0 0 auto;
    overflow: visible;
    padding: 0.55rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

.mobile-filter-panel-body .search-filters-panel {
    box-shadow: none;
    padding: 0.7rem 0.75rem 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.65rem;
    row-gap: 0.45rem;
}

.mobile-filter-panel-body .search-filters-panel-head {
    display: none;
}

.mobile-filter-panel-body .search-filters-group {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.mobile-filter-panel-body .search-filters-group:nth-last-child(3),
.mobile-filter-panel-body .search-filters-group:nth-last-child(2) {
    grid-column: span 1;
}

.mobile-filter-panel-body .search-filters-submit {
    grid-column: 1 / -1;
    margin-top: 0;
}

.mobile-filter-panel-body .search-filters-group-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.85rem;
}

.mobile-filter-panel-body .search-filters-group-inline > .search-filters-label {
    width: 100%;
    margin-bottom: 0.15rem;
}

.mobile-filter-panel-body .search-filters-group-inline .search-filters-check {
    margin-bottom: 0;
}

.mobile-filter-panel-body .search-filters-label {
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
}

.mobile-filter-panel-body .search-filters-control {
    min-height: 32px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
}

.mobile-filter-panel-body .search-filters-check .form-check-label {
    font-size: 0.78rem;
}

.mobile-filter-panel-body .search-filters-submit {
    margin-top: 0.15rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
}

/* Category product list toolbar + pagination */
.product-list-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: visible;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.product-list-toolbar-sort {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.product-list-sort-mode-wrap {
    position: relative;
    display: none;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 9.5rem;
    margin: 0;
}

.product-list-sort-mode-select {
    appearance: none;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 1.75rem 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.product-list-sort-mode-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.product-list-toolbar-label {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-list-toolbar-pagination {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: auto;
}

.product-list-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.product-list-sort-btn:hover {
    border-color: rgba(229, 57, 53, 0.35);
    color: var(--primary-color);
}

.product-list-sort-btn.is-active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.12);
}

.product-list-sort-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 8.5rem;
    margin: 0;
}

.product-list-sort-select {
    appearance: none;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 1.75rem 0.4rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.product-list-sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.product-list-sort-select-wrap.is-price-active .product-list-sort-select {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.product-list-sort-select-icon {
    position: absolute;
    right: 0.7rem;
    pointer-events: none;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
}

.product-list-toolbar .product-pagination {
    justify-content: flex-end;
}

.product-pagination-pages {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-pagination-pages::-webkit-scrollbar {
    display: none;
}

.product-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 32px;
    height: 32px;
    padding: 0 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.product-pagination-btn:hover:not(.is-disabled):not(.is-active) {
    border-color: rgba(229, 57, 53, 0.35);
    color: var(--primary-color);
}

.product-pagination-btn.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.product-pagination-btn.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.product-pagination-btn-nav {
    min-width: 32px;
    padding: 0;
}

.product-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.82rem;
}

@media (max-width: 767.98px) {
    .product-list-toolbar {
        gap: 0.5rem;
        padding: 0.75rem 0.85rem;
    }

    .product-list-toolbar-sort {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.4rem;
    }

    .product-list-sort-btn {
        display: none;
    }

    .product-list-sort-mode-wrap {
        display: inline-flex;
    }

    .product-list-sort-mode-select,
    .product-list-sort-select {
        min-height: 32px;
        font-size: 0.8rem;
        padding: 0.35rem 1.5rem 0.35rem 0.6rem;
    }

    .product-list-sort-select-wrap {
        flex: 0 0 auto;
        min-width: 5.25rem;
        max-width: 6.5rem;
    }

    .product-list-toolbar-pagination {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .product-pagination {
        gap: 0.25rem;
    }

    .product-pagination-pages a,
    .product-pagination-ellipsis {
        display: none;
    }

    .product-pagination-btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.78rem;
        padding: 0 0.35rem;
    }

    .product-pagination-btn-nav {
        min-width: 28px;
    }

    .product-review-pagination {
        gap: 0.1rem;
        padding-left: 0;
        padding-right: 0;
    }

    .product-review-pagination .product-pagination-btn-nav {
        flex: 0 0 28px;
        width: 28px;
        min-width: 28px;
        height: 28px;
    }

    .product-review-pagination .product-pagination-btn:not(.product-pagination-btn-nav) {
        min-width: 28px;
        height: 28px;
        font-size: 0.78rem;
        padding: 0 0.35rem;
    }

    .product-review-pagination .product-pagination-pages {
        max-width: min(calc(100% - 3.75rem), 9rem);
        mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
    }

    .product-review-pagination .product-pagination-ellipsis {
        display: inline-flex;
        min-width: 0.75rem;
        font-size: 0.75rem;
    }
}

/* Cart page (Shopee-style) */
.cart-page,
.account-page {
    background: #f5f5f5;
    flex: 1 0 auto;
    padding: 1.25rem 0 2rem;
}

.cart-page-container,
.account-page-container {
    max-width: 1200px;
}

.cart-page-header,
.account-main-header {
    margin-bottom: 1rem;
}

.cart-page-title,
.account-main-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-page-title-count {
    color: var(--primary-color);
    font-size: 1rem;
}

.cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.cart-main-card,
.cart-summary-card,
.cart-empty-card,
.account-panel,
.account-empty-card,
.account-profile-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cart-main-card {
    overflow: hidden;
}

.cart-table-head,
.cart-line-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1.8fr) 110px 130px 110px 70px;
    align-items: center;
    gap: 0.75rem;
}

.cart-table-head {
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #757575;
    font-size: 0.84rem;
    text-transform: capitalize;
}

.cart-table-head-select {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-table-head-label:nth-child(3),
.cart-table-head-label:nth-child(4),
.cart-table-head-label:nth-child(5),
.cart-table-head-label:nth-child(6) {
    text-align: center;
}

.cart-line-select {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-line-unit,
.cart-line-qty,
.cart-line-total,
.cart-line-actions {
    text-align: center;
}

.cart-line-actions {
    display: flex;
    justify-content: center;
}

.cart-shop-head {
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.cart-shop-block + .cart-shop-block {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-shop-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-shop-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-line-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.cart-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.cart-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.cart-line-product {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.cart-line-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fafafa;
}

.cart-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-line-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.cart-line-name {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-line-name:hover {
    color: var(--primary-color);
}

.cart-line-variant,
.cart-line-ship {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-line-ship {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cart-line-price,
.cart-line-total-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-line-price-original {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
    text-decoration: line-through;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.cart-qty-btn:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.cart-qty-input {
    width: 48px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-line-delete {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.84rem;
    cursor: pointer;
    padding: 0;
}

.cart-line-delete:hover {
    color: var(--primary-color);
}

.cart-summary-card {
    padding: 1rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.cart-summary-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #757575;
}

.cart-summary-promo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 4px;
    background: #fff8e1;
    color: #8d6e00;
    font-size: 0.82rem;
}

.cart-summary-promo.is-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.cart-voucher-box {
    margin-bottom: 1rem;
}

.cart-voucher-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cart-voucher-row {
    display: flex;
    gap: 0.5rem;
}

.cart-voucher-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.88rem;
}

.cart-voucher-btn {
    height: 38px;
    padding: 0 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fafafa;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.cart-summary-rows {
    margin: 0 0 1rem;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}

.cart-summary-row dt,
.cart-summary-row dd {
    margin: 0;
}

.cart-summary-row dd {
    color: var(--text-dark);
    font-weight: 600;
}

.cart-summary-row-total dd {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 700;
}

.cart-checkout-btn {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}

.cart-checkout-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.cart-checkout-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cart-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.cart-mobile-total {
    margin-left: auto;
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cart-mobile-total strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
}

.cart-mobile-checkout-btn {
    min-width: 110px;
    min-height: 42px;
    padding: 0 1rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.cart-mobile-checkout-btn:disabled {
    opacity: 0.55;
}

.cart-empty-card,
.account-empty-card {
    padding: 3rem 1.5rem;
    text-align: center;
}

.cart-empty-icon,
.account-empty-icon {
    font-size: 3.5rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.cart-empty-title,
.account-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-empty-text,
.account-empty-text {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.cart-empty-btn,
.account-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.25rem;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.cart-empty-btn:hover,
.account-empty-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.cart-recommend-section {
    margin-top: 1.5rem;
}

.cart-recommend-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Account page (Shopee-style) */
.account-page-container {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.account-profile-card {
    padding: 1.25rem 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.account-profile-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.account-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-name {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.account-profile-email,
.account-profile-member {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-nav {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.92rem;
    transition: background var(--transition), color var(--transition);
}

.account-nav-link:last-child {
    border-bottom: none;
}

.account-nav-link:hover,
.account-nav-link.is-active {
    background: #fff5f5;
    color: var(--primary-color);
}

.account-nav-link-danger:hover {
    background: #fff5f5;
    color: var(--primary-hover);
}

.account-main-subtitle {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.account-order-shortcuts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.account-order-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color var(--transition), transform var(--transition);
}

.account-order-shortcut:hover {
    border-color: rgba(229, 57, 53, 0.25);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.account-order-shortcut-icon {
    font-size: 1.35rem;
    color: var(--primary-color);
}

.account-order-shortcut-count {
    font-size: 0.95rem;
    font-weight: 700;
}

.account-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-panel {
    padding: 1.25rem;
}

.account-panel-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.account-panel-lead {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.account-panel-link {
    display: inline-flex;
    margin-top: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.account-info-list {
    margin: 0;
}

.account-info-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.account-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.account-info-row dt {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-info-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.account-info-row-full {
    grid-column: 1 / -1;
}

.account-profile-phone-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 420px;
}

.account-profile-phone-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.account-profile-phone-group {
    margin-bottom: 0.45rem;
}

.account-profile-phone-input-wrap .auth-input {
    height: 46px;
}

.account-profile-form-hint {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-profile-form-error {
    margin: 0 0 0.75rem;
}

.account-profile-form-success {
    margin: 0 0 0.75rem;
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
}

.account-profile-save-btn {
    min-width: 8rem;
}

.account-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.account-notification-item {
    padding: 0.75rem;
    border-radius: 4px;
    background: #fafafa;
}

.account-notification-item.is-unread {
    background: rgba(229, 57, 53, 0.05);
}

.account-notification-title {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

.account-notification-text {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 991.98px) {
    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }

    .account-page-container {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-order-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-overview-grid,
    .account-info-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cart-page {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .cart-line-item {
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-areas:
            "select product"
            "select unit"
            "select qty"
            "select total"
            "select actions";
        gap: 0.65rem 0.75rem;
        padding: 1rem;
    }

    .cart-line-select { grid-area: select; }
    .cart-line-product { grid-area: product; }
    .cart-line-unit { grid-area: unit; }
    .cart-line-qty { grid-area: qty; }
    .cart-line-total { grid-area: total; }
    .cart-line-actions { grid-area: actions; }

    .cart-line-unit,
    .cart-line-qty,
    .cart-line-total,
    .cart-line-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .cart-line-unit::before,
    .cart-line-qty::before,
    .cart-line-total::before,
    .cart-line-actions::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.8rem;
    }

    .account-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-nav-link {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.82rem;
    }
}

/* Checkout page */
.checkout-page-container {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.checkout-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkout-page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.checkout-back-link:hover {
    color: var(--primary-color);
}

.checkout-demo-banner {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background: #fff8e6;
    border: 1px solid #f2d98b;
    color: #8a6d1d;
    font-size: 0.88rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 1rem;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-card,
.checkout-summary-card,
.checkout-success-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    padding: 1.25rem;
}

.checkout-card-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.checkout-card-sub {
    margin-left: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.checkout-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.checkout-card-head .checkout-card-title {
    margin-bottom: 0;
}

.checkout-refresh-btn {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--text-dark);
    border-radius: 4px;
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.checkout-refresh-btn:hover:not(:disabled) {
    border-color: rgba(229, 57, 53, 0.25);
    color: var(--primary-color);
}

.checkout-refresh-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkout-field span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    font: inherit;
}

.checkout-field textarea {
    min-height: 72px;
    resize: vertical;
}

.checkout-check-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.checkout-check-wrap input {
    width: auto;
    min-height: auto;
}

.checkout-saved-address-field {
    margin-bottom: 0.65rem;
}

.checkout-saved-address-select-wrap {
    position: relative;
}

.checkout-saved-address-select {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 2.5rem 0.6rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.checkout-saved-address-select:hover {
    border-color: rgba(229, 57, 53, 0.28);
}

.checkout-saved-address-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.checkout-saved-address-select-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.checkout-saved-address-preview {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 4px;
    background: rgba(229, 57, 53, 0.03);
    border: 1px solid rgba(229, 57, 53, 0.14);
}

.checkout-saved-address-preview.is-editing {
    padding: 1rem;
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

.checkout-saved-address-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.checkout-saved-address-preview-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.checkout-saved-address-preview-title strong {
    color: var(--text-dark);
    font-size: 0.92rem;
}

.checkout-saved-address-preview-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(229, 57, 53, 0.22);
    border-radius: 4px;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.checkout-saved-address-preview-edit-btn:hover {
    background: rgba(229, 57, 53, 0.05);
    border-color: var(--primary-color);
}

.checkout-saved-address-preview-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.checkout-saved-address-preview-edit-head strong {
    font-size: 0.92rem;
    color: var(--text-dark);
}

.checkout-saved-address-preview-edit-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.checkout-saved-address-preview-fields {
    margin-top: 0.15rem;
}

.checkout-saved-address-preview-fields .checkout-field input,
.checkout-saved-address-preview-fields .checkout-field select {
    min-height: 38px;
    font-size: 0.88rem;
}

.checkout-saved-address-preview-phone {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.checkout-saved-address-preview-summary {
    color: var(--text-dark);
    font-size: 0.86rem;
    line-height: 1.45;
}

.checkout-notes-field {
    margin-top: 0.25rem;
}

.checkout-saved-address-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.1);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
}

.account-addresses-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-address-form-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

.account-address-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.account-address-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.25rem;
    border-radius: 4px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.account-address-cancel-btn:hover {
    border-color: rgba(229, 57, 53, 0.35);
    color: var(--primary-color);
    background: rgba(229, 57, 53, 0.04);
}

.account-address-cancel-btn:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.account-address-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-address-card {
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

.account-address-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.account-address-card-summary {
    margin: 0 0 0.65rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.account-address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.account-address-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.account-address-btn:hover {
    border-color: rgba(229, 57, 53, 0.3);
    color: var(--primary-color);
    background: rgba(229, 57, 53, 0.03);
}

.account-address-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.account-address-btn--primary {
    border-color: rgba(229, 57, 53, 0.22);
    color: var(--primary-color);
    background: rgba(229, 57, 53, 0.05);
}

.account-address-btn--primary:hover {
    border-color: var(--primary-color);
    background: rgba(229, 57, 53, 0.1);
    color: var(--primary-hover);
}

.account-address-btn--danger {
    border-color: rgba(198, 40, 40, 0.18);
    color: #c62828;
    background: #fff;
}

.account-address-btn--danger:hover {
    border-color: rgba(198, 40, 40, 0.45);
    color: #b71c1c;
    background: rgba(198, 40, 40, 0.05);
}

.checkout-field-full {
    grid-column: 1 / -1;
}

.checkout-shipping-list,
.checkout-payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checkout-shipping-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-shipping-group {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.checkout-shipping-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-shipping-group-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-shipping-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.checkout-shipping-group .checkout-shipping-list {
    padding: 0.85rem 1rem 1rem;
}

.checkout-shipping-option,
.checkout-payment-option {
    display: block;
    cursor: pointer;
}

.checkout-shipping-option input,
.checkout-payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-shipping-option-body,
.checkout-payment-option-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transition: border-color var(--transition), background var(--transition);
}

.checkout-shipping-option input:checked + .checkout-shipping-option-body,
.checkout-payment-option input:checked + .checkout-payment-option-body {
    border-color: var(--primary-color);
    background: rgba(229, 57, 53, 0.04);
}

.checkout-shipping-option-main,
.checkout-payment-option-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.checkout-payment-option-main {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
}

.checkout-payment-option-main i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.checkout-payment-option-main small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.checkout-shipping-option-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.checkout-shipping-option-meta strong,
.checkout-payment-fee-note {
    color: var(--text-dark);
    font-size: 0.88rem;
}

.checkout-shipping-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.checkout-items-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.checkout-items-card .checkout-card-head {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkout-order-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-order-group {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.checkout-order-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-order-group-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-order-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.checkout-order-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-order-group-shipping {
    padding: 0.85rem 1rem 1rem;
    background: rgba(0, 0, 0, 0.015);
}

.checkout-order-group-shipping-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
}

.checkout-order-group-shipping-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-order-group-shipping-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.checkout-order-group-shipping .checkout-shipping-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checkout-order-group-shipping .checkout-shipping-select-wrap {
    position: relative;
}

.checkout-shipping-select-wrap {
    position: relative;
}

.checkout-shipping-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 0.75rem 2.25rem 0.75rem 0.85rem;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.checkout-shipping-select:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

.checkout-shipping-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.checkout-shipping-select-icon {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkout-order-group-shipping .checkout-shipping-list {
    gap: 0.55rem;
}

.checkout-items-card .checkout-shipping-hint {
    margin-top: 1rem;
}

.checkout-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
}

.checkout-item-image-wrap {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.checkout-item-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-name {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-item-name:hover {
    color: var(--primary-color);
}

.checkout-item-variant {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkout-item-meta {
    margin-top: 0.45rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.checkout-sidebar-card {
    padding: 1rem;
}

.checkout-sidebar-card .checkout-card-title {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.checkout-sidebar-card .checkout-card-head {
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.checkout-sidebar-card .checkout-card-head .checkout-card-title {
    margin-bottom: 0;
}

.checkout-sidebar .checkout-shipping-option-body,
.checkout-sidebar .checkout-payment-option-body {
    padding: 0.7rem 0.8rem;
}

.checkout-sidebar .checkout-payment-option-main {
    align-items: flex-start;
}

.checkout-sidebar .checkout-payment-option-main span strong {
    font-size: 0.88rem;
}

.checkout-sidebar .checkout-payment-option-main small {
    font-size: 0.74rem;
    line-height: 1.35;
}

.checkout-sidebar .checkout-shipping-option-main strong {
    font-size: 0.88rem;
}

.checkout-sidebar .checkout-shipping-option-main span,
.checkout-sidebar .checkout-shipping-option-meta {
    font-size: 0.76rem;
}

.checkout-summary-card {
    position: static;
}

.checkout-summary-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.checkout-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.checkout-summary-row strong {
    color: var(--text-dark);
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    font-weight: 700;
}

.checkout-summary-total strong {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.checkout-summary-note {
    margin: 0.75rem 0 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.checkout-place-order-btn {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.checkout-place-order-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.checkout-place-order-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.checkout-error {
    margin: 0.75rem 0 0;
    color: #c62828;
    font-size: 0.84rem;
}

.checkout-success-page,
.checkout-cancel-page {
    padding: 2rem 0 3rem;
}

.checkout-success-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.checkout-success-icon {
    font-size: 3rem;
    color: #2e7d32;
    margin-bottom: 0.75rem;
}

.checkout-success-icon.is-error {
    color: #c62828;
}

.checkout-success-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.checkout-success-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.checkout-success-summary {
    margin: 1rem 0;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
}

.checkout-success-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.checkout-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
}

.checkout-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.25rem;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

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

.checkout-success-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.account-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-order-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    background: #fff;
}

.account-order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.account-order-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.account-order-status {
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }

    .checkout-summary-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-shipping-option-body,
    .checkout-payment-option-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-shipping-option-meta {
        text-align: left;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}

.checkout-shipping-display-wrap {
    display: block;
}

.checkout-shipping-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: #fff;
}

.checkout-shipping-display-name {
    flex: 1 1 100%;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.checkout-shipping-display-price {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-shipping-display-eta {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.checkout-shipping-display-error {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    background: rgba(220, 53, 69, 0.08);
    color: #b42318;
    font-size: 0.88rem;
}

.seller-centre-page {
    padding: 2rem 0 3rem;
}

.seller-centre-container {
    max-width: 960px;
}

.seller-centre-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seller-centre-title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
}

.seller-centre-subtitle,
.seller-centre-card-copy {
    margin: 0;
    color: var(--text-muted);
}

.seller-centre-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dark);
    text-decoration: none;
}

.seller-centre-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.seller-centre-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seller-centre-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.seller-centre-form {
    display: grid;
    gap: 1rem;
}

.seller-centre-field {
    display: grid;
    gap: 0.35rem;
}

.seller-centre-field span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.seller-centre-field input,
.seller-centre-field select {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 0.7rem 0.85rem;
}

.seller-centre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--primary, #ee4d2d);
    color: #fff;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.seller-centre-btn-secondary {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.seller-centre-btn-small {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
}

.seller-centre-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    background: rgba(25, 135, 84, 0.08);
    color: #146c43;
}

.seller-centre-alert.is-error {
    background: rgba(220, 53, 69, 0.08);
    color: #b42318;
}

.seller-centre-current-courier {
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.seller-centre-rate-list {
    display: grid;
    gap: 0.75rem;
}

.seller-centre-rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.seller-centre-rate-item-selectable {
    cursor: pointer;
}

.seller-centre-rate-item-selectable:has(.seller-centre-rate-checkbox:checked) {
    border-color: rgba(229, 57, 53, 0.35);
    background: rgba(229, 57, 53, 0.04);
}

.seller-centre-rate-checkbox {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.seller-centre-rate-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.seller-centre-rate-main {
    display: grid;
    gap: 0.35rem;
}

.seller-centre-rate-name {
    font-size: 0.98rem;
}

.seller-centre-rate-service {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.seller-centre-rate-price {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.seller-centre-rate-eta,
.seller-centre-rate-id,
.seller-centre-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.purchases-page {
    background: #f5f5f5;
    flex: 1 0 auto;
    padding: 1.25rem 0 2rem;
}

.purchases-page-container {
    max-width: 960px;
}

.purchases-page-header {
    margin-bottom: 1rem;
}

.purchases-page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.purchases-toolbar,
.purchases-tabs,
.purchases-empty-card,
.purchase-order-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.purchases-toolbar {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.purchases-search-form {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.purchases-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
}

.purchases-search-field:focus-within {
    border-color: rgba(229, 57, 53, 0.45);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.08);
}

.purchases-search-field i {
    color: #9ca3af;
}

.purchases-search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0.72rem 0;
    font-size: 0.92rem;
    background: transparent;
}

.purchases-search-btn {
    flex: 0 0 auto;
    border: 0;
    border-radius: 2px;
    padding: 0 1.35rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.purchases-search-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.purchases-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
}

.purchases-tabs::-webkit-scrollbar {
    display: none;
}

.purchases-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
}

.purchases-tab:hover {
    color: var(--primary-color);
}

.purchases-tab.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.purchases-tab-count {
    min-width: 1.1rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.12);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.purchases-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.purchase-order-card {
    overflow: hidden;
}

.purchase-order-card-head,
.purchase-order-shop-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.purchase-order-card-shop,
.purchase-order-shop-divider {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.purchase-order-card-shop i,
.purchase-order-shop-divider i {
    color: var(--primary-color);
}

.purchase-order-card-shop-more {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.purchase-order-status {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.purchase-order-status.is-danger {
    color: var(--primary-color);
}

.purchase-order-status.is-warning {
    color: #ea580c;
}

.purchase-order-status.is-primary {
    color: #2563eb;
}

.purchase-order-status.is-success {
    color: #16a34a;
}

.purchase-order-status.is-muted {
    color: var(--text-muted);
}

.purchase-order-shop-divider {
    justify-content: flex-start;
    background: #fafafa;
}

.purchase-order-items {
    display: flex;
    flex-direction: column;
}

.purchase-order-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.purchase-order-item-image {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
    background: #fafafa;
}

.purchase-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.purchase-order-item-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 1.35rem;
}

.purchase-order-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.4;
}

.purchase-order-item-name:hover {
    color: var(--primary-color);
}

.purchase-order-item-variant,
.purchase-order-item-qty {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.purchase-order-item-price {
    align-self: start;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.purchase-order-card-foot {
    padding: 1rem;
    background: #fcfcfc;
}

.purchase-order-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.purchase-order-total-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.purchase-order-total-label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.purchase-order-total-value {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.purchase-order-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.purchase-order-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    background: #fff;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.purchase-order-action.is-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.purchase-order-action.is-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.purchase-order-action.is-muted:hover {
    border-color: rgba(229, 57, 53, 0.35);
    color: var(--primary-color);
}

.purchases-empty-card {
    padding: 3rem 1.5rem;
    text-align: center;
}

.purchases-empty-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.purchases-empty-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.purchases-empty-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.purchases-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.7rem 1.25rem;
    border-radius: 2px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.purchases-empty-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

@media (max-width: 767.98px) {
    .purchases-search-form {
        flex-direction: column;
    }

    .purchases-search-btn {
        width: 100%;
        padding-top: 0.72rem;
        padding-bottom: 0.72rem;
    }

    .purchase-order-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .purchase-order-item-price {
        grid-column: 2;
    }

    .purchase-order-actions {
        justify-content: stretch;
    }

    .purchase-order-action {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

.seller-centre-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

.seller-centre-tab {
    flex: 1 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.seller-centre-tab.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.seller-centre-tab-count {
    min-width: 1rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.12);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
}

.seller-centre-field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.seller-product-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller-product-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.seller-product-row:last-child {
    border-bottom: 0;
}

.seller-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.seller-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-product-name {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.seller-product-meta {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.seller-product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.seller-product-status {
    font-size: 0.78rem;
    font-weight: 700;
}

.seller-product-status.is-active {
    color: #16a34a;
}

.seller-product-status.is-inactive {
    color: var(--text-muted);
}

.seller-product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.seller-product-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.seller-order-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.seller-order-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.84rem;
}

.seller-order-tab.is-active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.seller-order-tab-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
}

.seller-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller-order-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.seller-order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.seller-order-date {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.seller-order-items {
    padding: 0.75rem 1rem;
}

.seller-order-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.45rem 0;
}

.seller-order-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.seller-order-item-name {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.seller-order-item-meta {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.seller-order-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.start-selling-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.start-selling-steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.start-selling-steps .bi-check-circle-fill {
    color: var(--primary-color);
}

.order-detail-container {
    max-width: 760px;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.order-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.order-detail-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
}

.order-detail-section-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.order-detail-info,
.order-detail-summary {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.order-detail-info div,
.order-detail-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.order-detail-info dt,
.order-detail-summary dt {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.order-detail-info dd,
.order-detail-summary dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.order-detail-summary-total dd,
.order-detail-summary-total dt {
    color: var(--primary-color);
    font-size: 1rem;
}

.order-detail-address,
.order-detail-shipping {
    margin: 0;
    line-height: 1.5;
    color: var(--text-dark);
}

.order-detail-shipping {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.order-detail-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-detail-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
}

.order-detail-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.order-detail-item-name {
    margin: 0;
    font-weight: 600;
}

.order-detail-item-variant,
.order-detail-item-meta {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.order-detail-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.order-detail-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.account-settings-form {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

@media (max-width: 767.98px) {
    .seller-product-row,
    .seller-product-form-grid,
    .order-detail-item {
        grid-template-columns: 1fr;
    }

    .seller-product-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .seller-order-card-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}

.start-selling-promo-body {
    background: #f5f6f8;
}

.start-selling-promo {
    padding-bottom: 0;
}

.start-selling-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    padding: 3rem 0 3.5rem;
}

.start-selling-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 2rem;
    align-items: center;
}

.start-selling-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}

.start-selling-hero-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.15;
    font-weight: 700;
}

.start-selling-hero-lead {
    margin: 0 0 1.5rem;
    max-width: 38rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.start-selling-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.start-selling-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 0.72rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.start-selling-btn-primary {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.start-selling-btn-primary:hover {
    transform: translateY(-1px);
    color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.start-selling-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.start-selling-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.start-selling-btn-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.start-selling-btn-light:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.start-selling-hero-visual {
    display: flex;
    justify-content: center;
}

.start-selling-hero-card {
    width: min(100%, 280px);
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    text-align: center;
    display: grid;
    gap: 0.45rem;
}

.start-selling-hero-card .bi {
    font-size: 2.4rem;
    margin-bottom: 0.25rem;
}

.start-selling-hero-card strong {
    font-size: 1.15rem;
}

.start-selling-hero-card span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.start-selling-section {
    padding: 2.75rem 0;
}

.start-selling-section-muted {
    background: #fff;
}

.start-selling-section-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.start-selling-section-head-left {
    text-align: left;
    margin-bottom: 1.1rem;
}

.start-selling-section-head h2 {
    margin: 0 0 0.45rem;
    font-size: 1.55rem;
}

.start-selling-section-head p {
    margin: 0;
    color: var(--text-muted);
}

.start-selling-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.start-selling-benefit-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.start-selling-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(238, 77, 45, 0.1);
    color: var(--primary-color);
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
}

.start-selling-benefit-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
}

.start-selling-benefit-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.start-selling-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.start-selling-panel {
    background: #f8f9fb;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.start-selling-checklist,
.start-selling-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.start-selling-checklist li,
.start-selling-flow li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.start-selling-checklist .bi-check-circle-fill {
    color: var(--primary-color);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.start-selling-flow {
    counter-reset: flow;
}

.start-selling-flow-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.start-selling-flow li strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.15rem;
}

.start-selling-flow li p {
    margin: 0;
    font-size: 0.92rem;
}

.start-selling-cta {
    padding: 2.75rem 0;
}

.start-selling-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
}

.start-selling-cta-inner h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.start-selling-cta-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.start-selling-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.start-selling-stepper li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: #f8f9fb;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.start-selling-stepper li.is-active {
    background: rgba(238, 77, 45, 0.08);
    border-color: rgba(238, 77, 45, 0.18);
    color: var(--text-color);
}

.start-selling-stepper-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.start-selling-stepper li.is-active .start-selling-stepper-num {
    background: var(--primary-color);
    color: #fff;
}

.start-selling-stepper-label {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .start-selling-hero-inner,
    .start-selling-benefits-grid,
    .start-selling-split {
        grid-template-columns: 1fr;
    }

    .start-selling-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .start-selling-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .start-selling-benefits-grid,
    .start-selling-stepper {
        grid-template-columns: 1fr;
    }

    .start-selling-hero {
        padding: 2.25rem 0 2.75rem;
    }

    .start-selling-hero-actions,
    .start-selling-cta-inner .start-selling-hero-actions {
        width: 100%;
    }

    .start-selling-btn {
        flex: 1 1 auto;
    }
}
