/* =========================
   Reset / Base
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #ffffff;
    color: #111111;
}

a {
    color: inherit;
}


/* =========================
   Top Bar
========================= */


.topbar {
    height: 72px;
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 0 32px;
    border-bottom: 1px solid #e9e9e9;
    background: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.brand-name {
    display: block;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.07em;
    line-height: 1;
    color: #000000;
}

.brand-sub {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #777777;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* =========================
   Search Bar
========================= */

.searchbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.searchbar input {
    width: 100%;
    max-width: 520px;
    padding: 11px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    outline: none;
    background: #f6f6f6;
    font-size: 14px;
    font-weight: 500;
}


.searchbar input:focus {
    background: #ffffff;
    border-color: #111111;
}

.searchbar button {
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.searchbar button:hover {
    background: #333333;
}


/* =========================
   Top Right Links
========================= */

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
    flex-shrink: 1;
}

.topbar-nav a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: #111111;
}

.count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    margin-left: 3px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}


/* =========================
   Page Layout
========================= */

.page-shell {
    display: flex;
    align-items: flex-start;
}


/* =========================
   Sidebar
========================= */

.sidebar {
    width: 210px;
    min-height: calc(100vh - 72px);
    padding: 24px 14px;
    border-right: 1px solid #eeeeee;
    background: #ffffff;
    flex-shrink: 0;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 82vw;
        max-width: 320px;
        min-height: 100dvh;
        height: 100dvh;
        border-right: none;
        padding: 22px 18px;
        z-index: 7000;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: column;
        gap: 0;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.22);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }
}
.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-heading {
    margin: 0 0 14px 8px;
    font-size: 12px;
    font-weight: 900;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cat-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;

    width: 100%;
    padding: 9px 10px;
    margin-bottom: 3px;

    border-radius: 8px;
    border-bottom: none;

    text-decoration: none !important;
    color: #111111;

    font-size: 14px;
    font-weight: 750;

    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.cat-label {
    display: inline-flex;
    align-items: center;
}

.cat-count {
    color: #777777;
    font-size: 12px;
    font-weight: 800;
    margin-left: 2px;
}

.cat-link:hover {
    background: #f3f3f3;
    transform: translateX(3px);
    text-decoration: none !important;
}

.cat-link.active {
    background: #111111;
    color: #ffffff;
    font-weight: 950;
}

.cat-link.active .cat-count {
    color: #ffffff;
}

/* =========================
   Sidebar Notifications
========================= */

.sidebar-notifications-section {
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.sidebar-notification-dropdown {
    width: 100%;
}

.sidebar-notification-summary {
    list-style: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 10px 10px;
    border-radius: 8px;

    color: #111111;
    background: #ffffff;

    font-size: 14px;
    font-weight: 900;

    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-notification-summary::-webkit-details-marker {
    display: none;
}

.sidebar-notification-summary:hover {
    background: #f3f3f3;
    transform: translateX(3px);
}

.sidebar-notification-menu {
    display: grid;
    gap: 4px;
    padding: 8px 0 0 8px;
}

.sidebar-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 8px 10px;
    border-radius: 8px;

    color: #111111;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 800;

    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-sub-link:hover {
    background: #f5f5f5;
    transform: translateX(3px);
    text-decoration: none !important;
}

.sidebar-red-badge,
.sidebar-small-red-badge {
    border-radius: 999px;
    background: #e60023;
    color: #ffffff !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
    font-weight: 950;
}

.sidebar-red-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
}

.sidebar-small-red-badge {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
}

/* =========================
   Sidebar Admin
========================= */

.sidebar-admin-section {
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.admin-dashboard-cat-link {
    background: #111111;
    color: #ffffff !important;
    font-weight: 950;
}

.admin-dashboard-cat-link:hover {
    background: #333333;
    transform: translateX(3px);
    text-decoration: none !important;
}

/* =========================
   Shop Body
========================= */

.shop-body {
    flex: 1;
    padding: 26px 30px;
}


/* =========================
   Product Grid
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px 18px;
}

.product-card {
    min-width: 0;
    position: relative;
}

.product-card-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.product-card-image-wrap > a {
    display: block;
}

.product-card-image-wrap > a > img,
.product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.product-title {
    display: block;
    margin-top: 8px;
    color: #111111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title:hover {
    text-decoration: underline;
}

.product-price {
    margin: 4px 0 0 0;
    font-size: 13px;
    font-weight: 950;
    color: #111111;
}

/* Like button — always visible, no hover trigger */
.card-like-btn,
.card-login-like-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 36px;
    padding: 6px 4px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: #111;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.card-like-btn.liked {
    color: #e53935;
}

.card-like-count {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #111;
}

/* Remove any image opacity on hover/active — no blocking on mobile */
.product-card img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .product-card img:hover,
    .product-card img:active {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .card-like-btn,
    .card-login-like-btn {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }
}

.product-title {
    display: block;
    margin-top: 8px;
    color: #111111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title:hover {
    text-decoration: underline;
}

.product-price {
    margin: 4px 0 0 0;
    font-size: 13px;
    font-weight: 950;
    color: #111111;
}


/* =========================
   Empty Message
========================= */

.product-grid > p {
    grid-column: 1 / -1;
    margin: 40px 0;
    color: #777777;
    font-size: 14px;
    font-weight: 600;
}


/* =========================
   Responsive
========================= */

@media (max-width: 1250px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1050px) {
    .topbar {
        grid-template-columns: 190px 1fr 220px;
        padding: 0 22px;
    }

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

@media (max-width: 820px) {
    .topbar {
        height: auto;
        grid-template-columns: 1fr;
        padding: 16px 18px;
        gap: 14px;
    }

    .brand {
        justify-content: center;
    }

    .topbar-nav {
        justify-content: center;
        order: 3;
    }

    .page-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #eeeeee;
        padding: 14px 18px;
        display: flex;
        gap: 18px;
        overflow-x: auto;
    }

    .sidebar-heading {
        display: none;
    }

    .cat-link {
        border-bottom: none;
        white-space: nowrap;
        padding: 6px 0;
    }

    .cat-link span {
        display: none;
    }

    .shop-body {
        padding: 20px 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 14px;
    }
}

.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 18px;
    background: #ffffff;
}

.auth-card {
    width: 100%;
    max-width: 390px;
    border: 1px solid #e5e5e5;
    padding: 28px;
    background: #ffffff;
}

.auth-card h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.auth-subtitle {
    margin: 0 0 22px 0;
    color: #777;
    font-size: 14px;
    font-weight: 600;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-card input {
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    font-size: 14px;
    outline: none;
}

.auth-card input:focus {
    border-color: #111;
}

.auth-card button {
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid #111;
    background: #111;
    color: white;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.auth-card button:hover {
    background: #333;
}

.auth-switch {
    margin: 18px 0 0 0;
    font-size: 13px;
    color: #555;
}

.auth-switch a {
    color: #111;
    font-weight: 800;
}

.form-message {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #b42318;
}

.form-message {
    color: #c1121f;
    background: #fff1f1;
    border: 1px solid #f3b6b6;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 850;
}
.form-message-success {
    color: #087443 !important;
    background: #fff1f1;
    border: 1px solid #f3b6b6;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 850;
}


.profile-page {
    max-width: 850px;
    margin: 34px auto;
    padding: 0 18px;
}

.profile-card {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 22px;
    margin-bottom: 18px;
}

.profile-card h1,
.profile-card h2 {
    margin: 0 0 8px 0;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.profile-muted {
    margin: 0 0 18px 0;
    color: #777;
    font-size: 14px;
    font-weight: 600;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}

.profile-row span {
    color: #666;
    font-weight: 700;
}

.profile-row strong {
    font-weight: 900;
}

.profile-btn {
    display: inline-block;
    padding: 10px 14px;
    background: #111;
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
}

.danger-zone {
    border-color: #f3b4b4;
}

.confirm-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    margin-bottom: 12px;
    font-size: 14px;
}

.confirm-input::placeholder {
    color: #c1121f;
    font-weight: 900;
}

.danger-btn {
    border: none;
    background: #c1121f;
    color: white;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
}

.danger-btn:hover {
    background: #8f0d17;
}

/* =========================
   Product Detail Page
========================= */

.product-detail-page {
    max-width: 1200px;
    margin: 34px auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 42px;
}

.product-detail-images {
    min-width: 0;
}

.main-detail-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.extra-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.extra-image-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f5f5f5;
}

.product-detail-info {
    padding-top: 6px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: #777;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.back-link:hover {
    text-decoration: underline;
}

.product-detail-info h1 {
    margin: 0 0 10px 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.detail-price {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 950;
}

.detail-meta {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 12px 0;
}

.detail-meta p {
    margin: 10px 0;
    font-size: 14px;
}

.detail-description {
    margin-top: 0px;
}

.detail-description h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 950;
}

.detail-description p {
    margin: 0;
    color: #444;
    line-height: 1.5;
    font-size: 14px;
}

.detail-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
}


.admin-detail-actions {
    margin-top: 22px;
}


.admin-detail-actions a {
    color: #111;
}


/* =========================
   Admin Pages
========================= */

.admin-page {
    max-width: 1150px;
    margin: 34px auto;
    padding: 0 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.admin-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.admin-header p {
    margin: 6px 0 0 0;
    color: #777;
    font-size: 14px;
    font-weight: 600;
}

.admin-primary-btn {
    background: #111;
    color: white;
    padding: 11px 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e5e5;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.admin-table th {
    font-weight: 950;
    color: #555;
    background: #fafafa;
}

.admin-thumb {
    width: 54px;
    height: 68px;
    object-fit: cover;
    background: #f5f5f5;
}

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

.admin-actions a {
    font-weight: 800;
    color: #111;
}


/* =========================
   Admin Forms
========================= */

.admin-form-page {
    min-height: calc(100vh - 72px);
    display: flex;
    justify-content: center;
    padding: 36px 18px;
}

.admin-form-card {
    width: 100%;
    max-width: 560px;
    border: 1px solid #e5e5e5;
    padding: 26px;
    background: #fff;
}

.admin-form-card h1 {
    margin: 0 0 8px 0;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.admin-form-card p {
    margin: 0 0 20px 0;
    color: #777;
    font-size: 14px;
    font-weight: 600;
}

.admin-form-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-form-card label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 900;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-form-card input,
.admin-form-card textarea,
.admin-form-card select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d8d8d8;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.admin-form-card textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form-card input:focus,
.admin-form-card textarea:focus,
.admin-form-card select:focus {
    border-color: #111;
}

.admin-form-card button {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #111;
    background: #111;
    color: white;
    font-weight: 950;
    cursor: pointer;
}

.admin-current-product {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #eeeeee;
    padding: 12px;
    margin-bottom: 20px;
}

.admin-current-product img {
    width: 64px;
    height: 80px;
    object-fit: cover;
    background: #f5f5f5;
}

.admin-current-product strong {
    display: block;
    font-size: 14px;
}

.admin-current-product span {
    display: block;
    margin-top: 4px;
    color: #777;
    font-weight: 800;
}


/* =========================
   Responsive Detail/Admin
========================= */

@media (max-width: 850px) {
    .product-detail-page {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 18px;
    }

    .extra-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-actions {
        flex-direction: column;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.image-drop-zone {
    border: 2px dashed #999;
    border-radius: 14px;
    padding: 35px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: 0.2s ease;
    margin-bottom: 20px;
}

.image-drop-zone:hover {
    background: #f1f1f1;
    border-color: #333;
}

.image-drop-zone.drag-over {
    background: #e8f0ff;
    border-color: #1a73e8;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.image-preview-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    background: white;
    text-align: center;
}

.image-preview-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.image-preview-card small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #555;
}

.remove-image-btn {
    margin-top: 6px;
    border: none;
    background: #111;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.remove-image-btn:hover {
    background: #444;
}

.hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.topbar-nav a.logout-btn {
    color: white;
    background: #c1121f;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.topbar-nav a.logout-btn:hover {
    background: darkred;
}

.saved-image-card {
    position: relative;
}

.saved-image-actions {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #ffffff;
}

.saved-image-actions form {
    margin: 0;
}

.saved-image-actions button {
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 7px;
    cursor: pointer;
}

.saved-image-actions button:hover {
    background: #f3f3f3;
}

.saved-image-actions .delete-image-btn {
    color: #c1121f;
    border-color: #f0b5b5;
}

.image-preview-grid saved-images-grid.delete-checkbox-label {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    color: #c1121f;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 7px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid #f0b5b5;
}

.image-preview-grid saved-images-grid.delete-checkbox-label input {
    margin-right: 4px;
}

.saved-image-card.marked-delete {
    opacity: 0.45;
    outline: 2px solid #c1121f;
}

.saved-image-card {
    cursor: grab;
}

/* =========================
   Product Gallery
========================= */

.product-gallery {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: start;
}

.thumbnail-column {
    max-height: 640px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-right: 4px;
}

.thumbnail-column::-webkit-scrollbar {
    width: 4px;
}

.thumbnail-column::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.thumbnail-btn {
    width: 76px;
    height: 92px;
    border: 1px solid #e2e2e2;
    padding: 0;
    background: #f5f5f5;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-btn:hover {
    border-color: #111;
}

.active-thumbnail {
    border: 2px solid #111;
}

.main-image-wrap {
    position: relative;
    width: 100%;
}

.main-detail-image {
    width: 100%;
    max-height: 640px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.gallery-arrow:hover {
    background: #ffffff;
}

.gallery-arrow-left {
    left: 12px;
}

.gallery-arrow-right {
    right: 12px;
}

.missing-image-box {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 640px;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
    color: #777;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
@media (max-width: 850px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .thumbnail-column {
        order: 2;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        flex-direction: row;
        padding-right: 0;
        padding-top: 10px;
    }

    .thumbnail-btn {
        width: 70px;
        height: 84px;
        flex: 0 0 auto;
    }

    .main-image-wrap {
        order: 1;
    }
}

.variant-form-card {
    max-width: 760px;
    margin-bottom: 26px;
}

.variant-form-card h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.variant-size-section {
    margin-top: 18px;
    border: 1px solid #eeeeee;
    padding: 14px;
}

.variant-size-section h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 950;
}

.variant-size-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.size-check-label {
    font-weight: 900;
    font-size: 13px;
}

.variant-table-wrap {
    margin-top: 20px;
}

.variant-photo-section {
    margin-top: 32px;
}

.variant-photo-section h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.variant-color-photo-group {
    border: 1px solid #e5e5e5;
    padding: 16px;
    margin-bottom: 18px;
    background: #fff;
}

.variant-color-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.variant-color-heading strong {
    font-size: 15px;
    font-weight: 950;
}

.variant-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    display: inline-block;
}

/* =========================
   Variant Picker
========================= */

.variant-picker {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 18px 0;
    margin-bottom: 18px;
}

.variant-group {
    margin-bottom: 18px;
}

.variant-label {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.color-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
}

.color-swatch-circle {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 1px solid #dddddd;
}

.active-color-swatch {
    border: 2px solid #111111;
}

.selected-option-text {
    margin: 8px 0 0 0;
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.size-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-option-btn {
    min-width: 48px;
    padding: 10px 13px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #111111;
    font-weight: 900;
    cursor: pointer;
}

.size-option-btn:hover {
    border-color: #111111;
}

.active-size {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.disabled-size {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.delete-variant-form {
    margin-top: 16px;
}



.inline-delete-form {
    display: inline;
    margin: 0;
}

.table-delete-btn {
    border: none;
    background: transparent;
    color: #c1121f;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.table-delete-btn:hover {
    text-decoration: underline;
}

.variant-group-section {
    margin-top: 28px;
}

.variant-group-section h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.variant-size-pill {
    display: inline-block;
    background: #f3f3f3;
    border: 1px solid #e2e2e2;
    padding: 4px 7px;
    margin: 2px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
}

.muted-table-text {
    color: #888;
    font-size: 12px;
    font-weight: 700;
}

.inline-delete-form {
    display: inline;
    margin: 0;
}

///////

/* =========================
   Product Detail Option UI
========================= */

.simple-product-options,
.variant-picker {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 18px 0;
    margin-bottom: 18px;
}

.variant-group {
    margin-bottom: 18px;
}

.variant-label {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.color-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
}

.color-swatch-circle {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 1px solid #dddddd;
}

.active-color-swatch {
    border: 2px solid #111111;
}

.selected-option-text {
    margin: 8px 0 0 0;
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.size-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-option-btn {
    min-width: 48px;
    padding: 10px 13px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #111111;
    font-weight: 900;
    cursor: pointer;
}

.size-option-btn:hover {
    border-color: #111111;
}

.active-size {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.disabled-size {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Product Detail Meta */

.clean-detail-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 16px 0;
}

.detail-chip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
}

.detail-chip-label {
    color: #777;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-chip-value {
    color: #111;
    font-weight: 900;
    text-transform: capitalize;
}

.confirm-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.show-confirm-modal {
    display: flex;
}

.confirm-modal {
    width: min(420px, calc(100% - 32px));
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.confirm-modal h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 950;
}

.confirm-modal p {
    margin: 0;
    color: #555;
    font-size: 14px;
    font-weight: 650;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.danger-btn {
    border: none;
    background: #c1121f;
    color: white;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    cursor: pointer;
}

.add-size-card {
    margin-top: 22px;
}

.inline-notice {
    display: none;
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #f0b5b5;
    background: #fff4f4;
    color: #9f1239;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 850;
}

.show-inline-notice {
    display: block;
}

.profile-photo-card {
    border: 1px solid #eeeeee;
    background: #ffffff;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.profile-photo-preview {
    margin: 12px 0;
}

.profile-photo-preview img,
.profile-photo-fallback {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e2e2e2;
}

.profile-photo-fallback {
    background: #111;
    color: white;
    font-size: 34px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.topbar-profile-img:hover {
    opacity: 0.85;
    border-color: #777777;
}

.topbar-profile-fallback {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.topbar-profile-fallback:hover {
    background: #767676;
    border-color: #777777;
}

.profile-photo-card h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 950;
}

.profile-photo-preview {
    margin: 12px 0;
}

.profile-photo-preview img,
.profile-photo-fallback {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e2e2e2;
}

.topbar-list-item-btn {
    height: 34px;
    min-width: auto;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
}

.list-item-btn,
.list-item-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 13px;
    border-radius: 7px;
    background: #111111;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid #111111;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.list-item-btn:hover,
.list-item-btn:focus,
.list-item-btn:active {
    background: #333333;
    border-color: #333333;
    color: #ffffff !important;
    outline: none;
}

/* =========================
   Messages
========================= */

.messages-page {
    max-width: 920px;
    margin: 34px auto;
    padding: 0 24px;
}

.messages-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.messages-header p {
    margin: 6px 0 22px 0;
    color: #666;
    font-weight: 650;
}

.conversation-list {
    display: grid;
    gap: 12px;
}

.conversation-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    color: #111111;
}

.conversation-card:hover {
    background: #fafafa;
    border-color: #dcdcdc;
}

.conversation-avatar img,
.conversation-avatar span {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    background: #111111;
    color: #ffffff;
    font-weight: 950;
}

.conversation-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.conversation-topline strong {
    font-size: 15px;
    font-weight: 950;
}

.conversation-topline span {
    color: #888;
    font-size: 12px;
    font-weight: 750;
}

.conversation-product {
    margin: 3px 0;
    color: #555;
    font-size: 13px;
    font-weight: 800;
}

.conversation-snippet {
    margin: 0;
    color: #777;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-messages {
    padding: 34px;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    text-align: center;
    background: #ffffff;
}

/* =========================
   Conversation Detail
========================= */

.conversation-page {
    max-width: 1100px;
    margin: 34px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.conversation-side-card {
    position: sticky;
    top: 90px;
}

.conversation-product-card {
    display: grid;
    gap: 10px;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    text-decoration: none;
    color: #111111;
}

.conversation-product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f4f4f4;
}

.conversation-product-card div {
    padding: 12px;
    display: grid;
    gap: 4px;
}

.conversation-product-card strong {
    font-size: 14px;
    font-weight: 950;
}

.conversation-product-card span {
    font-size: 14px;
    font-weight: 900;
}


.chat-bubble {
    max-width: 72%;
    padding: 10px 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eeeeee;
}

.my-chat-bubble {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.chat-bubble p {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

.chat-bubble span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    opacity: 0.72;
    font-weight: 700;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #eeeeee;
}

.chat-form textarea {
    min-height: 48px;
    max-height: 120px;
    resize: vertical;
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
}

.chat-form button {
    align-self: end;
    border: none;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 950;
    cursor: pointer;
}

.chat-form button:hover {
    background: #333333;
}

.empty-chat {
    text-align: center;
    color: #777;
    font-weight: 750;
}

@media (max-width: 850px) {
    .conversation-page {
        grid-template-columns: 1fr;
    }

    .conversation-side-card {
        position: static;
    }
}

.messages-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.messages-icon {
    font-size: 20px;
    color: #111111;
    line-height: 1;
}

.message-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d90429;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar img,
.chat-header-avatar span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.chat-date-divider {
    justify-self: center;
    background: #eeeeee;
    color: #666666;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 850;
    margin: 8px 0;
}

.chat-message-row {
    display: flex;
    justify-content: flex-start;
}


.chat-message-row {
    display: flex;
    width: 100%;
}

.my-message-row {
    justify-content: flex-end;
}

.chat-message-row:not(.my-message-row) {
    justify-content: flex-start;
}

.chat-message-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 70%;
}

.my-message-stack {
    align-items: flex-end;
}

.chat-bubble {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 14px;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.25;
}

.chat-bubble p {
    display: inline;
    width: auto;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.my-chat-bubble {
    background: #2563eb;
    color: #ffffff;
    border-bottom-right-radius: 5px;
}

.their-chat-bubble {
    background: #eeeeee;
    color: #111111;
    border-bottom-left-radius: 5px;
}

.chat-time {
    margin-top: 2px;
    padding: 0 3px;
    font-size: 9px;
    color: #888888;
    font-weight: 700;
}

.chat-form textarea {
    min-height: 42px;
    height: 42px;
    max-height: 110px;
    resize: vertical;
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 14px;
    font-family: inherit;
}

.chat-panel {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
}

.chat-header {
    padding: 18px;
    border-bottom: 1px solid #eeeeee;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar img,
.chat-header-avatar span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    background: #111111;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.chat-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.chat-header p {
    margin: 4px 0 0 0;
    color: #666666;
    font-size: 13px;
    font-weight: 750;
}

.chat-messages {
    min-height: 260px;
    max-height: 560px;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
}

.chat-date-divider {
    align-self: center;
    color: #777777;
    font-size: 11px;
    font-weight: 850;
    margin: 10px 0 6px 0;
    background: transparent;
    padding: 0;
    border: none;
}

.empty-chat {
    text-align: center;
    color: #777777;
    font-weight: 750;
}

.unread-conversation-card {
    border-color: #111111;
    background: #f8fbff;
}

.unread-conversation-card:hover {
    background: #f2f7ff;
}

.conversation-name-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.conversation-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d90429;
    display: inline-block;
}

.conversation-date-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.conversation-unread-count {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d90429;
    color:white !important;
    font-size: 10px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.unread-conversation-snippet {
    color: #111111;
    font-weight: 900;
}

.message-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    position: relative;
}

.message-icon-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.message-icon-wrap:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.message-topbar-icon {
    width: 27px;
    height: 27px;
    object-fit: contain;
    display: block;
}

.message-icon-badge {
    position: absolute;
    top: 1px;
    right: 0px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e60023;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* =========================
   Likes / Favorites
========================= */

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-title-row h1 {
    margin: 0;
}

.like-form {
    margin: 0;
}


.like-btn:hover {
    background: #f7f7f7;
}

.like-btn.liked {
    color: #e60023;
    border-color: #f3b0bc;
    background: #fff4f6;
}

.like-count-text {
    margin: 6px 0 14px 0;
    color: #666666;
    font-size: 13px;
    font-weight: 750;
}

.card-like-form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 3;
}


.card-like-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.card-like-btn.liked {
    color: #e60023;
}

.likes-page {
    max-width: 1120px;
    margin: 34px auto;
    padding: 0 24px;
}

.likes-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.likes-header p {
    margin: 6px 0 20px 0;
    color: #666666;
    font-weight: 650;
}

.likes-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.likes-filter-row a {
    text-decoration: none;
    color: #111111;
    border: 1px solid #dddddd;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 900;
}

.likes-filter-row a:hover {
    background: #f5f5f5;
}

.active-like-filter {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

.liked-product-image-wrap {
    position: relative;
    display: block;
}

.sold-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(0,0,0,0.78);
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 950;
}

.sold-liked-product img {
    filter: grayscale(0.4);
    opacity: 0.7;
}

.liked-card-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.liked-card-footer span {
    color: #777777;
    font-size: 12px;
    font-weight: 800;
}

.remove-like-btn {
    border: none;
    background: transparent;
    color: #e60023;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.remove-like-btn:hover {
    text-decoration: underline;
}

.empty-likes {
    border: 1px solid #eeeeee;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
}

.empty-likes h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 950;
}

.empty-likes p {
    color: #666666;
    font-weight: 650;
}

.empty-likes a {
    display: inline-flex;
    margin-top: 12px;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    padding: 11px 18px;
    font-weight: 900;
}

.likes-nav-link {
    font-size: 24px !important;
    line-height: 1;
    text-decoration: none !important;
    color: #111111;
}

.likes-nav-link:hover {
    color: #e60023;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-title-row h1 {
    margin: 0;
}

.like-form {
    margin: 0;
}


.like-btn:hover {
    background: #f7f7f7;
}

.like-btn.liked {
    color: #e60023;
    border-color: #f3b0bc;
    background: #fff4f6;
}

.like-count-text {
    margin: 6px 0 14px 0;
    color: #666666;
    font-size: 13px;
    font-weight: 750;
}

.product-like-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.product-like-count {
    color: #666666;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.likes-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.likes-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.likes-icon-wrap:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.likes-topbar-icon {
    font-size: 25px;
    line-height: 1;
    color: #111111;
    font-weight: 900;
}


.card-like-form {
    margin: 0;
}

.card-like-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #111111;
    font-size: 23px;
    font-weight: 950;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
    z-index: 4;
}

.like-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    background: #111111;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 850;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.show-like-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.card-like-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.card-login-like-btn {
    text-decoration: none !important;
}

.show-like-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.admin-like-view {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #dddddd;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
}

.product-like-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.product-like-count {
    color: #666666;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

/* =========================
   Heart / Like Icons
========================= */

/* Shared heart image settings */
.heart-icon-img,
.likes-topbar-img {
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.admin-like-view {
    cursor: default;
    opacity: 0.8;
}

.like-btn:hover {
    background: #f7f7f7;
}

.like-btn .heart-icon-img,
.admin-like-view .heart-icon-img {
    width: 30px;
    height: 30px;
}

.product-like-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.product-like-count {
    color: #666666;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

/* =========================
   Topbar Heart
========================= */

.likes-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.likes-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background 0.18s ease, transform 0.18s ease;
}

.likes-icon-wrap:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.likes-topbar-img {
    width: 27px;
    height: 27px;
}

/* =========================
   Like Toast
========================= */


.show-like-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card-like-btn .heart-icon-img,
.card-login-like-btn .heart-icon-img {
    width: 27px !important;
    height: 27px !important;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* =========================
   FINAL Product Card Like Button
========================= */

.product-card-image-wrap {
    position: relative !important;
    overflow: hidden;
    border-radius: 10px;
}

.product-card-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Form sits bottom-right only */
.card-like-form {
    position: absolute !important;
    right: 9px !important;
    bottom: 9px !important;
    top: auto !important;
    left: auto !important;

    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;

    z-index: 20;
}

/* Button itself should NOT position top-right anymore */
.card-like-btn,
.card-login-like-btn {
    position: static !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    padding: 0 !important;
    border-radius: 999px;
    border: none;

    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    text-decoration: none !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);

    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;

    z-index: 21;
}

/* Logged-out link has no form, so it needs its own bottom-right position */
.card-login-like-btn {
    position: absolute !important;
    right: 9px !important;
    bottom: 9px !important;
    top: auto !important;
    left: auto !important;
}

/* Show only while hovering/touching the product card/image */
.product-card:hover .card-like-btn,
.product-card:hover .card-login-like-btn,
.product-card-image-wrap:hover .card-like-btn,
.product-card-image-wrap:hover .card-login-like-btn {
    opacity: 1;
    transform: translateY(0);
}

/* IMPORTANT: do not make liked buttons permanently visible */
.card-like-btn.liked {
    opacity: 0;
    transform: translateY(6px);
}

.product-card:hover .card-like-btn.liked,
.product-card-image-wrap:hover .card-like-btn.liked {
    opacity: 1;
    transform: translateY(0);
}

.card-like-btn:hover,
.card-login-like-btn:hover {
    background: #ffffff;
}

.card-heart-icon-img {
    width: 21px !important;
    height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.cart-page {
    max-width: 1120px;
    margin: 34px auto;
    padding: 0 24px;
}

.cart-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.cart-header p {
    margin: 6px 0 22px 0;
    color: #666666;
    font-weight: 650;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.cart-items-list {
    display: grid;
    gap: 14px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #ffffff;
}

.cart-item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    background: #f4f4f4;
}

.cart-item-info {
    display: grid;
    gap: 12px;
}

.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cart-item-title {
    text-decoration: none;
    color: #111111;
    font-size: 15px;
    font-weight: 950;
}

.cart-item-title:hover {
    text-decoration: underline;
}

.cart-item-meta {
    margin: 5px 0 0 0;
    color: #666666;
    font-size: 13px;
    font-weight: 750;
}

.cart-warning {
    margin: 7px 0 0 0;
    color: #b42318;
    font-size: 12px;
    font-weight: 850;
}

.remove-cart-btn {
    border: none;
    background: transparent;
    color: #c1121f;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.remove-cart-btn:hover {
    text-decoration: underline;
}

.cart-item-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-form label {
    font-size: 12px;
    color: #666666;
    font-weight: 900;
}

.cart-qty-form input {
    width: 58px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 7px;
    font-weight: 800;
}

.cart-qty-form button {
    border: none;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.cart-item-price {
    display: grid;
    text-align: right;
    gap: 4px;
}

.cart-item-price span {
    color: #777777;
    font-size: 12px;
    font-weight: 750;
}

.cart-item-price strong {
    color: #111111;
    font-size: 16px;
    font-weight: 950;
}

.cart-summary {
    position: sticky;
    top: 90px;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
}

.cart-summary h2 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 950;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 15px;
}

.cart-summary-note {
    color: #666666;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    margin: 14px 0;
}

.checkout-btn {
    width: 100%;
    border: none;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 950;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #333333;
}

.empty-cart {
    border: 1px solid #eeeeee;
    background: #ffffff;
    border-radius: 18px;
    padding: 42px;
    text-align: center;
}

.empty-cart h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 950;
}

.empty-cart p {
    color: #666666;
    font-weight: 650;
}

.empty-cart a {
    display: inline-flex;
    margin-top: 12px;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    padding: 11px 18px;
    font-weight: 900;
}

@media (max-width: 850px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

.cart-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.cart-icon-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background 0.18s ease, transform 0.18s ease;
}

.cart-icon-wrap:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.cart-topbar-img {
    width: 31px;
    height: 31px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.cart-count-badge {
    position: absolute;
    top: 1px;
    right: 0px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border-radius: 999px;
    background: #e60023;
    color: #ffffff !important;

    font-size: 10px;
    font-weight: 950;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
}

.cart-fixed-qty {
    color: #666666;
    font-size: 13px;
    font-weight: 900;
}

.cart-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.cart-icon-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background 0.18s ease, transform 0.18s ease;
}

.cart-icon-wrap:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

.cart-topbar-img {
    width: 27px !important;
    height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.cart-count-badge {
    position: absolute;
    top: 1px;
    right: 0;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border-radius: 999px;
    background: #e60023;
    color: #ffffff !important;

    font-size: 10px;
    font-weight: 950;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
}

.shop-in-messages {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 14px;

    border: 1px solid #dddddd;
    border-radius: 999px;

    background: #ffffff;
    color: #111111 !important;

    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    text-transform: none !important;

    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.shop-in-messages:hover {
    background: #f1f1f1;
    border-color: #cfcfcf;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.shop-in-messages:active {
    transform: translateY(0);
}

.search-results-header {
    max-width: 1120px;
    margin: 22px auto 10px auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.search-results-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
}

.search-results-header a {
    color: #111111;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid #dddddd;
    border-radius: 999px;
    padding: 7px 12px;
}

.search-results-header a:hover {
    background: #f3f3f3;
}

.searchbar {
    position: relative;
    margin-left: 40px;

}

.searchbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.searchbar-inner input {
    width: 100%;
}

.search-suggestions-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);

    overflow: hidden;
    z-index: 9999;
}

.show-search-suggestions {
    display: grid;
}

.search-suggestion-item {
    padding: 12px 14px;
    color: #111111;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
    border-bottom: 1px solid #f2f2f2;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #f7f7f7;
}

.searchbar-inner button {
    margin-left: 12px;
}

.profile-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    padding: 0 16px;

    border-radius: 8px;
    border: 1px solid #111111;

    background: #111111;
    color: #ffffff !important;

    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;

    transition: background 0.18s ease, transform 0.18s ease;
}

.profile-support-link:hover {
    background: #333333;
    transform: translateY(-1px);
    text-decoration: none !important;
}

body.shop-page {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.shop-page .topbar {
    flex-shrink: 0;
    height: 72px;
}

body.shop-page .page-shell {
    flex: 1;
    display: flex;
    overflow: hidden;
}

body.shop-page .sidebar {
    flex-shrink: 0;
    width: 210px;
    overflow-y: auto;
    height: 100%;
}

@media (max-width: 768px) {
    body.shop-page .sidebar {
        width: 82vw;
        max-width: 320px;
        height: 100dvh;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 7000;
        background: #ffffff;
        padding: 22px 18px;
        flex-direction: column;
        gap: 0;
    }

    body.shop-page .sidebar.mobile-open {
        transform: translateX(0);
    }
}

body.shop-page .shop-body {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    min-width: 0;
}

body.regular-page {
    margin: 0;
}

body.regular-page .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

body.regular-page .page-content {
    flex: 1;
    overflow-y: auto;
}

/* =========================
   Admin Hub
========================= */

.admin-hub-page {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 24px 48px 24px;
}

.admin-hub-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-eyebrow {
    margin: 0 0 6px 0;
    color: #777777;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-hub-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.admin-hub-header p {
    margin: 8px 0 0 0;
    color: #666666;
    font-size: 14px;
    font-weight: 650;
    max-width: 620px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.admin-stat-card {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
}

.admin-stat-card span {
    display: block;
    color: #777777;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #111111;
    font-size: 30px;
    font-weight: 950;
}

.admin-stat-card p {
    margin: 6px 0 0 0;
    color: #777777;
    font-size: 12px;
    font-weight: 650;
}

.admin-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-control-card {
    min-height: 170px;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    background: #ffffff;
    padding: 20px;
    color: #111111;
    text-decoration: none !important;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-control-card:hover {
    transform: translateY(-3px);
    border-color: #d7d7d7;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.admin-control-card h2 {
    margin: 0 0 8px 0;
    font-size: 19px;
    font-weight: 950;
}

.admin-control-card p {
    margin: 0;
    color: #666666;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.admin-control-card span {
    margin-top: 18px;
    color: #111111;
    font-size: 13px;
    font-weight: 950;
}

.disabled-admin-card {
    opacity: 0.55;
    cursor: not-allowed;
}

.disabled-admin-card:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 900px) {
    .admin-stat-grid,
    .admin-control-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-hub-header {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .admin-stat-grid,
    .admin-control-grid {
        grid-template-columns: 1fr;
    }
}

.admin-topbar-link {
    font-size: 13px;
    font-weight: 900;
    color: #111111;
    text-decoration: none !important;
}

.admin-topbar-link:hover {
    color: #555555;
}

/* =========================
   FINAL Topbar Notifications Override
========================= */

.topbar-notification-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    z-index: 99999 !important;
}

.topbar-notification-btn {
    position: relative !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;

    border-radius: 999px !important;
    border: none !important;
    padding: 0 !important;

    background: transparent !important;
    color: #111111 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer !important;
    text-decoration: none !important;

    transition: background 0.18s ease, transform 0.18s ease !important;
    z-index: 99999 !important;
}

.topbar-notification-btn:hover {
    background: #f1f1f1 !important;
    transform: translateY(-1px) !important;
}

.notification-bell {
    font-size: 20px !important;
    line-height: 1 !important;
    color: #111111 !important;
    pointer-events: none !important;
}

.topbar-notification-badge {
    position: absolute !important;
    top: 1px !important;
    right: 0 !important;

    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;

    border-radius: 999px !important;
    background: #e60023 !important;
    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 950 !important;
    line-height: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 2px solid #ffffff !important;
    pointer-events: none !important;
    z-index: 100000 !important;
}

.topbar-notification-menu {
    display: none !important;

    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;

    width: 310px !important;
    max-width: 90vw !important;

    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 16px !important;

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14) !important;

    overflow: hidden !important;
    z-index: 100000 !important;
}

.topbar-notification-menu.show-notification-menu {
    display: block !important;
}

.notification-menu-header {
    padding: 14px 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    background: #ffffff !important;
}

.notification-menu-header strong {
    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.notification-menu-header span {
    color: #777777 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.notification-menu-item {
    padding: 13px 15px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    color: #111111 !important;
    background: #ffffff !important;
    text-decoration: none !important;

    border-bottom: 1px solid #f5f5f5 !important;

    transition: background 0.18s ease !important;
}

.notification-menu-item:last-child {
    border-bottom: none !important;
}

.notification-menu-item:hover {
    background: #f7f7f7 !important;
    text-decoration: none !important;
}

.notification-menu-item div {
    display: grid !important;
    gap: 3px !important;
}

.notification-menu-item strong {
    color: #111111 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.notification-menu-item span {
    color: #777777 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.notification-item-badge {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;

    border-radius: 999px !important;
    background: #e60023 !important;
    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 950 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =========================
   Notifications Page
========================= */

.notifications-page {
    max-width: 880px;
    margin: 34px auto;
    padding: 0 24px 48px 24px;
}

.notifications-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.notifications-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.notifications-header p {
    margin: 7px 0 0 0;
    color: #666666;
    font-size: 14px;
    font-weight: 650;
}

.mark-all-read-btn {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111111;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.mark-all-read-btn:hover {
    background: #f4f4f4;
}

.notifications-list {
    display: grid;
    gap: 10px;
}

.notification-card {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;

    padding: 16px;
    border: 1px solid #eeeeee;
    border-radius: 16px;

    background: #ffffff;
    color: #111111;
    text-decoration: none !important;

    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.notification-card:hover {
    background: #f9f9f9;
    border-color: #dddddd;
    transform: translateY(-1px);
}

.unread-notification {
    border-color: #ffd6dd;
    background: #fff7f8;
}

.notification-dot-wrap {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.notification-unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #e60023;
}

.notification-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.notification-title-row h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 950;
}

.notification-title-row span {
    color: #888888;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.notification-content p {
    margin: 6px 0 10px 0;
    color: #555555;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.notification-type-pill {
    display: inline-flex;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.empty-notifications {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #ffffff;
    padding: 42px;
    text-align: center;
}

.empty-notifications h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 950;
}

.empty-notifications p {
    color: #666666;
    font-weight: 650;
}

.empty-notifications a {
    display: inline-flex;
    margin-top: 12px;
    background: #111111;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    padding: 10px 16px;
    font-weight: 900;
}

/* =========================
   Sidebar Dashboard Dropdown
========================= */

.sidebar-dashboard-section {
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.sidebar-notification-dropdown {
    width: 100%;
}

.sidebar-notification-summary {
    list-style: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 10px 10px;
    border-radius: 8px;

    color: #111111;
    background: #ffffff;

    font-size: 14px;
    font-weight: 900;

    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-notification-summary::-webkit-details-marker {
    display: none;
}

.sidebar-notification-summary:hover {
    background: #f3f3f3;
    transform: translateX(3px);
}

.sidebar-notification-menu {
    display: grid;
    gap: 4px;
    padding: 8px 0 0 8px;
}

.sidebar-sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 8px 10px;
    border-radius: 8px;

    color: #111111;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 800;

    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-sub-link:hover {
    background: #f5f5f5;
    transform: translateX(3px);
    text-decoration: none !important;
}

.sidebar-red-badge,
.sidebar-small-red-badge {
    border-radius: 999px;
    background: #e60023;
    color: #ffffff !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
    font-weight: 950;
}

.sidebar-red-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
}

.sidebar-small-red-badge {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
}

/* =========================
   Notification Dashboard Cards
========================= */

.notification-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.notification-dashboard-card {
    position: relative;

    min-height: 130px;
    padding: 18px;

    border: 1px solid #eeeeee;
    border-radius: 18px;

    background: #ffffff;
    color: #111111;
    text-decoration: none !important;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.notification-dashboard-card:hover {
    background: #f9f9f9;
    border-color: #dddddd;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.passive-notification-card {
    cursor: default;
}

.notification-card-label {
    display: block;
    color: #777777;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.notification-dashboard-card strong {
    display: block;
    margin-top: 8px;
    color: #111111;
    font-size: 30px;
    font-weight: 950;
}

.notification-dashboard-card p {
    margin: 6px 0 0 0;
    color: #666666;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.notification-card-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;

    border-radius: 999px;
    background: #e60023;
    color: #ffffff !important;

    font-size: 11px;
    font-weight: 950;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-feed-section {
    margin-top: 8px;
}

.notification-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 12px;
}

.notification-feed-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
}

.notification-feed-header span {
    color: #777777;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .notification-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .notification-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FINAL Sidebar Dashboard / Activity Override
========================= */

.sidebar-dashboard-section {
    padding-top: 18px !important;
    border-top: 1px solid #eeeeee !important;
}

.sidebar-notification-dropdown {
    width: 100% !important;
}

.sidebar-notification-summary {
    list-style: none !important;
    cursor: pointer !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    padding: 10px 10px !important;
    border-radius: 8px !important;
    border: none !important;

    color: #111111 !important;
    background: #ffffff !important;

    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;

    transition: background 0.18s ease, transform 0.18s ease !important;
}

.sidebar-notification-summary::-webkit-details-marker {
    display: none !important;
}

.sidebar-notification-summary:hover {
    background: #f3f3f3 !important;
    transform: translateX(3px) !important;
    text-decoration: none !important;
}

.sidebar-red-dot {
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;

    border-radius: 999px !important;
    background: #e60023 !important;

    display: inline-flex !important;
    flex-shrink: 0 !important;
}

.sidebar-notification-menu {
    display: grid !important;
    gap: 4px !important;
    padding: 8px 0 0 8px !important;
}

.sidebar-sub-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: none !important;

    color: #111111 !important;
    background: transparent !important;
    text-decoration: none !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    transition: background 0.18s ease, transform 0.18s ease !important;
}

.sidebar-sub-link:hover {
    background: #f5f5f5 !important;
    transform: translateX(3px) !important;
    text-decoration: none !important;
}

.sidebar-small-red-badge {
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 5px !important;

    border-radius: 999px !important;
    background: #e60023 !important;
    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 950 !important;
    line-height: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sidebar-neutral-badge {
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 5px !important;

    border-radius: 999px !important;
    background: #111111 !important;
    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 950 !important;
    line-height: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sidebar-muted-count {
    color: #aaaaaa !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

/* =========================
   Admin Hub Expanded Sections
========================= */

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 16px;

    border: 1px solid #dddddd;
    border-radius: 8px;

    background: #ffffff;
    color: #111111;

    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;

    transition: background 0.18s ease, transform 0.18s ease;
}

.admin-secondary-btn:hover {
    background: #f4f4f4;
    transform: translateY(-1px);
}

.admin-section-block {
    margin-top: 34px;
}

.admin-section-title {
    margin-bottom: 14px;
}

.admin-section-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.admin-section-title p {
    margin: 6px 0 0 0;
    color: #666666;
    font-size: 14px;
    font-weight: 650;
}

.admin-control-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 950;
}

.admin-control-card h2 {
    margin: 0 0 8px 0;
}

/* =========================
   Admin Products Controls
========================= */

.admin-product-topbar-nav {
    gap: 10px;
}

.admin-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 12px;

    border-radius: 999px;
    border: 1px solid #eeeeee;

    background: #ffffff;
    color: #111111 !important;

    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;

    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.admin-nav-pill:hover {
    background: #f4f4f4;
    border-color: #dddddd;
    transform: translateY(-1px);
}

.danger-nav-pill {
    color: #c1121f !important;
}

.admin-product-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 18px 0;

    padding: 5px;
    border: 1px solid #eeeeee;
    border-radius: 999px;

    background: #ffffff;
}

.admin-product-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 34px;
    padding: 0 13px;

    border-radius: 999px;

    color: #111111;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 900;

    transition: background 0.18s ease, color 0.18s ease;
}

.admin-product-tab span {
    color: #777777;
    font-size: 12px;
    font-weight: 850;
}

.admin-product-tab:hover {
    background: #f3f3f3;
}

.active-admin-tab {
    background: #111111;
    color: #ffffff !important;
}

.active-admin-tab span {
    color: #ffffff;
}

.admin-bulk-bar {
    margin-bottom: 14px;
    padding: 12px 14px;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-bulk-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #111111;
    font-size: 13px;
    font-weight: 900;
}

.admin-select-all-label input,
.product-row-checkbox,
#selectAllProductsHeader {
    width: 15px;
    height: 15px;
    accent-color: #111111;
    cursor: pointer;
}

.selected-products-count {
    color: #777777;
    font-size: 12px;
    font-weight: 850;
}

.admin-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bulk-action-btn {
    border: 1px solid #dddddd;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    padding: 8px 12px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;

    transition: background 0.18s ease, transform 0.18s ease;
}

.bulk-action-btn:hover {
    background: #f4f4f4;
    transform: translateY(-1px);
}

.danger-bulk-btn {
    border-color: #f3c7cd;
    color: #c1121f;
}

.danger-bulk-btn:hover {
    background: #fff1f3;
}

.inactive-product-row {
    background: #fafafa;
    opacity: 0.72;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    padding: 5px 9px;

    font-size: 11px;
    font-weight: 950;
}

.active-status-pill {
    background: #eaf7ee;
    color: #1f7a3a;
}

.inactive-status-pill {
    background: #eeeeee;
    color: #666666;
}

.inline-admin-form {
    display: inline;
    margin: 0;
}

.admin-mini-btn {
    border: none;
    background: transparent;
    color: #111111;

    padding: 0;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;
}

.admin-mini-btn:hover {
    text-decoration: underline;
}

.danger-mini-btn {
    color: #c1121f;
}

.admin-thumb-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #777777;
    font-size: 11px;
    font-weight: 800;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-card-no-image {
    width: 100%;
    height: 240px;

    border-radius: 10px;
    background: #f2f2f2;
    color: #777777;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

/* =========================
   Admin Modal / Toast / Drafts / Reorder
========================= */

.admin-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    align-items: center;
    justify-content: center;

    z-index: 99999;
}

.admin-modal-backdrop.show-admin-modal {
    display: flex;
}

.admin-confirm-modal {
    width: 360px;
    max-width: calc(100vw - 32px);

    background: #ffffff;
    border-radius: 18px;
    padding: 22px;

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.admin-confirm-modal h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.admin-confirm-modal p {
    margin: 8px 0 18px 0;
    color: #666666;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.admin-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.admin-modal-cancel,
.admin-modal-delete {
    border: none;
    border-radius: 999px;
    padding: 10px 15px;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
}

.admin-modal-cancel {
    background: #f1f1f1;
    color: #111111;
}

.admin-modal-delete {
    background: #e60023;
    color: #ffffff;
}

.admin-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;

    transform: translateX(-50%) translateY(12px);

    background: #111111;
    color: #ffffff;

    padding: 12px 16px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 900;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.18s ease, transform 0.18s ease;

    z-index: 100000;
}

.admin-toast.show-admin-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.draft-status-pill {
    background: #fff4d6;
    color: #8a5a00;
}

.draft-product-row {
    background: #fffaf0;
}

.admin-order-input {
    width: 62px;
    height: 30px;

    border: 1px solid #dddddd;
    border-radius: 8px;

    padding: 0 8px;

    font-size: 13px;
    font-weight: 800;
}

.admin-order-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-order-btn {
    width: 28px;
    height: 28px;

    border: 1px solid #dddddd;
    border-radius: 8px;

    background: #ffffff;
    color: #111111;

    font-size: 14px;
    font-weight: 950;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background 0.18s ease, transform 0.18s ease;
}

.admin-order-btn:hover {
    background: #f4f4f4;
    transform: translateY(-1px);
}

.admin-order-input {
    width: 52px;
    height: 28px;

    border: 1px solid #dddddd;
    border-radius: 8px;

    padding: 0 6px;

    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

/* =========================
   Selectable Cart Items
========================= */

.cart-select-bar {
    margin-bottom: 14px;
    padding: 12px 14px;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #111111;
    font-size: 13px;
    font-weight: 900;
}

.cart-select-all-label input,
.cart-item-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #111111;
    cursor: pointer;
}

.cart-selected-count {
    color: #777777;
    font-size: 12px;
    font-weight: 850;
}

.remove-selected-cart-btn {
    border: 1px solid #f3c7cd;
    border-radius: 999px;

    background: #ffffff;
    color: #c1121f;

    padding: 8px 12px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;

    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.remove-selected-cart-btn:hover {
    background: #fff1f3;
    transform: translateY(-1px);
}

.remove-selected-cart-btn:disabled,
.checkout-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.selectable-cart-card {
    display: grid;
    grid-template-columns: 28px 120px 1fr;
    gap: 16px;

    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.selected-cart-card {
    border-color: #111111;
    background: #fafafa;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.cart-item-select-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.cart-no-image {
    width: 100%;
    height: 100%;

    min-height: 110px;

    border-radius: 12px;
    background: #f2f2f2;
    color: #777777;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 900;
}

/* =========================
   Cart Toast
========================= */

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;

    transform: translateX(-50%) translateY(12px);

    background: #111111;
    color: #ffffff;

    padding: 12px 16px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 900;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.18s ease, transform 0.18s ease;

    z-index: 100000;
}

.cart-toast.show-cart-toast {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.added-to-cart-btn {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

.added-to-cart-btn:hover {
    background: #333333 !important;
}

/* =========================
   Likes Page Actions
========================= */

.likes-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.remove-all-likes-btn {
    border: 1px solid #f3c7cd;
    border-radius: 999px;

    background: #ffffff;
    color: #c1121f;

    padding: 9px 14px;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    transition: background 0.18s ease, transform 0.18s ease;
}

.remove-all-likes-btn:hover {
    background: #fff1f3;
    transform: translateY(-1px);
}

/* =========================
   Likes Page Controls
========================= */

.likes-toolbar {
    display: grid;
    gap: 16px;
}

.likes-select-bar {
    margin-bottom: 18px;
    padding: 10px 12px;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.likes-select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #111111;
    font-size: 13px;
    font-weight: 900;
}

.likes-select-all-label input,
.liked-item-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #111111;
    cursor: pointer;
}

.likes-selected-count {
    color: #777777;
    font-size: 12px;
    font-weight: 850;
}

.likes-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.remove-selected-likes-btn,
.remove-all-likes-btn {
    border: 1px solid #f3c7cd;
    border-radius: 999px;

    background: #ffffff;
    color: #c1121f;

    padding: 8px 12px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;

    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.remove-selected-likes-btn:hover,
.remove-all-likes-btn:hover {
    background: #fff1f3;
    transform: translateY(-1px);
}

.remove-selected-likes-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.selectable-liked-card {
    position: relative;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.selected-liked-card {
    border-color: #111111;
    background: #fafafa;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* lighter selector bubble */
.liked-item-select-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 8;
}

.liked-no-image {
    width: 100%;
    min-height: 220px;

    border-radius: 12px;
    background: #f2f2f2;
    color: #777777;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 900;
}

/* =========================
   Checkout Result Pages
========================= */

.checkout-result-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #ffffff;
}

.checkout-result-card {
    max-width: 460px;
    width: 100%;

    border: 1px solid #eeeeee;
    border-radius: 22px;

    padding: 34px;
    text-align: center;

    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.checkout-result-card h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.checkout-result-card p {
    margin: 12px 0 22px 0;
    color: #666666;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.checkout-result-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    font-size: 14px;
    font-weight: 950;
    text-decoration: none !important;
}

.checkout-result-card a:hover {
    background: #333333;
}

/* =========================
   Admin Orders
========================= */

.admin-order-filter-row {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-order-filter-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;
    border: 1px solid #eeeeee;
    border-radius: 999px;

    color: #111111;
    background: #ffffff;

    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;

    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-order-filter-row a:hover {
    background: #f8f8f8;
    border-color: #dddddd;
    transform: translateY(-1px);
}

.admin-order-filter-row a span {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;

    background: #f1f1f1;
    color: #555555;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 950;
}

.admin-order-filter-row .active-order-filter {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.admin-order-filter-row .active-order-filter span {
    background: #ffffff;
    color: #111111;
}

.admin-order-buyer {
    display: grid;
    gap: 2px;
}

.admin-order-buyer span,
.muted-admin-text {
    color: #888888;
    font-size: 12px;
    font-weight: 700;
}

.order-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 950;
    text-transform: capitalize;
}

.payment-pill-paid,
.order-pill-paid,
.order-pill-processing,
.order-pill-shipped,
.order-pill-delivered {
    background: #ecfdf3;
    color: #087443;
}

.payment-pill-unpaid,
.order-pill-pending {
    background: #fff7e6;
    color: #9a5b00;
}

.payment-pill-failed,
.order-pill-failed,
.order-pill-cancelled,
.order-pill-refunded {
    background: #fff1f3;
    color: #c1121f;
}

/* Detail page */

.admin-order-detail-page {
    padding: 30px;
    background: #ffffff;
}

.admin-order-detail-header {
    margin-bottom: 24px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-order-detail-header h1 {
    margin: 4px 0;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.admin-order-detail-header p {
    margin: 0;
    color: #777777;
    font-size: 14px;
    font-weight: 700;
}

.admin-order-status-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-order-panel {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.admin-order-panel h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -0.02em;
}

.admin-order-panel p {
    margin: 6px 0;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.admin-order-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.admin-order-form label {
    color: #777777;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-order-form input,
.admin-order-form select {
    width: 100%;
    min-height: 40px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    padding: 0 12px;

    font-size: 13px;
    font-weight: 750;
    outline: none;
}

.admin-order-form button {
    min-height: 40px;
    border: none;
    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    font-size: 13px;
    font-weight: 950;

    cursor: pointer;
}

.admin-order-form button:hover {
    background: #333333;
}

.tracking-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.order-items-panel {
    margin-top: 16px;
}

.admin-order-items-list {
    display: grid;
    gap: 12px;
}

.admin-order-item-row {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 14px;
    align-items: center;

    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
}

.admin-order-item-image {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777777;
    font-size: 11px;
    font-weight: 900;
}

.admin-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-order-item-info strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
}

.admin-order-item-info p {
    margin: 4px 0 0 0;
    color: #777777;
    font-size: 12px;
    font-weight: 700;
}

.admin-order-item-price {
    text-align: right;
    display: grid;
    gap: 4px;
}

.admin-order-item-price span {
    color: #777777;
    font-size: 12px;
    font-weight: 800;
}

.admin-order-item-price strong {
    font-size: 15px;
    font-weight: 1000;
}

.admin-order-total-box {
    margin-top: 16px;
    margin-left: auto;

    max-width: 320px;
    display: grid;
    gap: 8px;
}

.admin-order-total-box div {
    display: flex;
    justify-content: space-between;
    gap: 16px;

    color: #555555;
    font-size: 13px;
    font-weight: 800;
}

.admin-order-total-final {
    padding-top: 10px;
    border-top: 1px solid #eeeeee;

    color: #111111 !important;
    font-size: 16px !important;
    font-weight: 1000 !important;
}

@media (max-width: 850px) {
    .admin-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-detail-header {
        flex-direction: column;
    }

    .admin-order-item-row {
        grid-template-columns: 64px 1fr;
    }

    .admin-order-item-price {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* =========================
   Customer Orders
========================= */

.customer-orders-page,
.customer-order-detail-page {
    padding: 30px;
    background: #ffffff;
}

.customer-orders-header {
    margin-bottom: 22px;
}

.customer-orders-header h1,
.customer-order-detail-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -0.04em;
}

.customer-orders-header p,
.customer-order-detail-header p {
    margin: 8px 0 0 0;
    color: #777777;
    font-size: 14px;
    font-weight: 700;
}

.customer-orders-list {
    display: grid;
    gap: 12px;
}

.customer-order-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;

    padding: 18px;
    border: 1px solid #eeeeee;
    border-radius: 18px;

    background: #ffffff;
    color: #111111;
    text-decoration: none !important;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);

    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.customer-order-card:hover {
    transform: translateY(-2px);
    border-color: #dddddd;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.customer-order-id {
    color: #777777;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.customer-order-card h2 {
    margin: 5px 0;
    font-size: 24px;
    font-weight: 1000;
}

.customer-order-card p {
    margin: 0;
    color: #777777;
    font-size: 13px;
    font-weight: 700;
}

.customer-order-status-area {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-order-view {
    font-size: 13px;
    font-weight: 950;
}

.empty-orders {
    max-width: 420px;
    padding: 30px;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    text-align: center;
}

.empty-orders h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 1000;
}

.empty-orders p {
    color: #777777;
    font-size: 14px;
    font-weight: 700;
}

.empty-orders a,
.tracking-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 16px;

    border-radius: 999px;
    background: #111111;
    color: #ffffff;

    font-size: 13px;
    font-weight: 950;
    text-decoration: none !important;
}

.customer-order-detail-header {
    margin-bottom: 22px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.customer-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.customer-order-panel {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.customer-order-panel h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: -0.02em;
}

.customer-order-panel p {
    margin: 6px 0;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.cancel-request-panel {
    border-color: #f2d2d7;
}

.cancel-request-form {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.cancel-request-form label {
    color: #777777;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cancel-request-form textarea {
    width: 100%;
    resize: vertical;

    border: 1px solid #dddddd;
    border-radius: 14px;

    padding: 12px;

    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.cancel-request-form button {
    width: fit-content;

    border: none;
    border-radius: 999px;

    background: #c1121f;
    color: #ffffff;

    padding: 10px 16px;

    font-size: 13px;
    font-weight: 950;

    cursor: pointer;
}

.cancel-request-form button:hover {
    background: #9f0e1a;
}

@media (max-width: 850px) {
    .customer-order-card {
        grid-template-columns: 1fr;
    }

    .customer-order-status-area {
        justify-content: flex-start;
    }

    .customer-order-detail-header {
        flex-direction: column;
    }

    .customer-order-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Customer Order Detail - Sharper
========================= */

.customer-order-detail-page {
    padding: 28px 34px;
    background: #fafafa;
    min-height: calc(100vh - 72px);
}

.customer-order-detail-header {
    margin-bottom: 20px;
    padding: 20px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    border: 1px solid #eeeeee;
    border-radius: 22px;
    background: #ffffff;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.customer-order-detail-header h1 {
    margin: 4px 0 2px 0;
    font-size: 32px;
    font-weight: 1000;
    letter-spacing: -0.045em;
}

.customer-order-detail-header p {
    margin: 0;
    color: #777777;
    font-size: 13px;
    font-weight: 750;
}

.customer-order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.customer-order-panel {
    border: 1px solid #eeeeee;
    border-radius: 20px;
    background: #ffffff;

    padding: 18px;
    margin-bottom: 14px;

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.035);
}

.customer-order-panel h2 {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 1000;
    letter-spacing: -0.025em;
}

.customer-order-panel p {
    margin: 5px 0;
    color: #3f3f3f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
}

.admin-order-status-stack {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

/* Smaller, sharper status pills */
.customer-order-detail-page .order-pill {
    min-height: 22px;
    padding: 4px 8px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 0.015em;
    text-transform: capitalize;
}

/* Item rows tighter */
.customer-order-detail-page .admin-order-items-list {
    display: grid;
    gap: 10px;
}

.customer-order-detail-page .admin-order-item-row {
    display: grid;
    grid-template-columns: 66px 1fr auto;
    gap: 12px;
    align-items: center;

    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;

    background: #ffffff;
}

.customer-order-detail-page .admin-order-item-image {
    width: 66px;
    height: 66px;
    border-radius: 13px;
}

.customer-order-detail-page .admin-order-item-info strong {
    font-size: 13px;
    font-weight: 1000;
}

.customer-order-detail-page .admin-order-item-info p {
    margin-top: 3px;
    color: #777777;
    font-size: 12px;
    font-weight: 750;
}

.customer-order-detail-page .admin-order-item-price span {
    font-size: 11px;
    font-weight: 850;
}

.customer-order-detail-page .admin-order-item-price strong {
    font-size: 14px;
    font-weight: 1000;
}

/* Totals */
.customer-order-detail-page .admin-order-total-box {
    margin-top: 14px;
    margin-left: auto;
    max-width: 300px;
    display: grid;
    gap: 7px;
}

.customer-order-detail-page .admin-order-total-box div {
    display: flex;
    justify-content: space-between;
    gap: 14px;

    color: #555555;
    font-size: 12px;
    font-weight: 850;
}

.customer-order-detail-page .admin-order-total-final {
    padding-top: 9px;
    border-top: 1px solid #eeeeee;

    color: #111111 !important;
    font-size: 15px !important;
    font-weight: 1000 !important;
}

/* Tracking */
.tracking-link {
    margin-top: 8px;

    min-height: 34px;
    padding: 0 13px;

    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    font-size: 12px;
    font-weight: 1000;
    text-decoration: none !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tracking-link:hover {
    background: #333333;
}

/* Cancellation panel */
.cancel-request-panel {
    border-color: #f1d1d6;
    background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}

.cancel-request-active-panel {
    border-color: #f2d18a;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.customer-panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.customer-panel-title-row h2 {
    margin-bottom: 5px;
}

.customer-panel-title-row p {
    max-width: 620px;
    color: #666666;
}

.cancel-request-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.cancel-request-form label {
    color: #777777;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.cancel-request-form textarea {
    width: 100%;
    min-height: 82px;
    resize: vertical;

    border: 1px solid #dddddd;
    border-radius: 15px;

    padding: 11px 12px;

    font-size: 13px;
    font-weight: 700;
    outline: none;

    background: #ffffff;
}

.cancel-request-form textarea:focus {
    border-color: #111111;
}

.cancel-request-form button,
.keep-order-btn {
    width: fit-content;
    min-height: 34px;

    border: none;
    border-radius: 999px;

    padding: 0 14px;

    font-size: 12px;
    font-weight: 1000;

    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cancel-request-form button {
    background: #c1121f;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(193, 18, 31, 0.16);
}

.cancel-request-form button:hover {
    background: #9f0e1a;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(193, 18, 31, 0.22);
}

.keep-order-btn {
    background: #111111;
    color: #ffffff;
    white-space: nowrap;
}

.keep-order-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

@media (max-width: 850px) {
    .customer-order-detail-page {
        padding: 20px;
    }

    .customer-order-detail-header {
        flex-direction: column;
    }

    .admin-order-status-stack {
        justify-content: flex-start;
    }

    .customer-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .customer-order-detail-page .admin-order-item-row {
        grid-template-columns: 58px 1fr;
    }

    .customer-order-detail-page .admin-order-item-price {
        grid-column: 1 / -1;
        text-align: left;
    }

    .customer-panel-title-row {
        flex-direction: column;
    }
}

/* =========================
   Product Detail Offers
========================= */

.make-offer-form {
    width: 100%;
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.offer-price-input {
    width: 100%;
    min-height: 42px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    padding: 0 12px;

    font-size: 14px;
    font-weight: 800;

    outline: none;
}

.offer-price-input:focus {
    border-color: #111111;
}

/*make offer, add to cart, message seller*/
.make-offer-btn {
    padding: 13px 16px;
    border: 1px solid #111;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    background: #111;
    color: #fff;
    flex: 0 0 auto;
    width: fit-content;
}

.make-offer-btn:hover {
    background: #2a2a2a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}


.buy-btn {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid #111;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    background: #111;
    color: #fff;
    width: fit-content;
}

.buy-btn:hover {
    background: #2a2a2a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.message-btn {
    flex: 1 !important;
    padding: 13px 16px !important;
    border: 1px solid #111 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    background: #111 !important;
    color: #fff !important;
    width: fit-content !important;
}

.message-btn:hover {
    background: #2a2a2a !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

.offer-rule-text {
    margin: 0;
    color: #777777;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.offer-login-link {
    margin-top: 8px;
}

/* =========================
   Offer Modal
========================= */

.offer-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.42);

    align-items: center;
    justify-content: center;

    z-index: 100000;
}

.offer-modal-backdrop.show-offer-modal {
    display: flex;
}

.offer-modal {
    position: relative;

    width: 500px;
    max-width: calc(100vw - 32px);

    background: #ffffff;
    border-radius: 0;

    padding: 22px 18px 18px 18px;

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.offer-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    border: none;
    background: transparent;

    color: #111111;

    font-size: 32px;
    line-height: 1;
    font-weight: 400;

    cursor: pointer;
}

.offer-modal h2 {
    margin: 0 0 18px 0;

    text-align: center;

    color: #111111;

    font-size: 23px;
    font-weight: 1000;
    letter-spacing: -0.03em;
}

.offer-modal-product-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;

    margin-bottom: 16px;
}

.offer-modal-image-wrap {
    width: 92px;
    height: 92px;

    background: #f2f2f2;
    overflow: hidden;
}

.offer-modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-modal-no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777777;
    font-size: 11px;
    font-weight: 900;
}

.offer-modal-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.offer-modal-product-info strong {
    color: #111111;
    font-size: 15px;
    font-weight: 1000;
}

.offer-modal-product-info span {
    color: #777777;
    font-size: 14px;
    font-weight: 750;
}

.offer-modal-product-info p {
    margin: 0;
    color: #111111;
    font-size: 15px;
    font-weight: 900;
}

.offer-input-label {
    display: block;

    margin-bottom: 6px;

    color: #777777;

    font-size: 13px;
    font-weight: 850;
}

.offer-modal-input {
    width: 100%;
    height: 48px;

    border: 1px solid #999999;
    border-radius: 0;

    padding: 0 11px;

    font-size: 16px;
    font-weight: 900;

    outline: none;
}

.offer-modal-input:focus {
    border-color: #111111;
}

.offer-suggestion-grid {
    margin-top: 16px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.offer-suggestion-card {
    min-height: 72px;

    border: 1px solid #d6d6d6;
    border-radius: 5px;

    background: #ffffff;
    color: #111111;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.offer-suggestion-card span {
    color: #111111;
    font-size: 13px;
    font-weight: 800;
}

.offer-suggestion-card strong {
    color: #111111;
    font-size: 17px;
    font-weight: 1000;
}

.offer-suggestion-card em {
    color: #187a27;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
}

.offer-suggestion-card:hover,
.selected-offer-suggestion {
    border-color: #111111;
    transform: translateY(-1px);
}

.recommended-offer-card {
    border-color: #95c98f;
    background: #f7fff6;
}

.offer-modal-submit {
    width: 100%;
    height: 48px;

    margin-top: 16px;

    border: none;
    border-radius: 0;

    background: #222222;
    color: #ffffff;

    font-size: 15px;
    font-weight: 1000;

    cursor: pointer;
}

.offer-modal-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.offer-modal-warning {
    display: none;

    margin: 12px 0 0 0;

    color: #c1121f;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

.offer-modal-warning.show-offer-warning {
    display: block;
}

.offer-modal-warning.show-offer-success {
    display: block;
    color: #187a27;
}

.offer-modal-note {
    margin: 14px 0 0 0;

    color: #666666;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

@media (max-width: 560px) {
    .offer-modal {
        width: calc(100vw - 24px);
    }

    .offer-suggestion-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   Admin Offers
========================= */

.admin-offers-page {
    min-height: calc(100vh - 72px);
    padding: 30px;
    background: #fafafa;
}

.admin-offers-header {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.admin-offers-header h1 {
    margin: 4px 0;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -0.045em;
}

.admin-offers-header p {
    margin: 0;
    color: #777777;
    font-size: 14px;
    font-weight: 700;
}

.admin-offer-filter-row {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-offer-filter-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    font-size: 12px;
    font-weight: 950;
    text-decoration: none !important;

    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.admin-offer-filter-row a:hover {
    border-color: #111111;
    transform: translateY(-1px);
}

.admin-offer-filter-row a span {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;

    border-radius: 999px;
    background: #f1f1f1;
    color: #555555;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 1000;
}

.admin-offer-filter-row .active-offer-filter {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.admin-offer-filter-row .active-offer-filter span {
    background: #ffffff;
    color: #111111;
}

.admin-offers-list {
    display: grid;
    gap: 14px;
}

.admin-offer-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;

    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 20px;

    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.035);
}

.admin-offer-image-wrap {
    width: 118px;
    height: 118px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f1f1;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777777;
    font-size: 12px;
    font-weight: 900;
}

.admin-offer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-offer-main {
    min-width: 0;
}

.admin-offer-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.admin-offer-title-row h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 1000;
    letter-spacing: -0.025em;
}

.admin-offer-title-row p {
    margin: 4px 0 0 0;
    color: #777777;
    font-size: 13px;
    font-weight: 700;
}

.offer-status-pill {
    flex-shrink: 0;

    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 1000;
    text-transform: capitalize;
}

.offer-status-pending {
    background: #fff7e6;
    color: #9a5b00;
}

.offer-status-accepted {
    background: #ecfdf3;
    color: #087443;
}

.offer-status-declined,
.offer-status-cancelled,
.offer-status-expired {
    background: #fff1f3;
    color: #c1121f;
}

.offer-status-countered {
    background: #eef4ff;
    color: #174ea6;
}

.offer-status-paid {
    background: #111111;
    color: #ffffff;
}

.admin-offer-meta-grid {
    margin-top: 13px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-offer-meta-grid div {
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    background: #fafafa;
}

.admin-offer-meta-grid span {
    display: block;
    margin-bottom: 4px;

    color: #777777;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-offer-meta-grid strong {
    color: #111111;
    font-size: 14px;
    font-weight: 1000;
}

.admin-offer-note {
    margin-top: 10px;
    padding: 10px 12px;

    border-left: 3px solid #111111;
    background: #f8f8f8;

    color: #333333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.admin-offer-time-row {
    margin-top: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    color: #888888;
    font-size: 12px;
    font-weight: 750;
}

.admin-offer-links-row {
    margin-top: 9px;
}

.admin-offer-links-row a {
    color: #111111;
    font-size: 12px;
    font-weight: 950;
    text-decoration: underline;
}

.admin-offer-actions {
    margin-top: 14px;

    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 8px;
    align-items: center;
}

.admin-offer-actions form {
    margin: 0;
}

.accept-offer-btn,
.decline-offer-btn,
.counter-offer-btn {
    min-height: 36px;
    padding: 0 14px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 1000;

    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.accept-offer-btn {
    border: none;
    background: #111111;
    color: #ffffff;
}

.accept-offer-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.decline-offer-btn {
    border: 1px solid #f1cbd0;
    background: #ffffff;
    color: #c1121f;
}

.decline-offer-btn:hover {
    background: #fff1f3;
    transform: translateY(-1px);
}

.counter-offer-form {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 8px;
}

.counter-offer-form input {
    min-height: 36px;
    border: 1px solid #dddddd;
    border-radius: 999px;

    padding: 0 12px;

    font-size: 12px;
    font-weight: 800;
    outline: none;
}

.counter-offer-form input:focus {
    border-color: #111111;
}

.counter-offer-btn {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
}

.counter-offer-btn:hover {
    background: #111111;
    color: #ffffff;
    transform: translateY(-1px);
}

.admin-offer-info-box {
    margin-top: 14px;
    padding: 10px 12px;

    border-radius: 14px;
    background: #ecfdf3;
    color: #087443;

    font-size: 13px;
    font-weight: 850;
}

.muted-offer-info-box {
    background: #f6f6f6;
    color: #666666;
}

.paid-offer-info-box {
    background: #111111;
    color: #ffffff;
}

.admin-empty-offers {
    max-width: 440px;
    padding: 30px;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
}

.admin-empty-offers h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 1000;
}

.admin-empty-offers p {
    color: #777777;
    font-size: 14px;
    font-weight: 700;
}

.admin-empty-offers a {
    margin-top: 10px;

    min-height: 40px;
    padding: 0 16px;

    border-radius: 999px;
    background: #111111;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none !important;
    font-size: 13px;
    font-weight: 950;
}

@media (max-width: 900px) {
    .admin-offer-card {
        grid-template-columns: 1fr;
    }

    .admin-offer-image-wrap {
        width: 100%;
        height: 220px;
    }

    .admin-offer-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-offer-actions {
        grid-template-columns: 1fr;
    }

    .counter-offer-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-offers-page {
        padding: 20px;
    }

    .admin-offer-title-row {
        flex-direction: column;
    }

    .admin-offer-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Customer Offers
========================= */

.customer-offers-page {
    min-height: calc(100vh - 72px);
    padding: 30px;
    background: #fafafa;
}

.customer-offers-header {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.customer-offers-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: -0.045em;
}

.customer-offers-header p {
    margin: 8px 0 0 0;
    color: #777777;
    font-size: 14px;
    font-weight: 700;
}

.customer-offer-filter-row {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.customer-offer-filter-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    font-size: 12px;
    font-weight: 950;
    text-decoration: none !important;

    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.customer-offer-filter-row a:hover {
    border-color: #111111;
    transform: translateY(-1px);
}

.customer-offer-filter-row a span {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;

    border-radius: 999px;
    background: #f1f1f1;
    color: #555555;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 1000;
}

.customer-offer-filter-row .active-customer-offer-filter {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.customer-offer-filter-row .active-customer-offer-filter span {
    background: #ffffff;
    color: #111111;
}

.customer-offers-list {
    display: grid;
    gap: 14px;
}

.customer-offer-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 15px;

    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 20px;

    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.035);
}

.customer-offer-image-wrap {
    width: 112px;
    height: 112px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f1f1;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777777;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
}

.customer-offer-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-offer-main {
    min-width: 0;
}

.customer-offer-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.customer-offer-title-row h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 1000;
    letter-spacing: -0.025em;
}

.customer-offer-title-row p {
    margin: 4px 0 0 0;
    color: #777777;
    font-size: 13px;
    font-weight: 700;
}

.customer-offer-price-grid {
    margin-top: 13px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.customer-offer-price-grid div {
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    background: #fafafa;
}

.customer-offer-price-grid span {
    display: block;
    margin-bottom: 4px;

    color: #777777;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.customer-offer-price-grid strong {
    color: #111111;
    font-size: 14px;
    font-weight: 1000;
}

.customer-offer-note {
    margin-top: 10px;
    padding: 10px 12px;

    border-left: 3px solid #111111;
    background: #f8f8f8;

    color: #333333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.customer-offer-time-row {
    margin-top: 10px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    color: #888888;
    font-size: 12px;
    font-weight: 750;
}

.customer-offer-info {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;

    font-size: 13px;
    font-weight: 850;
}

.customer-offer-pending {
    background: #fff7e6;
    color: #9a5b00;
}

.customer-offer-accepted {
    background: #ecfdf3;
    color: #087443;
}

.customer-offer-countered {
    background: #eef4ff;
    color: #174ea6;
}

.customer-offer-declined {
    background: #fff1f3;
    color: #c1121f;
}

.customer-offer-paid {
    background: #111111;
    color: #ffffff;
}

.customer-offer-pay-btn {
    margin-top: 10px;

    min-height: 38px;
    padding: 0 15px;

    border: none;
    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    font-size: 13px;
    font-weight: 950;
    cursor: not-allowed;
    opacity: 0.65;
}

.empty-customer-offers {
    max-width: 430px;
    padding: 30px;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
}

.empty-customer-offers h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 1000;
}

.empty-customer-offers p {
    color: #777777;
    font-size: 14px;
    font-weight: 700;
}

.empty-customer-offers a {
    margin-top: 10px;

    min-height: 40px;
    padding: 0 16px;

    border-radius: 999px;
    background: #111111;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none !important;
    font-size: 13px;
    font-weight: 950;
}

@media (max-width: 720px) {
    .customer-offer-card {
        grid-template-columns: 1fr;
    }

    .customer-offer-image-wrap {
        width: 100%;
        height: 220px;
    }

    .customer-offer-price-grid {
        grid-template-columns: 1fr;
    }

    .customer-offer-title-row {
        flex-direction: column;
    }
}

.customer-offer-action-row {
    margin-top: 12px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.customer-offer-action-row form {
    margin: 0;
}

.customer-offer-pay-btn,
.customer-offer-secondary-btn,
.customer-counter-form button {
    min-height: 36px;
    padding: 0 14px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 1000;

    cursor: pointer;
}

.customer-offer-pay-btn {
    border: none;
    background: #111111;
    color: #ffffff;
}

.customer-offer-pay-btn:hover {
    background: #2a2a2a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.customer-offer-secondary-btn {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111111;
}

.customer-offer-secondary-btn:hover {
    background: #f5f5f5;
}

.customer-counter-form {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 8px;
    flex: 1;
    min-width: 340px;
}

.customer-counter-form input {
    min-height: 36px;

    border: 1px solid #dddddd;
    border-radius: 999px;

    padding: 0 12px;

    font-size: 12px;
    font-weight: 800;

    outline: none;
}

.customer-counter-form input:focus {
    border-color: #111111;
}

.customer-counter-form button {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
}

.customer-counter-form button:hover {
    background: #111111;
    color: #ffffff;
}

@media (max-width: 720px) {
    .customer-counter-form {
        grid-template-columns: 1fr;
        min-width: 100%;
    }

    .customer-offer-action-row {
        align-items: stretch;
    }

    .customer-offer-action-row form,
    .customer-offer-pay-btn,
    .customer-offer-secondary-btn {
        width: 100%;
    }
}

/* =========================
   Signup Security UI
========================= */

.username-field-wrap,
.password-field-wrap {
    width: 100%;
    display: grid;
    gap: 7px;
}

.username-status-text {
    margin: -2px 0 0 0;
    min-height: 16px;

    font-size: 12px;
    font-weight: 850;
}

.username-status-good {
    color: #087443;
}

.username-status-bad {
    color: #c1121f;
}

.username-suggestions-wrap {
    display: grid;
    gap: 7px;
}

.username-suggestions-wrap span {
    color: #777777;
    font-size: 12px;
    font-weight: 850;
}

.username-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.username-suggestion-btn {
    border: 1px solid #dddddd;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    padding: 7px 10px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;
}

.username-suggestion-btn:hover {
    border-color: #111111;
    background: #f8f8f8;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 2px;
}

.password-label-row span {
    color: #777777;
    font-size: 12px;
    font-weight: 900;
}

.password-label-row strong {
    font-size: 12px;
    font-weight: 1000;
}

.password-label-weak {
    color: #c1121f;
}

.password-label-acceptable {
    color: #9a5b00;
}

.password-label-strong {
    color: #087443;
}

.password-strength-bars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;

    margin-top: 2px;
}

.password-bar {
    height: 6px;
    border-radius: 999px;
    background: #e5e5e5;
}

.weak-password-bar {
    background: #c1121f;
}

.acceptable-password-bar {
    background: #087443;
}

.strong-password-bar {
    background: #087443;
}

.password-help-text {
    margin: 0;
    color: #777777;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.generate-password-btn {
    width: fit-content;

    border: 1px solid #dddddd;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    padding: 8px 11px;

    font-size: 12px;
    font-weight: 950;

    cursor: pointer;
}

.generate-password-btn:hover {
    border-color: #111111;
    background: #f7f7f7;
}

.username-suggestions-wrap {
    display: grid;
    gap: 7px;

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transform: translateY(-4px);

    transition:
        max-height 0.22s ease,
        opacity 0.18s ease,
        transform 0.18s ease;
}

.username-suggestions-wrap.show-username-suggestions {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

.username-suggestions-wrap span {
    color: #777777;
    font-size: 12px;
    font-weight: 850;
}

.username-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.username-suggestion-btn {
    border: 1px solid #dddddd;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    padding: 7px 10px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;

    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.username-suggestion-btn:hover {
    border-color: #111111;
    background: #f8f8f8;
    transform: translateY(-1px);
}

/* =========================
   Auth Page Polish
========================= */

.auth-card {
    border-radius: 24px;
    overflow: hidden;
}

.auth-card input {
    border-radius: 14px;
}

.auth-card form button[type="submit"] {
    border-radius: 14px;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-card form button[type="submit"]:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}


/* =========================
   Signup Security UI
========================= */

.username-field-wrap,
.password-field-wrap {
    width: 100%;
    display: grid;
    gap: 7px;
}

.username-status-text {
    margin: -2px 0 0 0;
    min-height: 16px;

    font-size: 12px;
    font-weight: 850;

    transition: color 0.16s ease, opacity 0.16s ease;
}

.username-status-good {
    color: #087443;
}

.username-status-bad {
    color: #c1121f;
}

.username-suggestions-wrap {
    display: grid;

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transform: translateY(-6px);

    transition:
        max-height 0.24s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.username-suggestions-wrap.show-username-suggestions {
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
}

.username-suggestions-inner {
    display: grid;
    gap: 8px;

    padding: 10px;
    border: 1px solid #eeeeee;
    border-radius: 14px;

    background: #fafafa;
}

.username-suggestions-inner span {
    color: #777777;
    font-size: 12px;
    font-weight: 850;
}

.username-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.username-suggestion-btn {
    border: 1px solid #dddddd;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    padding: 7px 10px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;

    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.username-suggestion-btn:hover {
    border-color: #111111;
    background: #ffffff;
    transform: translateY(-1px);
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-top: 2px;

    max-height: 30px;
    opacity: 1;
    transform: translateY(0);

    transition:
        max-height 0.2s ease,
        opacity 0.16s ease,
        transform 0.16s ease;
}

.password-label-row.password-module-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
}

.password-label-row span {
    color: #777777;
    font-size: 12px;
    font-weight: 900;
}

.password-label-row strong {
    font-size: 12px;
    font-weight: 1000;
}

.password-label-weak {
    color: #c1121f;
}

.password-label-acceptable {
    color: #9a5b00;
}

.password-label-strong {
    color: #087443;
}

.password-security-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    display: grid;
    gap: 8px;

    transform: translateY(-6px);

    transition:
        max-height 0.24s ease,
        opacity 0.18s ease,
        transform 0.18s ease;
}

.password-security-panel.show-password-security-panel {
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
}

.password-strength-bars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;

    margin-top: 2px;
}

.password-bar {
    height: 6px;
    border-radius: 999px;
    background: #e5e5e5;

    transition: background 0.18s ease, transform 0.18s ease;
}

.weak-password-bar {
    background: #c1121f;
}

.acceptable-password-bar {
    background: #087443;
}

.strong-password-bar {
    background: #087443;
}

.password-help-text {
    margin: 0;
    color: #777777;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.generate-password-btn {
    width: fit-content;

    border: 1px solid #dddddd;
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    padding: 8px 11px;

    font-size: 12px;
    font-weight: 950;

    cursor: pointer;

    opacity: 1;
    max-height: 40px;
    transform: translateY(0);

    transition:
        opacity 0.18s ease,
        max-height 0.22s ease,
        transform 0.18s ease,
        background 0.16s ease,
        border-color 0.16s ease;
}

.generate-password-btn:hover {
    border-color: #111111;
    background: #f7f7f7;
}

.generate-password-btn.hide-generate-password-btn {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-5px);
}

.disabled-rate-back-btn {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: auto;
}

.rate-limit-card {
    text-align: center;
}

.rate-limit-countdown {
    font-weight: 900;
    color: #c1121f;
}

/*PASSWORD ICON*/

.password-input-wrap {
    width: 100%;
    position: relative;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    padding: 0;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus,
.password-toggle-btn:active {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%);
}

.password-toggle-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    pointer-events: none;

    opacity: 0.55;
    transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}

.password-toggle-btn:hover .password-toggle-icon {
    opacity: 0.95;
    transform: scale(1.08);
    filter: contrast(1.2);
}

.detail-actions {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
}

.detail-action-slot {
    flex: 1 1 0 !important;
    min-width: 0 !important;

    display: flex !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
}

.detail-action-form {
    width: 100% !important;
    height: 100% !important;

    display: flex !important;
    align-items: stretch !important;

    margin: 0 !important;
    padding: 0 !important;
}

.detail-action-button {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 16px !important;

    border: 1px solid #111 !important;
    box-sizing: border-box !important;

    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    text-align: center !important;
    text-decoration: none !important;
    vertical-align: top !important;

    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.detail-action-button.buy-btn,
.detail-action-button.make-offer-btn {
    background: #111 !important;
    color: #fff !important;
}

.detail-action-button.message-btn {
    background: #111 !important;
    color: #fff !important;
}

.detail-action-button.buy-btn:hover,
.detail-action-button.make-offer-btn:hover {
    background: #2a2a2a !important;
}

.detail-action-button.message-btn:hover {
    background: #2a2a2a !important;
}

.cart-interest-text {
    margin: 8px 0 0 0;

    color: #777777;
    font-size: 13px;
    font-weight: 800;
}

.cart-interest-pill {
    margin: 8px 0 0 0;

    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 4px 9px 4px 7px;

    border-radius: 999px;
    background: #f3f3f3;

    color: #333333;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;

    white-space: nowrap;
}

.cart-interest-icon {
    width: 25px;
    height: 25px;

    object-fit: contain;
    opacity: 0.85;
    filter: brightness(0) contrast(1.5);
    flex-shrink: 0;
}

.offer-interest-pill {
    margin: 8px 0 0 0;

    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    border-radius: 999px;
    background: #fff3df;

    color: #5c3b00;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;

    white-space: nowrap;
}

.offer-interest-dot {
    width: 7px;
    height: 7px;

    border-radius: 999px;
    background: #d97706;

    flex-shrink: 0;
}

.admin-category-panel {
    margin-top: 22px;
    padding: 18px;

    border: 1px solid #eeeeee;
    border-radius: 18px;

    background: #ffffff;
}

.admin-category-panel h2 {
    margin: 0 0 14px 0;
    font-size: 18px;
}

.admin-category-form,
.admin-category-row {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 120px 110px 110px 130px;
    gap: 10px;
    align-items: center;
}

.admin-category-form {
    grid-template-columns: 1.4fr 1.2fr 120px 110px 130px;
}

.admin-category-form input,
.admin-category-row input {
    width: 100%;
    padding: 11px 12px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 750;
}

.admin-category-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 13px;
    font-weight: 850;
}

.admin-category-form button,
.admin-category-row button,
.category-toggle-btn {
    min-height: 40px;

    border: 1px solid #111111;
    border-radius: 12px;

    background: #111111;
    color: #ffffff;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
}

.category-toggle-btn {
    background: #ffffff;
    color: #111111;
}

.admin-category-list {
    display: grid;
    gap: 10px;
}

@media (max-width: 900px) {
    .admin-category-form,
    .admin-category-row {
        grid-template-columns: 1fr;
    }
}

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

.category-section-header h2 {
    margin-bottom: 4px;
}

.category-section-header p {
    color: #666;
    font-size: 14px;
}

.admin-category-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-category-item {
    transition: 0.2s ease;
}

.admin-category-row {
    display: grid;
    grid-template-columns: 36px 1.2fr 1fr 110px auto auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.category-drag-handle {
    color: #999;
    font-weight: 800;
    letter-spacing: -2px;
    cursor: grab;
    text-align: center;
    user-select: none;
}

.category-order-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.category-move-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d4d4d4;
    border-radius: 9px;
    background: #f7f7f7;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.category-move-btn:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.category-move-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.category-save-btn,
.category-toggle-btn {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 9px 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.category-save-btn:hover,
.category-toggle-btn:hover {
    background: #f3f3f3;
}

.admin-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #111;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 9999;
}

.admin-toast.show-admin-toast {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1050px) {
    .admin-category-row {
        grid-template-columns: 1fr;
    }

    .category-drag-handle {
        text-align: left;
    }

    .category-order-actions {
        justify-content: flex-start;
    }
}

.sold-status-pill {
    background: #111;
    color: white;
}

.sold-mini-btn {
    background: #222;
    color: white;
}

.message-tabs {
    display: flex;
    gap: 10px;
    margin: 18px 0 24px;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 10px;
}

.message-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f4f4f4;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.message-tab:hover {
    background: #e9e9e9;
}

.active-message-tab {
    background: #111;
    color: white;
}

.message-tab-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e53935;
    color: white;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.conversation-card {
    display: grid;
    grid-template-columns: 64px 44px 1fr;
    gap: 14px;
    align-items: center;
}

.conversation-product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.support-conversation-thumb {
    background: #111;
    color: white;
    font-weight: 800;
}

.removed-product-thumb {
    background: #eee;
    color: #777;
    font-weight: 800;
}

.conversation-archived-note {
    margin-top: 5px;
    font-size: 12px;
    color: #777;
    font-weight: 600;
}

@media (max-width: 700px) {
    .message-tabs {
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .conversation-card {
        grid-template-columns: 52px 1fr;
    }

    .conversation-product-thumb {
        width: 52px;
        height: 52px;
    }
}

.sold-out-product-banner {
    border: 1px solid #111;
    background: #111;
    color: white;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sold-out-product-banner strong {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sold-out-product-banner span {
    font-size: 13px;
    opacity: 0.85;
}

.sold-out-image-wrap {
    position: relative;
}

.sold-out-image-overlay {
    position: absolute;
    left: 18px;
    top: 18px;
    background: rgba(0, 0, 0, 0.82);
    color: white;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 5;
}

.unavailable-detail-button {
    background: #d6d6d6 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #d6d6d6 !important;
}

.disabled-like-btn {
    opacity: 0.45;
    cursor: not-allowed;
}

.disabled-variant-picker,
.disabled-simple-product-options {
    opacity: 0.78;
}

.disabled-variant-picker .size-option-btn,
.disabled-simple-product-options .size-option-btn {
    cursor: default;
}

.admin-detail-actions form {
    display: inline-flex;
}

.admin-detail-actions button {
    border: 1px solid #111;
    background: #111;
    color: white;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.notification-action-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.notification-main-link {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.notification-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-offer-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.notification-offer-modal-backdrop.show-notification-offer-modal {
    display: flex;
}

.notification-offer-modal {
    width: min(440px, 100%);
    background: white;
    border-radius: 18px;
    padding: 22px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.notification-offer-modal-close {
    position: absolute;
    right: 14px;
    top: 12px;
    border: none;
    background: #eee;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
}

.notification-offer-modal h2 {
    margin-bottom: 8px;
}

.notification-offer-modal p {
    color: #666;
    margin-bottom: 18px;
}

.notification-offer-modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-offer-modal label {
    font-weight: 800;
    font-size: 13px;
}

.notification-offer-modal input {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
}

.notification-offer-modal button[type="submit"] {
    margin-top: 8px;
    border: none;
    background: #111;
    color: white;
    border-radius: 12px;
    padding: 12px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 750px) {
    .notification-action-card {
        grid-template-columns: 1fr;
    }

    .notification-actions {
        justify-content: flex-start;
        padding-left: 30px;
    }
}

.notification-offer-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0 16px;
}

.notification-offer-price-box span {
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.notification-offer-price-box strong {
    color: #111;
    font-size: 18px;
}

.admin-discounts-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 70px;
}

.admin-discounts-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.admin-discounts-header h1 {
    margin: 0;
    font-size: 34px;
}

.admin-discounts-header p {
    color: #666;
    margin-top: 6px;
}

.admin-discount-panel {
    background: white;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.admin-discount-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-discount-panel-header h2 {
    margin: 0;
}

.admin-discount-panel-header p {
    margin: 6px 0 0;
    color: #666;
}

.admin-discount-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 22px;
}

.admin-discount-products-box,
.admin-discount-settings-box {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    background: #fafafa;
}

.admin-discount-box-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-discount-box-heading h3,
.admin-discount-settings-box h3 {
    margin: 0;
}

.admin-discount-box-heading span {
    color: #777;
    font-size: 13px;
    font-weight: 700;
}

.discount-product-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.discount-product-toolbar button {
    border: 1px solid #111;
    background: white;
    color: #111;
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 800;
    cursor: pointer;
}

.discount-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 4px;
}

.discount-product-row {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    gap: 12px;
    align-items: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}

.discount-product-row:hover {
    border-color: #111;
}

.discount-product-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.discount-product-image-wrap {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #777;
}

.discount-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discount-product-info strong {
    font-size: 14px;
}

.discount-product-info span {
    color: #666;
    font-size: 13px;
}

.admin-discount-settings-box {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.admin-discount-settings-box label {
    font-size: 13px;
    font-weight: 800;
}

.admin-discount-settings-box input,
.admin-discount-settings-box select,
.admin-discount-settings-box textarea {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    font: inherit;
}

.admin-discount-settings-box textarea {
    min-height: 90px;
    resize: vertical;
}

.discount-preview-box {
    background: white;
    border: 1px dashed #ccc;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.discount-preview-box strong {
    font-size: 15px;
}

.discount-preview-warning {
    color: #c62828;
    font-weight: 800;
}

.discount-notify-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #eee;
}

.discount-notify-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #333;
}

.create-discount-btn {
    border: none;
    background: #111;
    color: white;
    border-radius: 14px;
    padding: 13px 16px;
    font-weight: 900;
    cursor: pointer;
}

.discount-form-note {
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.admin-discount-filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-discount-filter-row a {
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    color: #111;
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
    display: inline-flex;
    gap: 7px;
}

.admin-discount-filter-row a.active-discount-filter {
    background: #111;
    color: white;
    border-color: #111;
}

.admin-discount-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-discount-history-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto auto;
    gap: 16px;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 14px;
}

.discount-history-product {
    display: flex;
    gap: 12px;
    align-items: center;
}

.discount-history-image {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #777;
}

.discount-history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-history-product h3 {
    margin: 0;
    font-size: 15px;
}

.discount-history-product p {
    color: #777;
    font-size: 12px;
    margin: 4px 0 0;
}

.discount-history-prices {
    display: flex;
    gap: 14px;
}

.discount-history-prices div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discount-history-prices span {
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.discount-history-prices strong {
    font-size: 14px;
}

.discount-history-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.discount-status-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
}

.discount-status-active {
    background: #e8f5e9;
    color: #1b5e20;
}

.discount-status-expired {
    background: #eeeeee;
    color: #555;
}

.discount-status-cancelled {
    background: #ffebee;
    color: #b71c1c;
}

.discount-history-status small {
    color: #777;
    font-size: 12px;
}

.cancel-discount-btn {
    border: none;
    background: #111;
    color: white;
    border-radius: 12px;
    padding: 10px 13px;
    font-weight: 800;
    cursor: pointer;
}

.empty-discounts,
.empty-discount-products {
    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

@media (max-width: 900px) {
    .admin-discount-layout {
        grid-template-columns: 1fr;
    }

    .admin-discount-history-card {
        grid-template-columns: 1fr;
    }

    .discount-history-prices {
        flex-wrap: wrap;
    }
}

.product-sale-price-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.product-sale-price {
    color: #d32f2f;
    font-weight: 900;
}

.product-original-price {
    color: #888;
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 700;
}

.product-discount-badge {
    background: #111;
    color: white;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.discount-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.discount-mode-toggle label {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 11px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.discount-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hidden-discount-input {
    display: none;
}

.notification-dismiss-btn {
    border: none;
    background: #eeeeee;
    color: #333;
    border-radius: 999px;
    width: 24px;
    height: 24px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-dismiss-btn:hover {
    background: #111;
    color: white;
}

.cancel-all-discounts-form {
    margin: 0;
}

.cancel-all-discounts-btn {
    border: none;
    background: #b71c1c;
    color: white;
    border-radius: 12px;
    padding: 10px 13px;
    font-weight: 900;
    cursor: pointer;
}

.cancel-all-discounts-btn:hover {
    background: #8f1111;
}

.detail-sale-price-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-sale-price {
    color: #d32f2f;
    font-size: 28px;
    font-weight: 900;
}

.detail-original-price {
    color: #888;
    text-decoration: line-through;
    font-size: 17px;
    font-weight: 800;
}

.detail-discount-badge {
    background: #111;
    color: white;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.offer-modal-original-price {
    margin-left: 8px;
    color: #888;
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 700;
}

.similar-products-section {
    width: min(100%, 1480px);
    margin: 42px auto 80px;
    padding: 0 42px;
    box-sizing: border-box;
}


.similar-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.similar-products-header h2 {
    margin: 0;
    font-size: 26px;
}

.similar-products-header p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.similar-products-header a {
    color: #111;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 22px;
}

.similar-product-card {
    min-width: 0;
}

.similar-product-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.18;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f1f1;
    text-decoration: none;
}

.similar-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease;
}

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

.similar-product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
}

.similar-product-title {
    display: block;
    margin-top: 9px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.28;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-product-price {
    margin: 6px 0 0;
    color: #111;
    font-size: 14px;
    font-weight: 900;
}

.similar-product-price-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.similar-sale-price {
    color: #d32f2f;
    font-size: 14px;
    font-weight: 900;
}

.similar-original-price {
    color: #888;
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 700;
}

.similar-discount-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 5px;
    background: #111;
    color: white;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 1250px) {
    .similar-products-section {
        padding: 0 34px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(5, minmax(145px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1000px) {
    .similar-products-section {
        padding: 0 28px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 750px) {
    .similar-products-section {
        padding: 0 18px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .similar-products-section {
        padding: 0 14px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.checkout-result-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 14px;
}

.success-checkout-icon {
    background: #e8f5e9;
    color: #1b7f2a;
}

.pending-checkout-icon {
    background: #fff4df;
    color: #9a5b00;
}

.cancelled-checkout-icon {
    background: #f5f5f5;
    color: #333;
}

.checkout-result-note {
    margin-top: 10px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.checkout-result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.checkout-result-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: white;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 900;
    text-decoration: none;
}

.checkout-result-actions .checkout-secondary-link {
    background: #eeeeee;
    color: #111;
}

.refund-admin-panel {
    border: 1px solid #ddd;
}

.refund-warning-text {
    background: #fff8e6;
    border-radius: 10px;
    padding: 10px;
    color: #6b4200;
    font-weight: 800;
}

.refund-danger-btn {
    background: #b71c1c !important;
    color: white !important;
}

.refund-danger-btn:hover {
    background: #8f1111 !important;
}

.order-pill-partially_refunded,
.payment-pill-partially_refunded {
    background: #fff4df;
    color: #9a5b00;
}

.order-pill-partially_refunded,
.payment-pill-partially_refunded {
    background: #fff4df;
    color: #9a5b00;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.admin-users-page {
    max-width: 1250px;
}

.admin-users-tools {
    margin: 22px 0;
}

.admin-user-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.admin-user-search-form input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}

.admin-user-search-form input:focus {
    border-color: #111;
}

.admin-user-search-form button,
.clear-admin-search {
    border: none;
    background: #111;
    color: white;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.clear-admin-search {
    background: #eeeeee;
    color: #111;
}

.admin-users-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.admin-users-summary-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.admin-users-summary-card span {
    display: block;
    color: #666;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.admin-users-summary-card strong {
    font-size: 28px;
    font-weight: 950;
    color: #111;
}

.admin-user-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-user-cell strong {
    color: #111;
}

.admin-user-cell span {
    color: #777;
    font-size: 12px;
}

.role-pill-admin {
    background: #111;
    color: white;
}

.role-pill-customer {
    background: #eeeeee;
    color: #111;
}

.admin-user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 800px) {
    .admin-user-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-users-summary-grid {
        grid-template-columns: 1fr;
    }
}

.profile-alert-message {
    background: #fff4df;
    color: #7a4b00;
    border: 1px solid #efc46f;
    border-radius: 14px;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 800;
    margin: 16px 0;
    line-height: 1.45;
}

.likes-topbar-icon,
.message-topbar-icon,
.cart-topbar-icon {
    font-size: 25px;
    color: #111;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-heart-icon {
    font-size: 22px;
    color: #111;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*phos icons*/

.ph-fill.ph-heart-straight,
.card-like-btn.liked .card-heart-icon {
    color: #e53935;
}

.likes-icon-wrap,
.message-icon-wrap,
.cart-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-like-btn,
.card-login-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/*phos icons*/

.liked-product-card {
    position: relative;
}

.liked-item-select-wrap {
    position: absolute;
    z-index: 8;
    border-radius: 999px;
    padding: 6px;
}

.liked-item-select-wrap--top-right {
    top: 12px;
    right: 12px;
    left: auto;
}
.admin-orders-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 22px;
    background: #111;
    color: white;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.admin-orders-header-card h2 {
    margin: 4px 0 8px;
    font-size: 26px;
    font-weight: 950;
}

.admin-orders-header-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.admin-orders-header-card .admin-eyebrow {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-orders-header-link {
    white-space: nowrap;
    text-decoration: none;
    background: white;
    color: #111;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.orders-pill-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    background: #111;
    color: white;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.orders-pill-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.checkout-processing-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
    background:
        radial-gradient(circle at top, rgba(17, 17, 17, 0.06), transparent 34%),
        #fafafa;
}

.checkout-processing-card {
    width: 100%;
    max-width: 470px;
    background: white;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 36px 34px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-processing-card-success {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.14);
    transform: translateY(-2px);
}

.checkout-processing-card h1 {
    margin: 18px 0 10px;
    font-size: 28px;
    font-weight: 950;
    color: #111;
}

.checkout-processing-card-success h1 {
    color: #12843b;
}

.checkout-processing-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.checkout-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border: 4px solid #eeeeee;
    border-top-color: #111;
    border-radius: 50%;
    animation: checkoutSpin 0.85s linear infinite;
}

.checkout-success-check {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #22c55e;
    color: white;
    font-size: 26px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

@keyframes checkoutSpin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-success-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.checkout-success-btn,
.checkout-secondary-btn {
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 900;
}

.checkout-success-btn {
    background: #111;
    color: white;
}

.checkout-secondary-btn {
    background: #f1f1f1;
    color: #111;
}

.checkout-processing-card-cancelled {
    border-color: rgba(239, 68, 68, 0.28);
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.10);
}

.checkout-processing-card-cancelled h1 {
    color: #b42318;
}

.checkout-cancel-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 30px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.24);
}

.checkout-cancel-note {
    margin-top: 12px !important;
    font-size: 14px;
    color: #777 !important;
}

.size-option-btn.selected-size-option {
    border-color: #111;
    background: #111;
    color: white;
}

.size-option-btn.sold-out-size-option {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

.admin-email-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}

.admin-email-header {
    margin-bottom: 22px;
}

.admin-email-header h1 {
    margin: 4px 0 8px;
    font-size: 34px;
    font-weight: 950;
    color: #111;
}

.admin-email-header p {
    margin: 0;
    color: #666;
}

.admin-email-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.admin-email-card {
    background: white;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.06);
}

.admin-email-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 950;
}

.admin-email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-email-form label,
.admin-email-search-wrap label {
    font-size: 13px;
    font-weight: 900;
    color: #222;
}

.admin-email-input,
.admin-email-textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.admin-email-input:focus,
.admin-email-textarea:focus {
    border-color: #111;
}

.admin-email-textarea {
    resize: vertical;
    min-height: 160px;
}

.admin-email-send-btn {
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    background: #111;
    color: white;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    margin-top: 6px;
}

.admin-email-search-wrap {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-email-search-results {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 50;
}

.admin-email-user-result {
    width: 100%;
    border: none;
    background: white;
    text-align: left;
    padding: 11px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.admin-email-user-result:hover {
    background: #f5f5f5;
}

.admin-email-user-result strong,
.admin-email-user-result span {
    display: block;
}

.admin-email-user-result strong {
    font-size: 14px;
    color: #111;
}

.admin-email-user-result span {
    margin-top: 3px;
    font-size: 12px;
    color: #666;
}

.admin-email-alert {
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 800;
}

.admin-email-alert-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.admin-email-alert-error {
    background: #fff1f3;
    color: #b42318;
    border: 1px solid #fecdd6;
}

.admin-email-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-email-log-item {
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 13px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-email-log-item strong {
    display: block;
    font-size: 13px;
    color: #111;
}

.admin-email-log-item p {
    margin: 4px 0;
    font-size: 12px;
    color: #666;
}

.admin-email-log-item span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #888;
}

.email-log-sent,
.email-log-failed {
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.email-log-sent {
    color: #027a48;
}

.email-log-failed {
    color: #b42318;
}

.admin-email-empty {
    color: #777;
    font-size: 14px;
}

.admin-email-card {
    position: relative;
}

.admin-email-no-results {
    padding: 11px 12px;
    font-size: 13px;
    color: #777;
}

.admin-label-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 70px;
}

.admin-label-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-label-header h1 {
    margin: 4px 0 8px;
    font-size: 34px;
    font-weight: 950;
    color: #111;
}

.admin-label-header p {
    margin: 0;
    color: #666;
}

.admin-label-back-link {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 10px 15px;
    text-decoration: none;
    color: #111;
    font-weight: 900;
    background: white;
}

.admin-label-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: start;
}

.admin-label-card {
    background: white;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.06);
}

.admin-label-card h2 {
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 950;
}

.admin-label-card h3 {
    margin: 20px 0 10px;
    font-size: 15px;
    font-weight: 950;
}

.admin-label-detail-list p,
.admin-label-address-box p {
    margin: 6px 0;
    color: #333;
    font-size: 14px;
}

.admin-label-address-box {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 14px;
}

.admin-label-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-label-form label {
    font-size: 13px;
    font-weight: 900;
    color: #222;
}

.admin-label-dimensions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.admin-label-helper {
    margin: 4px 0 0;
    color: #777;
    font-size: 13px;
}

.admin-label-rates-card {
    margin-top: 22px;
}

.admin-label-rates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-label-rate-row {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.admin-label-rate-row strong {
    color: #111;
}

.admin-label-rate-row p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.admin-label-rate-row span {
    font-size: 12px;
    color: #888;
}

.admin-label-rate-price {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-label-rate-price strong {
    font-size: 18px;
}

.admin-label-buy-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    background: #111;
    color: white;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}

.admin-label-existing {
    margin-top: 18px;
    background: #f6fef9;
    border: 1px solid #abefc6;
    border-radius: 16px;
    padding: 14px;
}

.admin-label-existing-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.admin-label-existing-actions a {
    border-radius: 999px;
    padding: 9px 12px;
    background: #111;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.admin-order-id-cell,
.admin-order-shipping-cell,
.admin-order-label-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-order-mini-tag {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 7px;
    background: #eef4ff;
    color: #3538cd;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-order-shipping-cell span,
.admin-order-label-cell small {
    color: #777;
    font-size: 12px;
}

.admin-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-orders-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 11px;
    background: #111;
    color: white !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.secondary-admin-order-btn {
    background: #f3f3f3;
    color: #111 !important;
}

/* ================================
   ADMIN ORDERS PAGE OVERRIDE
   ================================ */

.admin-page {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 28px 70px;
}

.admin-header {
    margin-bottom: 22px;
}

.admin-header h1 {
    margin: 4px 0 8px;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111;
}

.admin-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

/* Filter pills */
.admin-order-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 18px;
    scrollbar-width: thin;
}

.admin-order-filter-row::-webkit-scrollbar {
    height: 7px;
}

.admin-order-filter-row::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 999px;
}

.admin-order-filter-row::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.admin-order-filter-row a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-order-filter-row a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #f3f3f3;
    border-radius: 999px;
    color: #555;
    font-size: 12px;
    font-weight: 950;
}

.admin-order-filter-row a.active-order-filter {
    background: #111;
    border-color: #111;
    color: #fff;
}

.admin-order-filter-row a.active-order-filter span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Table shell */
.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.admin-table-wrap::-webkit-scrollbar {
    height: 9px;
}

.admin-table-wrap::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 999px;
}

.admin-table-wrap::-webkit-scrollbar-thumb {
    background: #c9c9c9;
    border-radius: 999px;
}

/* Order table */
.admin-orders-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.admin-orders-table th,
.admin-orders-table td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.admin-orders-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fafafa;
    color: #555;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-orders-table tr:last-child td {
    border-bottom: none;
}

.admin-orders-table tbody tr:hover {
    background: #fcfcfc;
}

/* Column sizing */
.admin-orders-table th:nth-child(1),
.admin-orders-table td:nth-child(1) {
    width: 90px;
}

.admin-orders-table th:nth-child(2),
.admin-orders-table td:nth-child(2) {
    width: 210px;
}

.admin-orders-table th:nth-child(3),
.admin-orders-table td:nth-child(3) {
    width: 95px;
}

.admin-orders-table th:nth-child(4),
.admin-orders-table td:nth-child(4) {
    width: 120px;
}

.admin-orders-table th:nth-child(5),
.admin-orders-table td:nth-child(5) {
    width: 135px;
}

.admin-orders-table th:nth-child(6),
.admin-orders-table td:nth-child(6) {
    width: 160px;
}

.admin-orders-table th:nth-child(7),
.admin-orders-table td:nth-child(7) {
    width: 170px;
}

.admin-orders-table th:nth-child(8),
.admin-orders-table td:nth-child(8) {
    width: 170px;
}

.admin-orders-table th:nth-child(9),
.admin-orders-table td:nth-child(9) {
    width: 190px;
}

/* Order cells */
.admin-order-id-cell,
.admin-order-shipping-cell,
.admin-order-label-cell,
.admin-order-buyer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-order-id-cell strong {
    font-size: 15px;
    color: #111;
}

.admin-order-buyer strong {
    color: #111;
    font-size: 14px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-buyer span,
.admin-order-shipping-cell span,
.admin-order-label-cell small {
    color: #777;
    font-size: 12px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-shipping-cell strong {
    color: #222;
    font-size: 13px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-order-mini-tag {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef4ff;
    color: #3538cd;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

/* Pills */
.order-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 130px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    text-transform: capitalize;
}

.payment-pill-paid,
.order-pill-paid {
    background: #ecfdf3;
    color: #027a48;
}

.payment-pill-unpaid,
.order-pill-pending {
    background: #fff7ed;
    color: #b45309;
}

.order-pill-processing {
    background: #eef4ff;
    color: #3538cd;
}

.order-pill-shipped {
    background: #eff8ff;
    color: #175cd3;
}

.order-pill-delivered {
    background: #f0fdf4;
    color: #15803d;
}

.order-pill-cancelled,
.order-pill-refunded {
    background: #fff1f3;
    color: #b42318;
}

.order-pill-cancel_requested,
.order-pill-partially_refunded {
    background: #fffaeb;
    color: #b54708;
}

/* Actions */
.admin-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-order-actions > a,
.admin-orders-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 8px 12px;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-order-actions > a:first-child {
    background: #f4f4f4;
    color: #111 !important;
}

.secondary-admin-order-btn {
    background: #eef4ff !important;
    color: #3538cd !important;
}

.muted-admin-text {
    color: #999;
    font-size: 13px;
}

/* Mobile / small screens */
@media (max-width: 900px) {
    .admin-page {
        padding: 26px 16px 60px;
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .admin-table-wrap {
        border-radius: 18px;
    }

    .admin-orders-table {
        min-width: 1120px;
    }
}

/* ================================
   ADMIN EMAIL CENTER OVERRIDE
   ================================ */

.admin-email-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 36px 24px 70px;
}

.admin-email-header {
    margin-bottom: 22px;
}

.admin-email-header h1 {
    margin: 4px 0 8px;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111;
}

.admin-email-header p {
    margin: 0;
    color: #666;
}

.admin-email-layout {
    display: grid;
    grid-template-columns: minmax(390px, 0.95fr) minmax(520px, 1.25fr);
    gap: 24px;
    align-items: start;
}

.admin-email-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.06);
}

.admin-email-card h2 {
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 950;
}

.admin-email-log-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-email-log-top p {
    margin: -8px 0 16px;
    color: #666;
    font-size: 13px;
}

.admin-email-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    margin-bottom: 12px;
}

.admin-email-filter-row::-webkit-scrollbar {
    height: 7px;
}

.admin-email-filter-row::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 999px;
}

.admin-email-filter-row::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.admin-email-filter-row a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-email-filter-row a span {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 950;
}

.admin-email-filter-row a.active-email-filter {
    background: #111;
    border-color: #111;
    color: white;
}

.admin-email-filter-row a.active-email-filter span {
    background: rgba(255,255,255,0.18);
    color: white;
}

.admin-email-clear-form {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 14px;
}

.admin-email-clear-select {
    flex: 1;
    border: 1px solid #dddddd;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    background: white;
}

.admin-email-clear-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff1f3;
    color: #b42318;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.admin-email-log-scroll {
    max-height: 545px;
    overflow-y: auto;
    padding-right: 6px;
}

.admin-email-log-scroll::-webkit-scrollbar,
.admin-email-search-results::-webkit-scrollbar {
    width: 8px;
}

.admin-email-log-scroll::-webkit-scrollbar-track,
.admin-email-search-results::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.admin-email-log-scroll::-webkit-scrollbar-thumb,
.admin-email-search-results::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.admin-email-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-email-log-item {
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
}

.admin-email-log-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.admin-email-log-title-row strong {
    font-size: 13px;
    color: #111;
    line-height: 1.35;
}

.admin-email-log-main p {
    margin: 5px 0 8px;
    font-size: 12px;
    color: #666;
    word-break: break-word;
}

.admin-email-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-email-log-meta span {
    border-radius: 999px;
    padding: 5px 8px;
    background: #f5f5f5;
    color: #666;
    font-size: 11px;
    font-weight: 800;
}

.email-log-sent,
.email-log-failed {
    font-style: normal;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
    border-radius: 999px;
    padding: 5px 8px;
}

.email-log-sent {
    background: #ecfdf3;
    color: #027a48;
}

.email-log-failed {
    background: #fff1f3;
    color: #b42318;
}

.admin-email-log-error {
    margin-top: 9px !important;
    border-radius: 12px;
    padding: 9px 10px;
    background: #fff1f3;
    color: #b42318 !important;
    font-size: 12px !important;
}

.admin-email-search-results {
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
}

.admin-email-no-results {
    padding: 11px 12px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 980px) {
    .admin-email-layout {
        grid-template-columns: 1fr;
    }

    .admin-email-page {
        padding: 28px 16px 60px;
    }
}

/* Compose email user search dropdown scroll */
.admin-email-search-results {
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
}

.admin-email-search-results::-webkit-scrollbar {
    width: 8px;
}

.admin-email-search-results::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.admin-email-search-results::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.admin-email-search-results::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.admin-label-status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.admin-label-status-actions form {
    margin: 0;
}

.admin-label-status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.admin-label-status-actions form {
    margin: 0;
}

.secondary-admin-label-btn {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0;
}

.admin-label-delivered-note {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 13px;
    font-weight: 950;
}

.verify-resend-form {
    margin-top: 16px;
    text-align: center;
}

.verify-resend-btn {
    border: none;
    background: transparent;
    color: #111;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    padding: 8px 10px;
}

.verify-resend-btn:disabled {
    color: #888;
    cursor: not-allowed;
}

.verify-resend-success {
    color: #027a48;
    font-size: 14px;
    font-weight: 800;
    margin-top: 12px;
    text-align: center;
}

.verify-mini-resend {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
}

.verify-mini-resend form {
    margin: 0;
}

.verify-mini-resend-btn {
    border: none;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.verify-mini-resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

.verify-resend-success {
    color: #027a48;
    font-size: 13px;
    font-weight: 800;
    margin-top: 10px;
    text-align: center;
}

.verify-mini-resend {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
}

.verify-mini-resend form {
    margin: 0;
}

.verify-mini-resend-btn {
    border: none;
    background: transparent;
    color: #111;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.verify-mini-resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

.verify-resend-success {
    color: #027a48;
    font-size: 13px;
    font-weight: 800;
    margin-top: 10px;
    text-align: center;
}

/* ================================
   ADMIN TRANSACTIONS PAGE
   ================================ */

.admin-transactions-page {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 28px 70px;
}

.admin-transactions-header {
    margin-bottom: 22px;
}

.admin-transactions-header h1 {
    margin: 4px 0 8px;
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111;
}

.admin-transactions-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.transaction-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.transaction-summary-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.05);
}

.transaction-summary-card span {
    display: block;
    color: #666;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.transaction-summary-card strong {
    display: block;
    color: #111;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.transaction-summary-card p {
    margin: 8px 0 0;
    color: #777;
    font-size: 13px;
}

.transaction-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 14px;
}

.transaction-filter-row::-webkit-scrollbar {
    height: 7px;
}

.transaction-filter-row::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 999px;
}

.transaction-filter-row::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.transaction-filter-row a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.transaction-filter-row a span {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 950;
}

.transaction-filter-row a.active-transaction-filter {
    background: #111;
    border-color: #111;
    color: #fff;
}

.transaction-filter-row a.active-transaction-filter span {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.transactions-table-shell {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.transactions-table-shell::-webkit-scrollbar {
    height: 9px;
}

.transactions-table-shell::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 999px;
}

.transactions-table-shell::-webkit-scrollbar-thumb {
    background: #c9c9c9;
    border-radius: 999px;
}

.transactions-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.transactions-table th,
.transactions-table td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.transactions-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fafafa;
    color: #555;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.transactions-table tbody tr:hover {
    background: #fcfcfc;
}

.transactions-table th:nth-child(1),
.transactions-table td:nth-child(1) {
    width: 120px;
}

.transactions-table th:nth-child(2),
.transactions-table td:nth-child(2) {
    width: 145px;
}

.transactions-table th:nth-child(3),
.transactions-table td:nth-child(3) {
    width: 210px;
}

.transactions-table th:nth-child(4),
.transactions-table td:nth-child(4) {
    width: 90px;
}

.transactions-table th:nth-child(5),
.transactions-table td:nth-child(5) {
    width: 210px;
}

.transactions-table th:nth-child(6),
.transactions-table td:nth-child(6) {
    width: 210px;
}

.transactions-table th:nth-child(7),
.transactions-table td:nth-child(7) {
    width: 120px;
}

.transactions-table th:nth-child(8),
.transactions-table td:nth-child(8) {
    width: 130px;
}

.transaction-amount-cell,
.transaction-status-cell,
.transaction-buyer-cell,
.transaction-date-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.transaction-amount-cell strong {
    color: #111;
    font-size: 15px;
    font-weight: 950;
}

.transaction-amount-cell span,
.transaction-buyer-cell span,
.transaction-date-cell span,
.transaction-order-status {
    color: #777;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-buyer-cell strong,
.transaction-date-cell strong {
    color: #111;
    font-size: 13px;
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.transaction-payment-paid {
    background: #ecfdf3;
    color: #027a48;
}

.transaction-payment-unpaid,
.transaction-payment-pending {
    background: #fff7ed;
    color: #b45309;
}

.transaction-payment-failed,
.transaction-payment-cancelled {
    background: #fff1f3;
    color: #b42318;
}

.transaction-payment-refunded {
    background: #eef4ff;
    color: #3538cd;
}

.transaction-order-link {
    color: #111;
    font-weight: 950;
    text-decoration: none;
}

.transaction-copy-id {
    border: 1px solid #eeeeee;
    border-radius: 999px;
    background: #fafafa;
    color: #333;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-copy-id:hover {
    background: #f0f0f0;
}

.transaction-muted {
    color: #aaa;
    font-size: 13px;
}

.transaction-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.transaction-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 7px 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 950;
}

.transaction-actions a:first-child {
    background: #f4f4f4;
    color: #111;
}

.transaction-empty {
    color: #777;
    text-align: center !important;
    padding: 34px !important;
}

@media (max-width: 900px) {
    .admin-transactions-page {
        padding: 28px 16px 60px;
    }

    .transaction-summary-grid {
        grid-template-columns: 1fr;
    }

    .transactions-table {
        min-width: 1180px;
    }
}

/* ================================
   PRODUCT DETAIL ADMIN ANALYTICS
   ================================ */

.admin-product-analytics-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 14px;
    flex-wrap: wrap;
}

.admin-product-analytics-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    border-radius: 18px;
    padding: 11px 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.admin-product-analytics-pill i {
    font-size: 20px;
    color: #111;
}

.admin-product-analytics-pill div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-product-analytics-pill strong {
    font-size: 16px;
    font-weight: 950;
    color: #111;
    line-height: 1;
}

.admin-product-analytics-pill span {
    color: #777;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.variant-label-row-with-admin-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-mini-analytics-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-mini-analytics-inline span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #333;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 950;
}

.admin-mini-analytics-inline i {
    font-size: 13px;
}

/* ================================
   PRODUCT DETAIL ADMIN CONTROLS
   ================================ */

.enhanced-admin-detail-actions,
.admin-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    background: #fafafa;
}

.enhanced-admin-detail-actions a,
.admin-detail-actions a,
.enhanced-admin-detail-actions button,
.admin-detail-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: none;
    border-radius: 999px;
    padding: 10px 15px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.enhanced-admin-detail-actions a:nth-child(2),
.admin-detail-actions a:nth-child(2) {
    background: #eef4ff;
    color: #3538cd;
}

.enhanced-admin-detail-actions form,
.admin-detail-actions form {
    margin: 0;
}

.enhanced-admin-detail-actions button,
.admin-detail-actions button {
    background: #ecfdf3;
    color: #027a48;
}

@media (max-width: 700px) {
    .variant-label-row-with-admin-stats {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-product-analytics-pill {
        flex: 1 1 120px;
    }
}

/* ================================
   ADMIN ANALYTICS PAGE
   ================================ */

.admin-analytics-page {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 28px 70px;
}

.admin-analytics-header {
    margin-bottom: 22px;
}

.admin-analytics-header h1 {
    margin: 4px 0 8px;
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111;
}

.admin-analytics-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.analytics-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    margin-bottom: 16px;
}

.analytics-filter-row a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.analytics-filter-row a.active-analytics-filter {
    background: #111;
    border-color: #111;
    color: #fff;
}

.analytics-period-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: #111;
    color: white;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
}

.analytics-period-card span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.analytics-period-card strong {
    display: block;
    font-size: 24px;
    font-weight: 950;
    margin-top: 4px;
}

.analytics-period-card p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.5;
}

.analytics-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.analytics-metric-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.05);
}

.analytics-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #f5f5f5;
    flex: 0 0 auto;
}

.analytics-metric-icon i {
    font-size: 22px;
    color: #111;
}

.analytics-metric-card span {
    display: block;
    color: #666;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytics-metric-card strong {
    display: block;
    margin-top: 5px;
    color: #111;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.analytics-metric-card p {
    margin: 7px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.4;
}

.analytics-revenue-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.05);
}

.analytics-revenue-card h2 {
    margin: 4px 0 5px;
    color: #111;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.analytics-revenue-card span {
    color: #666;
    font-size: 14px;
}

.analytics-revenue-card > p {
    margin: 0;
    color: #777;
    max-width: 420px;
    line-height: 1.5;
    font-size: 13px;
}

.analytics-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.analytics-table-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.05);
}

.analytics-table-header h2 {
    margin: 0 0 5px;
    color: #111;
    font-size: 21px;
    font-weight: 950;
}

.analytics-table-header p {
    margin: 0 0 16px;
    color: #777;
    font-size: 13px;
}

.analytics-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.analytics-product-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}

.analytics-product-row:hover {
    background: #fafafa;
    transform: translateY(-1px);
}

.analytics-product-image-wrap {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analytics-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analytics-product-image-wrap span {
    font-size: 10px;
    color: #999;
    font-weight: 800;
}

.analytics-product-info {
    min-width: 0;
}

.analytics-product-info strong {
    display: block;
    color: #111;
    font-size: 13px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-product-info span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

.analytics-product-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: #f5f5f5;
    padding: 7px 10px;
    color: #111;
    font-size: 12px;
    font-weight: 950;
}

.analytics-product-stat i {
    font-size: 14px;
}

.analytics-empty {
    margin: 0;
    color: #777;
    font-size: 14px;
    background: #fafafa;
    border-radius: 18px;
    padding: 18px;
}

@media (max-width: 1000px) {
    .analytics-metric-grid,
    .analytics-table-grid {
        grid-template-columns: 1fr;
    }

    .analytics-period-card,
    .analytics-revenue-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .admin-analytics-page {
        padding: 28px 16px 60px;
    }

    .admin-analytics-header h1 {
        font-size: 30px;
    }
}

/* ================================
   ADMIN ANALYTICS SCROLL OVERRIDE
   ================================ */

.analytics-product-scroll {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 6px;
}

.analytics-product-scroll::-webkit-scrollbar {
    width: 8px;
}

.analytics-product-scroll::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.analytics-product-scroll::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.analytics-product-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ================================
   ADMIN TOP CONTROLS / NAV OVERRIDE
   ================================ */

.admin-page .topbar,
.regular-page .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #eeeeee;
}

.admin-page .topbar-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.admin-page .topbar-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 999px;
    padding: 8px 13px;
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.admin-page .topbar-nav a:hover {
    background: #111;
    color: #fff;
    transform: translateY(-1px);
}

.admin-page .topbar-nav a[href="/logout"],
.admin-page .topbar-nav a[href$="logout"] {
    background: #fff1f3;
    color: #b42318;
}

.admin-page .topbar-nav a[href="/logout"]:hover,
.admin-page .topbar-nav a[href$="logout"]:hover {
    background: #b42318;
    color: #fff;
}

.admin-page .brand {
    gap: 10px;
}

.admin-page .brand-logo {
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.admin-page .brand-name {
    font-weight: 950;
    letter-spacing: -0.04em;
}

.admin-page .brand-sub {
    color: #777;
    font-size: 12px;
    font-weight: 850;
    text-transform: lowercase;
}

/* Optional: active-looking admin links by page area */
body.admin-page .topbar-nav a[href*="admin"] {
    border: 1px solid #e8e8e8;
}

/* Mobile cleanup */
@media (max-width: 760px) {
    .admin-page .topbar {
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .admin-page .topbar-nav {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .admin-page .topbar-nav a {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ================================
   REVIEWS PAGE
   ================================ */

.reviews-page,
.leave-review-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 42px 22px 80px;
}

.reviews-hero {
    background: #111;
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    margin-bottom: 20px;
}

.reviews-hero h1 {
    margin: 6px 0 18px;
    font-size: 40px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.reviews-rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reviews-rating-summary strong {
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.reviews-stars,
.review-stars {
    color: #f5b301;
    font-size: 20px;
    letter-spacing: 1px;
}

.reviews-rating-summary p {
    color: rgba(255,255,255,0.72);
    margin: 0;
    font-size: 14px;
}

.top-compliments-card,
.review-card,
.leave-review-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.05);
}

.top-compliments-card {
    margin-bottom: 18px;
}

.top-compliments-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 950;
}

.top-compliments-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.top-compliment-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 9px 12px;
}

.top-compliment-pill strong {
    font-size: 13px;
    color: #111;
}

.top-compliment-pill span {
    background: #111;
    color: #fff;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 950;
}

.reviews-controls {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 16px;
}

.reviews-controls a {
    flex: 0 0 auto;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
}

.reviews-controls a.active-review-sort {
    background: #111;
    color: #fff;
    border-color: #111;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-user-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
}

.review-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.review-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-user-row strong {
    color: #111;
    font-size: 15px;
}

.review-date {
    color: #888;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.review-comment {
    margin: 16px 0 0;
    color: #333;
    font-size: 15px;
    line-height: 1.55;
}

.review-compliments {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-compliments span {
    background: #f5f5f5;
    color: #333;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 850;
}

.reviews-empty {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #eeeeee;
    padding: 32px;
    text-align: center;
}

.reviews-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 950;
}

.reviews-empty p {
    margin: 0;
    color: #777;
}

/* ================================
   LEAVE REVIEW PAGE
   ================================ */

.leave-review-card {
    max-width: 720px;
    margin: 0 auto;
}

.leave-review-card h1 {
    margin: 6px 0 8px;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.review-order-note {
    margin: 0 0 18px;
    color: #777;
    font-weight: 800;
}

.leave-review-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.leave-review-form > label {
    color: #111;
    font-size: 13px;
    font-weight: 950;
}

.review-rating-select {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.review-rating-select label input,
.review-compliment-grid label input {
    display: none;
}

.review-rating-select label span {
    display: inline-flex;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    background: #fff;
}

.review-rating-select label input:checked + span {
    background: #111;
    color: #fff;
    border-color: #111;
}

.review-compliment-grid {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.review-compliment-grid label span {
    display: inline-flex;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    background: #fff;
}

.review-compliment-grid label input:checked + span {
    background: #eef4ff;
    color: #3538cd;
    border-color: #c7d7fe;
}

.review-comment-input {
    border: 1px solid #dddddd;
    border-radius: 18px;
    padding: 14px;
    resize: vertical;
    font-family: inherit;
    outline: none;
}

.review-comment-input:focus {
    border-color: #111;
}

.leave-review-submit {
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-back-link {
    margin-top: 14px;
}

@media (max-width: 700px) {
    .reviews-hero {
        padding: 26px;
    }

    .reviews-hero h1 {
        font-size: 32px;
    }

    .review-user-row {
        grid-template-columns: 44px 1fr;
    }

    .review-date {
        grid-column: 2;
    }
}

/* ================================
   LEAVE REVIEW PAGE
   ================================ */

.leave-review-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 44px 22px 84px;
}

.leave-review-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.leave-review-header {
    margin-bottom: 22px;
}

.leave-review-header h1 {
    margin: 6px 0 8px;
    color: #111;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.05em;
}


.review-order-note {
    margin: 0;
    color: #777;
    font-size: 14px;
    font-weight: 850;
}

.review-form-message {
    margin-bottom: 18px;
}

.leave-review-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.review-form-section {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.review-main-label {
    color: #111;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-field-help {
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.review-rating-select {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.review-rating-select label input,
.review-compliment-grid label input {
    display: none;
}

.review-rating-select label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 10px 15px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.review-rating-select label span:hover {
    transform: translateY(-1px);
    border-color: #111;
}

.review-rating-select label input:checked + span {
    background: #111;
    color: #fff;
    border-color: #111;
}

.review-compliment-grid {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.review-compliment-grid label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 9px 13px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.review-compliment-grid label span:hover {
    transform: translateY(-1px);
    border-color: #c7d7fe;
    background: #f8faff;
}

.review-compliment-grid label input:checked + span {
    background: #eef4ff;
    color: #3538cd;
    border-color: #c7d7fe;
}

.review-comment-input {
    width: 100%;
    min-height: 140px;
    border: 1px solid #dddddd;
    border-radius: 20px;
    padding: 15px;
    background: #fff;
    color: #111;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}

.review-comment-input:focus {
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.leave-review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.leave-review-submit:hover {
    background: #333;
    transform: translateY(-1px);
}

.leave-review-privacy-note {
    margin: -4px 0 0;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.review-unavailable-box {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 24px;
    text-align: center;
}

.review-unavailable-box h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.review-unavailable-box p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.review-back-link {
    width: fit-content;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .leave-review-page {
        padding: 32px 16px 70px;
    }

    .leave-review-card {
        padding: 24px;
        border-radius: 24px;
    }

    .leave-review-header h1 {
        font-size: 32px;
    }

    .review-rating-select,
    .review-compliment-grid {
        gap: 8px;
    }

    .review-rating-select label span,
    .review-compliment-grid label span {
        font-size: 12px;
        padding: 9px 11px;
    }

    .leave-review-submit {
        width: 100%;
    }
}

/* ================================
   REVIEWABLE ORDERS CARD
   ================================ */

.reviewable-orders-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.05);
}

.reviewable-orders-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.reviewable-orders-header h2 {
    margin: 4px 0 6px;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111;
}

.reviewable-orders-header p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.reviewable-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviewable-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 14px;
    background: #fafafa;
}

.reviewable-order-row div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewable-order-row strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
}

.reviewable-order-row span,
.reviewable-order-row small {
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.reviewable-order-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.reviewable-order-row a:hover {
    background: #333;
}

.reviewable-orders-empty {
    margin: 0;
    background: #fafafa;
    border-radius: 18px;
    padding: 16px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 650px) {
    .reviewable-order-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .reviewable-order-row a {
        width: 100%;
    }
}

/* ================================
   PUBLIC TOPBAR AUTH LINKS
   ================================ */

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-nav a {
    text-decoration: none;
}

/* Default topbar links like Reviews */
.topbar-nav a[href*="reviews"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #f5f5f5;
    color: #111;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid #eeeeee;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.topbar-nav a[href*="reviews"]:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-1px);
}

/* Login button */
.topbar-nav a[href="/login"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 15px;
    background: #ffffff;
    color: #111;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid #dedede;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.topbar-nav a[href="/login"]:hover {
    background: #f3f3f3;
    border-color: #cfcfcf;
    transform: translateY(-1px);
}

/* Signup button */
.topbar-nav a[href="/account"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 16px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid #111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.topbar-nav a[href="/account"]:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

/* Mobile cleanup */
@media (max-width: 760px) {
    .topbar-nav {
        gap: 7px;
        flex-wrap: wrap;
    }

    .topbar-nav a[href*="reviews"],
    .topbar-nav a[href="/login"],
    .topbar-nav a[href="/account"] {
        min-height: 34px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ================================
   TOPBAR LAYOUT FIX
   Logo | Search | Nav
   ================================ */

.topbar {
    display: grid !important;
    grid-template-columns: auto minmax(360px, 1fr) auto;
    align-items: center;
    gap: 22px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 34px;
    padding-right: 34px;
    overflow: visible;
}

.brand {
    flex: none;
    min-width: max-content;
}

.searchbar {
    width: 100%;
    max-width: 720px;
    min-width: 320px;
    justify-self: center;
    flex: none !important;
}

.searchbar-inner {
    width: 100%;
}

.topbar-nav {
    justify-self: end;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: max-content;
    margin-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap;
    overflow: visible;
}

/* ================================
   CUSTOMER ORDERS PAGE V3
   ================================ */

.customer-orders-page-v3 {
    max-width: 1060px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 22px 76px;
}

.customer-orders-soft-header {
    margin-bottom: 18px;
}

.customer-orders-soft-header h1 {
    margin: 4px 0 6px;
    color: #111;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.customer-orders-soft-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.customer-orders-filter-row-v3 {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 16px;
}

.customer-orders-filter-row-v3::-webkit-scrollbar {
    height: 7px;
}

.customer-orders-filter-row-v3::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 999px;
}

.customer-orders-filter-row-v3::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.customer-orders-filter-row-v3 a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.customer-orders-filter-row-v3 a:hover {
    transform: translateY(-1px);
    border-color: #111;
}

.customer-orders-filter-row-v3 a span {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 950;
}

.customer-orders-filter-row-v3 a.active-customer-order-filter-v3 {
    background: #111;
    border-color: #111;
    color: #fff;
}

.customer-orders-filter-row-v3 a.active-customer-order-filter-v3 span {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.customer-orders-panel-v3 {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.customer-orders-panel-header-v3 {
    margin-bottom: 16px;
}

.customer-orders-panel-header-v3 h2 {
    margin: 0 0 5px;
    color: #111;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.customer-orders-panel-header-v3 p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.customer-orders-scroll-v3 {
    max-height: 680px;
    overflow-y: auto;
    padding-right: 7px;
}

.customer-orders-scroll-v3::-webkit-scrollbar {
    width: 8px;
}

.customer-orders-scroll-v3::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.customer-orders-scroll-v3::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.customer-orders-scroll-v3::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.customer-orders-list-v3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customer-order-card-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    background: #fafafa;
    padding: 16px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.customer-order-card-v3:hover {
    background: #fff;
    border-color: #dedede;
    transform: translateY(-1px);
}

.customer-order-main-v3 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.customer-order-icon-v3 {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.customer-order-icon-v3 i {
    font-size: 24px;
}

.customer-order-info-v3 {
    min-width: 0;
}

.customer-order-title-row-v3 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.customer-order-id-v3 {
    color: #111;
    font-size: 13px;
    font-weight: 950;
}

.customer-order-date-v3 {
    color: #888;
    font-size: 12px;
    font-weight: 800;
}

.customer-order-info-v3 h2 {
    margin: 0;
    color: #111;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.customer-order-info-v3 p {
    margin: 4px 0 10px;
    color: #777;
    font-size: 13px;
}

.customer-order-status-area-v3 {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.customer-order-tracking-text-v3 {
    margin-top: 9px !important;
    font-size: 12px !important;
    font-weight: 850;
    color: #666 !important;
}

.customer-order-actions-v3 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.customer-order-primary-btn-v3,
.customer-order-secondary-btn-v3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.customer-order-primary-btn-v3 {
    background: #111;
    color: #fff;
}

.customer-order-secondary-btn-v3 {
    background: #f3f3f3;
    color: #111;
}

.customer-order-primary-btn-v3:hover {
    background: #333;
}

.customer-order-secondary-btn-v3:hover {
    background: #e8e8e8;
}

.empty-orders-v3 {
    text-align: center;
    background: #fafafa;
    border-radius: 22px;
    padding: 36px 22px;
}

.empty-orders-v3 h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 950;
    color: #111;
}

.empty-orders-v3 p {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
}

.empty-orders-v3 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

@media (max-width: 820px) {
    .customer-order-card-v3 {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-order-actions-v3 {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .customer-orders-page-v3 {
        padding: 28px 16px 70px;
    }

    .customer-orders-soft-header h1 {
        font-size: 30px;
    }

    .customer-orders-panel-v3 {
        padding: 18px;
    }

    .customer-order-main-v3 {
        width: 100%;
    }

    .customer-order-actions-v3 a {
        width: 100%;
    }
}

/* ================================
   REVIEWS NAV BADGE
   ================================ */

.reviews-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.reviews-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ================================
   REVIEWABLE ORDER ACTIONS
   ================================ */

.reviewable-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reviewable-order-actions a,
.reviewable-order-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    border: none;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}

.reviewable-order-actions a {
    background: #111;
    color: #fff;
}

.reviewable-order-actions button {
    background: #f3f3f3;
    color: #555;
}

.reviewable-order-actions button:hover {
    background: #e8e8e8;
}

.reviewable-order-actions form {
    margin: 0;
}

@media (max-width: 650px) {
    .reviewable-order-actions {
        width: 100%;
    }

    .reviewable-order-actions a,
    .reviewable-order-actions form,
    .reviewable-order-actions button {
        width: 100%;
    }
}

/* ================================
   REVIEWABLE ORDER IMAGE PREVIEW
   ================================ */

.reviewable-order-row-with-image {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    align-items: center;
    gap: 14px;
}

.reviewable-order-image-box {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 18px;
    overflow: hidden;
    background: #f2f2f2;
    border: 1px solid #eeeeee;
    flex: 0 0 auto;
}

.reviewable-order-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
}

.reviewable-order-image-placeholder {
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
}

.reviewable-order-image-badge {
    position: absolute;
    left: 7px;
    bottom: 7px;
    border-radius: 999px;
    padding: 4px 7px;
    background: rgba(17, 17, 17, 0.82);
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.reviewable-order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.reviewable-order-info strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reviewable-order-info span,
.reviewable-order-info small {
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 700px) {
    .reviewable-order-row-with-image {
        grid-template-columns: 68px 1fr;
        align-items: start;
    }

    .reviewable-order-image-box {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }

    .reviewable-order-actions {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ================================
   DISCOUNT COUNTDOWN TIMER
   ================================ */

.discount-countdown-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 18px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #b42318;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(180, 35, 24, 0.08);
}

.discount-countdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.13);
    flex: 0 0 auto;
}

.discount-countdown-label {
    color: #991b1b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.discount-countdown-pill strong {
    color: #dc2626;
    font-size: 13px;
    font-weight: 950;
}

/* More urgent when JS adds this class under 3 hours */
.discount-countdown-pill.discount-ending-soon {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    animation: discountPulse 1.4s ease-in-out infinite;
}

.discount-countdown-pill.discount-ending-soon .discount-countdown-dot {
    background: #dc2626;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18);
}

.discount-countdown-pill.discount-ending-soon strong {
    color: #991b1b;
}

/* Expired state */
.discount-countdown-pill.discount-expired {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
    animation: none;
}

.discount-countdown-pill.discount-expired .discount-countdown-dot {
    background: #9ca3af;
    box-shadow: none;
}

.discount-countdown-pill.discount-expired .discount-countdown-label,
.discount-countdown-pill.discount-expired strong {
    color: #6b7280;
}

@keyframes discountPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 24px rgba(180, 35, 24, 0.08);
    }

    50% {
        transform: scale(1.015);
        box-shadow: 0 14px 30px rgba(180, 35, 24, 0.14);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 24px rgba(180, 35, 24, 0.08);
    }
}

/* Similar products smaller version */
.similar-discount-countdown-pill {
    margin: 6px 0 5px;
    padding: 6px 9px;
    gap: 6px;
    font-size: 11px;
    box-shadow: none;
}

.similar-discount-countdown-pill .discount-countdown-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.similar-discount-countdown-pill .discount-countdown-label {
    font-size: 10px;
}

.similar-discount-countdown-pill strong {
    font-size: 11px;
}

/* Mobile */
@media (max-width: 700px) {
    .discount-countdown-pill {
        max-width: 100%;
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 9px 11px;
    }

    .discount-countdown-label {
        font-size: 11px;
    }

    .discount-countdown-pill strong {
        font-size: 12px;
    }
}

/* ================================
   ADMIN OFFERS PAGE V2
   ================================ */

.admin-offers-page-v2 {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 22px 80px;
}

.admin-offers-soft-header {
    margin-bottom: 16px;
}

.admin-offers-soft-header h1 {
    margin: 4px 0 6px;
    color: #111;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.admin-offers-soft-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.admin-offer-filter-row-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 16px;
}

.admin-offer-filter-row-v2 a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.admin-offer-filter-row-v2 a:hover {
    transform: translateY(-1px);
    border-color: #111;
}

.admin-offer-filter-row-v2 a span {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 950;
}

.admin-offer-filter-row-v2 a.active-offer-filter-v2 {
    background: #111;
    color: #fff;
    border-color: #111;
}

.admin-offer-filter-row-v2 a.active-offer-filter-v2 span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.admin-offers-scroll-panel {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.admin-offers-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 760px;
    overflow-y: auto;
    padding-right: 8px;
}

.admin-offers-list-v2::-webkit-scrollbar {
    width: 8px;
}

.admin-offers-list-v2::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.admin-offers-list-v2::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.admin-offers-list-v2::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.admin-offer-card-v2 {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid #eeeeee;
    background: #fafafa;
    border-radius: 24px;
    padding: 16px;
}

.admin-offer-left-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-offer-image-wrap-v2 {
    width: 132px;
    height: 132px;
    border-radius: 20px;
    background: #f1f1f1;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.admin-offer-image-wrap-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-offer-image-wrap-v2 span {
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-offer-product-mini a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: 100%;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.admin-offer-main-v2 {
    min-width: 0;
}

.admin-offer-top-row-v2 {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 13px;
}

.admin-offer-title-line {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.admin-offer-heading-v2 h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.admin-offer-heading-v2 p {
    margin: 6px 0 0;
    color: #777;
    font-size: 13px;
}

.admin-offer-heading-v2 p strong {
    color: #111;
}

.offer-status-pill-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 5px 9px;
    background: #f3f3f3;
    color: #555;
    font-size: 11px;
    font-weight: 950;
    text-transform: capitalize;
}

.admin-offer-action-badge-wrap {
    flex: 0 0 auto;
}

.admin-offer-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-offer-action-badge i {
    font-size: 15px;
}

.auto-counter-badge {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #fecaca;
}

.auto-accepted-badge {
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.manual-review-badge {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.neutral-offer-badge {
    background: #f3f4f6;
    color: #555;
    border: 1px solid #e5e7eb;
}

.admin-offer-price-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.admin-offer-price-box {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 13px;
}

.admin-offer-price-box span {
    display: block;
    color: #777;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.admin-offer-price-box strong {
    color: #111;
    font-size: 18px;
    font-weight: 950;
}

.highlight-offer-price-box {
    background: #fff7ed;
    border-color: #fed7aa;
}

.highlight-offer-price-box span {
    color: #9a3412;
}

.highlight-offer-price-box strong {
    color: #c2410c;
}

.admin-offer-detail-strip-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.admin-offer-detail-strip-v2 div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eeeeee;
    padding: 7px 10px;
}

.admin-offer-detail-strip-v2 span {
    color: #888;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-offer-detail-strip-v2 strong {
    color: #333;
    font-size: 12px;
    font-weight: 900;
}

.admin-auto-offer-status-box {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 13px;
    margin-bottom: 12px;
}

.admin-auto-offer-status-box div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-auto-offer-status-box span {
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-auto-offer-status-box strong {
    color: #111;
    font-size: 13px;
    font-weight: 950;
}

.admin-auto-offer-status-box small {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
    max-width: 360px;
}

.admin-offer-note-v2 {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 13px;
    margin-bottom: 12px;
}

.admin-offer-note-v2 span {
    display: block;
    color: #777;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.admin-offer-note-v2 p {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.admin-offer-actions-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-offer-actions-v2 form {
    margin: 0;
}

.accept-offer-btn-v2,
.decline-offer-btn-v2,
.counter-offer-btn-v2,
.dismiss-offer-btn-v2 {
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    border: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.accept-offer-btn-v2 {
    background: #111;
    color: #fff;
}

.decline-offer-btn-v2,
.dismiss-offer-btn-v2 {
    background: #f3f3f3;
    color: #555;
}

.counter-offer-btn-v2 {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.counter-offer-form-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.counter-offer-form-v2 input {
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid #dedede;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
}

.counter-offer-form-v2 input[name="counter_price"] {
    width: 140px;
}

.counter-offer-form-v2 input[name="note"] {
    width: 190px;
}

.admin-offer-info-box-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 12px;
}

.accepted-offer-info-box {
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.muted-offer-info-box {
    background: #f3f4f6;
    color: #666;
    border: 1px solid #e5e7eb;
}

.paid-offer-info-box {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.admin-empty-offers-v2 {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 38px 24px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.admin-empty-offers-v2 h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 24px;
    font-weight: 950;
}

.admin-empty-offers-v2 p {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
}

.admin-empty-offers-v2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 10px 15px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

@media (max-width: 900px) {
    .admin-offer-card-v2 {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .admin-offer-image-wrap-v2 {
        width: 96px;
        height: 96px;
        border-radius: 18px;
    }

    .admin-offer-price-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-offer-top-row-v2,
    .admin-auto-offer-status-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 650px) {
    .admin-offers-page-v2 {
        padding: 28px 16px 70px;
    }

    .admin-offer-card-v2 {
        grid-template-columns: 1fr;
    }

    .admin-offer-left-v2 {
        flex-direction: row;
        align-items: center;
    }

    .admin-offer-image-wrap-v2 {
        width: 88px;
        height: 88px;
    }

    .admin-offer-product-mini a {
        width: auto;
        padding: 0 14px;
    }

    .admin-offer-price-grid-v2 {
        grid-template-columns: 1fr;
    }

    .counter-offer-form-v2,
    .counter-offer-form-v2 input,
    .counter-offer-form-v2 button,
    .admin-offer-actions-v2 form,
    .admin-offer-actions-v2 button {
        width: 100%;
    }

    .counter-offer-form-v2 input[name="counter_price"],
    .counter-offer-form-v2 input[name="note"] {
        width: 100%;
    }
}

/* ================================
   ADMIN AUTO OFFERS DASHBOARD
   ================================ */

.admin-auto-offers-dashboard {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 22px 80px;
}

.admin-auto-offers-header {
    margin-bottom: 18px;
}

.admin-auto-offers-header h1 {
    margin: 4px 0 6px;
    color: #111;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.admin-auto-offers-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.auto-offers-control-panel,
.auto-offers-section-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.auto-offers-control-panel h2,
.auto-offers-section-header h2 {
    margin: 0 0 6px;
    color: #111;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.auto-offers-control-panel p,
.auto-offers-section-header p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.auto-offers-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 14px;
    margin-top: 16px;
}

.auto-offers-control-card {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    padding: 15px;
}

.auto-offers-control-card label {
    display: block;
    margin-bottom: 8px;
    color: #111;
    font-size: 13px;
    font-weight: 950;
}

.auto-offers-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    padding: 0 13px;
}

.auto-offers-input-wrap input {
    border: none;
    outline: none;
    min-height: 42px;
    width: 100%;
    font-size: 15px;
    font-weight: 900;
    color: #111;
}

.auto-offers-input-wrap span {
    color: #777;
    font-weight: 950;
}

.auto-offers-control-card p {
    min-height: 42px;
    margin: 10px 0 14px;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.auto-offers-primary-btn,
.auto-offers-secondary-btn,
.auto-offers-danger-btn {
    width: 100%;
    min-height: 40px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.auto-offers-primary-btn {
    background: #111;
    color: #fff;
}

.auto-offers-secondary-btn {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.auto-offers-danger-btn {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #fecaca;
}

.auto-offers-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.auto-offers-select-btn {
    flex: 0 0 auto;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid #dedede;
    background: #fff;
    color: #111;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.auto-offers-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

.auto-offers-product-list::-webkit-scrollbar {
    width: 8px;
}

.auto-offers-product-list::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.auto-offers-product-list::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.auto-offers-product-row {
    display: grid;
    grid-template-columns: auto 68px minmax(0, 1fr) 160px auto;
    align-items: center;
    gap: 13px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
}

.auto-offers-product-row:hover {
    background: #fff;
    border-color: #dedede;
}

.auto-offers-product-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #111;
}

.auto-offers-product-image {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: #f1f1f1;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.auto-offers-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auto-offers-product-image span {
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-offers-product-info {
    min-width: 0;
}

.auto-offers-product-info strong {
    display: block;
    color: #111;
    font-size: 14px;
    font-weight: 950;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.auto-offers-product-info span,
.auto-offers-product-info small {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.auto-offers-product-info b {
    color: #111;
}

.auto-offers-product-rule {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #047857;
    border-radius: 16px;
    padding: 10px;
}

.auto-offers-product-rule span {
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auto-offers-product-rule strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 950;
}

.auto-offers-product-rule.off-rule {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #666;
}

.auto-offers-view-link {
    min-height: 34px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auto-offers-empty {
    background: #fafafa;
    border: 1px dashed #dedede;
    border-radius: 18px;
    padding: 18px;
}

.auto-offers-empty p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

@media (max-width: 900px) {
    .auto-offers-control-grid {
        grid-template-columns: 1fr;
    }

    .auto-offers-product-row {
        grid-template-columns: auto 58px minmax(0, 1fr);
    }

    .auto-offers-product-rule,
    .auto-offers-view-link {
        grid-column: 3 / -1;
    }

    .auto-offers-product-image {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 600px) {
    .admin-auto-offers-dashboard {
        padding: 28px 16px 70px;
    }

    .auto-offers-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .auto-offers-select-btn {
        width: 100%;
    }
}

/* ================================
   CUSTOMER OFFERS PAGE V2
   ================================ */

.customer-offers-page-v2 {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 22px 80px;
}

.customer-offers-soft-header {
    margin-bottom: 16px;
}

.customer-offers-soft-header h1 {
    margin: 4px 0 6px;
    color: #111;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.customer-offers-soft-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.customer-offer-filter-row-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 16px;
}

.customer-offer-filter-row-v2 a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.customer-offer-filter-row-v2 a span {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 950;
}

.customer-offer-filter-row-v2 a.active-customer-offer-filter-v2 {
    background: #111;
    color: #fff;
    border-color: #111;
}

.customer-offer-filter-row-v2 a.active-customer-offer-filter-v2 span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.customer-offers-scroll-panel-v2 {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.customer-offers-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-height: 760px;
    overflow-y: auto;
    padding-right: 8px;
}

.customer-offers-list-v2::-webkit-scrollbar {
    width: 8px;
}

.customer-offers-list-v2::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.customer-offers-list-v2::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.customer-offers-list-v2::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.customer-offer-card-v2 {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid #eeeeee;
    background: #fafafa;
    border-radius: 24px;
    padding: 15px;
}

.checkout-ready-offer-card {
    border-color: #86efac;
    background: #f7fef9;
}

.customer-offer-image-wrap-v2 {
    width: 118px;
    height: 118px;
    border-radius: 20px;
    background: #f1f1f1;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    text-decoration: none;
}

.customer-offer-image-wrap-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.customer-offer-image-wrap-v2 span {
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-offer-main-v2 {
    min-width: 0;
}

.customer-offer-top-row-v2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.customer-offer-title-line-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-offer-title-line-v2 h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.customer-offer-top-row-v2 p {
    margin: 5px 0 0;
    color: #777;
    font-size: 13px;
    font-weight: 800;
}

.customer-offer-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.seller-counter-context {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.accepted-context {
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.pending-context {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.customer-offer-price-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.customer-offer-price-grid-v2 div {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 13px;
}

.customer-offer-price-grid-v2 span {
    display: block;
    color: #777;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.customer-offer-price-grid-v2 strong {
    color: #111;
    font-size: 18px;
    font-weight: 950;
}

.customer-offer-price-grid-v2 .accepted-price-box-v2 {
    background: #ecfdf3;
    border-color: #86efac;
}

.customer-offer-price-grid-v2 .accepted-price-box-v2 span {
    color: #047857;
}

.customer-offer-price-grid-v2 .accepted-price-box-v2 strong {
    color: #047857;
    font-size: 21px;
}

.customer-offer-note-v2 {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 12px;
    color: #555;
    font-size: 13px;
    margin-bottom: 12px;
}

.customer-offer-time-row-v2 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.customer-offer-time-row-v2 span {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 999px;
    padding: 7px 10px;
    color: #777;
    font-size: 12px;
    font-weight: 850;
}

.customer-offer-info-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 12px;
}

.customer-offer-info-v2 strong {
    font-weight: 950;
}

.accepted-offer-info-v2 {
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #86efac;
}

.pending-offer-info-v2 {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.countered-offer-info-v2 {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.declined-offer-info-v2 {
    background: #f3f4f6;
    color: #666;
    border: 1px solid #e5e7eb;
}

.paid-offer-info-v2 {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.customer-offer-action-row-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-offer-action-row-v2 form {
    margin: 0;
}

.customer-offer-pay-btn-v2,
.customer-offer-secondary-btn-v2,
.customer-counter-form-v2 button {
    min-height: 40px;
    border-radius: 999px;
    padding: 9px 14px;
    border: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.customer-offer-pay-btn-v2 {
    background: #047857;
    color: #fff;
    box-shadow: 0 12px 24px rgba(4, 120, 87, 0.18);
}

.customer-offer-pay-btn-v2:hover {
    background: #065f46;
}

.customer-offer-secondary-btn-v2 {
    background: #f3f3f3;
    color: #555;
}

.customer-counter-form-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-counter-form-v2 input {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid #dedede;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
}

.customer-counter-form-v2 input[name="counter_price"] {
    width: 135px;
}

.customer-counter-form-v2 input[name="note"] {
    width: 180px;
}

.customer-counter-form-v2 button {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.empty-customer-offers-v2 {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 38px 24px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.empty-customer-offers-v2 h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 24px;
    font-weight: 950;
}

.empty-customer-offers-v2 p {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
}

.empty-customer-offers-v2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 10px 15px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

@media (max-width: 820px) {
    .customer-offer-card-v2 {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .customer-offer-image-wrap-v2 {
        width: 92px;
        height: 92px;
    }

    .customer-offer-price-grid-v2 {
        grid-template-columns: 1fr;
    }

    .customer-offer-top-row-v2 {
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .customer-offers-page-v2 {
        padding: 28px 16px 70px;
    }

    .customer-offer-card-v2 {
        grid-template-columns: 1fr;
    }

    .customer-offer-image-wrap-v2 {
        width: 100%;
        height: 220px;
    }

    .customer-offer-action-row-v2,
    .customer-offer-action-row-v2 form,
    .customer-offer-action-row-v2 button,
    .customer-counter-form-v2,
    .customer-counter-form-v2 input,
    .customer-counter-form-v2 button {
        width: 100%;
    }

    .customer-counter-form-v2 input[name="counter_price"],
    .customer-counter-form-v2 input[name="note"] {
        width: 100%;
    }
}

.cart-interest-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none;
    rotate: 0deg;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ================================
   STAFF SIGN IN
   ================================ */

.staff-signin-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 18px 80px;
}

.staff-signin-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
}

.staff-signin-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.staff-signin-icon i {
    font-size: 26px;
}

.staff-signin-card h1 {
    margin: 4px 0 8px;
    color: #111;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.staff-signin-subtitle {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.staff-signin-message {
    border-radius: 16px;
    padding: 12px 13px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 900;
}

.staff-signin-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #047857;
}

.staff-signin-error {
    background: #fff1f1;
    border: 1px solid #fecaca;
    color: #b42318;
}

.staff-signin-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 12px;
}

.staff-request-code-form {
    margin-bottom: 16px;
}

.staff-signin-form label {
    color: #333;
    font-size: 13px;
    font-weight: 950;
}

.staff-signin-form input {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid #dedede;
    padding: 10px 13px;
    color: #111;
    font-size: 14px;
    font-weight: 850;
    outline: none;
}

.staff-signin-form input:focus {
    border-color: #111;
}

.staff-signin-form button {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.staff-signin-form button:hover {
    background: #333;
}

.staff-secondary-link {
    display: inline-flex;
    margin-top: 14px;
    color: #555;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.staff-secondary-link:hover {
    color: #111;
    text-decoration: underline;
}

.staff-signin-note {
    margin: 18px 0 0;
    color: #999;
    font-size: 12px;
    line-height: 1.5;
}

/* ================================
   PROFILE PAGE CLEANUP
   Keeps original profile/photo mostly intact
   ================================ */

.profile-page {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 18px 80px;
}

/* Keep cards simple */
.profile-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.profile-header h1 {
    margin: 0 0 6px;
    color: #111;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.profile-muted {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.45;
}

/* Original rows, just slightly cleaner */
.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #f1f1f1;
}

.profile-row:last-of-type {
    border-bottom: none;
}

.profile-row span {
    color: #777;
    font-size: 13px;
    font-weight: 850;
}

.profile-row strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
    text-align: right;
    word-break: break-word;
}

/* Keep profile photo section close to your original */
.profile-photo-card {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.profile-photo-card h2 {
    margin: 0 0 12px;
    color: #111;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

/* Removed black background behind uploaded PFP */
.profile-photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #eeeeee;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}


/* Only fallback gets dark background now */
.profile-photo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 950;
}

.profile-photo-card form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-photo-card input[type="file"] {
    flex: 1;
    min-width: 220px;
    color: #555;
    font-size: 13px;
    font-weight: 750;
}

.profile-photo-card button {
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.profile-photo-card button:hover {
    background: #333;
}

/* Profile action cards */
.profile-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-action-card h2,
.danger-zone h2,
.staff-profile-card h2 {
    margin: 0 0 6px;
    color: #111;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.orders-pill-link,
.profile-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 9px 14px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.orders-pill-link:hover,
.profile-btn:hover {
    background: #333;
}

/* Subtle Staff Sign In card */
.staff-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border: 1px solid #eeeeee;
    box-shadow: none;
    opacity: 0.72;
    padding-top: 18px;
    padding-bottom: 18px;
}

.staff-profile-card:hover {
    opacity: 1;
    border-color: #d8d8d8;
}

.staff-mini-label {
    display: inline-flex;
    margin-bottom: 6px;
    color: #aaa;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.staff-profile-card h2 {
    color: #666;
    font-size: 17px;
    margin-bottom: 4px;
}

.staff-profile-card .profile-muted {
    font-size: 12px;
    color: #999;
}

.staff-profile-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 7px 11px;
    background: #f5f5f5;
    color: #777;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.staff-profile-link:hover {
    background: #111;
    color: #fff;
}

/* Delete section */
.danger-zone {
    border-color: #fee2e2;
    background: #fffafa;
}

.delete-account-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.confirm-input {
    flex: 1;
    min-width: 180px;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid #dedede;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 850;
    outline: none;
}

.confirm-input:focus {
    border-color: #111;
}

.danger-btn {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fff1f1;
    color: #b42318;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.danger-btn:hover {
    background: #fee2e2;
}

/* Mobile */
@media (max-width: 650px) {
    .profile-action-card,
    .staff-profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-pill-link,
    .profile-btn,
    .staff-profile-link,
    .delete-account-form,
    .confirm-input,
    .danger-btn,
    .profile-photo-card button {
        width: 100%;
    }

    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .profile-row strong {
        text-align: left;
    }
}


/* ================================
   SHIPPING ADDRESS PAGE
   ================================ */

.shipping-address-page {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 18px 90px;
}

.shipping-address-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.shipping-address-card h1 {
    margin: 4px 0 8px;
    color: #111;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.shipping-address-muted {
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.shipping-address-message {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 900;
}

.shipping-address-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #047857;
}

.shipping-address-error {
    background: #fff1f1;
    border: 1px solid #fecaca;
    color: #b42318;
}

.shipping-address-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.shipping-address-form label {
    margin-top: 8px;
    color: #333;
    font-size: 13px;
    font-weight: 950;
}

.shipping-address-form input {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid #dedede;
    padding: 10px 13px;
    color: #111;
    font-size: 14px;
    font-weight: 850;
    outline: none;
}

.shipping-address-form input:focus {
    border-color: #111;
}

.shipping-address-form input[readonly] {
    background: #f6f6f6;
    color: #777;
}

.shipping-address-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 1fr;
    gap: 10px;
}

.shipping-address-save-btn {
    margin-top: 14px;
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.shipping-address-save-btn:hover {
    background: #333;
}

.shipping-address-delete-form {
    margin-top: 12px;
}

.shipping-address-delete-form button {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fff1f1;
    color: #b42318;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.shipping-address-delete-form button:hover {
    background: #fee2e2;
}

@media (max-width: 620px) {
    .shipping-address-grid {
        grid-template-columns: 1fr;
    }

    .shipping-address-card {
        padding: 22px;
        border-radius: 22px;
    }
}

.shipping-address-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin: 0 0 16px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #555;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 950;
}

.shipping-address-back-link:hover {
    background: #111;
    color: #fff;
}

.address-suggestion-card {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 16px;
    margin: 0 0 18px;
}

.address-suggestion-card h2 {
    margin: 4px 0 12px;
    color: #111;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.address-suggestion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.address-suggestion-grid div {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 13px;
}

.address-suggestion-grid span {
    display: block;
    color: #777;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 7px;
}

.address-suggestion-grid p {
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.address-suggestion-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.address-suggestion-actions button {
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.address-suggestion-actions a {
    border-radius: 999px;
    background: #fff;
    color: #555;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.address-suggestion-actions button:hover {
    background: #333;
}

.address-suggestion-actions a:hover {
    background: #f3f4f6;
}

@media (max-width: 650px) {
    .address-suggestion-grid {
        grid-template-columns: 1fr;
    }

    .address-suggestion-actions button,
    .address-suggestion-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ================================
   ADMIN PRODUCT FORM CLEANUP
   ================================ */

.admin-product-top-actions {
    gap: 10px;
}

.admin-product-top-actions a {
    border-radius: 999px;
    padding: 8px 12px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.admin-product-top-actions a:hover {
    background: #111;
    color: #fff;
}

.admin-product-top-actions .logout-btn {
    background: #111;
    color: #fff;
}

.admin-product-editor-card {
    max-width: 1180px;
}

.admin-product-editor-header {
    margin-bottom: 18px;
}

.admin-product-editor-header h1 {
    margin: 4px 0 6px;
    color: #111;
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.admin-product-editor-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.admin-product-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 360px;
    gap: 22px;
    align-items: start;
}

.admin-product-main-column,
.admin-product-side-column {
    min-width: 0;
}

.admin-product-side-column {
    position: sticky;
    top: 18px;
}

.product-inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ================================
   PRODUCT SHIPPING FORM
   ================================ */

.product-shipping-section {
    padding: 18px;
    border-radius: 22px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
}

.product-shipping-header {
    margin-bottom: 14px;
}

.product-shipping-header h2 {
    margin: 4px 0 5px;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.product-shipping-header p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

.shipping-help-text {
    display: block;
    margin: 6px 0 10px;
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.shipping-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 0 12px;
}

.shipping-quick-buttons button {
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.shipping-quick-buttons button:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.shipping-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: end;
}

.shipping-dimensions-grid label {
    margin-top: 0;
}

.shipping-note-box {
    margin-top: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eeeeee;
    padding: 12px;
}

.shipping-note-box strong {
    display: block;
    color: #111;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 4px;
}

.shipping-note-box span {
    display: block;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.admin-product-save-sticky {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.admin-product-save-sticky:hover {
    background: #333;
}

@media (max-width: 920px) {
    .admin-product-editor-layout {
        grid-template-columns: 1fr;
    }

    .admin-product-side-column {
        position: static;
    }
}

@media (max-width: 650px) {
    .product-inline-grid,
    .shipping-dimensions-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-top-actions {
        flex-wrap: wrap;
    }

    .admin-product-top-actions a {
        width: 100%;
        text-align: center;
    }
}

/* ================================
   PRODUCT IMAGE UPLOAD AREA
   ================================ */

.hidden-file-input {
    display: none;
}

.image-drop-zone {
    width: 100%;
    min-height: 150px;
    border: 2px dashed #d6d6d6;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #fafafa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    margin-bottom: 14px;
}

.image-drop-zone:hover {
    border-color: #111;
    background: #fff;
    transform: translateY(-1px);
}

.drop-zone-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drop-zone-content strong {
    color: #111;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.drop-zone-content span {
    color: #555;
    font-size: 13px;
    font-weight: 850;
}

.drop-zone-content small {
    color: #888;
    font-size: 12px;
    font-weight: 750;
}

/* Preview grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 12px;
    margin: 12px 0 22px;
}

/* New uploaded image cards + saved image cards */
.image-preview-card,
.saved-image-card,
.upload-box {
    position: relative;
    min-height: 136px;
    border-radius: 18px;
    overflow: hidden;
    background: #f6f6f6;
    border: 1px solid #eeeeee;
}

.image-preview-card img,
.saved-image-card img {
    width: 100%;
    height: 136px;
    display: block;
    object-fit: cover;
}

/* Add-photo box */
.upload-box.empty-upload-box {
    min-height: 136px;
    border: 1.5px dashed #d8d8d8;
    background: #fbfbfb;
    color: #555;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.upload-box.empty-upload-box:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.upload-box.empty-upload-box span {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.upload-box.empty-upload-box small {
    font-size: 12px;
    font-weight: 900;
}

/* Cover / extra label */
.preview-label {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.86);
    color: #fff;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 950;
}

/* Delete checkbox on saved photos */
.delete-checkbox-label {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 9px;
    z-index: 2;
    min-height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #b42318;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.delete-checkbox-label input {
    width: auto;
    min-height: auto;
    margin: 0;
    accent-color: #b42318;
}

/* Saved/current images section */
.current-images-section {
    margin-bottom: 20px;
    border-radius: 22px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 16px;
}

.current-images-section h2 {
    margin: 0 0 5px;
    color: #111;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.saved-images-grid {
    margin-bottom: 0;
}

/* Dragging feel */
.saved-image-card {
    cursor: grab;
}

.saved-image-card:active {
    cursor: grabbing;
}

.saved-image-card.dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

/* Mobile */
@media (max-width: 650px) {
    .image-drop-zone {
        min-height: 130px;
        padding: 18px;
        border-radius: 20px;
    }

    .image-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-preview-card img,
    .saved-image-card img,
    .upload-box.empty-upload-box {
        height: 126px;
        min-height: 126px;
    }
}

/* ================================
   PRODUCT SIZE QUICK SCROLLER
   ================================ */

.size-picker-scroll {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    max-width: 100%;
    padding: 8px 2px 10px;
    margin-top: 7px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf #f3f3f3;
}

.size-picker-scroll::-webkit-scrollbar {
    height: 7px;
}

.size-picker-scroll::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 999px;
}

.size-picker-scroll::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
}

.size-option-btn {
    flex: 0 0 auto;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    border-radius: 999px;
    min-width: 42px;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.size-option-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.size-option-btn.active-size-option {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ================================
   SIZE SELECT SCROLLER
   ================================ */

.size-select-wrap {
    position: relative;
    width: 100%;
}

.size-select-wrap select {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid #dedede;
    background: #fff;
    color: #111;
    padding: 10px 13px;
    font-size: 14px;
    font-weight: 850;
    outline: none;
    cursor: pointer;
}

.size-select-wrap select:focus {
    border-color: #111;
}

.size-select-wrap select option,
.size-select-wrap select optgroup {
    font-size: 14px;
    font-weight: 800;
}

.custom-size-input {
    margin-top: 9px;
    display: none;
}

.custom-size-input.show-custom-size {
    display: block;
}

/* ================================
   CHECKOUT REVIEW PAGE
   ================================ */

.checkout-review-page {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 18px 90px;
}

.checkout-review-top-actions {
    gap: 10px;
}

.checkout-review-top-actions a {
    border-radius: 999px;
    padding: 8px 12px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.checkout-review-top-actions a:hover {
    background: #111;
    color: #fff;
}

.checkout-review-top-actions .logout-btn {
    background: #111;
    color: #fff;
}

.checkout-review-hero {
    margin-bottom: 18px;
}

.checkout-review-hero h1 {
    margin: 4px 0 7px;
    color: #111;
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.checkout-review-hero p {
    max-width: 620px;
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.45;
}

.checkout-review-message {
    margin-bottom: 16px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 900;
}

.checkout-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 22px;
    align-items: start;
}

.checkout-review-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.checkout-review-card,
.checkout-review-summary-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
}

.checkout-review-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.checkout-review-section-header h2,
.checkout-review-summary-card h2 {
    margin: 4px 0 0;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.checkout-review-count {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f3f4f6;
    color: #555;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 950;
}

.checkout-review-edit-link {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f3f4f6;
    color: #555;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.checkout-review-edit-link:hover {
    background: #111;
    color: #fff;
}

.checkout-review-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-review-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 11px;
    background: #fcfcfc;
}

.checkout-review-item-image {
    width: 78px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
}

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

.checkout-review-image-fallback {
    width: 100%;
    height: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 950;
}

.checkout-review-item-info {
    min-width: 0;
}

.checkout-review-item-info h3 {
    margin: 0 0 4px;
    color: #111;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.checkout-review-item-info p {
    margin: 0 0 6px;
    color: #777;
    font-size: 13px;
    font-weight: 800;
}

.checkout-review-item-info span {
    color: #555;
    font-size: 12px;
    font-weight: 900;
}

.checkout-review-item > strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.checkout-review-address-box {
    border-radius: 20px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 15px;
}

.checkout-review-address-box strong {
    display: block;
    color: #111;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 6px;
}

.checkout-review-address-box p {
    margin: 0;
    color: #555;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.checkout-review-address-box span {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 12px;
    font-weight: 850;
}

.checkout-review-shipping-rate {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 18px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    padding: 13px 14px;
}

.checkout-review-shipping-rate span {
    display: block;
    color: #047857;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.checkout-review-shipping-rate strong {
    display: block;
    color: #064e3b;
    font-size: 13px;
    font-weight: 950;
}

.checkout-review-shipping-rate p {
    margin: 0;
    color: #064e3b;
    font-size: 16px;
    font-weight: 950;
}

.checkout-review-note {
    display: block;
    margin-top: 10px;
    color: #777;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.checkout-review-summary {
    position: sticky;
    top: 18px;
    min-width: 0;
}

.checkout-review-summary-card h2 {
    margin-bottom: 14px;
}

.checkout-review-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-review-total-row span {
    color: #666;
    font-size: 13px;
    font-weight: 850;
}

.checkout-review-total-row strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
}

.checkout-review-total-row.muted strong {
    color: #777;
    font-size: 12px;
}

.checkout-review-total-row.grand-total {
    border-bottom: none;
    padding-top: 15px;
}

.checkout-review-total-row.grand-total span,
.checkout-review-total-row.grand-total strong {
    color: #111;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.checkout-review-pay-form {
    margin-top: 14px;
}

.checkout-review-pay-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.checkout-review-pay-btn:hover {
    background: #333;
}

.checkout-review-cancel-link {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.checkout-review-cancel-link:hover {
    background: #e5e7eb;
    color: #111;
}

.checkout-review-secure-note {
    margin-top: 14px;
    border-radius: 18px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 13px;
}

.checkout-review-secure-note strong {
    display: block;
    color: #111;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 4px;
}

.checkout-review-secure-note span {
    display: block;
    color: #777;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .checkout-review-layout {
        grid-template-columns: 1fr;
    }

    .checkout-review-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .checkout-review-page {
        padding: 26px 14px 80px;
    }

    .checkout-review-hero h1 {
        font-size: 30px;
    }

    .checkout-review-card,
    .checkout-review-summary-card {
        border-radius: 22px;
        padding: 18px;
    }

    .checkout-review-item {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .checkout-review-item > strong {
        grid-column: 2;
    }

    .checkout-review-item-image {
        width: 66px;
        height: 76px;
    }

    .checkout-review-shipping-rate {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-review-top-actions {
        flex-wrap: wrap;
    }

    .checkout-review-top-actions a {
        width: 100%;
        text-align: center;
    }
}

.edit-entered-address-btn {
    border-radius: 999px;
    background: #fff;
    color: #555;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.edit-entered-address-btn:hover {
    background: #f3f4f6;
    color: #111;
}

/* ================================
   ADMIN ORDER LABEL - BUYER PAID RATE
   ================================ */

.admin-label-top-actions {
    gap: 10px;
}

.admin-label-saved-rate-card {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.admin-label-saved-rate-card h2 {
    margin: 4px 0 14px;
    color: #064e3b;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.saved-label-status-banner {
    border-radius: 16px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 14px;
}

.saved-label-status-ready {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.saved-label-status-purchased {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.saved-rate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-bottom: 12px;
}

.saved-rate-grid div {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 12px;
}

.saved-rate-grid span,
.saved-rate-id-box span,
.buyer-paid-comparison-box span {
    display: block;
    color: #047857;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.saved-rate-grid strong,
.buyer-paid-comparison-box strong {
    display: block;
    color: #064e3b;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.35;
}

.saved-rate-id-box {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 11px 12px;
    margin-bottom: 10px;
}

.saved-rate-id-box p {
    margin: 0;
    color: #064e3b;
    font-size: 12px;
    font-weight: 850;
    word-break: break-word;
    line-height: 1.45;
}

.buy-saved-label-btn,
.saved-label-link {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 999px;
    background: #064e3b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    margin-top: 4px;
}

.buy-saved-label-btn:hover,
.saved-label-link:hover {
    background: #022c22;
}

.saved-label-helper {
    margin: 12px 0 0;
    color: #047857;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

.saved-rate-warning {
    margin: 0;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 13px;
}

.saved-rate-warning strong {
    display: block;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 4px;
}

.saved-rate-warning span {
    display: block;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

.buyer-paid-comparison-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
}

.buyer-paid-comparison-box span {
    color: #64748b;
}

.buyer-paid-comparison-box strong {
    color: #111827;
    font-size: 18px;
}

.rate-difference-good,
.rate-difference-bad {
    display: inline-flex;
    margin-top: 8px;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 950;
}

.rate-difference-good {
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.rate-difference-bad {
    background: #fef2f2;
    color: #b42318;
    border: 1px solid #fecaca;
}

@media (max-width: 650px) {
    .saved-rate-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ADMIN ORDER LABEL - FULL PAGE POLISH
   Matches saved buyer-paid card style
   ================================ */

.admin-label-page {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 18px 90px;
}

.admin-label-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-label-header h1 {
    margin: 5px 0 7px;
    color: #111;
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.admin-label-header p {
    margin: 0;
    max-width: 660px;
    color: #777;
    font-size: 14px;
    line-height: 1.45;
}

.admin-label-back-link {
    flex: 0 0 auto;
    min-height: 40px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-label-back-link:hover {
    background: #333;
}

/* Layout */
.admin-label-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

/* General card glow */
.admin-label-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
}

.admin-label-card h2 {
    margin: 0 0 15px;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.admin-label-card h3 {
    margin: 20px 0 10px;
    color: #111;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

/* Alert */
.admin-email-alert {
    margin-bottom: 16px;
    border-radius: 18px;
    padding: 13px 15px;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.admin-email-alert-success {
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.admin-email-alert-error {
    background: #fef2f2;
    color: #b42318;
    border: 1px solid #fecaca;
}

/* Order detail rows */
.admin-label-detail-list {
    display: grid;
    gap: 9px;
}

.admin-label-detail-list p {
    margin: 0;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 11px 12px;
    color: #555;
    font-size: 13px;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-label-detail-list p strong {
    color: #111;
    font-weight: 950;
}

/* Shipping address */
.admin-label-address-box {
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 15px;
}

.admin-label-address-box p {
    margin: 0 0 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}

.admin-label-address-box p:first-child {
    color: #111;
    font-size: 14px;
    font-weight: 950;
}

.admin-label-address-box p:last-child {
    margin-bottom: 0;
}

/* Existing label */
.admin-label-existing {
    margin-top: 18px;
    border-radius: 22px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 16px;
}

.admin-label-existing h3 {
    margin-top: 0;
    color: #1d4ed8;
}

.admin-label-existing p {
    margin: 0 0 7px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 850;
}

.admin-label-existing p strong {
    font-weight: 950;
}

.admin-label-existing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.admin-label-existing-actions a {
    flex: 1;
    min-height: 40px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-label-existing-actions a:hover {
    background: #1e40af;
}

/* Status actions */
.admin-label-status-actions {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.admin-label-delivered-note {
    min-height: 40px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Package backup form */
.admin-label-form label {
    display: block;
    margin: 12px 0 7px;
    color: #111;
    font-size: 13px;
    font-weight: 950;
}

.admin-label-weight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-label-weight-row > div {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 8px;
}

.admin-label-weight-row span {
    color: #555;
    font-size: 13px;
    font-weight: 950;
}

.admin-label-dimensions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.admin-email-input {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid #dedede;
    background: #fff;
    color: #111;
    padding: 9px 11px;
    font-size: 13px;
    font-weight: 850;
    outline: none;
}

.admin-email-input:focus {
    border-color: #111;
}

.admin-label-helper {
    margin: 12px 0;
    color: #777;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

.admin-email-send-btn {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.admin-email-send-btn:hover {
    background: #333;
}

/* Backup rates section */
.admin-label-rates-card {
    margin-top: 18px;
}

.admin-label-rates-card h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-label-rates-list {
    display: grid;
    gap: 12px;
}

.admin-label-rate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 16px;
    border-radius: 22px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 15px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-label-rate-row:hover {
    transform: translateY(-1px);
    border-color: #d9d9d9;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.055);
}

.admin-label-rate-row strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
}

.admin-label-rate-row p {
    margin: 5px 0 0;
    color: #777;
    font-size: 13px;
    font-weight: 850;
}

.admin-label-rate-row span {
    display: inline-block;
    margin-top: 6px;
    color: #555;
    font-size: 12px;
    font-weight: 850;
}

.admin-label-rate-price {
    display: grid;
    gap: 9px;
    justify-items: stretch;
}

.admin-label-rate-price > strong {
    text-align: right;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.admin-label-buy-btn {
    min-height: 40px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.admin-label-buy-btn:hover {
    background: #333;
}

.secondary-admin-label-btn {
    background: #f3f4f6;
    color: #111;
}

.secondary-admin-label-btn:hover {
    background: #e5e7eb;
}

/* Empty */
.admin-email-empty {
    margin: 0;
    border-radius: 18px;
    background: #fafafa;
    border: 1px dashed #d8d8d8;
    color: #777;
    padding: 16px;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

/* Better mobile */
@media (max-width: 980px) {
    .admin-label-grid {
        grid-template-columns: 1fr;
    }

    .admin-label-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-label-back-link {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .admin-label-page {
        padding: 26px 14px 80px;
    }

    .admin-label-header h1 {
        font-size: 30px;
    }

    .admin-label-card {
        border-radius: 22px;
        padding: 18px;
    }

    .admin-label-detail-list p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .admin-label-weight-row,
    .admin-label-dimensions,
    .admin-label-rate-row {
        grid-template-columns: 1fr;
    }

    .admin-label-rate-price > strong {
        text-align: left;
    }

    .admin-label-existing-actions a {
        width: 100%;
        flex: none;
    }
}

/* ================================
   ADMIN ORDER DETAIL PAGE POLISH
   ================================ */

.admin-order-detail-page {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 18px 90px;
}

.admin-order-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}

.admin-order-detail-header h1 {
    margin: 5px 0 7px;
    color: #111;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.admin-order-detail-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.admin-order-status-stack {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
}

/* Main panel grid */
.admin-order-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.admin-order-panel {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
}

.admin-order-panel h2 {
    margin: 0 0 14px;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.admin-order-panel p {
    margin: 0 0 8px;
    color: #555;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}

.admin-order-panel p strong {
    color: #111;
    font-weight: 950;
}

.muted-admin-text {
    color: #777 !important;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}

/* Cancel request alert */
.cancel-request-admin-alert {
    grid-column: 1 / -1;
    background: #fff7ed;
    border-color: #fed7aa;
    box-shadow: 0 14px 38px rgba(194, 65, 12, 0.08);
}

.cancel-request-admin-alert h2 {
    color: #c2410c;
}

.cancel-request-admin-alert p {
    color: #9a3412;
}

.admin-cancel-note-box {
    margin: 12px 0;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 13px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Shipping address panel */
.admin-order-panel:nth-child(2) {
    background: #f8fafc;
}

.admin-order-panel:nth-child(2) h2 {
    color: #0f172a;
}

/* Payment panel */
.admin-order-panel:nth-child(3) {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.admin-order-panel:nth-child(3) h2,
.admin-order-panel:nth-child(3) p strong {
    color: #1d4ed8;
}

.admin-order-panel:nth-child(3) p {
    color: #1e3a8a;
    word-break: break-word;
}

/* Refund panel */
.refund-admin-panel {
    background: #fff7ed;
    border-color: #fed7aa;
}

.refund-admin-panel h2 {
    color: #c2410c;
}

.refund-warning-text {
    color: #b42318 !important;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 950 !important;
}

/* Fulfillment panel */
.admin-order-panel:last-child {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.admin-order-panel:last-child h2 {
    color: #064e3b;
}

/* Forms */
.admin-order-form {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.admin-order-form + .admin-order-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-order-form label {
    color: #111;
    font-size: 13px;
    font-weight: 950;
    margin-top: 4px;
}

.admin-order-form input,
.admin-order-form select,
.admin-order-form textarea {
    width: 100%;
    min-height: 42px;
    border-radius: 15px;
    border: 1px solid #dedede;
    background: #fff;
    color: #111;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 850;
    outline: none;
}

.admin-order-form textarea {
    min-height: 92px;
    resize: vertical;
}

.admin-order-form input:focus,
.admin-order-form select:focus,
.admin-order-form textarea:focus {
    border-color: #111;
}

.admin-order-form button {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    margin-top: 4px;
}

.admin-order-form button:hover {
    background: #333;
}

.refund-danger-btn {
    background: #b42318 !important;
}

.refund-danger-btn:hover {
    background: #8f1c13 !important;
}

/* Items section */
.order-items-panel {
    margin-top: 18px;
}

.admin-order-items-list {
    display: grid;
    gap: 12px;
}

.admin-order-item-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 22px;
    padding: 12px;
}

.admin-order-item-image {
    width: 84px;
    height: 94px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-order-item-image span {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.admin-order-item-info {
    min-width: 0;
}

.admin-order-item-info strong {
    display: block;
    color: #111;
    font-size: 15px;
    font-weight: 950;
    margin-bottom: 5px;
}

.admin-order-item-info p {
    margin: 0 0 4px;
    color: #777;
    font-size: 12px;
    font-weight: 850;
}

.admin-order-item-price {
    display: grid;
    gap: 5px;
    text-align: right;
}

.admin-order-item-price span {
    color: #777;
    font-size: 12px;
    font-weight: 900;
}

.admin-order-item-price strong {
    color: #111;
    font-size: 16px;
    font-weight: 950;
}

/* Total box */
.admin-order-total-box {
    margin-top: 18px;
    margin-left: auto;
    max-width: 360px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 16px;
}

.admin-order-total-box div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.admin-order-total-box div:last-child {
    border-bottom: none;
}

.admin-order-total-box span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.admin-order-total-box strong {
    color: #111;
    font-size: 14px;
    font-weight: 950;
}

.admin-order-total-final {
    margin-top: 4px;
    padding-top: 14px !important;
}

.admin-order-total-final span,
.admin-order-total-final strong {
    color: #064e3b;
    font-size: 18px;
    font-weight: 950;
}

/* Existing pills, if not already styled */
.order-pill {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid transparent;
}

.payment-pill-paid {
    background: #ecfdf3;
    color: #047857;
    border-color: #bbf7d0;
}

.payment-pill-refunded {
    background: #fef2f2;
    color: #b42318;
    border-color: #fecaca;
}

.payment-pill-partially_refunded {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.order-pill-paid {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.order-pill-processing {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.order-pill-shipped {
    background: #ecfdf3;
    color: #047857;
    border-color: #bbf7d0;
}

.order-pill-delivered {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.order-pill-cancelled {
    background: #f3f4f6;
    color: #555;
    border-color: #e5e7eb;
}

.order-pill-refunded {
    background: #fef2f2;
    color: #b42318;
    border-color: #fecaca;
}

.order-pill-partially_refunded {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

/* Topbar polish for this page */
.regular-page .topbar-nav a {
    border-radius: 999px;
    padding: 8px 12px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.regular-page .topbar-nav a:hover {
    background: #111;
    color: #fff;
}

/* Mobile */
@media (max-width: 1050px) {
    .admin-order-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-order-detail-header {
        grid-template-columns: 1fr;
    }

    .admin-order-status-stack {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .admin-order-detail-page {
        padding: 26px 14px 80px;
    }

    .admin-order-detail-header h1 {
        font-size: 30px;
    }

    .admin-order-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-panel {
        border-radius: 22px;
        padding: 18px;
    }

    .admin-order-item-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .admin-order-item-image {
        width: 72px;
        height: 82px;
    }

    .admin-order-item-price {
        grid-column: 2;
        text-align: left;
    }

    .admin-order-total-box {
        max-width: none;
    }
}

/* ================================
   COMPACT ORDER ITEMS INSIDE GRID
   ================================ */

.compact-order-items-panel {
    margin-top: 0;
    background: #fff;
}

.compact-order-items-panel .admin-order-items-list {
    gap: 10px;
}

.compact-order-items-panel .admin-order-item-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 11px;
    padding: 10px;
    border-radius: 18px;
}

.compact-order-items-panel .admin-order-item-image {
    width: 62px;
    height: 72px;
    border-radius: 15px;
}

.compact-order-items-panel .admin-order-item-info strong {
    font-size: 13px;
    margin-bottom: 4px;
}

.compact-order-items-panel .admin-order-item-info p {
    font-size: 11px;
    line-height: 1.35;
}

.compact-order-items-panel .admin-order-item-price {
    grid-column: 2;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.compact-order-items-panel .admin-order-item-price span {
    font-size: 11px;
}

.compact-order-items-panel .admin-order-item-price strong {
    font-size: 14px;
}

.compact-order-total-box {
    max-width: none;
    margin-left: 0;
    margin-top: 14px;
    border-radius: 18px;
    padding: 13px;
}

.compact-order-total-box div {
    padding: 8px 0;
}

.compact-order-total-box span,
.compact-order-total-box strong {
    font-size: 13px;
}

.compact-order-total-box .admin-order-total-final span,
.compact-order-total-box .admin-order-total-final strong {
    font-size: 16px;
}

/* Remove old full-width spacing */
.order-items-panel {
    margin-top: 0;
}

/* ================================
   PRODUCT DETAIL CLEAN TOPBAR NAV
   Fresh class names to avoid old icon CSS
   ================================ */

.product-clean-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.product-clean-nav a,
.product-clean-nav button,
.product-clean-nav span,
.product-clean-nav img,
.product-clean-nav i {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.product-clean-nav a:hover,
.product-clean-nav button:hover {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Text links: Offers / Reviews */
.product-nav-text-link {
    min-height: 38px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #eeeeee;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-nav-text-link:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Circle icon buttons: heart, bag, message, profile */
.product-like-clean-link,
.product-bag-clean-link,
.product-message-clean-link,
.product-profile-clean-link {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #111;
    border: 1px solid #eeeeee;
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Heart */
.product-like-clean-link {
    font-size: 21px;
    font-weight: 900;
    padding-bottom: 2px;
}

/* Bag */
.product-bag-clean-wrap,
.product-message-clean-wrap {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-bag-clean-icon {
    font-size: 19px;
    line-height: 1;
}

/* Message icon */
.product-message-clean-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
    display: block;
}

/* Profile */
.product-profile-clean-img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.product-profile-clean-fallback {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
}

/* Simple hover */
.product-like-clean-link:hover,
.product-bag-clean-link:hover,
.product-message-clean-link:hover,
.product-profile-clean-link:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.product-message-clean-link:hover .product-message-clean-icon {
    filter: invert(1);
}

/* Badges */
.product-nav-count-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-nav-text-link:hover .product-nav-count-badge {
    background: #fff;
    color: #111;
}

.product-bag-count-badge,
.product-message-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid #fff;
    background: #b42318;
    color: #fff;
}

.product-bag-clean-link:hover .product-bag-count-badge,
.product-message-clean-link:hover .product-message-count-badge {
    border-color: #111;
}

/* Admin sell/sign-up button */
.product-sell-clean-btn {
    min-height: 38px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-sell-clean-btn:hover {
    background: #333;
    border-color: #333;
}

/* Mobile */
@media (max-width: 700px) {
    .product-clean-nav {
        gap: 7px;
    }

    .product-nav-text-link,
    .product-sell-clean-btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .product-like-clean-link,
    .product-bag-clean-link,
    .product-message-clean-link,
    .product-profile-clean-link {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .product-profile-clean-img,
    .product-profile-clean-fallback {
        width: 30px;
        height: 30px;
    }
}

.product-like-clean-link {
    font-size: 18px !important;
    font-weight: 900;
    padding: 0 !important;
    line-height: 1 !important;
}

.product-like-clean-link::before {
    content: "";
}

.product-like-clean-link {
    transform: none !important;
}

.product-message-clean-i {
    font-size: 18px !important;
    line-height: 1 !important;
    color: inherit !important;
    animation: none !important;
    transform: none !important;
}

.product-message-clean-link:hover .product-message-clean-i {
    color: #fff !important;
}

/* ================================
   CLEAN TOPBAR ICON NAV
   Heart / Message / Profile
   ================================ */

.product-clean-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.product-clean-nav a,
.product-clean-nav button,
.product-clean-nav span,
.product-clean-nav img,
.product-clean-nav i {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.product-clean-nav a:hover,
.product-clean-nav button:hover {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Text links */
.product-nav-text-link {
    min-height: 38px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #eeeeee;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-nav-text-link:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Circle icon buttons */
.product-like-clean-link,
.product-message-clean-link,
.product-profile-clean-link {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #111;
    border: 1px solid #eeeeee;
    padding: 0 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Heart same size as message/profile */
.product-like-clean-link {
    font-size: 18px !important;
    font-weight: 900;
    line-height: 1 !important;
}

/* Message */
.product-message-clean-wrap {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-message-clean-i {
    font-size: 18px !important;
    line-height: 1 !important;
    color: inherit !important;
    animation: none !important;
    transform: none !important;
}

.product-message-clean-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
    display: block;
}

/* Profile */
.product-profile-clean-img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.product-profile-clean-fallback {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
}

/* Hover */
.product-like-clean-link:hover,
.product-message-clean-link:hover,
.product-profile-clean-link:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.product-message-clean-link:hover .product-message-clean-icon {
    filter: invert(1);
}

.product-message-clean-link:hover .product-message-clean-i {
    color: #fff !important;
}

/* Message badge */
.product-nav-count-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-message-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid #fff;
    background: #b42318;
    color: #fff;
}

.product-message-clean-link:hover .product-message-count-badge {
    border-color: #111;
}

/* Mobile */
@media (max-width: 700px) {
    .product-clean-nav {
        gap: 7px;
    }

    .product-nav-text-link {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .product-like-clean-link,
    .product-message-clean-link,
    .product-profile-clean-link {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .product-profile-clean-img,
    .product-profile-clean-fallback {
        width: 30px;
        height: 30px;
    }
}

/* ================================
   POLICY / LEGAL PAGES
   ================================ */

.policy-page {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 34px 18px 90px;
}

.policy-hero {
    background: #111;
    color: #fff;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.policy-hero .admin-eyebrow {
    color: #d1d5db;
}

.policy-hero h1 {
    margin: 6px 0 8px;
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.policy-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.policy-hero span {
    display: inline-flex;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 950;
}

.policy-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: 18px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
}

.policy-sidebar h2 {
    margin: 4px 0 14px;
    color: #064e3b;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.policy-sidebar-links {
    display: grid;
    gap: 9px;
}

.policy-sidebar-links a {
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d1fae5;
    color: #064e3b;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    line-height: 1.2;
}

.policy-sidebar-links a:hover {
    background: #064e3b;
    color: #fff;
}

.policy-content-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
}

.policy-content-card section {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eeeeee;
}

.policy-content-card section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-content-card h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.policy-content-card p {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.policy-content-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .policy-page {
        padding: 26px 14px 80px;
    }

    .policy-hero {
        border-radius: 24px;
        padding: 24px;
    }

    .policy-hero h1 {
        font-size: 32px;
    }

    .policy-content-card {
        border-radius: 22px;
        padding: 20px;
    }
}

/* ================================
   SIDEBAR POLICIES DROPDOWN
   ================================ */

.sidebar-policies-section {
    margin-top: 18px;
}

.sidebar-policies-dropdown .sidebar-notification-summary {
    cursor: pointer;
}

.sidebar-policies-dropdown .sidebar-notification-summary::after {
    content: "⌄";
    margin-left: auto;
    font-size: 13px;
    font-weight: 950;
    transition: transform 0.15s ease;
}

.sidebar-policies-dropdown[open] .sidebar-notification-summary::after {
    transform: rotate(180deg);
}

.sidebar-policies-dropdown .sidebar-notification-menu {
    margin-top: 8px;
}

.sidebar-policies-dropdown .sidebar-sub-link {
    font-size: 12px;
}

/* ================================
   SIMPLE LEGAL ARTICLE PAGES
   For Terms, Privacy, Returns, Shipping, etc.
   ================================ */

.legal-article-page {
    max-width: 940px;
    width: 100%;
    margin: 0 auto;
    padding: 52px 18px 90px;
}

.legal-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 42px;
    color: #777;
    font-size: 13px;
    font-weight: 800;
}

.legal-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.legal-breadcrumbs a:hover {
    color: #111;
    text-decoration: underline;
}

.legal-article-header {
    margin-bottom: 42px;
}

.legal-article-header h1 {
    margin: 0 0 24px;
    color: #111;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.legal-effective-date {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-style: italic;
    font-weight: 950;
}

.legal-article-content {
    color: #1f2937;
}

.legal-article-content section {
    margin-bottom: 48px;
}

.legal-article-content h2 {
    margin: 0 0 20px;
    color: #1f2937;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.legal-article-content h3 {
    margin: 24px 0 12px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 950;
}

.legal-article-content p {
    margin: 0 0 16px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.65;
}

.legal-article-content ol,
.legal-article-content ul {
    margin: 0 0 18px 22px;
    padding: 0;
}

.legal-article-content li {
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.6;
}

.legal-article-content strong {
    font-weight: 950;
}

.legal-important-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-important-box h3 {
    margin: 0 0 8px;
    color: #b42318;
    font-size: 17px;
    font-weight: 950;
}

.legal-important-box p,
.legal-important-box li {
    color: #7f1d1d;
}

.legal-note-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-note-box h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 17px;
    font-weight: 950;
}

.legal-related {
    border-top: 1px solid #e5e7eb;
    padding-top: 28px;
    margin-top: 58px;
}

.legal-related h2 {
    margin: 0 0 14px;
    color: #111;
    font-size: 20px;
    font-weight: 950;
}

.legal-related-links {
    display: grid;
    gap: 10px;
}

.legal-related-links a {
    color: #111;
    font-size: 15px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-help-box {
    margin-top: 38px;
    background: #111;
    color: #fff;
    border-radius: 20px;
    padding: 22px;
}

.legal-help-box h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.legal-help-box p {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

@media (max-width: 650px) {
    .legal-article-page {
        padding: 38px 16px 80px;
    }

    .legal-article-header h1 {
        font-size: 32px;
    }

    .legal-effective-date {
        font-size: 16px;
    }

    .legal-article-content h2 {
        font-size: 22px;
    }

    .legal-article-content p,
    .legal-article-content li {
        font-size: 15px;
    }
}

/* ================================
   SIMPLE LEGAL ARTICLE PAGES
   For Terms, Privacy, Returns, Shipping, etc.
   ================================ */

.legal-article-page {
    max-width: 940px;
    width: 100%;
    margin: 0 auto;
    padding: 52px 18px 90px;
}

.legal-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 42px;
    color: #777;
    font-size: 13px;
    font-weight: 800;
}

.legal-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.legal-breadcrumbs a:hover {
    color: #111;
    text-decoration: underline;
}

.legal-article-header {
    margin-bottom: 42px;
}

.legal-article-header h1 {
    margin: 0 0 24px;
    color: #111;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.legal-effective-date {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-style: italic;
    font-weight: 950;
}

.legal-article-content {
    color: #1f2937;
}

.legal-article-content section {
    margin-bottom: 48px;
}

.legal-article-content h2 {
    margin: 0 0 20px;
    color: #1f2937;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.legal-article-content h3 {
    margin: 24px 0 12px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 950;
}

.legal-article-content p {
    margin: 0 0 16px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.65;
}

.legal-article-content ol,
.legal-article-content ul {
    margin: 0 0 18px 22px;
    padding: 0;
}

.legal-article-content li {
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.6;
}

.legal-article-content strong {
    font-weight: 950;
}

.legal-important-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-important-box h3 {
    margin: 0 0 8px;
    color: #b42318;
    font-size: 17px;
    font-weight: 950;
}

.legal-important-box p,
.legal-important-box li {
    color: #7f1d1d;
}

.legal-note-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-note-box h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 17px;
    font-weight: 950;
}

.legal-related {
    border-top: 1px solid #e5e7eb;
    padding-top: 28px;
    margin-top: 58px;
}

.legal-related h2 {
    margin: 0 0 14px;
    color: #111;
    font-size: 20px;
    font-weight: 950;
}

.legal-related-links {
    display: grid;
    gap: 10px;
}

.legal-related-links a {
    color: #111;
    font-size: 15px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-help-box {
    margin-top: 38px;
    background: #111;
    color: #fff;
    border-radius: 20px;
    padding: 22px;
}

.legal-help-box h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.legal-help-box p {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

@media (max-width: 650px) {
    .legal-article-page {
        padding: 38px 16px 80px;
    }

    .legal-article-header h1 {
        font-size: 32px;
    }

    .legal-effective-date {
        font-size: 16px;
    }

    .legal-article-content h2 {
        font-size: 22px;
    }

    .legal-article-content p,
    .legal-article-content li {
        font-size: 15px;
    }
}

/* Returns page small emphasis */
.legal-important-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-important-box h3 {
    margin: 0 0 8px;
    color: #b42318;
    font-size: 17px;
    font-weight: 950;
}

.legal-important-box p,
.legal-important-box li {
    color: #7f1d1d;
}

.legal-note-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-note-box h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 17px;
    font-weight: 950;
}

/* ================================
   SIMPLE LEGAL ARTICLE PAGES
   Terms / Shipping / Returns / Privacy
   ================================ */

.legal-article-page {
    max-width: 940px;
    width: 100%;
    margin: 0 auto;
    padding: 52px 18px 90px;
}

.legal-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 42px;
    color: #777;
    font-size: 13px;
    font-weight: 800;
}

.legal-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.legal-breadcrumbs a:hover {
    color: #111;
    text-decoration: underline;
}

.legal-article-header {
    margin-bottom: 42px;
}

.legal-article-header h1 {
    margin: 0 0 24px;
    color: #111;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.legal-effective-date {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-style: italic;
    font-weight: 950;
}

.legal-article-content {
    color: #1f2937;
}

.legal-article-content section {
    margin-bottom: 48px;
}

.legal-article-content h2 {
    margin: 0 0 20px;
    color: #1f2937;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.legal-article-content h3 {
    margin: 24px 0 12px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 950;
}

.legal-article-content p {
    margin: 0 0 16px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.65;
}

.legal-article-content ol,
.legal-article-content ul {
    margin: 0 0 18px 22px;
    padding: 0;
}

.legal-article-content li {
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.6;
}

.legal-article-content strong {
    font-weight: 950;
}

/* Red attention box */
.legal-important-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-important-box h3 {
    margin: 0 0 8px;
    color: #b42318;
    font-size: 17px;
    font-weight: 950;
}

.legal-important-box p,
.legal-important-box li {
    color: #7f1d1d;
}

/* Neutral note box */
.legal-note-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
}

.legal-note-box h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 17px;
    font-weight: 950;
}

.legal-note-box p {
    color: #374151;
}

/* Related policies */
.legal-related {
    border-top: 1px solid #e5e7eb;
    padding-top: 28px;
    margin-top: 58px;
}

.legal-related h2 {
    margin: 0 0 14px;
    color: #111;
    font-size: 20px;
    font-weight: 950;
}

.legal-related-links {
    display: grid;
    gap: 10px;
}

.legal-related-links a {
    color: #111;
    font-size: 15px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-related-links a:hover {
    color: #555;
}

/* Help box */
.legal-help-box {
    margin-top: 38px;
    background: #111;
    color: #fff;
    border-radius: 20px;
    padding: 22px;
}

.legal-help-box h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.legal-help-box p {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

/* Mobile */
@media (max-width: 650px) {
    .legal-article-page {
        padding: 38px 16px 80px;
    }

    .legal-breadcrumbs {
        margin-bottom: 30px;
        font-size: 12px;
    }

    .legal-article-header {
        margin-bottom: 34px;
    }

    .legal-article-header h1 {
        font-size: 32px;
    }

    .legal-effective-date {
        font-size: 16px;
    }

    .legal-article-content section {
        margin-bottom: 38px;
    }

    .legal-article-content h2 {
        font-size: 22px;
    }

    .legal-article-content p,
    .legal-article-content li {
        font-size: 15px;
    }

    .legal-important-box,
    .legal-note-box,
    .legal-help-box {
        border-radius: 16px;
    }
}

/* ================================
   POLICY OVERVIEW PAGE - SIMPLE STYLE
   Uses same legal article look
   ================================ */

.policy-overview-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.policy-overview-sidebar {
    position: sticky;
    top: 22px;
    border-left: 3px solid #111;
    padding-left: 16px;
}

.policy-overview-sidebar-label {
    margin: 0 0 12px;
    color: #777;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.policy-overview-sidebar nav {
    display: grid;
    gap: 10px;
}

.policy-overview-sidebar nav a {
    color: #1f2937;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    line-height: 1.35;
}

.policy-overview-sidebar nav a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-overview-content section:first-child {
    margin-top: 0;
}

.policy-overview-content a {
    color: #111;
    font-weight: 950;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-overview-content a:hover {
    color: #555;
}

@media (max-width: 850px) {
    .policy-overview-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .policy-overview-sidebar {
        position: static;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        padding: 16px 0;
    }

    .policy-overview-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .policy-overview-sidebar nav {
        grid-template-columns: 1fr;
    }
}

/* ================================
   SHOP FOOTER - SMALL CONNECTED STYLE
   ================================ */

.page-shell {
    min-height: calc(100vh - 90px);
    align-items: stretch;
}

.shop-body {
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.shop-body .product-grid,
.shop-body .search-results-header {
    flex: 0 0 auto;
}

/* Pushes footer down when few products, keeps it after products when many */
.shop-footer {
    margin-top: auto;
    padding-top: 34px;
}

/* Smaller footer, no boxed look */
.site-footer {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border-top: 1px solid #e5e7eb;
    padding: 16px 0 18px;
}

/* Makes the top line feel connected with sidebar/content layout */
.page-shell .site-footer {
    border-top-color: #e5e7eb;
}

/* Remove extra big spacing from old footer CSS */
.shop-body .site-footer {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Compact footer content */
.site-footer-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 0;
}

.site-footer-main {
    min-width: 0;
}

.site-footer-brand {
    display: inline-flex;
    color: #111;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-decoration: none;
    line-height: 1.1;
}

.site-footer-brand:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer p {
    max-width: 620px;
    margin: 5px 0 0;
    color: #666;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.45;
}

.site-footer-disclaimer {
    color: #777 !important;
    font-size: 10.8px !important;
    font-weight: 650 !important;
}

/* Only a few clean policy links */
.site-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.site-footer-links a {
    color: #333;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer-links a:hover {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sidebar legal dropdown polish */
.sidebar-policies-section {
    margin-top: 18px;
}

.sidebar-policies-dropdown .sidebar-notification-summary {
    cursor: pointer;
}

.sidebar-policies-dropdown .sidebar-notification-summary::after {
    content: "⌄";
    margin-left: auto;
    font-size: 13px;
    font-weight: 950;
    transition: transform 0.15s ease;
}

.sidebar-policies-dropdown[open] .sidebar-notification-summary::after {
    transform: rotate(180deg);
}

.sidebar-policies-dropdown .sidebar-notification-menu {
    margin-top: 8px;
}

.sidebar-policies-dropdown .sidebar-sub-link {
    font-size: 12px;
}

/* Mobile */
@media (max-width: 850px) {
    .page-shell {
        min-height: auto;
    }

    .shop-body {
        min-height: calc(100vh - 100px);
    }

    .shop-footer {
        padding-top: 30px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding-bottom: 16px;
    }

    .site-footer p {
        font-size: 11px;
    }

    .site-footer-links a {
        font-size: 11.5px;
    }
}

/* ================================
   SMALL CONNECTED SHOP FOOTER FIX
   ================================ */

/* Adjust these if your sidebar/gap are different */
.page-shell {
    --footer-sidebar-width: 240px;
    --footer-sidebar-gap: 24px;
    overflow: visible;
}

.shop-body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 110px);
    overflow: visible;
    padding-bottom: 0 !important;
}

.shop-body .product-grid,
.shop-body .search-results-header {
    flex: 0 0 auto;
}

/* Push footer to bottom when there are few products */
.shop-footer {
    margin-top: auto !important;
    padding-top: 18px !important;
    padding-bottom: 0 !important;
    position: relative;
}

/* Remove the normal footer border because we are drawing a full connected line */
.shop-body .site-footer,
.site-footer {
    border-top: none !important;
    background: transparent !important;
    padding: 12px 0 6px !important;
    margin-bottom: 0 !important;
}

/* This is the line that reaches left into the sidebar area */
.shop-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(-1 * (var(--footer-sidebar-width) + var(--footer-sidebar-gap)));
    right: 0;
    height: 1px;
    background: #e5e7eb;
    pointer-events: none;
}

/* Smaller footer content */
.site-footer-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-footer-main {
    min-width: 0;
}

.site-footer-brand {
    display: inline-flex;
    color: #111;
    font-size: 13px !important;
    font-weight: 950;
    letter-spacing: -0.035em;
    text-decoration: none;
    line-height: 1.1;
}

.site-footer-brand:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hide the big description if it still exists */
.site-footer-main p:not(.site-footer-disclaimer) {
    display: none !important;
}

/* Keep disclaimer small */
.site-footer-disclaimer {
    max-width: 560px;
    margin: 4px 0 0 !important;
    color: #777 !important;
    font-size: 10.5px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

/* Small right-side links */
.site-footer-links {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
}

.site-footer-links a {
    color: #333;
    font-size: 11.5px !important;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer-links a:hover {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Remove extra bottom gap from page */
.shop-page,
.shop-page body,
body.shop-page {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* Mobile: don't extend line left because sidebar stacks */
@media (max-width: 850px) {
    .page-shell {
        --footer-sidebar-width: 0px;
        --footer-sidebar-gap: 0px;
    }

    .shop-body {
        min-height: calc(100vh - 100px);
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer-links {
        justify-content: flex-start;
    }

    .site-footer-disclaimer {
        max-width: 100%;
    }
}

/* ================================
   PRODUCT DETAIL FOOTER - FULL WIDTH LINE
   ================================ */

body {
    overflow-x: hidden;
}

.product-detail-footer {
    position: relative;
    max-width: 1180px;
    width: calc(100% - 36px);
    margin: 52px auto 0;
    padding: 16px 0 22px !important;
    border-top: none !important;
    background: transparent !important;
}

/* This makes the line go across the whole page */
.product-detail-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: #e5e7eb;
    transform: translateX(-50%);
    pointer-events: none;
}

.product-detail-footer-inner {
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.product-detail-footer .site-footer-main {
    min-width: 0;
}

.product-detail-footer .site-footer-brand {
    color: #111;
    font-size: 13px !important;
    font-weight: 950;
    letter-spacing: -0.035em;
    text-decoration: none;
    line-height: 1.1;
}

.product-detail-footer .site-footer-disclaimer {
    max-width: 620px;
    margin: 4px 0 0 !important;
    color: #777 !important;
    font-size: 10.5px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

.product-detail-footer .site-footer-links {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
}

.product-detail-footer .site-footer-links a {
    color: #333;
    font-size: 11.5px !important;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.product-detail-footer .site-footer-links a:hover {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .product-detail-footer {
        width: calc(100% - 32px);
        margin-top: 42px;
    }

    .product-detail-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .product-detail-footer .site-footer-links {
        justify-content: flex-start;
    }
}

/* ================================
   ADMIN CRASH LOGS
   ================================ */

.admin-error-log-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 18px 90px;
}

.admin-error-log-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.admin-error-log-header h1 {
    margin: 0;
    color: #111;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.admin-error-log-header p {
    margin: 8px 0 0;
    color: #666;
    font-size: 14px;
    font-weight: 750;
}

.admin-error-log-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-error-log-filter-row a {
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.admin-error-log-filter-row a.active,
.admin-error-log-filter-row a:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.admin-error-log-list {
    display: grid;
    gap: 18px;
}

.admin-error-log-card {
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(127, 29, 29, 0.08);
}

.admin-error-log-card.resolved {
    border-color: #e5e7eb;
    box-shadow: none;
}

.admin-error-log-card-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.admin-error-log-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-error-log-title-row h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 950;
}

.admin-error-id {
    color: #777;
    font-size: 13px;
    font-weight: 950;
}

.error-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 950;
}

.error-status-pill.open {
    background: #fef2f2;
    color: #b42318;
}

.error-status-pill.resolved {
    background: #ecfdf3;
    color: #067647;
}

.admin-error-message {
    margin: 8px 0 0;
    color: #7f1d1d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.admin-error-log-meta-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-error-log-meta-grid div {
    background: #f9fafb;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 10px;
    min-width: 0;
}

.admin-error-log-meta-grid span {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-error-log-meta-grid strong {
    display: block;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.admin-error-small {
    margin: 12px 0 0;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.admin-error-traceback {
    margin-top: 16px;
    border-radius: 16px;
    background: #111;
    color: #fff;
    overflow: hidden;
}

.admin-error-traceback summary {
    cursor: pointer;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 950;
}

.admin-error-traceback pre {
    margin: 0;
    max-height: 360px;
    overflow: auto;
    padding: 14px;
    background: #050505;
    color: #f9fafb;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.admin-error-action-form {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.admin-error-action-form textarea {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    resize: vertical;
    font-size: 13px;
    font-weight: 750;
}

.admin-error-action-form button {
    min-height: 44px;
    border: none;
    border-radius: 14px;
    background: #111;
    color: #fff;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.admin-error-action-form button:hover {
    background: #333;
}

.admin-crash-sidebar-link {
    color: #b42318 !important;
    font-weight: 950 !important;
}

.public-error-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.public-error-card {
    max-width: 520px;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.public-error-card h1 {
    margin: 0 0 10px;
    color: #111;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.public-error-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

.public-error-id {
    margin-top: 12px !important;
    color: #b42318 !important;
    font-weight: 950 !important;
}

.public-error-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.public-error-actions a {
    min-height: 38px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.public-error-actions a:hover {
    background: #333;
}

@media (max-width: 800px) {
    .admin-error-log-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-error-log-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-error-action-form {
        grid-template-columns: 1fr;
    }
}

/* ================================
   ADMIN CRASH LOG LINK / BADGE
   ================================ */

.admin-crash-sidebar-link {
    color: #b42318 !important;
    font-weight: 950 !important;
}

.admin-crash-sidebar-link:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.admin-crash-sidebar-link .sidebar-small-red-badge {
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

/* Admin dashboard crash card */
.admin-dashboard-card.admin-crash-card {
    border-color: #fecaca;
    background: #fff;
}

.admin-dashboard-card.admin-crash-card:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.admin-dashboard-card.admin-crash-card span {
    color: #991b1b;
}

.admin-dashboard-card.admin-crash-card strong {
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 950;
}

.admin-error-view-link {
    background: #b42318 !important;
}

.admin-error-view-link:hover {
    background: #991b1b !important;
}

.public-error-admin-note {
    margin-top: 12px !important;
    color: #b42318 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.account-limited-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px 90px;
}

.account-limited-card {
    max-width: 620px;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.07);
}

.account-limited-eyebrow {
    margin: 0 0 12px;
    color: #b42318;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-limited-card h1 {
    margin: 0 0 16px;
    color: #111;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.account-limited-card p {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.account-limited-box {
    margin: 24px 0;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 18px;
    padding: 18px;
}

.account-limited-box h2 {
    margin: 0 0 8px;
    color: #991b1b;
    font-size: 18px;
    font-weight: 950;
}

.account-limited-box p {
    margin: 0;
    color: #7f1d1d;
}

.account-limited-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.account-limited-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 16px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.account-limited-actions a:nth-child(2) {
    background: #f3f4f6;
    color: #111;
}

.account-limited-actions a:nth-child(3) {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 560px) {
    .account-limited-card {
        padding: 24px;
        border-radius: 22px;
    }

    .account-limited-card h1 {
        font-size: 29px;
    }
}

.admin-safety-page {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 18px 90px;
}

.admin-safety-header {
    margin-bottom: 28px;
}

.admin-safety-header h1 {
    margin: 0 0 12px;
    color: #111;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.admin-safety-header p {
    max-width: 760px;
    margin: 0;
    color: #555;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.admin-safety-flashes {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-safety-flash {
    margin: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 900;
}

.admin-safety-flash.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.admin-safety-flash.error {
    background: #fef2f2;
    color: #b42318;
    border: 1px solid #fecaca;
}

.admin-safety-toolbar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.045);
}

.admin-safety-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-safety-search-form input,
.admin-safety-search-form select {
    min-height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 12px;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

.admin-safety-search-form input {
    min-width: 240px;
    flex: 1;
}

.admin-safety-search-form button,
.admin-safety-search-form a {
    min-height: 42px;
    border: none;
    border-radius: 14px;
    padding: 0 16px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-safety-search-form a {
    background: #f3f4f6;
    color: #111;
}

.admin-safety-status-guide {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.admin-safety-status-guide div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
}

.admin-safety-status-guide strong {
    display: block;
    margin-bottom: 6px;
    color: #111;
    font-size: 13px;
    font-weight: 950;
}

.admin-safety-status-guide span {
    color: #667085;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.4;
}

.admin-safety-user-list {
    display: grid;
    gap: 18px;
}

.admin-safety-user-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.045);
}

.admin-safety-user-card.status-limited {
    border-color: #fedf89;
}

.admin-safety-user-card.status-suspended,
.admin-safety-user-card.status-banned {
    border-color: #fecaca;
}

.admin-safety-user-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-safety-user-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.admin-safety-user-title-row h2 {
    margin: 0;
    color: #111;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.admin-safety-user-top p {
    margin: 3px 0;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.admin-safety-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 950;
    text-transform: capitalize;
}

.admin-safety-status-pill.active {
    background: #ecfdf3;
    color: #027a48;
}

.admin-safety-status-pill.watchlist {
    background: #eff8ff;
    color: #175cd3;
}

.admin-safety-status-pill.limited {
    background: #fffaeb;
    color: #b54708;
}

.admin-safety-status-pill.suspended,
.admin-safety-status-pill.banned {
    background: #fef2f2;
    color: #b42318;
}

.admin-safety-user-quick span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 950;
}

.admin-safety-user-quick .safe {
    background: #ecfdf3;
    color: #027a48;
}

.admin-safety-user-quick .watch {
    background: #eff8ff;
    color: #175cd3;
}

.admin-safety-user-quick .limited {
    background: #fffaeb;
    color: #b54708;
}

.admin-safety-user-quick .danger {
    background: #fef2f2;
    color: #b42318;
}

.admin-safety-existing-note {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
}

.admin-safety-existing-note strong {
    display: block;
    margin-bottom: 5px;
    color: #111;
    font-size: 12px;
    font-weight: 950;
}

.admin-safety-existing-note p {
    margin: 0;
    color: #4b5563;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.admin-safety-small {
    margin: 0 0 14px;
    color: #777;
    font-size: 11.5px;
    font-weight: 800;
}

.admin-safety-action-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.admin-safety-action-form label {
    display: grid;
    gap: 6px;
    color: #111;
    font-size: 12px;
    font-weight: 950;
}

.admin-safety-action-form select,
.admin-safety-action-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 11px 12px;
    color: #111;
    font-size: 13px;
    font-weight: 750;
    outline: none;
}

.admin-safety-action-form textarea {
    min-height: 76px;
    resize: vertical;
}

.admin-safety-action-row {
    display: flex;
    justify-content: flex-end;
}

.admin-safety-action-row button {
    min-height: 42px;
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.admin-safety-action-row button:hover {
    background: #333;
}

@media (max-width: 900px) {
    .admin-safety-status-guide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-safety-user-top {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .admin-safety-page {
        padding: 36px 16px 80px;
    }

    .admin-safety-header h1 {
        font-size: 31px;
    }

    .admin-safety-status-guide {
        grid-template-columns: 1fr;
    }

    .admin-safety-search-form input,
    .admin-safety-search-form select,
    .admin-safety-search-form button,
    .admin-safety-search-form a {
        width: 100%;
    }
}

.admin-safety-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.admin-safety-search-box input {
    width: 100%;
}

.admin-safety-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.admin-safety-suggestions.show {
    display: block;
}

.admin-safety-suggestion-item {
    width: 100%;
    min-height: 48px;
    border: none;
    border-bottom: 1px solid #eeeeee;
    border-radius: 0;
    background: #ffffff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    text-align: left;
}

.admin-safety-suggestion-item:last-child {
    border-bottom: none;
}

.admin-safety-suggestion-item:hover {
    background: #f3f4f6;
}

.admin-safety-suggestion-name {
    color: #111111;
    font-size: 14px;
    font-weight: 950;
}

.admin-safety-suggestion-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 950;
    text-transform: capitalize;
    white-space: nowrap;
}

.admin-safety-suggestion-status.active {
    background: #ecfdf3;
    color: #027a48;
}

.admin-safety-suggestion-status.watchlist {
    background: #eff8ff;
    color: #175cd3;
}

.admin-safety-suggestion-status.limited {
    background: #fffaeb;
    color: #b54708;
}

.admin-safety-suggestion-status.suspended,
.admin-safety-suggestion-status.banned {
    background: #fef2f2;
    color: #b42318;
}

@media (max-width: 560px) {
    .admin-safety-search-box {
        width: 100%;
        min-width: 0;
    }

    .admin-safety-suggestion-item {
        min-height: 52px;
    }
}

.admin-safety-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.admin-safety-search-box input {
    width: 100%;
}

.admin-safety-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 999;
    display: none;
    background: #ffffff;
    border: 1px solid #cfd4dc;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.admin-safety-suggestions.show {
    display: block;
}

.admin-safety-suggestion-item {
    width: 100%;
    min-height: 48px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: #ffffff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    text-align: left;
}

.admin-safety-suggestion-item:last-child {
    border-bottom: none;
}

.admin-safety-suggestion-item:hover {
    background: #111111;
}

.admin-safety-suggestion-item:hover .admin-safety-suggestion-name,
.admin-safety-suggestion-item:hover .admin-safety-suggestion-email {
    color: #ffffff;
}

.admin-safety-suggestion-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-safety-suggestion-name {
    color: #111111;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

.admin-safety-suggestion-email {
    color: #667085;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
}

.admin-safety-suggestion-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 950;
    text-transform: capitalize;
    white-space: nowrap;
}

.admin-safety-suggestion-status.active {
    background: #ecfdf3;
    color: #027a48;
}

.admin-safety-suggestion-status.watchlist {
    background: #eff8ff;
    color: #175cd3;
}

.admin-safety-suggestion-status.limited {
    background: #fffaeb;
    color: #b54708;
}

.admin-safety-suggestion-status.suspended,
.admin-safety-suggestion-status.banned {
    background: #fef2f2;
    color: #b42318;
}

.admin-safety-user-list {
    display: grid;
    gap: 12px;
}

.admin-safety-user-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}

.admin-safety-user-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.admin-safety-user-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.admin-safety-user-title-row h2 {
    margin: 0;
    color: #111;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.admin-safety-user-top p {
    margin: 2px 0;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.admin-safety-status-pill {
    min-height: 21px;
    padding: 0 8px;
    font-size: 10px;
}

.admin-safety-user-quick span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
}

.admin-safety-existing-note {
    border-radius: 12px;
    padding: 9px;
    margin-bottom: 8px;
}

.admin-safety-existing-note strong {
    font-size: 11px;
}

.admin-safety-existing-note p {
    font-size: 11px;
}

.admin-safety-small {
    margin: 0 0 10px;
    font-size: 10.5px;
}

.admin-safety-action-form {
    gap: 8px;
    margin-top: 10px;
}

.admin-safety-action-form label {
    gap: 5px;
    font-size: 11px;
}

.admin-safety-action-form select,
.admin-safety-action-form textarea {
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 12px;
}

.admin-safety-action-form textarea {
    min-height: 52px;
}

.admin-safety-action-row button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

/* Clean Admin Safety user search dropdown */
.admin-safety-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.admin-safety-search-box input {
    width: 100%;
}

.admin-safety-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;

    display: none;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12) !important;

    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0 !important;
}

.admin-safety-suggestions.show {
    display: block;
}

.admin-safety-suggestion-item {
    width: 100%;
    min-height: 44px;

    border: none !important;
    border-bottom: 1px solid #f1f1f1 !important;
    border-radius: 0 !important;

    background: #ffffff !important;
    color: #111 !important;

    padding: 9px 14px !important;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    cursor: pointer;
    text-align: left;
}

.admin-safety-suggestion-item:last-child {
    border-bottom: none !important;
}

.admin-safety-suggestion-item:hover {
    background: #f3f4f6 !important;
}

.admin-safety-suggestion-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-safety-suggestion-name {
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1.2;
}

.admin-safety-suggestion-email {
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.2;
}

.admin-safety-suggestion-item:hover .admin-safety-suggestion-name {
    color: #111 !important;
}

.admin-safety-suggestion-item:hover .admin-safety-suggestion-email {
    color: #667085 !important;
}

.admin-safety-suggestion-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 22px;
    border-radius: 999px;
    padding: 0 9px;

    font-size: 10.5px !important;
    font-weight: 950 !important;
    text-transform: capitalize;
    white-space: nowrap;
}

.admin-safety-suggestion-status.active {
    background: #ecfdf3 !important;
    color: #027a48 !important;
}

.admin-safety-suggestion-status.watchlist {
    background: #eff8ff !important;
    color: #175cd3 !important;
}

.admin-safety-suggestion-status.limited {
    background: #fffaeb !important;
    color: #b54708 !important;
}

.admin-safety-suggestion-status.suspended,
.admin-safety-suggestion-status.banned {
    background: #fef2f2 !important;
    color: #b42318 !important;
}

.offer-page-notice {
    margin: 14px 0 18px;
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #92400e;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 900;
}

.product-notification-clean-link {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-notification-clean-link i {
    font-size: 20px;
    line-height: 1;
}

.product-notification-clean-link:hover {
    background: #111;
    color: #fff;
}

.topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legal-help-box a {
    color: #fff;
    font-weight: 950;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-help-box strong {
    color: #fff;
    font-weight: 950;
}

.admin-review-page {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 46px 18px 90px;
}

.admin-review-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-review-header h1 {
    margin: 0 0 10px;
    color: #111;
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.admin-review-header p {
    max-width: 700px;
    margin: 0;
    color: #555;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
}

.admin-review-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-review-filter-row a {
    min-height: 38px;
    border-radius: 999px;
    padding: 0 14px;
    background: #f3f4f6;
    color: #111;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.admin-review-filter-row a.active,
.admin-review-filter-row a:hover {
    background: #111;
    color: #fff;
}

.admin-review-notice {
    margin-bottom: 18px;
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #027a48;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 900;
}

.admin-review-list {
    display: grid;
    gap: 14px;
}

.admin-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.045);
}

.admin-review-card.hidden-review-card {
    border-color: #fecaca;
    background: #fffafa;
}

.admin-review-card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.admin-review-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.admin-review-title-row h2 {
    margin: 0;
    color: #111;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.admin-review-status {
    min-height: 22px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 10.5px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
}

.admin-review-status.visible {
    background: #ecfdf3;
    color: #027a48;
}

.admin-review-status.hidden {
    background: #fef2f2;
    color: #b42318;
}

.admin-review-meta {
    margin: 0;
    color: #667085;
    font-size: 11.5px;
    font-weight: 800;
}

.admin-review-rating {
    min-width: 48px;
    height: 36px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-review-body {
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 13px;
    margin-bottom: 12px;
}

.admin-review-body p {
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.muted-review-text {
    color: #777 !important;
    font-style: italic;
}

.admin-review-compliments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.admin-review-compliments strong {
    font-weight: 950;
}

.admin-review-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.admin-review-info-grid div {
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 9px;
}

.admin-review-info-grid span {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-review-info-grid strong {
    color: #111;
    font-size: 11.5px;
    font-weight: 850;
    word-break: break-word;
}

.admin-review-hidden-reason {
    margin-bottom: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 12px;
}

.admin-review-hidden-reason strong {
    display: block;
    margin-bottom: 5px;
    color: #991b1b;
    font-size: 12px;
    font-weight: 950;
}

.admin-review-hidden-reason p {
    margin: 0;
    color: #7f1d1d;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.admin-review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-review-secondary-link,
.admin-review-restore-btn,
.admin-review-hide-btn {
    min-height: 38px;
    border: none;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-review-secondary-link {
    background: #f3f4f6;
    color: #111;
}

.admin-review-restore-btn {
    background: #ecfdf3;
    color: #027a48;
}

.admin-review-hide-btn {
    background: #dc2626;
    color: #fff;
}

.admin-review-hide-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.admin-review-hide-form input {
    min-height: 38px;
    max-width: 340px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 750;
    outline: none;
}

.image-skeleton-wrap {
    position: relative;
    overflow: hidden;
    background: #f1f1f1;
    border-radius: inherit;
    isolation: isolate;
}

.image-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(238, 238, 238, 1) 0%,
            rgba(248, 248, 248, 1) 45%,
            rgba(238, 238, 238, 1) 100%
        );
    background-size: 220% 100%;
    animation: skeleton-loading 1.25s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.image-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

.skeleton-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.skeleton-img.loaded {
    opacity: 1;
}

@keyframes skeleton-loading {
    0% {
        background-position: 220% 0;
    }

    100% {
        background-position: -220% 0;
    }
}
/* FINAL MOBILE ONLY: no sidebar, clean topbar, 2-column shop */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.shop-page {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Topbar mobile proportions */
    body.shop-page .topbar {
        height: auto !important;
        min-height: 54px !important;
        display: grid !important;
        grid-template-columns: 104px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 7px 8px !important;
    }

    body.shop-page .brand {
        width: 104px !important;
        min-width: 104px !important;
        max-width: 104px !important;
        gap: 4px !important;
        overflow: visible !important;
    }

    body.shop-page .brand-logo {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.shop-page .brand-name-full {
        display: none !important;
    }

    body.shop-page .brand-name,
    body.shop-page .brand-name-short {
        max-width: 76px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    body.shop-page .brand-sub {
        display: none !important;
    }

    /* Search bar stays inside its lane */
    body.shop-page .searchbar,
    body.shop-page .searchbar-inner,
    body.shop-page .searchbar input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.shop-page .searchbar-inner,
    body.shop-page .searchbar input,
    body.shop-page .searchbar button {
        height: 32px !important;
    }

    body.shop-page .searchbar input {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }

    body.shop-page .searchbar button {
        width: 32px !important;
        flex: 0 0 32px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.shop-page .searchbar button::before {
        content: "⌕";
        font-size: 16px;
        font-weight: 800;
    }

    /* Hide less important topbar links on mobile */
    body.shop-page .reviews-nav-link,
    body.shop-page .message-icon-link,
    body.shop-page .likes-icon-link,
    body.shop-page .list-item-btn {
        display: none !important;
    }

    body.shop-page .topbar-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }

    body.shop-page .product-notification-clean-link,
    body.shop-page .cart-icon-link,
    body.shop-page .profile-nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.shop-page .topbar-nav i {
        font-size: 19px !important;
    }

    body.shop-page .topbar-profile-img,
    body.shop-page .topbar-profile-fallback {
        width: 23px !important;
        height: 23px !important;
        min-width: 23px !important;
        font-size: 10px !important;
    }

    /* Full-width product area */
    body.shop-page .page-shell,
    body.shop-page .shop-body {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body.shop-page .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 0 10px 28px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body.shop-page .product-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.shop-page .product-card-image-wrap,
    body.shop-page .image-skeleton-wrap,
    body.shop-page .product-card-img,
    body.shop-page .skeleton-img {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.shop-page .product-title {
        font-size: 12px !important;
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    body.shop-page .product-price {
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    body.shop-page .topbar {
        height: auto !important;
        min-height: 54px !important;
        grid-template-columns: 104px minmax(0, 1fr) auto !important;
        gap: 6px !important;
        padding: 7px 8px !important;
    }

    body.shop-page .brand {
        width: 104px !important;
        min-width: 104px !important;
        max-width: 104px !important;
        gap: 4px !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
    }

    body.shop-page .brand-logo {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.shop-page .brand-name-full {
        display: none !important;
    }

    body.shop-page .brand-name-short {
        display: inline-block !important;
        max-width: 76px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    body.shop-page .brand-sub {
        display: none !important;
    }

    body.shop-page .searchbar,
    body.shop-page .searchbar-inner,
    body.shop-page .searchbar input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.shop-page .searchbar-inner,
    body.shop-page .searchbar input,
    body.shop-page .searchbar button {
        height: 32px !important;
    }

    body.shop-page .searchbar input {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }

    body.shop-page .searchbar button {
        width: 32px !important;
        flex: 0 0 32px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.shop-page .searchbar button::before {
        content: "⌕";
        font-size: 16px;
        font-weight: 800;
    }

    body.shop-page .topbar-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        flex-shrink: 0 !important;
        width: auto !important;
    }
}

.brand-name-short {
    display: none;
}

@media (max-width: 768px) {
    body.shop-page .brand-name-full {
        display: none !important;
    }

    body.shop-page .brand-name-short {
        display: inline-block !important;
    }
}

@media (max-width: 768px) {
    body.shop-page .topbar {
        grid-template-columns: 104px minmax(0, 1fr) 78px !important;
        gap: 6px !important;
    }

    body.shop-page .searchbar {
        width: calc(100% - 8px) !important;
        max-width: calc(100% - 8px) !important;
        justify-self: start !important;
        margin-right: 8px !important;
    }

    body.shop-page .topbar-nav {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        justify-content: flex-end !important;
        gap: 7px !important;
    }
}

/* MOBILE TOPBAR: brand/icons on row 1, search on row 2 */
@media (max-width: 768px) {
    body.shop-page .topbar {
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        row-gap: 8px !important;
        column-gap: 8px !important;
        padding: 8px 10px 10px !important;
    }

    body.shop-page .brand {
        grid-column: 1 / 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        gap: 5px !important;
        overflow: visible !important;
    }

    body.shop-page .brand-logo {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.shop-page .brand-name-full {
        display: none !important;
    }

    body.shop-page .brand-name-short {
        display: inline-block !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.shop-page .brand-sub {
        display: none !important;
    }

    body.shop-page .topbar-nav {
        grid-column: 3 / 4 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    /* Keep only important icons on mobile */
    body.shop-page .reviews-nav-link,
    body.shop-page .message-icon-link,
    body.shop-page .likes-icon-link,
    body.shop-page .list-item-btn {
        display: none !important;
    }

    body.shop-page .product-notification-clean-link,
    body.shop-page .cart-icon-link,
    body.shop-page .profile-nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.shop-page .topbar-nav i {
        font-size: 20px !important;
    }

    body.shop-page .topbar-profile-img,
    body.shop-page .topbar-profile-fallback {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 10px !important;
    }

    body.shop-page .searchbar {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.shop-page .searchbar-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
    }

    body.shop-page .searchbar input {
        width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        font-size: 13px !important;
        padding: 7px 10px !important;
    }

    body.shop-page .searchbar button {
        width: 38px !important;
        height: 36px !important;
        flex: 0 0 38px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.shop-page .searchbar button::before {
        content: "⌕";
        font-size: 17px;
        font-weight: 800;
    }
}

/* MOBILE ONLY: closeable sidebar drawer */
@media (max-width: 768px) {
    body.shop-page {
        overflow-x: hidden !important;
    }

    body.shop-page .page-shell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.shop-page .shop-body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.shop-page .shop-sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 82vw !important;
        max-width: 320px !important;
        height: 100dvh !important;
        background: #fff !important;
        z-index: 7000 !important;
        overflow-y: auto !important;
        padding: 22px 18px !important;
        transform: translateX(-105%) !important;
        transition: transform 0.25s ease !important;
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.2) !important;
    }

    body.shop-page.mobile-sidebar-open .shop-sidebar {
        transform: translateX(0) !important;
    }

    .mobile-category-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 8px 10px 10px;
        padding: 9px 14px;
        border-radius: 999px;
        border: 1px solid #ddd;
        background: #fff;
        color: #111;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
    }

    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 6500;
    }

    body.shop-page.mobile-sidebar-open .mobile-sidebar-overlay {
        display: block;
    }
}

/* MOBILE ONLY: sidebar drawer button + drawer */
@media (max-width: 768px) {
    body.shop-page .page-shell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.shop-page .shop-body {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.shop-page .shop-sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 82vw !important;
        max-width: 320px !important;
        height: 100dvh !important;
        background: #fff !important;
        z-index: 7000 !important;
        overflow-y: auto !important;
        padding: 22px 18px !important;
        transform: translateX(-105%) !important;
        transition: transform 0.25s ease !important;
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.2) !important;
    }

    body.shop-page.mobile-sidebar-open .shop-sidebar {
        transform: translateX(0) !important;
    }

    .mobile-category-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin: 8px 10px 10px;
        padding: 9px 14px;
        border-radius: 999px;
        border: 1px solid #ddd;
        background: #fff;
        color: #111;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
    }

    .mobile-category-btn i {
        font-size: 17px;
    }

    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 6500;
    }

    body.shop-page.mobile-sidebar-open .mobile-sidebar-overlay {
        display: block;
    }
}

/* Mobile Mercari-style menu */
.mobile-menu-btn,
.mobile-menu-panel {
    display: none;
}

@media (max-width: 768px) {
    body.shop-page .shop-sidebar,
    body.shop-page .sidebar {
        display: none !important;
    }

    body.shop-page .topbar {
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 36px auto minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        column-gap: 8px !important;
        row-gap: 8px !important;
        padding: 8px 10px 10px !important;
    }

    body.shop-page .mobile-menu-btn {
        grid-column: 1;
        grid-row: 1;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid #dddddd;
        border-radius: 999px;
        background: #ffffff;
        color: #111111;
        padding: 0;
        cursor: pointer;
    }

    body.shop-page .mobile-menu-btn i {
        font-size: 20px;
    }

    body.shop-page .brand {
        grid-column: 2;
        grid-row: 1;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        gap: 5px !important;
    }

    body.shop-page .brand-logo {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.shop-page .brand-name-full {
        display: none !important;
    }

    body.shop-page .brand-name-short {
        display: inline-block !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.shop-page .brand-sub {
        display: none !important;
    }

    body.shop-page .topbar-nav {
        grid-column: 4;
        grid-row: 1;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }

    body.shop-page .reviews-nav-link,
    body.shop-page .message-icon-link,
    body.shop-page .likes-icon-link,
    body.shop-page .list-item-btn {
        display: none !important;
    }

    body.shop-page .product-notification-clean-link,
    body.shop-page .cart-icon-link,
    body.shop-page .profile-nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.shop-page .topbar-nav i {
        font-size: 20px !important;
    }

    body.shop-page .topbar-profile-img,
    body.shop-page .topbar-profile-fallback {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 10px !important;
    }

    body.shop-page .searchbar {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.shop-page .searchbar-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
    }

    body.shop-page .searchbar input {
        width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        font-size: 13px !important;
        padding: 7px 10px !important;
    }

    body.shop-page .searchbar button {
        width: 38px !important;
        height: 36px !important;
        flex: 0 0 38px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.shop-page .searchbar button::before {
        content: "⌕";
        font-size: 17px;
        font-weight: 800;
    }

    body.shop-page .mobile-menu-panel {
        display: none;
        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
        padding: 0 10px 12px;
    }

    body.shop-page.mobile-menu-open .mobile-menu-panel {
        display: block;
    }

    body.shop-page .mobile-menu-inner {
        border: 1px solid #eeeeee;
        border-radius: 18px;
        padding: 12px;
        background: #ffffff;
        max-height: 62vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    }

    body.shop-page .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    body.shop-page .mobile-menu-close {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 1px solid #dddddd;
        background: #ffffff;
        color: #111111;
        cursor: pointer;
        font-weight: 800;
    }

    body.shop-page .mobile-menu-section {
        padding: 10px 0;
        border-top: 1px solid #f0f0f0;
    }

    body.shop-page .mobile-menu-section:first-of-type {
        border-top: none;
        padding-top: 0;
    }

    body.shop-page .mobile-menu-heading {
        margin: 0 0 8px;
        font-size: 11px;
        font-weight: 800;
        color: #777777;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    body.shop-page .mobile-menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 4px;
        text-decoration: none;
        color: #111111;
        font-size: 14px;
        font-weight: 650;
        border-radius: 10px;
    }

    body.shop-page .mobile-menu-link:hover {
        background: #f7f7f7;
    }

    body.shop-page .mobile-menu-badge {
        min-width: 18px;
        height: 18px;
        padding: 0 6px;
        border-radius: 999px;
        background: #e53935;
        color: #ffffff;
        font-size: 10px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.shop-page .page-shell,
    body.shop-page .shop-body {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.shop-page .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 0 10px 28px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* MOBILE TOPBAR: logo row + menu/search row */
@media (max-width: 768px) {
    body.shop-page .topbar {
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        column-gap: 8px !important;
        row-gap: 8px !important;
        padding: 8px 10px 10px !important;
    }

    /* Row 1: brand/logo */
    body.shop-page .brand {
        grid-column: 1 / 3 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        gap: 5px !important;
        overflow: visible !important;
    }

    body.shop-page .brand-logo {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.shop-page .brand-name-full {
        display: none !important;
    }

    body.shop-page .brand-name-short {
        display: inline-block !important;
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.shop-page .brand-sub {
        display: none !important;
    }

    /* Row 1: right-side icons */
    body.shop-page .topbar-nav {
        grid-column: 3 / 4 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 9px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    body.shop-page .reviews-nav-link,
    body.shop-page .message-icon-link,
    body.shop-page .likes-icon-link,
    body.shop-page .list-item-btn {
        display: none !important;
    }

    body.shop-page .product-notification-clean-link,
    body.shop-page .cart-icon-link,
    body.shop-page .profile-nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.shop-page .topbar-nav i {
        font-size: 20px !important;
    }

    body.shop-page .topbar-profile-img,
    body.shop-page .topbar-profile-fallback {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 10px !important;
    }

    /* Row 2: menu/sidebar button */
    body.shop-page .mobile-menu-btn {
        grid-column: 1 / 2 !important;
        grid-row: 2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border: 1px solid #dddddd !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #111111 !important;
        padding: 0 !important;
        cursor: pointer !important;
    }

    body.shop-page .mobile-menu-btn i {
        font-size: 20px !important;
    }

    /* Row 2: search bar */
    body.shop-page .searchbar {
        grid-column: 2 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.shop-page .searchbar-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
    }

    body.shop-page .searchbar input {
        width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        font-size: 13px !important;
        padding: 7px 10px !important;
    }

    body.shop-page .searchbar button {
        width: 38px !important;
        height: 36px !important;
        flex: 0 0 38px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.shop-page .searchbar button::before {
        content: "⌕";
        font-size: 17px;
        font-weight: 800;
    }
}

/* Mobile: bigger brand now that search is on row 2 */
@media (max-width: 768px) {
    body.shop-page .brand {
        grid-column: 1 / 3 !important;
        grid-row: 1 !important;
        gap: 7px !important;
        align-items: center !important;
        width: auto !important;
        max-width: none !important;
        overflow: visible !important;
    }

    body.shop-page .brand-logo {
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px !important;
    }

    body.shop-page .brand-name-full {
        display: inline-block !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
    }

    body.shop-page .brand-name-short {
        display: none !important;
    }

    body.shop-page .brand-sub {
        display: none !important;
    }
}

/* Mobile: push ZeroMaxShop logo/name further left */
@media (max-width: 768px) {
    body.shop-page .topbar {
        padding-left: 6px !important;
    }

    body.shop-page .brand {
        margin-left: -2px !important;
        justify-self: start !important;
    }
}

/* Mobile category dropdown inside mobile menu */
@media (max-width: 768px) {
    body.shop-page .mobile-category-dropdown {
        border: 1px solid #eeeeee;
        border-radius: 14px;
        background: #ffffff;
        overflow: hidden;
    }

    body.shop-page .mobile-category-summary {
        min-height: 34px;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        cursor: pointer;
        list-style: none;
        font-size: 14px;
        font-weight: 800;
        color: #111111;
    }

    body.shop-page .mobile-category-summary::-webkit-details-marker {
        display: none;
    }

    body.shop-page .mobile-category-summary-right {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666666;
        font-weight: 800;
    }

    body.shop-page .mobile-category-summary-right i {
        font-size: 13px;
        transition: transform 0.2s ease;
    }

    body.shop-page .mobile-category-dropdown[open] .mobile-category-summary-right i {
        transform: rotate(180deg);
    }

    body.shop-page .mobile-category-list {
        border-top: 1px solid #eeeeee;
        padding: 5px 0;
    }

    body.shop-page .mobile-category-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 10px;
        text-decoration: none;
        color: #111111;
        font-size: 12px;
        font-weight: 650;
        border-radius: 8px;
    }

    body.shop-page .mobile-category-link:hover {
        background: #f7f7f7;
    }

    body.shop-page .mobile-category-link span:last-child {
        color: #777777;
        font-size: 11px;
        font-weight: 800;
    }
}

/* Fix notification/message/cart badges position + color */
.product-notification-clean-link,
.message-icon-link,
.cart-icon-link,
.likes-icon-link,
.profile-nav-link {
    position: relative;
}

.notification-icon-wrap,
.message-icon-wrap,
.cart-icon-wrap,
.likes-icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Topbar alert badges */
.notification-icon-badge,
.topbar-badge,
.message-icon-badge,
.cart-count-badge,
.reviews-nav-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 15px !important;
    height: 15px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #e53935 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    text-align: center !important;
    z-index: 5 !important;
}

/* Mobile badge sizing */
@media (max-width: 768px) {
    .notification-icon-badge,
    .topbar-badge,
    .message-icon-badge,
    .cart-count-badge,
    .reviews-nav-badge {
        top: -6px !important;
        right: -6px !important;
        min-width: 12px !important;
        height: 12px !important;
        padding: 0 3px !important;
        font-size: 8px !important;
        line-height: 12px !important;
        background: #e53935 !important;
        color: #ffffff !important;
    }
}

/* Mobile menu badges */
.mobile-menu-badge {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #e53935 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* FINAL FIX: make all topbar icons + badges behave like notifications */
body.shop-page .topbar-nav .topbar-icon-link,
body.shop-page .topbar-nav .product-notification-clean-link,
body.shop-page .topbar-nav .message-icon-link,
body.shop-page .topbar-nav .cart-icon-link,
body.shop-page .topbar-nav .likes-icon-link,
body.shop-page .topbar-nav .reviews-nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #111111 !important;
    line-height: 1 !important;
}

/* Every icon wrapper gets the same box */
body.shop-page .topbar-nav .topbar-icon-wrap,
body.shop-page .topbar-nav .notification-icon-wrap,
body.shop-page .topbar-nav .message-icon-wrap,
body.shop-page .topbar-nav .cart-icon-wrap,
body.shop-page .topbar-nav .likes-icon-wrap,
body.shop-page .topbar-nav .reviews-icon-wrap {
    position: relative !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Every icon gets the same size/color */
body.shop-page .topbar-nav .topbar-icon-wrap i,
body.shop-page .topbar-nav .notification-icon-wrap i,
body.shop-page .topbar-nav .message-icon-wrap i,
body.shop-page .topbar-nav .cart-icon-wrap i,
body.shop-page .topbar-nav .likes-icon-wrap i,
body.shop-page .topbar-nav .reviews-icon-wrap i,
body.shop-page .topbar-nav .notification-topbar-icon,
body.shop-page .topbar-nav .message-topbar-icon,
body.shop-page .topbar-nav .cart-topbar-icon,
body.shop-page .topbar-nav .likes-topbar-icon,
body.shop-page .topbar-nav .reviews-topbar-icon {
    font-size: 22px !important;
    color: #111111 !important;
    line-height: 1 !important;
}

/* Every badge sits top-right and stays red */
body.shop-page .topbar-nav .topbar-icon-badge,
body.shop-page .topbar-nav .notification-icon-badge,
body.shop-page .topbar-nav .topbar-badge,
body.shop-page .topbar-nav .message-icon-badge,
body.shop-page .topbar-nav .cart-count-badge,
body.shop-page .topbar-nav .reviews-nav-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 15px !important;
    height: 15px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #e53935 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    text-align: center !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile version */
@media (max-width: 768px) {
    body.shop-page .topbar-nav .topbar-icon-wrap,
    body.shop-page .topbar-nav .notification-icon-wrap,
    body.shop-page .topbar-nav .message-icon-wrap,
    body.shop-page .topbar-nav .cart-icon-wrap,
    body.shop-page .topbar-nav .likes-icon-wrap,
    body.shop-page .topbar-nav .reviews-icon-wrap {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }

    body.shop-page .topbar-nav .topbar-icon-wrap i,
    body.shop-page .topbar-nav .notification-icon-wrap i,
    body.shop-page .topbar-nav .message-icon-wrap i,
    body.shop-page .topbar-nav .cart-icon-wrap i,
    body.shop-page .topbar-nav .likes-icon-wrap i,
    body.shop-page .topbar-nav .reviews-icon-wrap i {
        font-size: 20px !important;
    }

    body.shop-page .topbar-nav .topbar-icon-badge,
    body.shop-page .topbar-nav .notification-icon-badge,
    body.shop-page .topbar-nav .topbar-badge,
    body.shop-page .topbar-nav .message-icon-badge,
    body.shop-page .topbar-nav .cart-count-badge,
    body.shop-page .topbar-nav .reviews-nav-badge {
        top: -6px !important;
        right: -6px !important;
        min-width: 12px !important;
        height: 12px !important;
        padding: 0 3px !important;
        font-size: 8px !important;
        line-height: 12px !important;
    }
}
/* Fix dark hover on reviews + notification topbar icons */
body.shop-page .topbar-nav .reviews-nav-link,
body.shop-page .topbar-nav .product-notification-clean-link,
body.shop-page .topbar-nav .topbar-icon-link {
    background: transparent !important;
    color: #111111 !important;
    border-radius: 999px !important;
}

body.shop-page .topbar-nav .reviews-nav-link:hover,
body.shop-page .topbar-nav .product-notification-clean-link:hover,
body.shop-page .topbar-nav .topbar-icon-link:hover {
    background: #f5f5f5 !important;
    color: #111111 !important;
}

/* Make the icon itself stay normal on hover */
body.shop-page .topbar-nav .reviews-nav-link:hover i,
body.shop-page .topbar-nav .product-notification-clean-link:hover i,
body.shop-page .topbar-nav .topbar-icon-link:hover i {
    color: #111111 !important;
}

/* Keep badge red even when hovering */
body.shop-page .topbar-nav .reviews-nav-link:hover .topbar-icon-badge,
body.shop-page .topbar-nav .reviews-nav-link:hover .reviews-nav-badge,
body.shop-page .topbar-nav .product-notification-clean-link:hover .topbar-icon-badge,
body.shop-page .topbar-nav .product-notification-clean-link:hover .notification-icon-badge {
    background: #e53935 !important;
    color: #ffffff !important;
}

/* FINAL MOBILE TOPBAR CLEANUP:
   Keep only notifications + profile on mobile.
   Move reviews, likes, cart, messages, admin/list into the mobile menu. */
@media (max-width: 768px) {
    body.shop-page .topbar-nav .reviews-nav-link,
    body.shop-page .topbar-nav .message-icon-link,
    body.shop-page .topbar-nav .list-item-btn {
        display: none !important;
    }

    body.shop-page .topbar-nav .product-notification-clean-link,
    body.shop-page .topbar-nav .profile-nav-link {
        display: inline-flex !important;
    }
}

/* Reviews = text link only, not icon */
body.shop-page .topbar-nav .reviews-nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

body.shop-page .topbar-nav .reviews-nav-link:hover {
    background: #f5f5f5 !important;
    color: #111111 !important;
}

body.shop-page .topbar-nav .reviews-nav-link .reviews-nav-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 15px !important;
    height: 15px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #e53935 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 15px !important;
    text-align: center !important;
}

/* Mobile: reviews stays inside menu, not topbar */
@media (max-width: 768px) {
    body.shop-page .topbar-nav .reviews-nav-link {
        display: none !important;
    }
}

/* =========================================================
   Product detail mobile calm patch
   ========================================================= */

.mobile-product-carousel-section,
.mobile-interest-row {
    display: none;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: auto !important;
    }

    body.regular-page {
        background: #ffffff !important;
        overflow-x: hidden !important;
    }

    body.regular-page .product-detail-page {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide desktop image gallery on mobile */
    body.regular-page .product-gallery {
        display: none !important;
    }

    /* Mobile horizontal image carousel */
    body.regular-page .mobile-product-carousel-section {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        background: #f5f5f5 !important;
        overflow: hidden !important;
    }

    body.regular-page .mobile-product-carousel {
        display: flex !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.regular-page .mobile-product-carousel::-webkit-scrollbar {
        display: none !important;
    }

    body.regular-page .mobile-product-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: center !important;
        background: #f5f5f5 !important;
    }

    body.regular-page .mobile-product-slide-img {
        width: 100% !important;
        height: min(68vh, 520px) !important;
        min-height: 410px !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
    }

    body.regular-page .mobile-carousel-dots {
        position: absolute !important;
        left: 50% !important;
        bottom: 12px !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.48) !important;
        backdrop-filter: blur(8px) !important;
    }

    body.regular-page .mobile-carousel-dot {
        width: 7px !important;
        height: 7px !important;
        border: 0 !important;
        border-radius: 999px !important;
        padding: 0 !important;
        background: rgba(17, 17, 17, 0.25) !important;
        cursor: pointer !important;
    }

    body.regular-page .mobile-carousel-dot.active-mobile-dot {
        width: 8px !important;
        height: 8px !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) !important;
    }

    body.regular-page .mobile-image-discount-badge {
        display: inline-flex !important;
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        z-index: 25 !important;
        min-height: 26px !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        background: rgba(17, 17, 17, 0.92) !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.regular-page .mobile-image-sale-timer {
        display: inline-flex !important;
        position: absolute !important;
        left: 12px !important;
        bottom: 12px !important;
        z-index: 25 !important;
        min-height: 26px !important;
        max-width: calc(100% - 120px) !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: #111111 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 11px !important;
        font-weight: 850 !important;
        backdrop-filter: blur(8px) !important;
    }

    body.regular-page .mobile-image-like-wrap {
        display: flex !important;
        position: absolute !important;
        right: 12px !important;
        bottom: 12px !important;
        z-index: 30 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
    }

    body.regular-page .ajax-detail-like-form {
        margin: 0 !important;
    }

    body.regular-page .mobile-image-like-btn {
        width: 50px !important;
        height: 50px !important;
        border-radius: 999px !important;
        border: 1px solid rgba(0, 0, 0, 0.13) !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: #111111 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        backdrop-filter: blur(8px) !important;
    }

    body.regular-page .mobile-image-like-btn i {
        font-size: 26px !important;
        line-height: 1 !important;
    }

    body.regular-page .mobile-image-like-btn.liked {
        color: #e53935 !important;
    }

    body.regular-page .mobile-image-like-count {
        min-width: 42px !important;
        padding: 3px 8px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        color: #111111 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        text-align: center !important;
        backdrop-filter: blur(8px) !important;
    }

    /* Tighten product info */
    body.regular-page .product-detail-info {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 14px 90px !important;
        margin: 0 !important;
    }

    body.regular-page .back-link {
        display: none !important;
    }

    body.regular-page .product-title-row {
        display: block !important;
        margin: 0 0 8px !important;
    }

    body.regular-page .product-title-row h1 {
        font-size: 18px !important;
        line-height: 1.2 !important;
        margin: 0 0 5px !important;
        font-weight: 900 !important;
        letter-spacing: -0.02em !important;
    }

    body.regular-page .product-like-stack {
        display: none !important;
    }

    body.regular-page .mobile-interest-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 6px 0 8px !important;
    }

    body.regular-page .mobile-interest-pill {
        min-height: 30px !important;
        padding: 0 10px !important;
        border: 1px solid #dddddd !important;
        border-radius: 999px !important;
        background: #f7f7f7 !important;
        color: #222222 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
    }

    body.regular-page .detail-price {
        margin: 8px 0 7px !important;
        font-size: 20px !important;
        line-height: 1.1 !important;
        font-weight: 900 !important;
    }

    body.regular-page .detail-sale-price {
        font-size: 20px !important;
    }

    body.regular-page .detail-original-price {
        font-size: 12px !important;
    }

    body.regular-page .detail-discount-badge {
        display: none !important;
    }

    body.regular-page .product-detail-info > .discount-countdown-pill {
        display: none !important;
    }

    body.regular-page .variant-picker,
    body.regular-page .simple-product-options {
        margin: 8px 0 !important;
        padding: 9px 10px !important;
        border: 1px solid #eeeeee !important;
        border-radius: 12px !important;
        background: #ffffff !important;
    }

    body.regular-page .variant-group {
        margin-bottom: 8px !important;
    }

    body.regular-page .variant-group:last-child {
        margin-bottom: 0 !important;
    }

    body.regular-page .variant-label {
        font-size: 11px !important;
        margin: 0 0 5px !important;
        color: #555555 !important;
        font-weight: 850 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
    }

    body.regular-page .color-swatch-row,
    body.regular-page .size-button-row {
        gap: 5px !important;
    }

    body.regular-page .color-swatch-btn {
        width: 28px !important;
        height: 28px !important;
    }

    body.regular-page .color-swatch-circle {
        width: 18px !important;
        height: 18px !important;
    }

    body.regular-page .size-option-btn {
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
    }

    body.regular-page .selected-option-text {
        font-size: 11px !important;
        margin: 4px 0 0 !important;
    }

    body.regular-page .detail-meta.clean-detail-meta {
        margin: 8px 0 !important;
        padding: 4px 0 !important;
        border-top: 1px solid #eeeeee !important;
        border-bottom: 1px solid #eeeeee !important;
    }

    body.regular-page .detail-chip-row {
        padding: 5px 0 !important;
        font-size: 12px !important;
    }

    body.regular-page .detail-chip-label {
        color: #777777 !important;
        font-weight: 750 !important;
    }

    body.regular-page .detail-chip-value {
        font-weight: 850 !important;
    }

    body.regular-page .detail-description {
        margin: 8px 0 12px !important;
        padding: 0 !important;
    }

    body.regular-page .detail-description h2 {
        font-size: 14px !important;
        margin: 0 0 4px !important;
    }

    body.regular-page .detail-description p {
        font-size: 13px !important;
        line-height: 1.38 !important;
        margin: 0 !important;
    }

    /* Keep same actions, just smaller and fitted */
    body.regular-page .detail-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        margin-top: 10px !important;
    }

    body.regular-page .detail-action-slot,
    body.regular-page .detail-action-form {
        margin: 0 !important;
    }

    body.regular-page .detail-action-button {
        width: 100% !important;
        height: 38px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        font-weight: 850 !important;
        padding: 0 8px !important;
        white-space: nowrap !important;
    }

    body.regular-page .admin-product-analytics-row,
    body.regular-page .admin-detail-actions {
        margin: 8px 0 !important;
    }

    body.regular-page .similar-products-section {
        margin: 12px 0 24px !important;
        padding: 0 12px !important;
        max-width: 100% !important;
    }

    body.regular-page .similar-products-header {
        margin-bottom: 9px !important;
    }

    body.regular-page .similar-products-header h2 {
        font-size: 15px !important;
    }

    body.regular-page .similar-products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.regular-page .similar-product-image-link {
        border-radius: 9px !important;
        aspect-ratio: 1 / 1.18 !important;
    }

    body.regular-page .similar-product-title {
        font-size: 10.5px !important;
        line-height: 1.25 !important;
        margin-top: 5px !important;
        -webkit-line-clamp: 2 !important;
    }

    body.regular-page .similar-product-price,
    body.regular-page .similar-sale-price {
        font-size: 11.5px !important;
    }

    body.regular-page .similar-original-price,
    body.regular-page .similar-discount-badge,
    body.regular-page .similar-discount-countdown-pill {
        display: none !important;
    }

    body.regular-page .product-detail-footer {
        display: none !important;
    }
}


/* HARD DESKTOP HIDE: mobile product-detail UI must never show on desktop */
body.regular-page .mobile-product-carousel-section,
body.regular-page .mobile-image-discount-badge,
body.regular-page .mobile-image-sale-timer,
body.regular-page .mobile-image-like-wrap,
body.regular-page .mobile-gallery-dots,
body.regular-page .mobile-carousel-dots,
body.regular-page .mobile-interest-row,
body.regular-page .mobile-sticky-buy-bar {
    display: none !important;
}

/* Show mobile-only product UI only on phones */
@media (max-width: 768px) {
    body.regular-page .mobile-product-carousel-section {
        display: block !important;
    }

    body.regular-page .mobile-image-discount-badge {
        display: inline-flex !important;
    }

    body.regular-page .mobile-image-sale-timer {
        display: inline-flex !important;
    }

    body.regular-page .mobile-image-like-wrap {
        display: flex !important;
    }

    body.regular-page .mobile-carousel-dots,
    body.regular-page .mobile-gallery-dots {
        display: flex !important;
    }

    body.regular-page .mobile-interest-row {
        display: flex !important;
    }
}

/* Mobile color swatch alignment fix */
@media (max-width: 768px) {
    body.regular-page .color-swatch-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    body.regular-page .color-swatch-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    body.regular-page .color-swatch-circle {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        border-radius: 999px !important;
        display: block !important;
        margin: 0 !important;
        transform: none !important;
    }
}

/* Product detail mobile topbar: logo + search + cart + heart only */
@media (max-width: 768px) {
    body.regular-page .topbar {
        height: auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 32px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 7px 10px !important;
        border-bottom: 1px solid #eeeeee !important;
        background: #ffffff !important;
    }

    body.regular-page .topbar .brand {
        grid-column: 1 / 2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        min-width: 32px !important;
        overflow: hidden !important;
        text-decoration: none !important;
    }

    body.regular-page .topbar .brand-logo {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        object-fit: contain !important;
    }

    body.regular-page .topbar .brand-name,
    body.regular-page .topbar .brand-sub,
    body.regular-page .topbar .brand > div {
        display: none !important;
    }

    body.regular-page .topbar .searchbar {
        grid-column: 2 / 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.regular-page .topbar .searchbar-inner {
        width: 100% !important;
        height: 34px !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    body.regular-page .topbar .searchbar input {
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
        font-size: 12px !important;
        padding: 7px 9px !important;
    }

    body.regular-page .topbar .searchbar button {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }

    body.regular-page .topbar .searchbar button::before {
        content: "⌕";
        font-size: 16px;
        font-weight: 900;
    }

    body.regular-page .topbar .product-clean-nav {
        grid-column: 3 / 4 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: auto !important;
        min-width: max-content !important;
    }

    /* Hide everything except cart and heart on mobile product detail */
    body.regular-page .topbar .product-nav-text-link,
    body.regular-page .topbar .product-reviews-link,
    body.regular-page .topbar .product-message-clean-link,
    body.regular-page .topbar .product-profile-clean-link,
    body.regular-page .topbar .product-sell-clean-btn {
        display: none !important;
    }

    body.regular-page .topbar .product-like-clean-link,
    body.regular-page .topbar .product-bag-clean-link {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #111111 !important;
        text-decoration: none !important;
        background: transparent !important;
        border-radius: 999px !important;
        line-height: 1 !important;
    }

    body.regular-page .topbar .product-like-clean-link {
        font-size: 27px !important;
    }

    body.regular-page .topbar .product-bag-clean-icon,
    body.regular-page .topbar .product-bag-clean-link i {
        font-size: 24px !important;
        line-height: 1 !important;
    }
}

/* Prevent iPhone Safari from zooming into forms */
@media (max-width: 768px) {
    input,
    textarea,
    select,
    button {
        font-size: 16px !important;
    }

    input[type="search"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea {
        font-size: 16px !important;
        max-width: 100% !important;
    }
}

/* Stop mobile pages from shifting wider than the screen */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden !important;
    }

    img,
    video,
    canvas,
    iframe {
        max-width: 100%;
    }

    form,
    input,
    textarea,
    select {
        max-width: 100%;
    }
}

/* Checkout review page: hide topbar action links on mobile only */
@media (max-width: 768px) {
    .checkout-review-top-actions {
        display: none !important;
    }
}

/* Mobile messages: compact product preview */
@media (max-width: 768px) {
    .message-product-card,
    .chat-product-card,
    .conversation-product-card,
    .message-thread-product {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px 10px !important;
        margin: 6px 8px 8px !important;
        border: 1px solid #eeeeee !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        min-height: 70px !important;
        max-height: 86px !important;
        overflow: hidden !important;
    }

    .message-product-card img,
    .chat-product-card img,
    .conversation-product-card img,
    .message-thread-product img,
    .message-product-image,
    .chat-product-image,
    .conversation-product-image {
        width: 54px !important;
        height: 64px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block !important;
    }

    .message-product-card h2,
    .message-product-card h3,
    .message-product-card p,
    .chat-product-card h2,
    .chat-product-card h3,
    .chat-product-card p,
    .conversation-product-card h2,
    .conversation-product-card h3,
    .conversation-product-card p {
        margin: 0 !important;
    }

    .message-product-card h2,
    .message-product-card h3,
    .chat-product-card h2,
    .chat-product-card h3,
    .conversation-product-card h2,
    .conversation-product-card h3 {
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 850 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .message-product-card p,
    .chat-product-card p,
    .conversation-product-card p {
        margin-top: 3px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        color: #666666 !important;
    }

    .message-product-price,
    .chat-product-price,
    .conversation-product-price {
        font-size: 13px !important;
        font-weight: 900 !important;
        color: #111111 !important;
        margin-top: 3px !important;
    }
}


.detail-description-text,
.detail-description p {
    line-height: 1.5;
    font-size: 14px;
    color: #444;
}

.detail-description-text strong,
.detail-description p strong {
    font-weight: 900;
    color: #111;
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.password-toggle-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

@media (max-width: 768px) {
    .password-input-wrap input {
        padding-right: 52px;
    }

    .password-toggle-btn {
        right: 12px;
        width: 38px;
        height: 38px;
        display: flex;
        visibility: visible;
        opacity: 1;
    }
}

.mobile-menu-like-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-like-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-like-icon {
    font-size: 18px;
    line-height: 1;
}

.product-card-image-wrap {
    position: relative;
}

.card-like-btn,
.card-login-like-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 36px;
    padding: 6px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    user-select: none;
}

.card-like-btn:active,
.card-like-btn:focus,
.card-like-btn:hover {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.card-like-count {
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

/* Default — show outline, hide fill */
.card-like-btn .card-heart-fill {
    display: none;
}

.card-like-btn .card-heart-outline {
    display: block;
    color: #ffffff;
}

/* Liked — show fill red, hide outline */
.card-like-btn.liked .card-heart-outline {
    display: none;
}

.card-like-btn.liked .card-heart-fill {
    display: block;
    color: #ff2d55;
}

.mobile-image-like-btn .mobile-heart-fill {
    display: none;
    color: #ff2d55;
}

.mobile-image-like-btn .mobile-heart-outline {
    display: block;
    color: black;
}

.mobile-image-like-btn.liked .mobile-heart-outline {
    display: none;
}

.mobile-image-like-btn.liked .mobile-heart-fill {
    display: block;
    color: #ff2d55;
}

.mobile-image-like-btn:hover,
.mobile-image-like-btn:active,
.mobile-image-like-btn:focus {
    background: transparent;
    outline: none;
    box-shadow: none;
    opacity: 1;
}

.mobile-image-like-btn {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-appearance: none;
    user-select: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Desktop — hide count by default, show on hover */
.card-like-count {
    display: none;
}

.product-card-image-wrap:hover .card-like-count,
.card-like-btn:hover .card-like-count {
    display: block;
}

/* Mobile — always show count */
@media (max-width: 768px) {
    .card-like-count {
        display: block !important;
    }
}

/* Desktop — heart hidden until hover */
.card-like-btn,
.card-login-like-btn {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.product-card-image-wrap:hover .card-like-btn,
.product-card-image-wrap:hover .card-login-like-btn {
    opacity: 1;
}

/* Mobile — always visible */
@media (max-width: 768px) {
    .card-like-btn,
    .card-login-like-btn {
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Desktop — heart and count hidden until hover */
.card-like-btn,
.card-login-like-btn {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.product-card-image-wrap:hover .card-like-btn,
.product-card-image-wrap:hover .card-login-like-btn {
    opacity: 1;
}

.card-like-count {
    display: none;
}

.product-card-image-wrap:hover .card-like-count {
    display: block;
}

/* Mobile — always visible, no hover */
@media (max-width: 768px) {
    .card-like-btn,
    .card-login-like-btn {
        opacity: 1 !important;
        transition: none !important;
    }

    .card-like-count {
        display: block !important;
    }
}

card-login-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1;
}

.card-login-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1;
}


.card-login-like-btn .card-like-count {
    display: block;
    text-align: center;
}

.like-btn .detail-heart-outline {
    display: block;
    color: #111111;
}

.like-btn .detail-heart-fill {
    display: none;
    color: #ff2d55;
}

.like-btn.liked .detail-heart-outline {
    display: none;
}

.like-btn.liked .detail-heart-fill {
    display: block;
    color: #ff2d55;
}

.card-login-like-btn:hover,
.card-login-like-btn:active,
.card-login-like-btn:focus {
    background: transparent;
    outline: none;
    box-shadow: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   Product Detail Heart
========================= */

.like-btn,
.admin-like-view {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111111;
    font-size: 25px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.like-btn .detail-heart-outline {
    display: block;
    color: #111111 !important;
}

.like-btn .detail-heart-fill {
    display: none;
    color: #ff2d55 !important;
}

.like-btn.liked .detail-heart-outline {
    display: none;
}

.like-btn.liked .detail-heart-fill {
    display: block;
    color: #ff2d55 !important;
}

.like-btn.disabled-like-btn {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-like-stack .like-btn,
.product-like-stack .like-btn .detail-heart-outline {
    color: #111111 !important;
}
/* ================================
   ZeroMaxShop Mobile Shop Refresh
   Clean final version
   Topbar + guest collage hero + left slide menu
================================ */

.mobile-commerce-header,
.mobile-menu-backdrop {
    display: none;
}

@media (max-width: 768px) {
    body.shop-page {
        background: #ffffff;
    }

    /* -------------------------------
       Topbar
    -------------------------------- */

    .shop-page .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 14px 14px 8px;
        background: #ffffff;
        border-bottom: 0;
    }

    .shop-page .topbar-left {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .shop-page .desktop-searchbar,
    .shop-page .topbar > .searchbar {
        display: none !important;
    }

    .shop-page .mobile-menu-btn {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #111111;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        box-shadow: none;
        flex: 0 0 auto;
    }

    .shop-page .mobile-menu-btn i {
        font-size: 31px;
        line-height: 1;
    }

    .shop-page .brand {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        gap: 8px;
        color: #111111;
        text-decoration: none;
    }

    .shop-page .brand-logo {
        width: 22px;
        height: 22px;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .shop-page .brand-text {
        min-width: 0;
    }

    .shop-page .brand-name-full {
        display: inline;
        font-size: 21px;
        line-height: 1;
        font-weight: 950;
        letter-spacing: -0.045em;
        white-space: nowrap;
    }

    .shop-page .brand-name-short,
    .shop-page .brand-sub {
        display: none;
    }

    .shop-page .topbar-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        min-width: 0;
        margin-left: 0;
    }

    .shop-page .topbar-nav > a {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border-radius: 999px;
        border: 0;
        background: transparent;
        color: #111111;
        text-decoration: none;
        font-size: 13px;
        font-weight: 950;
        line-height: 1;
        white-space: nowrap;
        box-shadow: none;
    }

    .shop-page .logged-out-cart-link {
        width: 38px;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .shop-page .logged-out-cart-link i {
        font-size: 28px;
        color: #111111;
    }

    .shop-page .topbar-nav > a.mobile-signup-link,
    .shop-page .topbar-nav > a[href="/account"] {
        background: #111111;
        color: #ffffff;
        border-color: #111111;
        padding-left: 16px;
        padding-right: 16px;
        min-height: 40px;
        border-radius: 7px;
    }

    .shop-page .admin-topbar-btn {
        min-height: 36px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
        background: #111111 !important;
        color: #ffffff !important;
        font-size: 12px !important;
        font-weight: 950 !important;
    }

    .shop-page .admin-list-topbar-btn {
        background: #f26b38 !important;
        color: #ffffff !important;
    }

    /* Logged-in icon cleanup */
    .shop-page .topbar-nav > a.product-notification-clean-link,
    .shop-page .topbar-nav > a.likes-icon-link,
    .shop-page .topbar-nav > a.topbar-icon-link,
    .shop-page .topbar-nav > a.profile-nav-link {
        width: 39px;
        padding: 0;
        border-radius: 999px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .shop-page .topbar-nav > a.product-notification-clean-link:hover,
    .shop-page .topbar-nav > a.likes-icon-link:hover,
    .shop-page .topbar-nav > a.topbar-icon-link:hover,
    .shop-page .topbar-nav > a.profile-nav-link:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* -------------------------------
       Mobile search area
    -------------------------------- */

    .mobile-commerce-header {
        display: block;
        background: #ffffff;
        padding: 0 14px 12px;
    }

    .mobile-commerce-search {
        margin: 0 0 12px;
    }

    .mobile-commerce-search-inner {
        position: relative;
        height: 44px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 14px;
        border-radius: 8px;
        background: #ffffff;
        border: 2px solid #111111;
    }

    .mobile-commerce-search-inner > i {
        font-size: 21px;
        color: #111111;
        flex: 0 0 auto;
    }

    .mobile-commerce-search-inner input {
        flex: 1;
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #111111;
        font-size: 16px;
        font-weight: 600;
    }

    .mobile-commerce-search-inner input::placeholder {
        color: #666666;
        font-weight: 600;
    }

    /* -------------------------------
   Guest-only Depop-style collage
   Balanced + shiny version
    -------------------------------- */

    .mobile-guest-attraction {
        display: block;
    }

    .mobile-collage-hero {
        position: relative;
        display: block;
        height: 245px;
        margin: 4px -14px 12px;
        overflow: hidden;
        text-decoration: none;
        background: linear-gradient(180deg, #eef1fb 0%, #ffffff 100%);
        isolation: isolate;
    }

    .mobile-collage-card {
        position: absolute;
        top: 42px;
        height: 168px;
        width: 43%;
        border-radius: 24px;
        overflow: hidden;
        background: #dddddd;
        box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }

    .mobile-collage-card::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background:
            linear-gradient(
                120deg,
                rgba(255, 255, 255, 0.34) 0%,
                rgba(255, 255, 255, 0.10) 24%,
                rgba(255, 255, 255, 0.00) 48%
            ),
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.12) 0%,
                rgba(0, 0, 0, 0.08) 100%
            );
    }

    .mobile-collage-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Left image */
    .mobile-collage-card-left {
        left: 3%;
        top: 48px;
        width: 42%;
        height: 162px;
        transform: rotate(-7deg);
        border-radius: 24px;
        z-index: 2;
    }


    /* Main image now closer in size to the others */
    .mobile-collage-card-main {
        left: 28%;
        top: 30px;
        width: 44%;
        height: 178px;
        transform: rotate(1.5deg);
        border-radius: 26px;
        z-index: 3;
        box-shadow:
            0 20px 42px rgba(0, 0, 0, 0.20),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    /* Right image */
    .mobile-collage-card-right {
        right: 3%;
        top: 48px;
        width: 42%;
        height: 162px;
        transform: rotate(7deg);
        border-radius: 24px;
        z-index: 2;
    }

    .mobile-collage-shop-btn {
        position: absolute;
        left: 50%;
        bottom: 19px;
        z-index: 5;
        transform: translateX(-50%);
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 21px;
        border-radius: 9px;
        background: #ffffff;
        color: #111111;
        font-size: 16px;
        font-weight: 950;
        letter-spacing: -0.03em;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
        white-space: nowrap;
    }
    /* -------------------------------
       Guest trust cards
    -------------------------------- */

    .mobile-trust-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 0 0 12px;
    }

    .mobile-trust-card {
        min-height: 82px;
        border-radius: 14px;
        background: #f7f7f7;
        border: 1px solid rgba(0, 0, 0, 0.07);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        text-align: center;
        padding: 9px 7px;
        color: #111111;
        transition: transform 0.15s ease, background 0.15s ease;
    }

    .mobile-trust-card i {
        font-size: 27px;
        line-height: 1;
    }

    .mobile-trust-card span {
        font-size: 11.5px;
        line-height: 1.15;
        font-weight: 850;
        max-width: 90px;
    }

    .mobile-trust-card:active {
        transform: scale(0.98);
        background: #eeeeee;
    }

    /* -------------------------------
       Search suggestions
    -------------------------------- */

    .searchbar-inner,
    .mobile-commerce-search-inner {
        position: relative;
    }

    .search-suggestions-box {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 9999;
        display: none;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.10);
        border-radius: 16px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
        overflow: hidden;
    }

    .show-search-suggestions {
        display: block;
    }

    .search-suggestion-item {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 14px 16px;
        color: #111111;
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        background: #ffffff;
    }

    .search-suggestion-item:last-child {
        border-bottom: 0;
    }

    .search-suggestion-item i {
        font-size: 18px;
        color: #666666;
    }

    .search-suggestion-item:hover,
    .search-suggestion-item.active-search-suggestion {
        background: #f5f5f5;
    }

    /* -------------------------------
       Keep product section normal
    -------------------------------- */

    .shop-page .page-shell {
        margin-top: 0;
    }

    .shop-page .product-grid {
        padding-top: 2px;
    }

    /* -------------------------------
       Left slide mobile menu
    -------------------------------- */

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: block;
        background: rgba(0, 0, 0, 0.32);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        width: min(86vw, 360px);
        height: 100dvh;
        z-index: 10000;
        background: #ffffff;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 22px 0 55px rgba(0, 0, 0, 0.18);
    }

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

    .mobile-menu-inner {
        min-height: 100%;
        padding-bottom: 42px;
    }

    .mobile-admin-priority-section {
        padding-top: 4px;
    }

    .mobile-admin-primary-link {
        background: #111111 !important;
        color: #ffffff !important;
        border-radius: 14px;
        font-weight: 900;
    }
}

@media (max-width: 390px) {
    .shop-page .brand-name-full {
        font-size: 19px;
    }

    .shop-page .topbar {
        gap: 6px;
        padding-left: 11px;
        padding-right: 11px;
    }

    .shop-page .topbar-left {
        gap: 6px;
    }

    .shop-page .topbar-nav {
        gap: 5px;
    }

    .shop-page .topbar-nav > a.mobile-signup-link,
    .shop-page .topbar-nav > a[href="/account"] {
        padding-left: 13px;
        padding-right: 13px;
        font-size: 12px;
    }

    .mobile-commerce-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mobile-collage-hero {
        height: 230px;
    }

    .mobile-collage-card-left {
        left: 2%;
        top: 48px;
        width: 42%;
        height: 150px;
    }

    .mobile-collage-card-main {
        left: 28%;
        top: 32px;
        width: 44%;
        height: 165px;
    }

    .mobile-collage-card-right {
        right: 2%;
        top: 48px;
        width: 42%;
        height: 150px;
    }

    .mobile-collage-shop-btn {
        min-height: 37px;
        padding: 0 19px;
        font-size: 15px;
    }

    .mobile-trust-card {
        min-height: 78px;
    }

    .mobile-trust-card span {
        font-size: 10.5px;
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.conversation-admin-delete-form,
.message-admin-delete-form {
    margin: 0;
}

.conversation-admin-delete-btn {
    border: 0;
    border-radius: 10px;
    background: #dc2626;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    padding: 10px 14px;
    cursor: pointer;
}

.conversation-admin-delete-btn:hover {
    background: #b91c1c;
}

.message-admin-delete-btn {
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 0;
    cursor: pointer;
}

.message-admin-delete-btn:hover {
    color: #991b1b;
    text-decoration: underline;
}

.chat-warning-box,
.chat-disabled-box {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8f8f8;
    color: #555555;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.conversation-product-missing-card {
    pointer-events: none;
    opacity: 0.75;
}

/* ================================
   Admin AI Listing Assistant
================================ */

.admin-ai-listing-box {
    display: block;
    padding: 18px;
    margin: 0 0 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f8fafc 100%);
    border: 1px solid rgba(242, 107, 56, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.admin-ai-listing-box h2 {
    margin: 4px 0 6px;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111111;
}

.admin-ai-listing-box .profile-muted {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #666666;
}

.admin-ai-listing-box > div:first-child {
    margin-bottom: 14px;
}

.admin-ai-generate-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.admin-ai-generate-btn:hover {
    background: #f26b38;
}

.admin-ai-generate-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.ai-listing-status {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f8f8;
    font-size: 14px;
    font-weight: 750;
}

.ai-confidence-notes {
    margin-top: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    background: #fffaf0;
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #553b00;
    font-size: 13px;
    line-height: 1.4;
}

.ai-confidence-notes strong {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 900;
}

.ai-confidence-notes ul {
    margin: 0;
    padding-left: 18px;
}

.ai-confidence-notes li {
    margin: 4px 0;
}

@media (min-width: 800px) {
    .admin-ai-listing-box {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px 18px;
    }

    .admin-ai-listing-box > div:first-child {
        margin-bottom: 0;
    }

    .admin-ai-generate-btn {
        width: auto;
        min-width: 185px;
        padding: 0 22px;
    }

    .ai-listing-status,
    .ai-confidence-notes {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ================================
   AI Field Highlight Effects
================================ */

.ai-target-field {
    position: relative;
    outline: 2px solid rgba(242, 107, 56, 0.55) !important;
    box-shadow:
        0 0 0 4px rgba(242, 107, 56, 0.12),
        0 0 18px rgba(242, 107, 56, 0.18) !important;
    transition: outline 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ai-target-field.ai-thinking {
    animation: aiFieldPulse 1.05s ease-in-out infinite;
}

.ai-target-field.ai-filled {
    outline: 2px solid rgba(22, 163, 74, 0.65) !important;
    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.12),
        0 0 18px rgba(22, 163, 74, 0.16) !important;
    background: rgba(240, 253, 244, 0.55) !important;
}

@keyframes aiFieldPulse {
    0% {
        outline-color: rgba(242, 107, 56, 0.35);
        box-shadow:
            0 0 0 3px rgba(242, 107, 56, 0.08),
            0 0 10px rgba(242, 107, 56, 0.12);
    }

    50% {
        outline-color: rgba(242, 107, 56, 0.9);
        box-shadow:
            0 0 0 6px rgba(242, 107, 56, 0.16),
            0 0 24px rgba(242, 107, 56, 0.25);
    }

    100% {
        outline-color: rgba(242, 107, 56, 0.35);
        box-shadow:
            0 0 0 3px rgba(242, 107, 56, 0.08),
            0 0 10px rgba(242, 107, 56, 0.12);
    }
}

/* Make selects/inputs look cleaner when highlighted */
select.ai-target-field,
input.ai-target-field,
textarea.ai-target-field {
    border-color: transparent !important;
}

/* Optional: slight shimmer on the AI box while generating */
.admin-ai-listing-box.ai-box-thinking {
    border-color: rgba(242, 107, 56, 0.45);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.06),
        0 0 0 4px rgba(242, 107, 56, 0.08);
}

/* ================================
   AI Model Tester
================================ */

.ai-model-tester-card {
    max-width: 1180px;
}

.ai-error-message {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid rgba(225, 29, 72, 0.18);
}

.ai-model-upload-zone {
    margin-top: 8px;
}

.ai-model-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.ai-model-preview-card {
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f5;
    border: 1px solid #eeeeee;
}

.ai-model-preview-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.ai-model-preview-card span {
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 750;
    color: #555555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-model-test-btn {
    margin-top: 8px;
}

.ai-model-result-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
}

.ai-model-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.ai-model-result-header h2 {
    margin: 4px 0 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.ai-model-timing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.ai-model-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ai-model-result-box {
    min-width: 0;
    border-radius: 16px;
    background: #0f172a;
    color: #e5e7eb;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-model-result-box h3 {
    margin: 0;
    padding: 13px 15px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.ai-model-result-box pre {
    margin: 0;
    padding: 15px;
    min-height: 220px;
    max-height: 520px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (min-width: 900px) {
    .ai-model-result-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================
   Admin Web Analytics Dashboard
================================ */

.admin-web-analytics-page {
    width: min(1180px, calc(100% - 32px));
    margin: 38px auto 70px;
}

.admin-web-analytics-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #111111 0%, #222222 55%, #f26b38 140%);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.admin-web-analytics-hero .admin-eyebrow {
    color: rgba(255, 255, 255, 0.68);
}

.admin-web-analytics-hero h1 {
    margin: 5px 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.admin-web-analytics-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.5;
}

.analytics-range-form {
    min-width: 180px;
}

.analytics-range-form label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-range-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    outline: none;
}

.analytics-range-form select option {
    color: #111111;
}

.analytics-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.analytics-metric-card {
    min-height: 116px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.055);
}

.analytics-metric-card span {
    display: block;
    margin-bottom: 12px;
    color: #777777;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.analytics-metric-card strong {
    display: block;
    color: #111111;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.analytics-panel {
    padding: 22px;
    margin-bottom: 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.055);
}

.analytics-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.analytics-panel-header h2 {
    margin: 4px 0 0;
    color: #111111;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.analytics-two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.analytics-two-column-grid .analytics-panel {
    min-width: 0;
}

.analytics-empty {
    margin: 0;
    padding: 22px;
    border-radius: 16px;
    background: #f8f8f8;
    color: #777777;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
}

/* Daily visitor mini chart */

.analytics-daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 240px;
    padding: 18px 8px 4px;
    overflow-x: auto;
}

.analytics-day-bar-wrap {
    min-width: 48px;
    height: 210px;
    display: grid;
    grid-template-rows: 24px 1fr 24px;
    align-items: end;
    justify-items: center;
}

.analytics-day-count {
    color: #555555;
    font-size: 12px;
    font-weight: 900;
}

.analytics-day-bar-track {
    position: relative;
    width: 28px;
    height: 150px;
    border-radius: 999px;
    background: #f1f1f1;
    overflow: hidden;
}

.analytics-day-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #f26b38 0%, #111111 100%);
}

.analytics-day-label {
    color: #777777;
    font-size: 11px;
    font-weight: 850;
}

/* Tables */

.analytics-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #eeeeee;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
    background: #ffffff;
}

.analytics-table th {
    padding: 13px 14px;
    background: #f8f8f8;
    color: #666666;
    font-size: 12px;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    border-bottom: 1px solid #eeeeee;
    white-space: nowrap;
}

.analytics-table td {
    padding: 13px 14px;
    color: #222222;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.analytics-table tr:last-child td {
    border-bottom: 0;
}

.analytics-table a {
    color: #111111;
    text-decoration: none;
    font-weight: 900;
}

.analytics-table a:hover {
    color: #f26b38;
    text-decoration: underline;
}

.analytics-long-cell {
    max-width: 320px;
    word-break: break-word;
    color: #555555;
}

.analytics-recent-table {
    min-width: 860px;
}

.analytics-recent-table td {
    font-size: 12px;
}

/* Mobile */

@media (max-width: 1050px) {
    .analytics-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .admin-web-analytics-page {
        width: min(100% - 20px, 1180px);
        margin: 22px auto 54px;
    }

    .admin-web-analytics-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 20px;
    }

    .analytics-range-form {
        min-width: 0;
        width: 100%;
    }

    .analytics-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .analytics-metric-card {
        min-height: 104px;
        padding: 15px;
        border-radius: 17px;
    }

    .analytics-metric-card strong {
        font-size: 29px;
    }

    .analytics-two-column-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .analytics-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .analytics-daily-chart {
        gap: 10px;
    }

    .analytics-day-bar-wrap {
        min-width: 42px;
    }
}

@media (max-width: 460px) {
    .analytics-metric-grid {
        grid-template-columns: 1fr;
    }

    .analytics-metric-card {
        min-height: 92px;
    }

    .analytics-table {
        min-width: 500px;
    }
}


/* ================================
   Buyer Protection Page
================================ */

.buyer-protection-page {
    margin: 0;
    background: #f6f6f4;
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.buyer-protection-shell {
    width: min(920px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.buyer-protection-back {
    color: #111827;
    text-decoration: none;
    font-weight: 850;
}

.buyer-protection-card {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.buyer-protection-card h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.buyer-protection-card > p {
    color: #6b7280;
    line-height: 1.55;
    max-width: 680px;
}

.buyer-protection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.buyer-protection-grid div {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    background: #fafafa;
}

.buyer-protection-grid i {
    font-size: 28px;
    color: #047857;
}

.buyer-protection-grid h2 {
    margin: 10px 0 6px;
    font-size: 18px;
}

.buyer-protection-grid p {
    margin: 0;
    color: #6b7280;
    line-height: 1.45;
    font-size: 14px;
}

@media (max-width: 700px) {
    .buyer-protection-card {
        padding: 22px;
    }

    .buyer-protection-card h1 {
        font-size: 27px;
    }

    .buyer-protection-grid {
        grid-template-columns: 1fr;
    }
}

.zms-trust-mobile-label {
    display: none;
}

@media (max-width: 768px) {
    .zms-trust-banner {
        width: 100%;
        min-height: 46px;
        margin: 0 0 14px;
        gap: 8px;
    }

    .zms-trust-banner-left {
        min-height: 46px;
        padding: 0 12px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .zms-trust-desktop-label {
        display: none;
    }

    .zms-trust-mobile-label {
        display: inline;
    }

    .zms-trust-banner-left i {
        font-size: 18px;
    }

    .zms-trust-banner-items {
        min-height: 46px;
        justify-content: flex-start;
        overflow: hidden;
        padding: 0;
        flex: 1;
    }

    .zms-trust-banner-divider {
        display: none;
    }

    .zms-trust-banner-item {
        display: none;
        font-size: 13px;
        font-weight: 900;
        animation: zmsTrustFade 0.25s ease;
    }

    .zms-trust-banner-item.is-active {
        display: inline-flex;
    }

    .zms-trust-banner-item i {
        font-size: 17px;
    }

    .zms-trust-banner-arrow {
        min-height: 46px;
        padding: 0 10px;
    }

    .zms-trust-banner-arrow span {
        display: none;
    }
}

/* ================================
   Buyer Protection Page - Strong Version
================================ */

.buyer-protection-page {
    margin: 0;
    background: #ffffff;
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.buyer-protection-shell {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding: 32px 0 80px;
}

.buyer-protection-back {
    display: inline-flex;
    align-items: center;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    margin-bottom: 18px;
}

.buyer-protection-hero {
    text-align: center;
    padding: 34px 22px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(4, 120, 87, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff, #f7fff9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.buyer-protection-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #047857;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.buyer-protection-kicker i {
    font-size: 17px;
}

.buyer-protection-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.buyer-protection-hero p {
    max-width: 720px;
    margin: 14px auto 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.58;
}

.buyer-protection-hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.buyer-protection-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
}

.buyer-protection-hero-pills i {
    font-size: 17px;
}

.buyer-protection-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 24px auto 32px;
    border: 2px solid #047857;
    border-radius: 10px;
    overflow: hidden;
}

.buyer-protection-tabs a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    color: #047857;
    text-decoration: none;
    font-size: 16px;
    font-weight: 950;
}

.buyer-protection-tabs a:first-child {
    background: #047857;
    color: #ffffff;
}

.buyer-protection-section {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    padding: 34px 0;
    border-bottom: 1px solid #e5e7eb;
}

.buyer-protection-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #078a16;
    color: #ffffff;
    font-size: 19px;
    font-weight: 950;
    margin-top: 2px;
}

.buyer-protection-content h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(24px, 3vw, 31px);
    letter-spacing: -0.055em;
}

.buyer-protection-checklist {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.buyer-protection-checklist li {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 12px;
    color: #232323;
    font-size: 16px;
    line-height: 1.45;
}

.buyer-protection-checklist i {
    color: #078a16;
    font-size: 22px;
    margin-top: 1px;
}

.buyer-payment-box {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    background: #f8fffb;
}

.buyer-payment-box h3 {
    margin: 0;
    color: #047857;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.buyer-payment-box p {
    margin: 8px 0 16px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.buyer-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.buyer-payment-methods span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid #d7dce2;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
}

.buyer-support-callout {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.buyer-support-callout > div:first-child {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #047857;
    color: #ffffff;
}

.buyer-support-callout i {
    font-size: 24px;
}

.buyer-support-callout h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.buyer-support-callout p {
    margin: 0;
    color: #4b5563;
    line-height: 1.45;
}

.buyer-protection-paragraph {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
}

.buyer-policy-links {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.buyer-policy-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: #111827;
    background: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.buyer-policy-links a:hover {
    border-color: #047857;
    color: #047857;
}

.buyer-protection-bottom {
    margin-top: 30px;
    padding: 26px;
    border-radius: 22px;
    background: #111827;
    color: #ffffff;
    text-align: center;
}

.buyer-protection-bottom h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.buyer-protection-bottom p {
    margin: 8px auto 18px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.buyer-protection-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-weight: 950;
}

@media (max-width: 700px) {
    .buyer-protection-shell {
        width: min(100% - 22px, 980px);
        padding-top: 22px;
    }

    .buyer-protection-hero {
        padding: 26px 18px 22px;
    }

    .buyer-protection-tabs {
        margin: 18px auto 20px;
    }

    .buyer-protection-tabs a {
        min-height: 44px;
        font-size: 14px;
    }

    .buyer-protection-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 26px 0;
    }

    .buyer-protection-number {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .buyer-protection-checklist li {
        font-size: 15px;
    }

    .buyer-payment-methods span {
        min-height: 34px;
        font-size: 12px;
    }

    .buyer-support-callout {
        grid-template-columns: 1fr;
    }
}

.zms-trust-mobile-placement {
    display: none;
}

.zms-trust-mobile-label {
    display: none;
}

@media (max-width: 768px) {
    .zms-trust-desktop-placement {
        display: none;
    }

    .zms-trust-mobile-placement {
        display: block;
    }

    .zms-trust-desktop-label {
        display: none;
    }

    .zms-trust-mobile-label {
        display: inline;
    }
}

@media (min-width: 769px) {
    .zms-trust-desktop-placement {
        display: block;
    }

    .zms-trust-mobile-placement {
        display: none;
    }
}

/* ================================
   Buyer Protection Payment Logos
================================ */

.buyer-payment-methods-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.buyer-payment-logo-card {
    width: 92px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
}

.buyer-payment-logo-card img {
    max-width: 100%;
    max-height: 30px;
    object-fit: contain;
    display: block;
}

@media (max-width: 700px) {
    .buyer-payment-methods-logo-grid {
        gap: 8px;
    }

    .buyer-payment-logo-card {
        width: calc(33.333% - 6px);
        height: 46px;
        padding: 7px;
    }

    .buyer-payment-logo-card img {
        max-height: 25px;
    }
}

.google-login-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
}

.google-login-btn:hover {
    background: #f8fafc;
}

.google-login-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #4285f4;
    font-size: 13px;
    font-weight: 950;
}

/* ================================
   Google Auth Button
================================ */

.google-auth-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    margin: 18px 0 14px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.google-auth-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.google-auth-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-auth-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 16px;
    color: #8a8f98;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5e7eb;
}

.auth-divider span {
    white-space: nowrap;
}

.google-confirm-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    margin: 16px 0;
}

.google-confirm-box img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
}

.google-confirm-box div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.google-confirm-box strong {
    color: #111827;
    font-size: 14px;
}

.google-confirm-box span {
    color: #6b7280;
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* ================================
   Google Complete Signup Page
================================ */

.google-complete-page {
    position: relative;
    overflow: hidden;
}

.google-complete-page::before {
    content: "";
    position: fixed;
    inset: auto -120px -180px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.google-complete-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.google-complete-glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
}

.google-complete-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 12px;
    background: linear-gradient(135deg, #eef6ff, #f8fafc);
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.google-complete-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.google-complete-chip {
    display: table;
    margin: 0 auto 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.google-complete-subtitle {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.google-confirm-box-upgraded {
    margin: 18px 0 16px;
    border: 1px solid #e5e7eb;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.95));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.google-fallback-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    text-transform: uppercase;
    flex-shrink: 0;
}

.google-signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 14px 0 18px;
}

.google-progress-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.google-progress-item span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 950;
    background: #e5e7eb;
    color: #4b5563;
}

.google-progress-item.is-complete span {
    background: #16a34a;
    color: #ffffff;
}

.google-progress-item.is-current {
    color: #111827;
}

.google-progress-item.is-current span {
    background: #111827;
    color: #ffffff;
}

.google-progress-line {
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: #d1d5db;
}

.google-complete-form {
    margin-top: 6px;
}

.google-username-label {
    display: block;
    margin: 0 0 7px;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.google-username-help {
    margin: -6px 0 15px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

.google-complete-submit {
    margin-top: 4px;
}

.google-complete-footer {
    margin: 18px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.google-complete-footer a {
    color: #111827;
    font-weight: 950;
    text-decoration: none;
}

.google-complete-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .google-signup-progress {
        gap: 7px;
    }

    .google-progress-item {
        font-size: 11px;
    }

    .google-progress-line {
        width: 20px;
    }

    .google-complete-card {
        margin-top: 8px;
    }
}

/* ================================
   Admin Web Analytics V2
================================ */

.analytics-v2-page {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 28px 0 54px;
}

.analytics-v2-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.analytics-v2-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.08), transparent 68%);
    pointer-events: none;
}

.analytics-v2-hero-copy,
.analytics-v2-hero-side {
    position: relative;
    z-index: 1;
}

.analytics-v2-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.analytics-v2-chip i {
    font-size: 16px;
}

.analytics-v2-hero h1 {
    margin: 16px 0 8px;
    color: #111827;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.analytics-v2-hero p {
    max-width: 620px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 650;
}

.analytics-v2-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.analytics-v2-quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.analytics-v2-quick-links a:hover {
    border-color: #111827;
}

.analytics-v2-hero-side {
    display: grid;
    gap: 12px;
    align-content: center;
}

.analytics-v2-range-form,
.analytics-v2-note {
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.analytics-v2-range-form label {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.analytics-v2-range-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    background: #ffffff;
    color: #111827;
    font-weight: 850;
}

.analytics-v2-note strong {
    display: block;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.analytics-v2-note span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.analytics-v2-section {
    margin-top: 24px;
}

.analytics-v2-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
}

.analytics-v2-section-header h2 {
    margin: 2px 0 0;
    color: #111827;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.analytics-v2-section-header span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.analytics-v2-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.analytics-v2-metric-card {
    min-height: 132px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.analytics-v2-metric-card span {
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.analytics-v2-metric-card strong {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 34px;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.analytics-v2-metric-card-dark {
    background: #111827;
    border-color: #111827;
}

.analytics-v2-metric-card-dark span {
    color: #cbd5e1;
}

.analytics-v2-metric-card-dark strong {
    color: #ffffff;
}

.analytics-v2-metric-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f1f5f9;
    color: #111827;
}

.analytics-v2-metric-card-dark .analytics-v2-metric-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.analytics-v2-metric-icon i {
    font-size: 19px;
}

.analytics-v2-grid {
    display: grid;
    gap: 14px;
}

.analytics-v2-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-v2-panel {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.analytics-v2-compact-panel {
    margin-top: 14px;
}

.analytics-v2-chart-panel {
    margin-top: 16px;
}

.analytics-v2-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.analytics-v2-panel-header h2,
.analytics-v2-panel-header h3 {
    margin: 2px 0 0;
    color: #111827;
    font-size: 19px;
    letter-spacing: -0.035em;
}

.analytics-v2-panel-tag {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytics-v2-daily-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32px, 1fr));
    gap: 10px;
    min-height: 230px;
    align-items: end;
    padding-top: 8px;
}

.analytics-v2-day {
    display: grid;
    grid-template-rows: 22px 160px 22px;
    gap: 7px;
    justify-items: center;
    min-width: 0;
}

.analytics-v2-day-count {
    color: #111827;
    font-size: 12px;
    font-weight: 950;
}

.analytics-v2-day-track {
    width: 100%;
    max-width: 34px;
    height: 160px;
    display: flex;
    align-items: end;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.analytics-v2-day-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #111827, #2563eb);
}

.analytics-v2-day-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.analytics-v2-list {
    display: grid;
    gap: 9px;
}

.analytics-v2-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 15px;
    background: #f8fafc;
}

.analytics-v2-list-row strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 950;
}

.analytics-v2-list-row span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.analytics-v2-list-row em {
    min-width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    font-style: normal;
    font-size: 14px;
    font-weight: 950;
}

.analytics-v2-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.analytics-v2-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.analytics-v2-table th {
    padding: 11px 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.analytics-v2-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #111827;
    font-size: 13px;
    font-weight: 750;
    vertical-align: middle;
}

.analytics-v2-table tr:last-child td {
    border-bottom: 0;
}

.analytics-v2-table a {
    color: #111827;
    font-weight: 900;
    text-decoration: none;
}

.analytics-v2-table a:hover {
    text-decoration: underline;
}

.analytics-v2-long-cell {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-v2-event-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.analytics-v2-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .analytics-v2-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .analytics-v2-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .analytics-v2-grid-2 {
        grid-template-columns: 1fr;
    }

    .analytics-v2-page {
        width: min(100% - 20px, 1280px);
        padding-top: 18px;
    }

    .analytics-v2-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .analytics-v2-section-header {
        display: block;
    }
}

@media (max-width: 620px) {
    .analytics-v2-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-v2-metric-card {
        min-height: 118px;
        padding: 14px;
        border-radius: 17px;
    }

    .analytics-v2-metric-card strong {
        font-size: 28px;
    }

    .analytics-v2-quick-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-v2-quick-links a {
        justify-content: center;
    }

    .analytics-v2-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .analytics-v2-daily-chart {
        gap: 7px;
        min-height: 200px;
    }

    .analytics-v2-day {
        grid-template-rows: 20px 135px 20px;
    }

    .analytics-v2-day-track {
        height: 135px;
        max-width: 24px;
    }
}

.auto-system-review-card {
    background: linear-gradient(135deg, #ffffff, #fafafa);
}

.auto-system-review-label {
    display: block;
    margin-top: 2px;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 800;
}

.auto-system-review-avatar {
    width: 58px !important;
    height: 58px !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.auto-system-review-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 4px;
    background: #ffffff;
    border-radius: 999px;
}

/* ================================
   Logged-Out Trust Banner V3 Green
   Desktop: 2 at a time
   Mobile: 1 at a time
================================ */

.shop-body-top-section {
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
}

.zms-trust-desktop-placement {
    display: block;
    width: 100%;
    margin: 0;
}

.zms-trust-mobile-placement {
    display: none;
}

.zms-trust-banner-wrap {
    width: 100%;
    margin: 0;
}

.zms-trust-banner-v3 {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid #15803d;
    border-radius: 12px;
    background: #047857;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(4, 120, 87, 0.12);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.zms-trust-banner-v3:hover {
    background: #03804f;
    transform: translateY(-1px);
}

.zms-trust-banner-v3-left {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.zms-trust-banner-v3-left i {
    font-size: 19px;
}

.zms-trust-mobile-label {
    display: none;
}

.zms-trust-banner-v3-center {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.zms-trust-desktop-pairs {
    position: relative;
    width: 380px;
    height: 24px;
    overflow: hidden;
}

.zms-trust-pair {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    opacity: 0;
    animation-duration: 7s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.zms-trust-pair span,
.zms-trust-single {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.zms-trust-pair i,
.zms-trust-single i {
    font-size: 18px;
}

.zms-trust-pair b {
    width: 1px;
    height: 18px;
    display: block;
    background: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.zms-trust-pair-one {
    animation-name: zmsTrustPairOneGreen;
}

.zms-trust-pair-two {
    animation-name: zmsTrustPairTwoGreen;
}

@keyframes zmsTrustPairOneGreen {
    0%, 43% {
        opacity: 1;
        transform: translateY(0);
    }

    50%, 93% {
        opacity: 0;
        transform: translateY(-7px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zmsTrustPairTwoGreen {
    0%, 43% {
        opacity: 0;
        transform: translateY(7px);
    }

    50%, 93% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(7px);
    }
}

.zms-trust-mobile-singles {
    display: none;
}

.zms-trust-banner-v3-arrow {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    color: #ffffff;
}

.zms-trust-banner-v3-arrow i {
    font-size: 16px;
}

@media (max-width: 900px) {
    .shop-body-top-section {
        display: none;
    }

    .zms-trust-desktop-placement {
        display: none;
    }

    .zms-trust-mobile-placement {
        display: block;
        width: 100%;
        margin: 8px 0 10px;
    }

    .zms-trust-banner-v3 {
        min-height: 52px;
        gap: 12px;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .zms-trust-banner-v3-left {
        padding: 0 12px;
        font-size: 13px;
    }

    .zms-trust-banner-v3-center {
        min-width: 0;
        justify-content: flex-start;
        padding-left: 6px;
    }

    .zms-trust-banner-v3-left i {
        font-size: 18px;
    }

    .zms-trust-desktop-label {
        display: none;
    }

    .zms-trust-mobile-label {
        display: inline;
    }

    .zms-trust-banner-v3-center {
        min-width: 0;
        justify-content: flex-start;
    }

    .zms-trust-desktop-pairs {
        display: none;
    }

    .zms-trust-mobile-singles {
        position: relative;
        width: min(44vw, 170px);
        min-width: 150px;
        height: 24px;
        display: block;
        overflow: hidden;
    }

    .zms-trust-single {
        position: absolute;
        left: 0;
        top: 50%;
        color: #ffffff;
        font-size: 13px;
        font-weight: 850;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(-50%);
        animation-duration: 8s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;
    }

    .zms-trust-single-one {
        animation-name: zmsTrustSingleOneGreen;
    }

    .zms-trust-single-two {
        animation-name: zmsTrustSingleTwoGreen;
    }

    .zms-trust-single-three {
        animation-name: zmsTrustSingleThreeGreen;
    }

    .zms-trust-single-four {
        animation-name: zmsTrustSingleFourGreen;
    }

    .zms-trust-banner-v3-arrow {
        padding: 0 12px;
    }

    .zms-trust-banner-v3-arrow span {
        display: none;
    }
}

@keyframes zmsTrustSingleOneGreen {
    0%, 20% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    25%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

@keyframes zmsTrustSingleTwoGreen {
    0%, 20% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    25%, 45% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    50%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

@keyframes zmsTrustSingleThreeGreen {
    0%, 45% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    50%, 70% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    75%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

@keyframes zmsTrustSingleFourGreen {
    0%, 70% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    75%, 95% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

@media (max-width: 430px) {
    .zms-trust-banner-v3 {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .zms-trust-mobile-singles {
        width: min(46vw, 160px);
        min-width: 140px;
    }

    .zms-trust-single {
        font-size: 12px;
    }

    .zms-trust-banner-v3-left {
        padding-left: 10px;
        padding-right: 6px;
    }

    .zms-trust-banner-v3-arrow {
        padding: 0 10px;
    }
}

@media (max-width: 370px) {
    .zms-trust-mobile-label {
        display: none;
    }

    .zms-trust-banner-v3-left {
        padding: 0 8px;
    }

    .zms-trust-mobile-singles {
        min-width: 150px;
    }
}

/* ================================
   ZeroMaxShop Deal Banner
================================ */

.zms-desktop-topbar-split {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 16px;
}

.zms-desktop-topbar-half {
    min-width: 0;
}

.zms-deal-mobile-placement {
    display: none;
}

.zms-deal-banner {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.16);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.zms-deal-banner:hover {
    background: #020617;
    transform: translateY(-1px);
}

.zms-deal-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.zms-deal-banner-left i {
    color: #facc15;
    font-size: 18px;
}

.zms-deal-banner-center {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
}

.zms-deal-banner-center span {
    color: rgba(255, 255, 255, 0.9);
}

.zms-deal-rotator {
    color: #facc15;
    font-weight: 950;
    display: inline-block;
    min-width: 82px;
    text-align: left;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.zms-deal-rotator.is-changing {
    opacity: 0;
    transform: translateY(-5px);
}

.zms-deal-banner-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.zms-deal-banner-action i {
    font-size: 16px;
}

@media (max-width: 900px) {
    .zms-desktop-topbar-split {
        display: none;
    }

    .zms-deal-mobile-placement {
        display: block;
        width: 100%;
        margin: 8px 0 10px;
    }

    .zms-deal-banner {
        min-height: 52px;
        gap: 10px;
        padding: 0 12px;
    }

    .zms-deal-banner-left {
        font-size: 13px;
    }

    .zms-deal-banner-center {
        justify-content: flex-start;
        font-size: 13px;
    }

    .zms-deal-rotator {
        min-width: 74px;
    }

    .zms-deal-banner-action span {
        display: none;
    }
}

@media (max-width: 390px) {
    .zms-deal-banner-left span {
        display: none;
    }

    .zms-deal-banner-center {
        font-size: 12px;
    }

    .zms-deal-rotator {
        min-width: 68px;
    }
}

/* ================================
   Desktop Split Compact Banner Fix
   Makes desktop split bars behave like mobile-sized bars
================================ */

@media (min-width: 901px) {
    .zms-desktop-topbar-split {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
        margin: 0 0 16px;
    }

    .zms-desktop-topbar-half {
        min-width: 0;
        overflow: hidden;
    }

    .zms-desktop-topbar-split .zms-trust-banner-v3 {
        min-height: 52px;
        gap: 10px;
    }

    .zms-desktop-topbar-split .zms-trust-banner-v3-left {
        padding: 0 12px;
        font-size: 13px;
    }

    .zms-desktop-topbar-split .zms-trust-desktop-label {
        display: none;
    }

    .zms-desktop-topbar-split .zms-trust-mobile-label {
        display: inline;
    }

    .zms-desktop-topbar-split .zms-trust-banner-v3-center {
        justify-content: flex-start;
        padding-left: 6px;
        min-width: 0;
    }

    .zms-desktop-topbar-split .zms-trust-desktop-pairs {
        display: none;
    }

    .zms-desktop-topbar-split .zms-trust-mobile-singles {
        position: relative;
        width: min(100%, 170px);
        min-width: 130px;
        height: 24px;
        display: block;
        overflow: hidden;
        margin-left: 2px;
    }

    .zms-desktop-topbar-split .zms-trust-single {
        position: absolute;
        left: 0;
        top: 50%;
        color: #ffffff;
        font-size: 13px;
        font-weight: 850;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(-50%);
        animation-duration: 8s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;
    }

    .zms-desktop-topbar-split .zms-trust-banner-v3-arrow {
        padding: 0 12px;
    }

    .zms-desktop-topbar-split .zms-trust-banner-v3-arrow span {
        display: none;
    }

    .zms-desktop-topbar-split .zms-deal-banner {
        min-height: 52px;
        gap: 10px;
        padding: 0 12px;
    }

    .zms-desktop-topbar-split .zms-deal-banner-left {
        font-size: 13px;
    }

    .zms-desktop-topbar-split .zms-deal-banner-center {
        justify-content: flex-start;
        font-size: 13px;
    }

    .zms-desktop-topbar-split .zms-deal-rotator {
        min-width: 95px;
    }

    .zms-desktop-topbar-split .zms-deal-banner-action {
        font-size: 13px;
    }
}

.zms-deal-action-claimed {
    display: none;
}

.zms-deal-banner.is-claimed {
    background: #047857;
}

.zms-deal-banner.is-claimed .zms-deal-action-default {
    display: none;
}

.zms-deal-banner.is-claimed .zms-deal-action-claimed {
    display: inline;
}

.zms-deal-banner.is-claimed .zms-deal-banner-action i {
    display: none;
}

.zms-deal-banner.is-claimed .zms-deal-banner-action {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.zms-deal-banner.is-claim-resetting {
    transition: background 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

/* ================================
   Compact Trust Banner for Desktop Split
================================ */

.zms-trust-compact-banner {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #15803d;
    border-radius: 12px;
    background: #047857;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(4, 120, 87, 0.12);
}

.zms-trust-compact-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.zms-trust-compact-left i {
    font-size: 18px;
}

.zms-trust-compact-center {
    position: relative;
    min-width: 0;
    height: 24px;
    overflow: hidden;
}

.zms-trust-compact-item {
    position: absolute;
    left: 0;
    top: 50%;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50%) translateX(8px);
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.zms-trust-compact-item-one {
    animation-name: zmsTrustCompactOne;
}

.zms-trust-compact-item-two {
    animation-name: zmsTrustCompactTwo;
}

.zms-trust-compact-item-three {
    animation-name: zmsTrustCompactThree;
}

.zms-trust-compact-item-four {
    animation-name: zmsTrustCompactFour;
}

.zms-trust-compact-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zms-trust-compact-arrow i {
    font-size: 16px;
}

@keyframes zmsTrustCompactOne {
    0%, 20% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    25%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

@keyframes zmsTrustCompactTwo {
    0%, 20% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    25%, 45% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    50%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

@keyframes zmsTrustCompactThree {
    0%, 45% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    50%, 70% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    75%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

@keyframes zmsTrustCompactFour {
    0%, 70% {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    75%, 95% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-8px);
    }
}

.zms-deal-action-claimed {
    display: none;
}

.zms-deal-banner.is-claimed {
    background: #047857;
}

.zms-deal-banner.is-claimed .zms-deal-action-default {
    display: none;
}

.zms-deal-banner.is-claimed .zms-deal-action-claimed {
    display: inline;
}

.zms-deal-banner.is-claimed .zms-deal-banner-action i {
    display: none;
}

.zms-deal-banner.is-claimed .zms-deal-banner-action {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.zms-deal-banner.is-fading-out {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ================================
   Welcome Coupon Page
================================ */

.zms-welcome-coupon-page {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 14px 70px;
    background:
        radial-gradient(circle at top, rgba(4, 120, 87, 0.10), transparent 36%),
        linear-gradient(180deg, #ffffff, #f9fafb);
}

.zms-welcome-coupon-card {
    position: relative;
    width: min(100%, 540px);
    padding: 34px 24px 26px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.14);
    text-align: center;
    overflow: hidden;
}

.zms-welcome-coupon-glow {
    position: absolute;
    inset: -70px -70px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.24);
    filter: blur(8px);
    pointer-events: none;
}

.zms-welcome-coupon-icon {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 15px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #facc15;
    font-size: 30px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

.zms-welcome-coupon-card h1 {
    position: relative;
    margin: 6px 0 10px;
    font-size: clamp(31px, 7vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    color: #111827;
}

.zms-welcome-coupon-text {
    position: relative;
    max-width: 410px;
    margin: 0 auto 20px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 750;
}

.zms-welcome-coupon-message {
    margin: 0 auto 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 13px;
    font-weight: 900;
}

.zms-welcome-coupon-form {
    position: relative;
    margin: 0;
}

.zms-welcome-coupon-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    background: #047857;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(4, 120, 87, 0.20);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.zms-welcome-coupon-btn:hover {
    background: #036c4b;
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(4, 120, 87, 0.24);
}

.zms-welcome-coupon-btn i {
    font-size: 18px;
}

.zms-welcome-coupon-skip {
    display: inline-block;
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.zms-welcome-coupon-skip:hover {
    color: #111827;
}

.zms-welcome-coupon-note {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.zms-welcome-coupon-note i {
    color: #047857;
    font-size: 17px;
}

@media (max-width: 520px) {
    .zms-welcome-coupon-page {
        align-items: flex-start;
        padding-top: 26px;
    }

    .zms-welcome-coupon-card {
        padding: 30px 18px 22px;
        border-radius: 26px;
    }

    .zms-welcome-coupon-note {
        align-items: flex-start;
        text-align: left;
    }
}

.admin-order-coupon-row {
    color: #047857;
}

.admin-order-coupon-row strong {
    color: #047857;
}

.admin-order-total-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-order-coupon-mini {
    color: #047857;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.admin-order-coupon-row {
    color: #047857;
}

.admin-order-coupon-row strong {
    color: #047857;
}

.zms-deal-action-claimed {
    display: none;
}

.zms-deal-banner.is-claimed {
    background: #047857;
    animation: zmsDealClaimedDisappear 2s ease forwards;
}

.zms-deal-banner.is-claimed .zms-deal-action-default {
    display: none;
}

.zms-deal-banner.is-claimed .zms-deal-action-claimed {
    display: inline;
}

.zms-deal-banner.is-claimed .zms-deal-banner-action i {
    display: none;
}

.zms-deal-banner.is-claimed .zms-deal-banner-action {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

@keyframes zmsDealClaimedDisappear {
    0% {
        opacity: 1;
        transform: translateY(0);
        max-height: 70px;
        margin-top: inherit;
        margin-bottom: inherit;
    }

    55% {
        opacity: 1;
        transform: translateY(0);
        max-height: 70px;
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        pointer-events: none;
    }
}

.zms-welcome-coupon-link-btn {
    text-decoration: none;
}

/* ================================
   Checkout Coupon Panel
================================ */

.zms-coupon-panel {
    margin: 16px 0 18px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f9fafb;
}

.zms-coupon-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.zms-coupon-panel-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 950;
    color: #111827;
    letter-spacing: -0.02em;
}

.zms-coupon-panel-head p {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    font-weight: 750;
}

.zms-coupon-pill {
    flex-shrink: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 11px;
    font-weight: 950;
}

.zms-coupon-message {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 13px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 12px;
    font-weight: 850;
}

.zms-applied-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
}

.zms-applied-coupon div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zms-applied-coupon strong {
    font-size: 13px;
    font-weight: 950;
    color: #047857;
}

.zms-applied-coupon span {
    font-size: 12px;
    font-weight: 800;
    color: #4b5563;
}

.zms-applied-coupon button {
    border: 0;
    border-radius: 999px;
    padding: 8px 11px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.zms-applied-coupon button:hover {
    background: #e5e7eb;
}

.zms-saved-coupons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.zms-saved-coupon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.zms-saved-coupon-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.zms-saved-coupon-row strong {
    font-size: 13px;
    font-weight: 950;
    color: #111827;
}

.zms-saved-coupon-row span {
    font-size: 12px;
    font-weight: 800;
    color: #6b7280;
}

.zms-saved-coupon-row button {
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.zms-saved-coupon-row button:hover {
    background: #020617;
}

.zms-coupon-code-form {
    display: flex;
    gap: 8px;
    margin: 0;
}

.zms-coupon-code-form input[name="code"] {
    min-width: 0;
    flex: 1;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 13px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

.zms-coupon-code-form input[name="code"]::placeholder {
    color: #9ca3af;
}

.zms-coupon-code-form input[name="code"]:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.zms-coupon-code-form button {
    flex-shrink: 0;
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    background: #047857;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.zms-coupon-code-form button:hover {
    background: #036c4b;
}

/* Discount row in checkout total */
.checkout-review-total-row.discount {
    color: #047857;
}

.checkout-review-total-row.discount strong {
    color: #047857;
}

@media (max-width: 520px) {
    .zms-coupon-panel {
        padding: 13px;
        border-radius: 16px;
    }

    .zms-coupon-code-form {
        flex-direction: column;
    }

    .zms-coupon-code-form input[name="code"],
    .zms-coupon-code-form button {
        width: 100%;
    }

    .zms-saved-coupon-row,
    .zms-applied-coupon {
        align-items: flex-start;
    }
}

/* ================================
   Desktop Deal Banner Alignment
================================ */

@media (min-width: 901px) {
    .zms-deal-banner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding-left: 16px;
        padding-right: 14px;
    }

    .zms-deal-banner-center {
        justify-content: flex-start;
        padding-left: 22px;
    }

    .zms-deal-rotator {
        min-width: 110px;
    }

    .zms-deal-banner-action {
        justify-content: flex-end;
    }
}

/* ================================
   Desktop Compact Trust Banner
================================ */

.zms-trust-compact-banner {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 12px;
    background: #047857;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(4, 120, 87, 0.14);
}

.zms-trust-compact-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.zms-trust-compact-left i {
    font-size: 18px;
    line-height: 1;
}

.zms-trust-compact-center {
    position: relative;
    min-width: 0;
    height: 24px;
    overflow: hidden;
}

.zms-trust-compact-item {
    position: absolute;
    left: 8px;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50%) translateX(8px);
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.zms-trust-compact-item i {
    font-size: 16px;
    line-height: 1;
}

.zms-trust-compact-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.zms-trust-compact-action i {
    font-size: 15px;
}

.zms-trust-compact-item-one {
    animation-name: zmsTrustCompactOne;
}

.zms-trust-compact-item-two {
    animation-name: zmsTrustCompactTwo;
}

.zms-trust-compact-item-three {
    animation-name: zmsTrustCompactThree;
}

.zms-trust-compact-item-four {
    animation-name: zmsTrustCompactFour;
}

/* ================================
   Admin Coupons Page
================================ */

.admin-coupon-page {
    width: min(100% - 28px, 1120px);
    margin: 0 auto;
    padding: 34px 0 70px;
}

.admin-coupon-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.20), transparent 32%),
        #111827;
    color: #ffffff;
    margin-bottom: 18px;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.18);
}

.admin-coupon-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.admin-coupon-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    font-weight: 750;
}

.admin-coupon-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #facc15;
    color: #111827;
    font-size: 32px;
    flex-shrink: 0;
}

.admin-coupon-message {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 16px;
    border-radius: 17px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 900;
}

.admin-coupon-message i {
    font-size: 19px;
}

.admin-coupon-message.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.admin-coupon-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.admin-coupon-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.admin-coupon-card,
.admin-coupon-help-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.admin-coupon-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-coupon-card-head h2,
.admin-coupon-help-card h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.admin-coupon-card-head p,
.admin-coupon-help-card p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 750;
}

.admin-coupon-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-coupon-form {
    display: grid;
    gap: 14px;
}

.admin-coupon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-coupon-form label {
    display: grid;
    gap: 6px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.admin-coupon-form small {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 750;
}

.admin-coupon-form input,
.admin-coupon-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

.admin-coupon-form input:focus,
.admin-coupon-form select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.admin-coupon-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-coupon-checkbox {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    color: #111827;
}

.admin-coupon-checkbox input {
    width: 16px;
    min-height: auto;
    height: 16px;
}

.admin-coupon-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 850;
}

.admin-coupon-note i {
    color: #047857;
    font-size: 16px;
}

.admin-coupon-submit-btn {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
}

.admin-coupon-submit-btn:hover {
    background: #020617;
}

.admin-coupon-submit-btn i {
    font-size: 18px;
}

.admin-coupon-help-card {
    position: sticky;
    top: 90px;
}

.admin-coupon-help-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.admin-coupon-help-list div {
    padding: 12px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.admin-coupon-help-list strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.admin-coupon-help-list span {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 750;
}

.admin-coupon-list {
    display: grid;
    gap: 10px;
}

.admin-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.admin-coupon-code-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-coupon-code-block strong {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.admin-coupon-copy-btn {
    min-height: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.admin-coupon-copy-btn:hover {
    background: #f3f4f6;
}

.admin-coupon-row-main > span {
    display: block;
    margin-top: 7px;
    color: #111827;
    font-size: 14px;
    font-weight: 850;
}

.admin-coupon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.admin-coupon-meta small {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 850;
}

.admin-coupon-row-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.admin-coupon-status {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    background: #f3f4f6;
    color: #374151;
}

.admin-coupon-status.active {
    background: #ecfdf5;
    color: #047857;
}

.admin-coupon-uses {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-coupon-empty {
    min-height: 170px;
    border-radius: 22px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.admin-coupon-empty i {
    font-size: 34px;
    color: #9ca3af;
}

.admin-coupon-empty strong {
    color: #111827;
    font-size: 16px;
    font-weight: 950;
}

.admin-coupon-empty span {
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 850px) {
    .admin-coupon-layout {
        grid-template-columns: 1fr;
    }

    .admin-coupon-help-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .admin-coupon-page {
        width: min(100% - 22px, 1120px);
        padding-top: 22px;
    }

    .admin-coupon-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .admin-coupon-hero-icon {
        display: none;
    }

    .admin-coupon-grid {
        grid-template-columns: 1fr;
    }

    .admin-coupon-row {
        grid-template-columns: 1fr;
    }

    .admin-coupon-row-side {
        justify-items: start;
    }
}

.zms-coupon-panel {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.zms-coupon-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.zms-coupon-panel-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #111827;
}

.zms-coupon-panel-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.35;
}

.zms-coupon-pill,
.zms-coupon-applied-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: #e9f8ef;
    color: #157347;
    border: 1px solid rgba(21, 115, 71, 0.18);
}

.zms-coupon-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.zms-applied-coupons {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fff9, #ffffff);
    border: 1px solid rgba(21, 115, 71, 0.14);
}

.zms-applied-coupons-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.zms-applied-coupons-head strong {
    font-size: 13px;
    font-weight: 900;
    color: #111827;
}

.zms-applied-coupons-head span {
    font-size: 13px;
    font-weight: 900;
    color: #157347;
}

.zms-applied-coupon,
.zms-saved-coupon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.zms-saved-coupon-row.is-applied {
    background: #fbfffc;
    border-color: rgba(21, 115, 71, 0.18);
}

.zms-applied-coupon-info,
.zms-saved-coupon-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.zms-applied-coupon-info div,
.zms-saved-coupon-left div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.zms-applied-coupon-info strong,
.zms-saved-coupon-left strong {
    font-size: 13px;
    font-weight: 900;
    color: #111827;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zms-applied-coupon-info span:not(.zms-coupon-type-badge),
.zms-saved-coupon-left span:not(.zms-coupon-type-badge) {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.zms-coupon-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zms-coupon-type-badge.main {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid rgba(55, 48, 163, 0.14);
}

.zms-coupon-type-badge.bonus {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid rgba(194, 65, 12, 0.16);
}

.zms-saved-coupons {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.zms-saved-coupon-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.zms-coupon-apply-btn,
.zms-coupon-remove-btn,
.zms-coupon-code-form button {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.zms-coupon-apply-btn,
.zms-coupon-code-form button {
    background: #111827;
    color: #ffffff;
}

.zms-coupon-apply-btn:hover,
.zms-coupon-code-form button:hover {
    background: #000000;
    transform: translateY(-1px);
}

.zms-coupon-remove-btn {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: #fff5f5;
    color: #b42318;
}

.zms-coupon-remove-btn:hover {
    background: #ffe8e8;
    transform: translateY(-1px);
}

.zms-coupon-code-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.zms-coupon-code-form input[name="code"] {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    outline: none;
    background: #ffffff;
}

.zms-coupon-code-form input[name="code"]::placeholder {
    color: #9ca3af;
}

.zms-coupon-code-form input[name="code"]:focus {
    border-color: rgba(17, 24, 39, 0.32);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

@media (max-width: 640px) {
    .zms-coupon-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .zms-coupon-panel-head {
        align-items: flex-start;
    }

    .zms-applied-coupon,
    .zms-saved-coupon-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .zms-saved-coupon-actions {
        width: 100%;
        justify-content: space-between;
    }

    .zms-saved-coupon-actions form,
    .zms-saved-coupon-actions button,
    .zms-applied-coupon form,
    .zms-applied-coupon button {
        width: 100%;
    }

    .zms-coupon-code-form {
        flex-direction: column;
    }

    .zms-coupon-code-form button {
        width: 100%;
    }
}

.admin-coupon-browser {
    margin-top: 28px;
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.admin-coupon-browser-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-coupon-browser-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.admin-coupon-browser-head p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.admin-coupon-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-coupon-search-form input[type="text"] {
    width: 230px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.admin-coupon-search-form input[type="text"]:focus {
    border-color: rgba(17, 24, 39, 0.35);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.admin-coupon-search-form button {
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.admin-coupon-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.admin-coupon-tabs a {
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 900;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.admin-coupon-tabs a.is-active {
    color: #ffffff;
    background: #111827;
    border-color: #111827;
}

.admin-coupon-list {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.admin-coupon-card.is-inactive {
    opacity: 0.72;
    background: #f9fafb;
}

.admin-coupon-card-main {
    min-width: 0;
}

.admin-coupon-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.admin-coupon-card-top strong {
    font-size: 15px;
    font-weight: 950;
    color: #111827;
    letter-spacing: 0.03em;
}

.admin-coupon-card-main p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 700;
}

.admin-coupon-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.admin-coupon-status.active {
    background: #e9f8ef;
    color: #157347;
    border: 1px solid rgba(21, 115, 71, 0.18);
}

.admin-coupon-status.inactive {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.16);
}

.admin-coupon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-coupon-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 850;
    background: #f8fafc;
    color: #374151;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-coupon-card-actions {
    flex-shrink: 0;
}

.admin-coupon-delete-btn {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: #fff5f5;
    color: #b42318;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.admin-coupon-delete-btn:hover {
    background: #ffe8e8;
}

.admin-coupon-muted-action {
    font-size: 12px;
    font-weight: 900;
    color: #9ca3af;
}

.admin-coupon-empty {
    padding: 20px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 700px) {
    .admin-coupon-browser-head {
        flex-direction: column;
    }

    .admin-coupon-search-form {
        width: 100%;
    }

    .admin-coupon-search-form input[type="text"] {
        width: 100%;
    }

    .admin-coupon-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-coupon-card-actions,
    .admin-coupon-card-actions form,
    .admin-coupon-delete-btn {
        width: 100%;
    }
}

/* Compact coupon panel for checkout review */
.zms-coupon-panel {
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.zms-coupon-panel-head {
    margin-bottom: 10px;
    gap: 10px;
}

.zms-coupon-panel-head h3 {
    font-size: 15px;
    line-height: 1.1;
}

.zms-coupon-panel-head p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
}

.zms-coupon-pill,
.zms-coupon-applied-badge {
    padding: 5px 8px;
    font-size: 11px;
}

.zms-coupon-message {
    margin-bottom: 9px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 12px;
}

.zms-applied-coupons {
    gap: 7px;
    margin-bottom: 10px;
    padding: 9px;
    border-radius: 13px;
}

.zms-applied-coupons-head {
    gap: 8px;
}

.zms-applied-coupons-head strong,
.zms-applied-coupons-head span {
    font-size: 12px;
}

.zms-applied-coupon,
.zms-saved-coupon-row {
    padding: 8px 9px;
    gap: 8px;
    border-radius: 12px;
}

.zms-applied-coupon-info,
.zms-saved-coupon-left {
    gap: 7px;
}

.zms-applied-coupon-info div,
.zms-saved-coupon-left div {
    gap: 0;
}

.zms-applied-coupon-info strong,
.zms-saved-coupon-left strong {
    font-size: 12px;
}

.zms-applied-coupon-info span:not(.zms-coupon-type-badge),
.zms-saved-coupon-left span:not(.zms-coupon-type-badge) {
    font-size: 11px;
}

.zms-coupon-type-badge {
    min-width: 43px;
    padding: 4px 7px;
    font-size: 10px;
}

.zms-saved-coupons {
    gap: 7px;
    margin-bottom: 10px;
}

.zms-saved-coupon-actions {
    gap: 6px;
}

.zms-coupon-apply-btn,
.zms-coupon-remove-btn,
.zms-coupon-code-form button {
    padding: 6px 9px;
    font-size: 11px;
}

.zms-coupon-code-form {
    gap: 7px;
    margin-top: 9px;
}

.zms-coupon-code-form input[name="code"] {
    padding: 9px 11px;
    font-size: 12px;
}

/* Mobile: still compact, but not cramped */
@media (max-width: 640px) {
    .zms-coupon-panel {
        padding: 11px;
        border-radius: 13px;
    }

    .zms-applied-coupon,
    .zms-saved-coupon-row {
        padding: 9px;
        gap: 7px;
    }

    .zms-saved-coupon-actions {
        gap: 7px;
    }

    .zms-coupon-code-form {
        gap: 7px;
    }
}

.zms-desktop-topbar-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.zms-desktop-deal-half {
    justify-content: flex-start;
}

.zms-desktop-trust-half {
    justify-content: flex-end;
}

.zms-desktop-topbar-half:empty {
    display: none;
}

/* If only one banner exists, keep it on the left and don't force 50/50 spacing */
.zms-desktop-topbar-split:has(.zms-desktop-topbar-half:only-child),
.zms-desktop-topbar-split:not(:has(.zms-trust-compact-banner)) {
    grid-template-columns: minmax(0, 1fr);
}

.zms-desktop-topbar-split:not(:has(.zms-trust-compact-banner)) .zms-desktop-deal-half {
    max-width: 620px;
}

.zms-desktop-topbar-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.zms-desktop-topbar-split.has-deal-only {
    grid-template-columns: minmax(0, 1fr);
}

.zms-desktop-topbar-split.has-deal-only .zms-desktop-deal-half {
    max-width: 620px;
}

.zms-desktop-topbar-half {
    min-width: 0;
}

.zms-coupon-subtext {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
}

.zms-coupon-empty-small {
    padding: 9px 10px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.review-card-body-with-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
}

.review-sold-item-thumb {
    position: relative;
    width: 86px;
    height: 108px;
    flex: 0 0 86px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

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

.review-sold-item-thumb span {
    position: absolute;
    left: 7px;
    bottom: 7px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.86);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.review-sold-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 800;
}

.review-card-text {
    min-width: 0;
    flex: 1;
}

.review-card-text .review-comment {
    margin-top: 0;
}

.review-purchased-item-line {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.review-purchased-item-line strong {
    color: #111827;
    font-weight: 900;
}

@media (max-width: 640px) {
    .review-card-body-with-item {
        gap: 11px;
        margin-top: 12px;
    }

    .review-sold-item-thumb {
        width: 72px;
        height: 92px;
        flex-basis: 72px;
        border-radius: 12px;
    }

    .review-purchased-item-line {
        font-size: 11px;
    }
}

.admin-payouts-page {
    width: min(1080px, calc(100% - 28px));
    margin: 28px auto 60px;
}

.admin-payouts-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.admin-payouts-hero h1 {
    margin: 4px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
}

.admin-payouts-hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.45;
}

.admin-payouts-stripe-link {
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 15px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
}

.admin-payout-message {
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
}

.admin-payout-message.success {
    background: #ecfdf3;
    color: #157347;
    border: 1px solid rgba(21, 115, 71, 0.18);
}

.admin-payout-message.error {
    background: #fff5f5;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.16);
}

.admin-payout-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.admin-payout-summary-card,
.admin-payout-action-card,
.admin-recent-payouts-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.admin-payout-summary-card {
    padding: 18px;
}

.admin-payout-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-payout-summary-card strong {
    display: block;
    font-size: 34px;
    font-weight: 950;
    color: #111827;
}

.admin-payout-summary-card p {
    margin: 7px 0 0;
    font-size: 13px;
    color: #6b7280;
    font-weight: 700;
}

.admin-payout-summary-card.available {
    border-color: rgba(21, 115, 71, 0.18);
}

.admin-payout-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 18px;
}

.admin-payout-action-card h2,
.admin-recent-payouts-card h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
    color: #111827;
}

.admin-payout-action-card p,
.admin-recent-payouts-card p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.admin-payout-withdraw-btn {
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}

.admin-payout-withdraw-btn:hover {
    background: #000000;
}

.admin-payout-withdraw-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.admin-recent-payouts-card {
    margin-top: 16px;
    padding: 18px;
}

.admin-recent-payouts-head {
    margin-bottom: 14px;
}

.admin-payout-list {
    display: grid;
    gap: 10px;
}

.admin-payout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border-radius: 15px;
    background: #f9fafb;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-payout-row strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    color: #111827;
}

.admin-payout-row span {
    font-size: 12px;
    font-weight: 750;
    color: #6b7280;
}

.admin-payout-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-payout-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-payout-status.paid {
    background: #ecfdf3;
    color: #157347;
}

.admin-payout-status.in_transit,
.admin-payout-status.pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-payout-status.failed,
.admin-payout-status.canceled {
    background: #fff5f5;
    color: #b42318;
}

.admin-payout-empty {
    padding: 18px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 720px) {
    .admin-payouts-hero,
    .admin-payout-action-card,
    .admin-payout-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-payout-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-payouts-stripe-link,
    .admin-payout-action-card form,
    .admin-payout-withdraw-btn {
        width: 100%;
        text-align: center;
    }

    .admin-payout-row-meta {
        justify-content: flex-start;
    }
}

/* Desktop-only Admin/List topbar buttons */
@media (min-width: 769px) {
    .topbar .topbar-nav .admin-topbar-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 36px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
        background: #111111 !important;
        color: #ffffff !important;
        font-size: 12px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        border: none !important;
        box-shadow: none !important;
    }

    .topbar .topbar-nav .admin-topbar-btn:hover {
        background: #000000 !important;
        color: #ffffff !important;
        transform: none !important;
    }

    .topbar .topbar-nav .admin-list-topbar-btn {
        background: #f26b38 !important;
        color: #ffffff !important;
    }

    .topbar .topbar-nav .admin-list-topbar-btn:hover {
        background: #e85f2f !important;
        color: #ffffff !important;
    }
}

/* Product detail topbar/search cleanup */
.product-detail-body .topbar {
    position: sticky;
    top: 0;
    z-index: 999;
}

@media (max-width: 768px) {
    .product-detail-body .topbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 8px;
        padding: 8px 10px 9px;
        background: #ffffff;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .product-detail-body .brand {
        min-width: 0;
        gap: 7px;
    }

    .product-detail-body .brand-logo {
        width: 31px;
        height: 31px;
        flex: 0 0 31px;
    }

    .product-detail-body .brand-name {
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }

    .product-detail-body .brand-sub {
        display: none;
    }

    .product-detail-body .product-clean-nav {
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .product-detail-body .product-nav-text-link,
    .product-detail-body .product-reviews-link,
    .product-detail-body .product-sell-clean-btn {
        display: none !important;
    }

    .product-detail-body .product-like-clean-link,
    .product-detail-body .product-bag-clean-link,
    .product-detail-body .product-message-clean-link,
    .product-detail-body .product-profile-clean-link {
        width: 34px;
        height: 34px;
        min-width: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #f8fafc;
        color: #111827;
        text-decoration: none;
        border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .product-detail-body .product-topbar-simple-icon,
    .product-detail-body .product-like-clean-link i,
    .product-detail-body .product-bag-clean-link i {
        font-size: 19px;
        line-height: 1;
        color: #111827;
    }

    .product-detail-body .product-bag-clean-wrap,
    .product-detail-body .product-message-clean-wrap {
        width: 100%;
        height: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .product-detail-body .product-message-clean-icon {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    .product-detail-body .topbar-profile-img,
    .product-detail-body .product-profile-clean-fallback {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        font-size: 12px;
    }

    .product-detail-body .product-nav-count-badge,
    .product-detail-body .product-message-count-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        font-size: 9px;
        font-weight: 950;
        line-height: 16px;
        text-align: center;
    }

    .product-detail-body .searchbar {
        grid-column: 1 / -1;
        order: 5;
        width: 100%;
        max-width: none;
        margin: 2px 0 0;
    }

    .product-detail-body .searchbar-inner {
        width: 100%;
        height: 39px;
        display: flex;
        align-items: center;
        border-radius: 999px;
        background: #f3f4f6;
        border: 1px solid rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .product-detail-body .searchbar-inner input {
        min-width: 0;
        flex: 1;
        height: 100%;
        border: none;
        outline: none;
        background: transparent;
        padding: 0 12px;
        font-size: 13px;
        font-weight: 700;
        color: #111827;
        text-overflow: ellipsis;
    }

    .product-detail-body .searchbar-inner input::placeholder {
        color: #6b7280;
        font-weight: 700;
    }

    .product-detail-body .searchbar-inner button {
        height: 31px;
        margin-right: 4px;
        padding: 0 12px;
        border: none;
        border-radius: 999px;
        background: #111827;
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
    }

    .product-detail-body .search-suggestions-box {
        top: calc(100% + 7px);
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px;
    }
}

/* Mobile product detail topbar */
.zms-mobile-product-topbar {
    display: none;
}

@media (max-width: 768px) {
    .product-detail-desktop-topbar {
        display: none !important;
    }

    .zms-mobile-product-topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .zms-mobile-product-logo-link {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .zms-mobile-product-logo {
        width: 34px;
        height: 34px;
        display: block;
        object-fit: contain;
        border-radius: 10px;
    }

    .zms-mobile-product-search {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
    }

    .zms-mobile-product-search-inner {
        position: relative;
        height: 36px;
        display: flex;
        align-items: center;
        border-radius: 999px;
        background: #f3f4f6;
        border: 1px solid rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .zms-mobile-search-icon {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 15px;
        color: #6b7280;
        pointer-events: none;
        z-index: 2;
    }

    .zms-mobile-product-search input {
        position: relative;
        z-index: 3;
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
        background: transparent;
        padding: 0 12px 0 33px;
        font-size: 13px;
        font-weight: 750;
        color: #111827;
    }

    .zms-mobile-product-search input:placeholder-shown {
        color: transparent;
    }

    .zms-mobile-product-search input:focus {
        color: #111827;
    }

    .zms-mobile-product-search input:focus + .zms-mobile-search-placeholder,
    .zms-mobile-product-search input:not(:placeholder-shown) + .zms-mobile-search-placeholder {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    .zms-mobile-search-placeholder {
        position: absolute;
        left: 33px;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        overflow: hidden;
        white-space: nowrap;
        color: #6b7280;
        font-size: 13px;
        font-weight: 800;
        z-index: 1;
        opacity: 1;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .zms-mobile-search-placeholder span {
        display: inline-block;
        animation: zmsMobileSearchTextSlide 5s ease-in-out infinite;
    }

    @keyframes zmsMobileSearchTextSlide {
        0% {
            transform: translateY(18px);
            opacity: 0;
        }

        10% {
            transform: translateY(0);
            opacity: 1;
        }

        78% {
            transform: translateY(0);
            opacity: 1;
        }

        100% {
            transform: translateY(-18px);
            opacity: 0;
        }
    }

    .zms-mobile-product-cart-link {
        position: relative;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111827;
        text-decoration: none;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .zms-mobile-product-cart-link i {
        font-size: 22px;
        line-height: 1;
    }

    .zms-mobile-product-cart-link:hover,
    .zms-mobile-product-cart-link:active {
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .zms-mobile-product-cart-badge {
        position: absolute;
        top: 0;
        right: -2px;
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #ef4444;
        color: #ffffff;
        font-size: 9px;
        font-weight: 950;
        line-height: 1;
        border: 2px solid #ffffff;
    }
}

/* Product detail: switch topbars by screen size */
.zms-mobile-product-topbar {
    display: none !important;
}

@media (max-width: 768px) {
    body.product-detail-body .topbar.product-detail-desktop-topbar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    body.product-detail-body .zms-mobile-product-topbar {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
    }
}

@media (min-width: 769px) {
    body.product-detail-body .zms-mobile-product-topbar {
        display: none !important;
    }

    body.product-detail-body .topbar.product-detail-desktop-topbar {
        display: flex !important;
    }
}

/* Product detail mobile topbar */
.zms-mobile-product-topbar {
    display: none !important;
}

@media (max-width: 768px) {
    body.product-detail-body .topbar.product-detail-desktop-topbar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    body.product-detail-body .zms-mobile-product-topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex !important;
        align-items: center;
        gap: 7px;
        padding: 7px 9px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .zms-mobile-product-logo-link {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .zms-mobile-product-logo {
        width: 32px;
        height: 32px;
        display: block;
        object-fit: contain;
        border-radius: 9px;
    }

    .zms-mobile-product-search {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
    }

    .zms-mobile-product-search-inner {
        position: relative;
        height: 34px;
        display: flex;
        align-items: center;
        border-radius: 999px;
        background: #f3f4f6;
        border: 1px solid rgba(15, 23, 42, 0.08);
        overflow: hidden;
    }

    .zms-mobile-search-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #6b7280;
        pointer-events: none;
        z-index: 3;
    }

    .zms-mobile-product-search input {
        position: relative;
        z-index: 4;
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
        background: transparent;
        padding: 0 10px 0 31px;
        font-size: 12px;
        font-weight: 750;
        color: #111827;
    }

    .zms-mobile-product-search input:placeholder-shown {
        color: transparent;
    }

    .zms-mobile-product-search input:focus {
        color: #111827;
    }

    .zms-mobile-product-search input:focus + .zms-mobile-search-placeholder,
    .zms-mobile-product-search input:not(:placeholder-shown) + .zms-mobile-search-placeholder {
        opacity: 0;
        transform: translateY(-50%) translateX(8px);
    }

    .zms-mobile-search-placeholder {
        position: absolute;
        left: 31px;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        overflow: hidden;
        white-space: nowrap;
        color: #6b7280;
        font-size: 12px;
        font-weight: 850;
        z-index: 2;
        opacity: 1;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .zms-mobile-search-placeholder span {
        display: inline-block;
        animation: zmsMobileSearchTextSlide 4.2s ease-in-out infinite;
    }

    @keyframes zmsMobileSearchTextSlide {
        0% {
            transform: translateY(18px);
            opacity: 0;
        }

        12% {
            transform: translateY(0);
            opacity: 1;
        }

        78% {
            transform: translateY(0);
            opacity: 1;
        }

        100% {
            transform: translateY(-18px);
            opacity: 0;
        }
    }

    .zms-mobile-product-icon-link {
        position: relative;
        width: 30px;
        height: 32px;
        flex: 0 0 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111827;
        text-decoration: none;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .zms-mobile-product-icon-link i {
        font-size: 22px;
        line-height: 1;
    }

    .zms-mobile-product-icon-link:hover,
    .zms-mobile-product-icon-link:active {
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .zms-mobile-product-cart-badge {
        position: absolute;
        top: 0;
        right: -2px;
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #ef4444;
        color: #ffffff;
        font-size: 9px;
        font-weight: 950;
        line-height: 1;
        border: 2px solid #ffffff;
    }
}

@media (min-width: 769px) {
    body.product-detail-body .zms-mobile-product-topbar {
        display: none !important;
    }

    body.product-detail-body .topbar.product-detail-desktop-topbar {
        display: flex !important;
    }
}

/* Product detail mobile image ratio cleanup */
@media (max-width: 768px) {
    .mobile-product-carousel-section {
        margin: 0;
        padding: 0;
        background: #f7f7f7;
    }

    .mobile-product-carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 68vh;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        background: #f7f7f7;
    }

    .mobile-product-slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f7f7f7;
    }

    .mobile-product-slide-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }
}

@media (max-width: 768px) {
    .zms-mobile-product-search {
        position: relative;
    }

    .zms-mobile-product-search-suggestions {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 1100;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.10);
        border-radius: 16px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
        overflow: hidden;
    }

    .zms-mobile-product-search-suggestions.show-search-suggestions {
        display: block;
    }

    .zms-mobile-product-search-suggestions .search-suggestion-item {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 11px 13px;
        color: #111827;
        text-decoration: none;
        font-size: 13px;
        font-weight: 800;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .zms-mobile-product-search-suggestions .search-suggestion-item:last-child {
        border-bottom: none;
    }

    .zms-mobile-product-search-suggestions .search-suggestion-item i {
        font-size: 15px;
        color: #6b7280;
    }
}

/* Product detail mobile: color/size left, specs right */
.mobile-spec-right {
    display: none;
}

@media (max-width: 768px) {
    body.product-detail-body .product-detail-info {
        padding: 10px 12px 0 !important;
        margin: 0 !important;
    }

    body.product-detail-body .back-link,
    body.product-detail-body .product-like-stack,
    body.product-detail-body .product-desktop-meta {
        display: none !important;
    }

    body.product-detail-body .product-title-row {
        margin: 6px 0 4px !important;
    }

    body.product-detail-body .product-title-row h1 {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.18 !important;
    }

    body.product-detail-body .detail-price,
    body.product-detail-body .detail-sale-price-wrap {
        margin: 5px 0 8px !important;
    }

    body.product-detail-body .mobile-spec-card-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1.25fr) minmax(112px, 0.75fr);
        gap: 8px;
        align-items: stretch;
        margin: 8px 0 10px;
        padding: 8px;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.10);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
        box-sizing: border-box;
    }

    body.product-detail-body .mobile-spec-card-shell .variant-picker,
    body.product-detail-body .mobile-spec-card-shell .simple-product-options {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body.product-detail-body .mobile-spec-right {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    body.product-detail-body .mobile-spec-row {
        min-width: 0;
        padding: 7px 8px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid rgba(15, 23, 42, 0.08);
        box-sizing: border-box;
    }

    body.product-detail-body .mobile-spec-row span {
        display: block;
        margin-bottom: 3px;
        font-size: 9px;
        line-height: 1;
        font-weight: 950;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6b7280;
    }

    body.product-detail-body .mobile-spec-row strong {
        display: block;
        min-width: 0;
        font-size: 11.5px;
        line-height: 1.15;
        font-weight: 900;
        color: #111827;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.product-detail-body .detail-description {
        margin: 8px 0 12px !important;
    }

    body.product-detail-body .detail-actions {
        margin-top: 10px !important;
    }
}

/* Product detail mobile: put Color and Size next to each other only */
@media (max-width: 768px) {
    body.product-detail-body .variant-picker,
    body.product-detail-body .simple-product-options {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
        margin: 8px 0 10px !important;
    }

    body.product-detail-body .variant-picker .variant-group,
    body.product-detail-body .simple-product-options .variant-group {
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.product-detail-body .simple-product-options > .selected-option-text {
        grid-column: 1 / -1 !important;
        margin-top: 0 !important;
    }

    body.product-detail-body .variant-label-row-with-admin-stats {
        margin-bottom: 6px !important;
    }
}

/* Product detail desktop topbar: cleaner reset */
@media (min-width: 769px) {
    body.product-detail-body .product-detail-desktop-topbar {
        padding: 11px 24px !important;
        gap: 18px !important;
        align-items: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .brand {
        flex: 0 0 auto !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .searchbar {
        flex: 1 1 auto !important;
        max-width: 580px !important;
        min-width: 280px !important;
        margin: 0 auto !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .topbar-nav,
    body.product-detail-body .product-detail-desktop-topbar .product-clean-nav {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        white-space: nowrap !important;
    }

    /* Keep desktop from feeling crowded */
    body.product-detail-body .product-detail-desktop-topbar .product-like-clean-link {
        display: none !important;
    }

    /* Reset Reviews / Offers text links */
    body.product-detail-body .product-detail-desktop-topbar .product-nav-text-link,
    body.product-detail-body .product-detail-desktop-topbar .product-reviews-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 36px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        box-shadow: none !important;
        transform: none !important;
        transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-nav-text-link:hover,
    body.product-detail-body .product-detail-desktop-topbar .product-reviews-link:hover {
        background: #f8fafc !important;
        border-color: rgba(15, 23, 42, 0.08) !important;
        color: #000000 !important;
    }

    /* Cart / messages / profile icons */
    body.product-detail-body .product-detail-desktop-topbar .product-bag-clean-link,
    body.product-detail-body .product-detail-desktop-topbar .product-message-clean-link,
    body.product-detail-body .product-detail-desktop-topbar .product-profile-clean-link {
        position: relative !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #111827 !important;
        text-decoration: none !important;
        box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045) !important;
        transform: none !important;
        transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-bag-clean-link:hover,
    body.product-detail-body .product-detail-desktop-topbar .product-message-clean-link:hover,
    body.product-detail-body .product-detail-desktop-topbar .product-profile-clean-link:hover {
        background: #f8fafc !important;
        border-color: rgba(15, 23, 42, 0.16) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
        transform: translateY(-1px) !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-topbar-simple-icon,
    body.product-detail-body .product-detail-desktop-topbar .product-bag-clean-link i,
    body.product-detail-body .product-detail-desktop-topbar .product-clean-nav > a i {
        font-size: 23px !important;
        line-height: 1 !important;
        color: #111827 !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-message-clean-icon {
        width: 21px !important;
        height: 21px !important;
        object-fit: contain !important;
        display: block !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .topbar-profile-img {
        width: 32px !important;
        height: 32px !important;
        border-radius: 999px !important;
        object-fit: cover !important;
        display: block !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-profile-clean-fallback {
        width: 32px !important;
        height: 32px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #111827 !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 950 !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-message-count-badge,
    body.product-detail-body .product-detail-desktop-topbar .product-nav-count-badge {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 5px !important;
        border-radius: 999px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
        font-size: 9px !important;
        font-weight: 950 !important;
        line-height: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Logged-out user/cart icons */
    body.product-detail-body .product-detail-desktop-topbar .product-clean-nav > a[aria-label="Log in"],
    body.product-detail-body .product-detail-desktop-topbar .product-clean-nav > a[aria-label="Log in to cart"] {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #111827 !important;
        box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045) !important;
        transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-clean-nav > a[aria-label="Log in"]:hover,
    body.product-detail-body .product-detail-desktop-topbar .product-clean-nav > a[aria-label="Log in to cart"]:hover {
        background: #f8fafc !important;
        border-color: rgba(15, 23, 42, 0.16) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
        transform: translateY(-1px) !important;
    }
}

/* Product detail desktop: message icon visible with grey hover */
@media (min-width: 769px) {
    body.product-detail-body .product-detail-desktop-topbar .product-message-clean-link {
        background: #ffffff !important;
        border-color: rgba(15, 23, 42, 0.12) !important;
        box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045) !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-message-clean-link:hover {
        background: #f1f5f9 !important;
        border-color: rgba(15, 23, 42, 0.16) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
        transform: translateY(-1px) !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-message-clean-icon {
        width: 22px !important;
        height: 22px !important;
        object-fit: contain !important;
        display: block !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

/* Product detail desktop cart count badge */
@media (min-width: 769px) {
    body.product-detail-body .product-detail-desktop-topbar .product-bag-clean-wrap {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    body.product-detail-body .product-detail-desktop-topbar .product-cart-count-badge {
        position: absolute !important;
        top: -7px !important;
        right: -8px !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 5px !important;
        border-radius: 999px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
        font-size: 9px !important;
        font-weight: 950 !important;
        line-height: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
    }
}

/* Mobile hamburger: remove circle/background */
@media (max-width: 768px) {
    .mobile-menu-toggle,
    .hamburger-menu,
    .mobile-hamburger,
    .menu-toggle {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        padding: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-menu-toggle:hover,
    .hamburger-menu:hover,
    .mobile-hamburger:hover,
    .menu-toggle:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .mobile-menu-toggle i,
    .hamburger-menu i,
    .mobile-hamburger i,
    .menu-toggle i {
        font-size: 26px !important;
        color: #111827 !important;
        line-height: 1 !important;
    }
}

/* Mobile sliding side menu */
.mobile-menu-overlay,
.mobile-slide-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1998;
        display: block;
        background: rgba(15, 23, 42, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .mobile-slide-menu {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1999;
        display: block;
        width: min(82vw, 310px);
        height: 100vh;
        padding: 18px 16px;
        background: #ffffff;
        box-shadow: 22px 0 45px rgba(15, 23, 42, 0.16);
        transform: translateX(-105%);
        transition: transform 0.26s ease;
        overflow-y: auto;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-menu-open .mobile-slide-menu {
        transform: translateX(0);
    }
}

/* Mobile cart badge: stronger floating badge */
@media (max-width: 768px) {
    .zms-mobile-product-cart-link,
    .mobile-cart-link,
    .cart-link,
    .product-bag-clean-link {
        position: relative !important;
    }

    .zms-mobile-product-cart-badge,
    .mobile-cart-count-badge,
    .cart-count-badge,
    .product-cart-count-badge {
        position: absolute !important;
        top: -5px !important;
        right: -7px !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 5px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35) !important;
        font-size: 10px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        z-index: 5 !important;
    }
}

/* Mobile hamburger: plain three lines, no circle */
@media (max-width: 768px) {
    .mobile-menu-toggle,
    .mobile-menu-button,
    .mobile-nav-toggle,
    .hamburger-menu,
    .hamburger-btn,
    .menu-toggle {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        padding: 4px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-button:hover,
    .mobile-nav-toggle:hover,
    .hamburger-menu:hover,
    .hamburger-btn:hover,
    .menu-toggle:hover {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .mobile-menu-toggle i,
    .mobile-menu-button i,
    .mobile-nav-toggle i,
    .hamburger-menu i,
    .hamburger-btn i,
    .menu-toggle i {
        font-size: 28px !important;
        color: #111827 !important;
        line-height: 1 !important;
    }
}

/* Mobile category dropdown animation */
@media (max-width: 768px) {
    .mobile-category-summary {
        list-style: none;
        cursor: pointer;
    }

    .mobile-category-summary::-webkit-details-marker {
        display: none;
    }

    .mobile-category-list {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-4px);
        transition:
            max-height 0.24s ease,
            opacity 0.18s ease,
            transform 0.18s ease;
    }

    .mobile-category-dropdown[open] .mobile-category-list {
        max-height: 520px;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-category-dropdown .mobile-category-summary-right i {
        transition: transform 0.18s ease;
    }

    .mobile-category-dropdown[open] .mobile-category-summary-right i {
        transform: rotate(180deg);
    }
}


/* Mobile brand logo split — keep logo + name */
.brand-logo-mobile {
    display: none;
}

@media (max-width: 768px) {
    .topbar-left .brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        text-decoration: none !important;
        min-width: 0 !important;
    }

    .topbar-left .brand-logo-desktop {
        display: none !important;
    }

    .topbar-left .brand-logo-mobile {
        display: block !important;
        width: 26px !important;
        height: 26px !important;
        object-fit: contain !important;
        flex: 0 0 34px !important;
    }

    .topbar-left .brand-text {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    .topbar-left .brand-name-full {
        display: inline !important;
        font-size: 13px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
    }

    .topbar-left .brand-name-short {
        display: none !important;
    }

    .topbar-left .brand-sub {
        display: none !important;
    }
}

/* Notifications page remodel */
.notifications-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 44px;
}

.notifications-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.notifications-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.notifications-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
}

.notification-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mark-all-read-btn,
.clear-all-notifications-btn {
    height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.mark-all-read-btn:hover,
.clear-all-notifications-btn:hover {
    background: #f8fafc;
}

.clear-all-notifications-btn {
    color: #ef4444;
}

.notification-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.notification-dashboard-card {
    min-height: 92px;
    padding: 13px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
    text-decoration: none;
    color: #111827;
    position: relative;
}

.notification-card-label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 950;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.notification-dashboard-card strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
}

.notification-dashboard-card p {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.25;
    color: #64748b;
    font-weight: 650;
}

.notification-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-feed-section {
    margin-top: 8px;
}

.notification-feed-header {
    margin-bottom: 10px;
}

.notification-feed-header h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.notifications-list {
    display: grid;
    gap: 9px;
}

.notification-card {
    padding: 12px;
    border-radius: 16px;
}

.notification-main-link {
    gap: 8px;
}

.notification-content h2 {
    font-size: 14px;
}

.notification-content p {
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .notifications-page {
        width: 100%;
        padding: 12px 12px 28px;
    }

    .notifications-header {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .notifications-header h1 {
        font-size: 23px;
    }

    .notifications-header p {
        display: none;
    }

    .notification-header-actions {
        gap: 6px;
    }

    .mark-all-read-btn,
    .clear-all-notifications-btn {
        height: 31px;
        padding: 0 10px;
        font-size: 11px;
    }

    .notification-dashboard-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 0 10px;
        margin: 0 -12px 14px;
        padding-left: 12px;
        scroll-snap-type: x mandatory;
    }

    .notification-dashboard-grid::-webkit-scrollbar {
        display: none;
    }

    .notification-dashboard-card {
        flex: 0 0 122px;
        min-height: 78px;
        padding: 11px;
        border-radius: 15px;
        scroll-snap-align: start;
    }

    .notification-dashboard-card p {
        display: none;
    }

    .notification-dashboard-card strong {
        font-size: 21px;
    }

    .notification-card-label {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .notification-card-badge {
        top: 8px;
        right: 8px;
        min-width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .notification-feed-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 9px;
    }

    .notification-feed-header h2 {
        font-size: 18px;
    }

    .notification-feed-header span {
        font-size: 12px;
        font-weight: 800;
        color: #64748b;
    }

    .notifications-list {
        gap: 8px;
    }

    .notification-card {
        padding: 10px;
        border-radius: 15px;
    }

    .notification-title-row {
        gap: 8px;
    }

    .notification-title-row h2 {
        font-size: 13.5px;
        line-height: 1.2;
    }

    .notification-title-row span {
        font-size: 11px;
        white-space: nowrap;
    }

    .notification-content p {
        margin-top: 4px;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .notification-type-pill {
        margin-top: 7px;
        font-size: 10px;
        padding: 4px 7px;
    }

    .notification-actions {
        gap: 6px;
        margin-top: 8px;
    }

    .notification-action-btn,
    .notification-secondary-link {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
        border-radius: 999px;
    }

    .notification-dismiss-btn {
        width: 30px;
        height: 30px;
        border-radius: 999px;
    }
}

/* Notifications mobile topbar cleanup */
@media (max-width: 768px) {
    body.notifications-body .topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    body.notifications-body .topbar .brand {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 7px !important;
    }

    body.notifications-body .topbar .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    body.notifications-body .topbar .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.notifications-body .topbar .brand-sub {
        display: none !important;
    }

    body.notifications-body .notifications-topbar-nav {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    body.notifications-body .notif-mobile-hide {
        display: none !important;
    }

    body.notifications-body .notif-mobile-keep {
        min-height: 31px !important;
        padding: 0 9px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        color: #111827 !important;
        font-size: 11.5px !important;
        font-weight: 900 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    body.notifications-body .notif-mobile-keep:hover,
    body.notifications-body .notif-mobile-keep:active {
        background: #eef2f7 !important;
        color: #111827 !important;
    }
}

/* Notifications mobile: cleaner View item button */
@media (max-width: 768px) {
    body.notifications-body .notification-view-item-link {
        width: auto !important;
        max-width: 100% !important;
        min-width: 86px !important;
        min-height: 32px !important;
        padding: 0 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        border-radius: 999px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.10) !important;
        color: #111827 !important;
        font-size: 11.5px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body.notifications-body .notification-view-item-link:hover,
    body.notifications-body .notification-view-item-link:active {
        background: #eef2f7 !important;
        border-color: rgba(15, 23, 42, 0.16) !important;
        color: #111827 !important;
    }

    body.notifications-body .notification-actions {
        overflow: visible !important;
    }
}

/* Cart page topbar */
.cart-page-topbar {
    align-items: center;
}

.cart-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.cart-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.cart-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.cart-topbar-icon-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.cart-topbar-icon-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.cart-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.cart-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile cart topbar */
@media (max-width: 768px) {
    .cart-page-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .cart-page-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .cart-page-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .cart-page-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .cart-page-brand .brand-sub {
        display: none !important;
    }

    .cart-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .cart-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .cart-topbar-icon-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .cart-topbar-icon {
        font-size: 20px;
    }

    .cart-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Notifications mobile: clean View item action */
@media (max-width: 768px) {
    body.notifications-body .notification-actions {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 8px !important;
        padding: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.notifications-body .notification-view-item-link {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        min-width: 92px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 13px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;

        border-radius: 999px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.12) !important;
        color: #111827 !important;

        font-size: 11.5px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;

        transform: none !important;
        rotate: 0deg !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    body.notifications-body .notification-view-item-link:hover,
    body.notifications-body .notification-view-item-link:active,
    body.notifications-body .notification-view-item-link:focus {
        background: #eef2f7 !important;
        border-color: rgba(15, 23, 42, 0.18) !important;
        color: #111827 !important;
        transform: none !important;
        rotate: 0deg !important;
        box-shadow: none !important;
    }

    body.notifications-body .notification-view-item-link i,
    body.notifications-body .notification-view-item-link svg,
    body.notifications-body .notification-view-item-link img {
        transform: none !important;
        rotate: 0deg !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    body.notifications-body .ajax-dismiss-notification-form {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    body.notifications-body .notification-dismiss-btn {
        position: static !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        transform: none !important;
        rotate: 0deg !important;
    }
}

/* Liked items page topbar */
.likes-page-topbar {
    align-items: center;
}

.likes-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.likes-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.likes-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.likes-topbar-icon-link,
.likes-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.likes-topbar-icon-link:hover,
.likes-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.likes-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.likes-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.likes-topbar-profile-img,
.likes-topbar-profile-fallback {
    width: 31px;
    height: 31px;
    border-radius: 999px;
}

.likes-topbar-profile-img {
    object-fit: cover;
    display: block;
}

.likes-topbar-profile-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

/* Mobile liked items topbar */
@media (max-width: 768px) {
    .likes-page-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .likes-page-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .likes-page-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .likes-page-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .likes-page-brand .brand-sub {
        display: none !important;
    }

    .likes-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .likes-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .likes-topbar-icon-link,
    .likes-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .likes-topbar-icon {
        font-size: 20px;
    }

    .likes-topbar-profile-img,
    .likes-topbar-profile-fallback {
        width: 27px;
        height: 27px;
    }

    .likes-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Notification action buttons - safe base */
.notifications-page .notification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notifications-page .notification-action-btn,
.notifications-page .notification-secondary-link {
    min-height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.notifications-page .notification-action-btn {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.notifications-page .notification-action-btn:hover {
    background: #000000;
    color: #ffffff;
}

.notifications-page .notification-secondary-link {
    background: #f8fafc;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.notifications-page .notification-secondary-link:hover {
    background: #eef2f7;
    color: #111827;
    border-color: rgba(15, 23, 42, 0.16);
}

/* Notifications mobile: clean action row */
@media (max-width: 768px) {
    .notifications-page .notification-card.notification-action-card {
        overflow: hidden !important;
    }

    .notifications-page .notification-actions {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 8px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        position: static !important;
        box-sizing: border-box !important;
    }

    .notifications-page .notification-view-item-link {
        min-width: 88px !important;
        max-width: 100% !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 13px !important;
        border-radius: 999px !important;
        background: #f8fafc !important;
        border: 1px solid rgba(15, 23, 42, 0.12) !important;
        color: #111827 !important;
        font-size: 11.5px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .notifications-page .notification-view-item-link:hover,
    .notifications-page .notification-view-item-link:active {
        background: #eef2f7 !important;
        border-color: rgba(15, 23, 42, 0.18) !important;
        color: #111827 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .notifications-page .ajax-dismiss-notification-form {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    .notifications-page .notification-dismiss-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }
}

/* Liked items page topbar */
.likes-page-topbar {
    align-items: center;
}

.likes-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.likes-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.likes-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.likes-topbar-icon-link,
.likes-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.likes-topbar-icon-link:hover,
.likes-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.likes-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.likes-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.likes-topbar-profile-img,
.likes-topbar-profile-fallback {
    width: 31px;
    height: 31px;
    border-radius: 999px;
}

.likes-topbar-profile-img {
    object-fit: cover;
    display: block;
}

.likes-topbar-profile-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}

/* Mobile liked items topbar */
@media (max-width: 768px) {
    .likes-page-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .likes-page-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .likes-page-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .likes-page-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .likes-page-brand .brand-sub {
        display: none !important;
    }

    .likes-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .likes-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .likes-topbar-icon-link,
    .likes-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .likes-topbar-icon {
        font-size: 20px;
    }

    .likes-topbar-profile-img,
    .likes-topbar-profile-fallback {
        width: 27px;
        height: 27px;
    }

    .likes-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Notifications page topbar */
.notifications-page-topbar {
    align-items: center;
}

.notifications-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.notifications-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.notifications-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.notifications-topbar-icon-link,
.notifications-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.notifications-topbar-icon-link:hover,
.notifications-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.notifications-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.notifications-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notifications-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

/* Mobile notifications topbar */
@media (max-width: 768px) {
    .notifications-page-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .notifications-page-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .notifications-page-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .notifications-page-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .notifications-page-brand .brand-sub {
        display: none !important;
    }

    .notifications-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .notifications-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .notifications-topbar-icon-link,
    .notifications-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .notifications-topbar-icon {
        font-size: 20px;
    }

    .notifications-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .notifications-topbar-badge {
        top: -6px;
        right: -6px;
    }
}


/* Notifications page topbar */
.notifications-page-topbar {
    align-items: center;
}

.notifications-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.notifications-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.notifications-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.notifications-topbar-icon-link,
.notifications-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.notifications-topbar-icon-link:hover,
.notifications-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.notifications-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.notifications-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notifications-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

/* Mobile notifications topbar */
@media (max-width: 768px) {
    .notifications-page-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .notifications-page-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .notifications-page-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .notifications-page-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .notifications-page-brand .brand-sub {
        display: none !important;
    }

    .notifications-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .notifications-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .notifications-topbar-icon-link,
    .notifications-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .notifications-topbar-icon {
        font-size: 20px;
    }

    .notifications-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .notifications-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Simple shared page topbar */
.simple-page-topbar {
    align-items: center;
}

.simple-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.simple-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.simple-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.simple-topbar-icon-link,
.simple-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.simple-topbar-icon-link:hover,
.simple-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.simple-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.simple-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.simple-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

/* Mobile simple topbar */
@media (max-width: 768px) {
    .simple-page-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .simple-page-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .simple-page-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .simple-page-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .simple-page-brand .brand-sub {
        display: none !important;
    }

    .simple-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .simple-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .simple-topbar-icon-link,
    .simple-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .simple-topbar-icon {
        font-size: 20px;
    }

    .simple-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .simple-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Customer orders topbar */
.customer-orders-topbar {
    align-items: center;
}

.customer-orders-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.customer-orders-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.customer-orders-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.customer-orders-topbar-icon-link,
.customer-orders-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.customer-orders-topbar-icon-link:hover,
.customer-orders-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.customer-orders-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.customer-orders-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customer-orders-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

/* Mobile customer orders topbar */
@media (max-width: 768px) {
    .customer-orders-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .customer-orders-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .customer-orders-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .customer-orders-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .customer-orders-brand .brand-sub {
        display: none !important;
    }

    .customer-orders-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .customer-orders-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .customer-orders-topbar-icon-link,
    .customer-orders-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .customer-orders-topbar-icon {
        font-size: 20px;
    }

    .customer-orders-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .customer-orders-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Customer order detail topbar */
.customer-order-detail-topbar {
    align-items: center;
}

.customer-order-detail-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.customer-order-detail-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.customer-order-detail-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.customer-order-detail-topbar-icon-link,
.customer-order-detail-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.customer-order-detail-topbar-icon-link:hover,
.customer-order-detail-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.customer-order-detail-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.customer-order-detail-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customer-order-detail-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

/* Mobile customer order detail topbar */
@media (max-width: 768px) {
    .customer-order-detail-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .customer-order-detail-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .customer-order-detail-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .customer-order-detail-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .customer-order-detail-brand .brand-sub {
        display: none !important;
    }

    .customer-order-detail-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .customer-order-detail-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .customer-order-detail-topbar-icon-link,
    .customer-order-detail-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .customer-order-detail-topbar-icon {
        font-size: 20px;
    }

    .customer-order-detail-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .customer-order-detail-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Customer offers topbar */
.customer-offers-topbar {
    align-items: center;
}

.customer-offers-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.customer-offers-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.customer-offers-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.customer-offers-topbar-icon-link,
.customer-offers-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.customer-offers-topbar-icon-link:hover,
.customer-offers-topbar-profile-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.customer-offers-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.customer-offers-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customer-offers-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

/* Mobile customer offers topbar */
@media (max-width: 768px) {
    .customer-offers-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .customer-offers-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .customer-offers-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .customer-offers-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .customer-offers-brand .brand-sub {
        display: none !important;
    }

    .customer-offers-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .customer-offers-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .customer-offers-topbar-icon-link,
    .customer-offers-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .customer-offers-topbar-icon {
        font-size: 20px;
    }

    .customer-offers-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .customer-offers-topbar-badge {
        top: -6px;
        right: -6px;
    }
}

/* Conversation detail topbar */
.conversation-detail-topbar {
    align-items: center;
}

.conversation-detail-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.conversation-detail-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.conversation-detail-topbar-icon-link,
.conversation-detail-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
}

.conversation-detail-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.conversation-detail-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.conversation-detail-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

/* Conversation layout cleanup */
.conversation-page {
    width: min(1040px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: block;
}

.conversation-side-card {
    display: none !important;
}

.chat-panel {
    min-height: calc(100dvh - 104px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversation-item-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.conversation-item-card-inline {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.conversation-item-image-inline {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    overflow: hidden;
    background: #f1f5f9;
    flex: 0 0 48px;
}

.conversation-item-image-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.conversation-item-image-inline span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
}

.conversation-item-info-inline {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.conversation-item-info-inline strong {
    max-width: 460px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 950;
}

.conversation-item-info-inline span {
    font-size: 12px;
    font-weight: 850;
    color: #64748b;
}

.conversation-make-offer-btn {
    min-height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}

.conversation-make-offer-btn i {
    font-size: 17px;
}

/* Chat body/input fix */
.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 14px;
}

.chat-form {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px;
}

.chat-form textarea {
    max-height: 110px;
    resize: none;
}

/* Mobile conversation */
@media (max-width: 768px) {
    .conversation-detail-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .conversation-detail-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .conversation-detail-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .conversation-detail-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .conversation-detail-brand .brand-sub {
        display: none !important;
    }

    .conversation-detail-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .conversation-detail-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .conversation-detail-topbar-icon-link,
    .conversation-detail-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .conversation-detail-topbar-icon {
        font-size: 20px;
    }

    .conversation-detail-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .conversation-detail-topbar-badge {
        top: -6px;
        right: -6px;
    }

    .conversation-page {
        width: 100%;
        padding: 0;
    }

    .chat-panel {
        min-height: calc(100dvh - 49px);
        border-radius: 0 !important;
    }

    .conversation-item-strip {
        padding: 9px 10px;
        gap: 8px;
    }

    .conversation-item-image-inline {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .conversation-item-info-inline strong {
        max-width: 145px;
        font-size: 12.5px;
    }

    .conversation-item-info-inline span {
        font-size: 11.5px;
    }

    .conversation-make-offer-btn {
        min-height: 31px;
        padding: 0 10px;
        font-size: 11px;
    }

    .chat-header {
        padding: 10px !important;
    }

    .chat-messages {
        padding: 10px 10px 12px !important;
    }

    .chat-form {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    }
}

/* =========================================================
   CONVERSATION DETAIL FINAL CSS
   smaller in-chat offer bubble + mobile chat polish
   ========================================================= */

/* ---------- Page shell ---------- */

.conversation-detail-body {
    min-height: 100dvh;
}

.conversation-page {
    width: min(1040px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: block;
}

.chat-panel {
    min-height: calc(100dvh - 108px);
    max-height: calc(100dvh - 108px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.conversation-side-card {
    display: none !important;
}


/* ---------- Conversation topbar ---------- */

.conversation-detail-topbar {
    align-items: center;
}

.conversation-detail-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.conversation-detail-topbar-text-link {
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.conversation-detail-topbar-text-link:hover {
    background: #000000;
    color: #ffffff;
}

.conversation-detail-topbar-icon-link,
.conversation-detail-topbar-profile-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
}

.conversation-detail-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

.conversation-detail-topbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.conversation-detail-topbar-profile-img {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}


/* ---------- Item strip ---------- */

.conversation-item-strip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.conversation-item-card-inline {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.conversation-item-image-inline {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    overflow: hidden;
    background: #f1f5f9;
    flex: 0 0 46px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.conversation-item-image-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.conversation-item-image-inline span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 850;
    color: #64748b;
}

.conversation-item-info-inline {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.conversation-item-info-inline strong {
    max-width: 460px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.15;
}

.conversation-item-info-inline span {
    font-size: 12px;
    font-weight: 850;
    color: #64748b;
}

.conversation-make-offer-btn {
    min-height: 33px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}

.conversation-make-offer-btn i {
    font-size: 17px;
}


/* ---------- Make offer box ---------- */

.conversation-offer-create-box {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
}

.conversation-offer-create-box[hidden] {
    display: none !important;
}

.conversation-offer-create-form {
    padding: 11px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.conversation-offer-create-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.conversation-offer-create-title span {
    display: block;
    color: #111827;
    font-size: 13.5px;
    font-weight: 950;
    line-height: 1.15;
}

.conversation-offer-create-title small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 750;
}

.conversation-offer-create-title button {
    width: 29px;
    height: 29px;
    min-width: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111827;
    cursor: pointer;
}

.conversation-offer-create-fields {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.conversation-offer-create-fields label,
.conversation-counter-form label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
}

.conversation-offer-create-fields input,
.conversation-counter-form input {
    width: 100%;
    height: 37px;
    padding: 0 11px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 750;
    outline: none;
    box-sizing: border-box;
}

.conversation-offer-create-fields input:focus,
.conversation-counter-form input:focus {
    border-color: rgba(17, 24, 39, 0.36);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

/* This styles the "value must be greater than or equal to..." issue better */
.conversation-offer-create-fields input:invalid:not(:placeholder-shown),
.conversation-counter-form input:invalid:not(:placeholder-shown) {
    border-color: rgba(225, 29, 72, 0.55);
    background: #fff7f8;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
}

.conversation-offer-create-fields button,
.conversation-counter-form button {
    height: 37px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}

.conversation-offer-helper {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.35;
}


/* ---------- Chat header ---------- */

.chat-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chat-header-avatar {
    width: 37px;
    height: 37px;
    min-width: 37px;
    border-radius: 999px;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 950;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-header h1 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
}

.chat-header p {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

/* ---------- Chat messages ---------- */

.chat-warning-box,
.chat-disabled-box {
    margin: 10px 12px 0;
    padding: 10px 12px;
    border-radius: 15px;
    background: #fff7ed;
    border: 1px solid rgba(234, 88, 12, 0.18);
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 13px 14px 12px;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.chat-date-divider {
    width: fit-content;
    margin: 10px auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}

.chat-message-row {
    display: flex;
    justify-content: flex-start;
    margin: 8px 0;
}

.my-message-row {
    justify-content: flex-end;
}

.chat-message-stack {
    max-width: min(72%, 560px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.my-message-stack {
    align-items: flex-end;
}

.chat-bubble {
    padding: 10px 12px;
    border-radius: 18px;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
}

.chat-bubble p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.35;
    word-break: break-word;
}

.my-chat-bubble {
    border-bottom-right-radius: 6px;
    background: #111827;
    color: #ffffff;
}

.their-chat-bubble {
    border-bottom-left-radius: 6px;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.chat-time {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 800;
}

.empty-chat {
    height: 100%;
    min-height: 160px;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}


/* ---------- Smaller in-chat offer card ---------- */

.conversation-offer-message-row {
    margin: 10px 0;
}

.conversation-offer-message-stack {
    max-width: min(360px, 76%) !important;
}

.conversation-offer-chat-card {
    width: 100%;
    max-width: 360px;
    padding: 11px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.075);
    box-sizing: border-box;
}

.my-offer-chat-card {
    background: #111827;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.conversation-offer-chat-top {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.conversation-offer-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
}

.my-offer-chat-card .conversation-offer-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.conversation-offer-icon i {
    font-size: 18px;
    line-height: 1;
}

.conversation-offer-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.conversation-offer-copy strong {
    color: #111827;
    font-size: 13.5px;
    font-weight: 950;
    line-height: 1.15;
}

.conversation-offer-copy span {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.3;
}

.my-offer-chat-card .conversation-offer-copy strong {
    color: #ffffff;
}

.my-offer-chat-card .conversation-offer-copy span {
    color: rgba(255, 255, 255, 0.72);
}

.conversation-offer-chat-prices {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.8fr;
    gap: 6px;
    margin-top: 10px;
}

.conversation-offer-chat-prices > div {
    min-width: 0;
    padding: 8px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.my-offer-chat-card .conversation-offer-chat-prices > div {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.10);
}

.conversation-offer-chat-prices span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.my-offer-chat-card .conversation-offer-chat-prices span {
    color: rgba(255, 255, 255, 0.58);
}

.conversation-offer-chat-prices strong {
    display: block;
    color: #111827;
    font-size: 15.5px;
    font-weight: 1000;
    line-height: 1;
}

.my-offer-chat-card .conversation-offer-chat-prices strong {
    color: #ffffff;
}

.conversation-offer-chat-prices em {
    display: inline-block;
    color: #64748b;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 900;
    text-decoration: line-through;
    text-decoration-thickness: 1.4px;
    text-decoration-color: rgba(239, 68, 68, 0.85);
}

.my-offer-chat-card .conversation-offer-chat-prices em {
    color: rgba(255, 255, 255, 0.62);
}

.conversation-offer-chat-prices b {
    color: #16a34a;
    font-size: 12.5px;
    font-weight: 950;
}

.my-offer-chat-card .conversation-offer-chat-prices b {
    color: #bbf7d0;
}

.conversation-offer-note {
    margin-top: 8px;
    padding: 8px 9px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.07);
    color: #334155;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.35;
}

.my-offer-chat-card .conversation-offer-note {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.78);
}

.conversation-offer-expiry {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-size: 11px;
    font-weight: 850;
}

.my-offer-chat-card .conversation-offer-expiry {
    color: rgba(255, 255, 255, 0.68);
}

.conversation-offer-expiry i {
    font-size: 14px;
}

.conversation-offer-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.conversation-offer-actions form {
    margin: 0;
}

.conversation-offer-primary-btn,
.conversation-offer-secondary-btn,
.conversation-offer-danger-btn {
    min-height: 31px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
}

.conversation-offer-primary-btn {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.conversation-offer-secondary-btn {
    background: #ffffff;
    color: #111827;
    border-color: rgba(15, 23, 42, 0.13);
}

.conversation-offer-danger-btn {
    background: #fff1f2;
    color: #be123c;
    border-color: rgba(190, 18, 60, 0.14);
}

.my-offer-chat-card .conversation-offer-primary-btn {
    background: #ffffff;
    color: #111827;
    border-color: #ffffff;
}

.my-offer-chat-card .conversation-offer-secondary-btn {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

.my-offer-chat-card .conversation-offer-danger-btn {
    background: rgba(244, 63, 94, 0.16);
    color: #fecdd3;
    border-color: rgba(244, 63, 94, 0.22);
}


/* ---------- Counter box inside offer bubble ---------- */

.conversation-counter-box {
    margin-top: 9px;
    padding: 9px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.my-offer-chat-card .conversation-counter-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.10);
}

.conversation-counter-box[hidden] {
    display: none !important;
}

.conversation-counter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: end;
}


/* ---------- Chat form ---------- */

.form-message {
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 12px;
    background: #fff1f2;
    color: #be123c;
    border-top: 1px solid rgba(190, 18, 60, 0.12);
    font-size: 12px;
    font-weight: 850;
}

.chat-form {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.chat-form textarea {
    width: 100%;
    min-height: 42px;
    max-height: 115px;
    resize: none;
    padding: 12px 13px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    outline: none;
    box-sizing: border-box;
}

.chat-form button {
    height: 42px;
    min-width: 68px;
    padding: 0 15px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {
    .conversation-detail-topbar {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .conversation-detail-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .conversation-detail-brand .brand-logo {
        width: 31px !important;
        height: 31px !important;
        flex: 0 0 31px !important;
    }

    .conversation-detail-brand .brand-name {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .conversation-detail-brand .brand-sub {
        display: none !important;
    }

    .conversation-detail-topbar-nav {
        gap: 7px;
        flex: 0 0 auto;
    }

    .conversation-detail-topbar-text-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11.5px;
    }

    .conversation-detail-topbar-icon-link,
    .conversation-detail-topbar-profile-link {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: none;
    }

    .conversation-detail-topbar-icon {
        font-size: 20px;
    }

    .conversation-detail-topbar-profile-img {
        width: 27px;
        height: 27px;
    }

    .conversation-detail-topbar-badge {
        top: -6px;
        right: -6px;
    }

    .conversation-page {
        width: 100%;
        padding: 0;
    }

    .chat-panel {
        min-height: calc(100dvh - 49px);
        max-height: calc(100dvh - 49px);
        border-radius: 0 !important;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: none;
    }

    .conversation-item-strip {
        padding: 9px 10px;
        gap: 8px;
    }

    .conversation-item-image-inline {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .conversation-item-info-inline strong {
        max-width: 145px;
        font-size: 12.5px;
    }

    .conversation-item-info-inline span {
        font-size: 11.5px;
    }

    .conversation-make-offer-btn {
        min-height: 31px;
        padding: 0 10px;
        font-size: 11px;
    }

    .conversation-offer-create-box {
        padding: 9px 10px;
    }

    .conversation-offer-create-form {
        padding: 10px;
        border-radius: 16px;
    }

    .conversation-offer-create-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chat-header {
        padding: 9px 10px !important;
    }

    .chat-header-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .chat-header h1 {
        font-size: 14px;
    }

    .chat-header p {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11.5px;
    }

    .conversation-admin-delete-btn {
        min-height: 29px;
        padding: 0 9px;
        font-size: 10.5px;
    }

    .chat-messages {
        padding: 10px 10px 12px !important;
    }

    .chat-message-stack {
        max-width: 82%;
    }

    .conversation-offer-message-stack {
        max-width: min(315px, 86%) !important;
    }

    .conversation-offer-chat-card {
        max-width: 315px;
        padding: 10px;
        border-radius: 17px;
    }

    .conversation-offer-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 11px;
    }

    .conversation-offer-chat-prices {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .conversation-offer-chat-prices > div {
        padding: 7px;
        border-radius: 12px;
    }

    .conversation-offer-chat-prices strong {
        font-size: 14.5px;
    }

    .conversation-offer-actions {
        gap: 6px;
    }

    .conversation-offer-primary-btn,
    .conversation-offer-secondary-btn,
    .conversation-offer-danger-btn {
        min-height: 30px;
        padding: 0 9px;
        font-size: 11px;
    }

    .chat-bubble {
        padding: 9px 11px;
        border-radius: 17px;
    }

    .my-chat-bubble {
        border-bottom-right-radius: 6px;
    }

    .their-chat-bubble {
        border-bottom-left-radius: 6px;
    }

    .chat-bubble p {
        font-size: 13.5px;
    }

    .chat-form {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
        gap: 7px;
    }

    .chat-form textarea {
        min-height: 40px;
        max-height: 96px;
        padding: 11px 12px;
        border-radius: 17px;
        font-size: 14px;
    }

    .chat-form button {
        height: 40px;
        min-width: 58px;
        padding: 0 12px;
        font-size: 12.5px;
    }
}

.likes-icon-wrap,
.messages-icon-wrap {
    position: relative;
}

.likes-topbar-message-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.conversation-support-inline {
    cursor: default;
}

.conversation-support-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #3730a3;
}

.conversation-support-icon-inline i {
    font-size: 22px;
    line-height: 1;
}

.support-conversation-card {
    grid-template-columns: auto 1fr;
}

.support-conversation-card .conversation-avatar {
    margin-left: 0;
}

.conversation-item-strip-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.conversation-item-strip-inner .conversation-item-card-inline {
    flex: 1;
    min-width: 0;
}

.conversation-open-offer-btn {
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.conversation-open-offer-btn:hover {
    background: #020617;
}

@media (max-width: 640px) {
    .conversation-item-strip-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .conversation-open-offer-btn {
        width: 100%;
    }
}

.conversation-item-strip-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.conversation-item-strip-inner .conversation-item-card-inline {
    flex: 1;
    min-width: 0;
}

.conversation-open-offer-btn {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.conversation-open-offer-btn i {
    font-size: 17px;
    line-height: 1;
}

.conversation-open-offer-btn:hover {
    background: #020617;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
}

.conversation-open-offer-btn:active {
    transform: translateY(0);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.16);
}

@media (max-width: 640px) {
    .conversation-item-strip-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .conversation-open-offer-btn {
        width: 100%;
        padding: 11px 14px;
    }
}

.conversation-card {
    display: grid;
    grid-template-columns: 58px 42px 1fr;
    align-items: center;
    gap: 12px;
}

.support-conversation-card {
    grid-template-columns: 42px 1fr;
}

.support-conversation-card .conversation-avatar {
    display: flex;
    grid-column: 1;
}

.support-conversation-card .conversation-main {
    grid-column: 2;
}

.conversation-product-thumb {
    grid-column: 1;
}

.conversation-avatar {
    grid-column: 2;
}

.conversation-main {
    grid-column: 3;
}

/* Messages list layout:
   regular = product image + user pfp + text
   support = user pfp + text only
*/

.conversation-card {
    display: grid;
    grid-template-columns: 58px 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.conversation-product-thumb {
    grid-column: 1;
}

.conversation-avatar {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conversation-main {
    grid-column: 3;
    min-width: 0;
}

/* Support has no product image, so avatar moves to the first column */
.support-conversation-card {
    grid-template-columns: 42px minmax(0, 1fr);
}

.support-conversation-card .conversation-avatar {
    grid-column: 1;
    display: flex;
}

.support-conversation-card .conversation-main {
    grid-column: 2;
}

/* =========================================================
   PROFILE TOPBAR POLISH
   ========================================================= */

.profile-polish-topbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.profile-topbar-search .searchbar-inner button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.profile-topbar-search .searchbar-inner button i {
    font-size: 16px;
    line-height: 1;
}

.profile-topbar-nav {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-topbar-link,
.profile-topbar-icon-link {
    position: relative;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.profile-topbar-link {
    padding: 0 13px;
}

.profile-topbar-icon-link {
    width: 38px;
    padding: 0;
}

.profile-topbar-link i,
.profile-topbar-icon-link i {
    font-size: 18px;
    line-height: 1;
}

.profile-topbar-link:hover,
.profile-topbar-icon-link:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.profile-topbar-logout {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.profile-topbar-logout:hover {
    background: #020617;
}

.profile-topbar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 820px) {
    .profile-polish-topbar {
        align-items: flex-start;
        gap: 12px;
    }

    .profile-topbar-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .profile-topbar-search {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .profile-topbar-link span {
        display: none;
    }

    .profile-topbar-link {
        width: 38px;
        padding: 0;
    }

    .profile-topbar-search .searchbar-inner button span {
        display: none;
    }
}

/* =========================================================
   PROFILE PAGE MOTION
   ========================================================= */

.profile-motion-page .profile-card {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.profile-motion-page .profile-card.profile-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.profile-motion-page .profile-header,
.profile-motion-page .messages-header,
.profile-motion-page .profile-polish-topbar {
    animation: profileSoftDrop 0.5s ease both;
}

@keyframes profileSoftDrop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-motion-page .profile-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .profile-motion-page .profile-header,
    .profile-motion-page .messages-header,
    .profile-motion-page .profile-polish-topbar {
        animation: none;
    }
}

.searchbar-inner {
    position: relative;
}

.search-suggestions-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: none;
    z-index: 80;
}

.search-suggestions-box.show-search-suggestions {
    display: block;
}

.search-suggestion-item {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.search-suggestion-item:hover {
    background: #f8fafc;
}

@media (max-width: 520px) {
    .profile-topbar-icon-link[aria-label="Messages"] {
        display: none;
    }
}

.profile-searchbar-inner {
    position: relative;
}

.profile-search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #64748b;
    pointer-events: none;
    z-index: 2;
}

.profile-searchbar-inner input {
    padding-left: 42px;
}

.profile-motion-page .profile-topbar-search {
    opacity: 0;
    transform: translateY(-8px);
    animation: profileSearchSlideIn 0.55s ease 0.12s both;
}

@keyframes profileSearchSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-motion-page .profile-topbar-search {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* =========================================================
   PROFILE TOPBAR + MOTION FINAL
   ========================================================= */

.profile-polish-topbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-14px);
    transition:
        opacity 0.48s ease,
        transform 0.48s ease;
}

.profile-polish-topbar.profile-topbar-ready {
    opacity: 1;
    transform: translateY(0);
}

.profile-topbar-search {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    transition:
        opacity 0.52s ease 0.12s,
        transform 0.52s ease 0.12s;
}

.profile-topbar-search.profile-search-ready {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.profile-searchbar-inner {
    position: relative;
}

.profile-search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #64748b;
    pointer-events: none;
    z-index: 2;
}

.profile-searchbar-inner input {
    padding-left: 42px;
}

.profile-topbar-nav {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-topbar-link,
.profile-topbar-icon-link {
    position: relative;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
}

.profile-topbar-link {
    padding: 0 13px;
}

.profile-topbar-icon-link {
    width: 38px;
    padding: 0;
}

.profile-topbar-link i,
.profile-topbar-icon-link i {
    font-size: 18px;
    line-height: 1;
}

.profile-topbar-link:hover,
.profile-topbar-icon-link:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.profile-topbar-logout {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.profile-topbar-logout:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.profile-topbar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-motion-page .profile-card {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.profile-motion-page .profile-card.profile-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile cleanup */
@media (max-width: 820px) {
    .profile-polish-topbar {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
    }

    .profile-topbar-brand {
        min-width: 0;
    }

    .profile-topbar-nav {
        justify-content: flex-end;
        gap: 7px;
    }

    .profile-topbar-search {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
    }

    .profile-topbar-link span {
        display: none;
    }

    .profile-topbar-link {
        width: 38px;
        padding: 0;
    }

    .profile-mobile-hide-link {
        display: none;
    }
}

@media (max-width: 520px) {
    .profile-polish-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .profile-topbar-nav {
        gap: 6px;
    }

    .profile-topbar-link,
    .profile-topbar-icon-link {
        width: 36px;
        min-height: 36px;
    }

    .profile-topbar-link i,
    .profile-topbar-icon-link i {
        font-size: 17px;
    }

    .profile-search-submit {
        padding-left: 12px;
        padding-right: 12px;
    }

    .profile-search-submit span {
        display: none;
    }

    .brand-name {
        max-width: 145px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-polish-topbar,
    .profile-topbar-search,
    .profile-motion-page .profile-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================================
   PROFILE CROPPER MODAL FIX
   ========================================================= */

#cropperModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.82);
    align-items: center;
    justify-content: center;
    padding: 18px;
}

#cropperModal.show-cropper-modal {
    display: flex;
}

.cropper-modal-inner {
    background: #1a1a1a;
    border-radius: 18px;
    padding: 24px;
    width: min(92vw, 480px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.cropper-modal-inner h3 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}

.cropper-modal-inner p {
    color: #a3a3a3;
    font-size: 13px;
    margin: 0;
}

.cropper-image-wrap {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    border-radius: 12px;
    background: #000000;
}

.cropper-image-wrap img {
    display: block;
    max-width: 100%;
}

.cropper-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cropper-cancel-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid #444444;
    background: transparent;
    color: #cccccc;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.cropper-save-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

/* =========================================================
   PROFILE SEARCH BAR MOTION FORCE
   ========================================================= */

.profile-motion-page .profile-topbar-search {
    animation: profileSearchBarSlideDown 0.65s ease 0.16s both;
}

@keyframes profileSearchBarSlideDown {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-motion-page .profile-topbar-search {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   PROFILE MOBILE TOPBAR CLEANUP
   ========================================================= */

/* Hide the little browser search cancel/toggle inside the search bar */
.profile-searchbar-inner input[type="search"]::-webkit-search-cancel-button,
.profile-searchbar-inner input[type="search"]::-webkit-search-decoration,
.profile-searchbar-inner input[type="search"]::-webkit-search-results-button,
.profile-searchbar-inner input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.profile-searchbar-inner input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Hide search magnifying glass on mobile only */
@media (max-width: 520px) {
    .profile-search-input-icon {
        display: none;
    }

    .profile-searchbar-inner input {
        padding-left: 14px;
    }
}

/* =========================================================
   REVIEWS TOPBAR POLISH
   ========================================================= */

.reviews-polish-topbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    animation: reviewsTopbarDrop 0.48s ease both;
}

.reviews-topbar-nav {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reviews-topbar-link,
.reviews-topbar-icon-link {
    position: relative;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
}

.reviews-topbar-link {
    padding: 0 13px;
}

.reviews-topbar-icon-link {
    width: 38px;
    padding: 0;
}

.reviews-topbar-link i,
.reviews-topbar-icon-link i {
    font-size: 18px;
    line-height: 1;
}

.reviews-topbar-link:hover,
.reviews-topbar-icon-link:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.active-reviews-topbar-link {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.active-reviews-topbar-link:hover {
    background: #020617;
    color: #ffffff;
    border-color: #020617;
}

.reviews-topbar-signup {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.reviews-topbar-signup:hover {
    background: #020617;
    color: #ffffff;
    border-color: #020617;
}

.reviews-topbar-logout {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.reviews-topbar-logout:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

@keyframes reviewsTopbarDrop {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile cleanup */
@media (max-width: 640px) {
    .reviews-polish-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .reviews-topbar-brand {
        min-width: 0;
    }

    .reviews-topbar-nav {
        gap: 6px;
        justify-content: flex-end;
    }

    .reviews-topbar-link span {
        display: none;
    }

    .reviews-topbar-link,
    .reviews-topbar-icon-link {
        width: 36px;
        min-height: 36px;
        padding: 0;
    }

    .reviews-topbar-link i,
    .reviews-topbar-icon-link i {
        font-size: 17px;
    }

    .reviews-polish-topbar .brand-name {
        max-width: 145px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-polish-topbar {
        animation: none;
    }
}

.reviews-page-body .reviews-polish-topbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    animation: reviewsTopbarDrop 0.48s ease both;
}

/* =========================================================
   RESPONSIVE SHOP FOOTER
   ========================================================= */

.shop-footer {
    margin-top: 54px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.site-footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-footer-main {
    min-width: 0;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    color: #111827;
    text-decoration: none;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.site-footer-disclaimer {
    max-width: 720px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.site-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.site-footer-links a {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.site-footer-links a:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

/* Mobile footer cleanup */
@media (max-width: 700px) {
    .shop-footer {
        margin-top: 38px;
    }

    .site-footer-inner {
        width: min(100% - 24px, 1180px);
        padding: 24px 0 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .site-footer-main {
        width: 100%;
    }

    .site-footer-brand {
        font-size: 15px;
    }

    .site-footer-disclaimer {
        max-width: 100%;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .site-footer-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .site-footer-links a {
        width: 100%;
        padding: 0 8px;
        min-height: 36px;
        font-size: 11.5px;
    }
}

@media (max-width: 380px) {
    .site-footer-links {
        grid-template-columns: 1fr;
    }

    .site-footer-links a {
        justify-content: center;
    }
}

/* =========================================================
   MOBILE FOOTER FINAL ALIGNMENT
   ========================================================= */

@media (max-width: 700px) {
    .shop-footer {
        margin-top: 38px;
    }

    .site-footer-inner {
        width: min(100% - 24px, 1180px);
        padding: 24px 0 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .site-footer-main {
        width: 100%;
        padding-left: 28px;
        box-sizing: border-box;
    }

    .site-footer-brand {
        margin-left: 0;
        font-size: 15px;
    }

    .site-footer-disclaimer {
        max-width: 92%;
        margin: 8px 0 0;
        text-align: left;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .site-footer-links {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding-left: 28px;
        box-sizing: border-box;
    }

    .site-footer-links a {
        width: auto;
        min-width: 82px;
        min-height: 36px;
        padding: 0 12px;
        white-space: nowrap;
        font-size: 11.5px;
    }
}

@media (max-width: 420px) {
    .site-footer-main {
        padding-left: 22px;
    }

    .site-footer-disclaimer {
        max-width: 94%;
    }

    .site-footer-links {
        padding-left: 22px;
        gap: 7px;
    }

    .site-footer-links a {
        min-width: 76px;
        padding: 0 10px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .site-footer-main {
        padding-left: 16px;
    }

    .site-footer-links {
        padding-left: 16px;
        gap: 6px;
    }

    .site-footer-links a {
        min-width: 70px;
        padding: 0 8px;
        font-size: 10.5px;
    }
}

/* Normal Phosphor notification bell */
.notification-topbar-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Optional: make the regular icon feel a little stronger without using bold */
.notification-icon-link:hover .notification-topbar-icon,
.topbar-icon-link:hover .notification-topbar-icon,
.likes-icon-link:hover .notification-topbar-icon {
    transform: translateY(-1px);
}

.notification-icon-wrap,
.topbar-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   SHOP TOPBAR ICON CIRCLES — MATCH LIKES PAGE STYLE
   ========================================================= */

.shop-page .topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.shop-page .product-notification-clean-link,
.shop-page .likes-icon-link,
.shop-page .cart-icon-link,
.shop-page .profile-nav-link,
.shop-page .topbar-icon-link {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    color: #111827;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.shop-page .product-notification-clean-link:hover,
.shop-page .likes-icon-link:hover,
.shop-page .cart-icon-link:hover,
.shop-page .profile-nav-link:hover,
.shop-page .topbar-icon-link:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.shop-page .notification-icon-wrap,
.shop-page .likes-icon-wrap,
.shop-page .messages-icon-wrap,
.shop-page .topbar-icon-wrap,
.shop-page .cart-icon-wrap {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shop-page .notification-topbar-icon,
.shop-page .likes-topbar-icon,
.shop-page .messages-topbar-icon,
.shop-page .cart-topbar-icon,
.shop-page .message-topbar-icon {
    font-size: 22px;
    line-height: 1;
    color: #111827;
}

/* Force regular-looking bell/envelope/cart if old mobile CSS made them heavy */
.shop-page .notification-topbar-icon,
.shop-page .messages-topbar-icon,
.shop-page .cart-topbar-icon {
    font-weight: 400;
}

/* Shared badges */
.shop-page .notification-icon-badge,
.shop-page .likes-topbar-message-badge,
.shop-page .topbar-icon-badge,
.shop-page .cart-count-badge,
.shop-page .message-icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Profile circle */
.shop-page .profile-nav-link .topbar-profile-img,
.shop-page .profile-nav-link .topbar-profile-fallback {
    width: 31px;
    height: 31px;
    border-radius: 999px;
}

.shop-page .profile-nav-link .topbar-profile-img {
    object-fit: cover;
    display: block;
}

.shop-page .profile-nav-link .topbar-profile-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
}


/* =========================================================
   SHOP MOBILE TOPBAR ICON CIRCLES
   ========================================================= */

@media (max-width: 640px) {
    .shop-page .topbar-nav {
        gap: 7px;
    }

    .shop-page .product-notification-clean-link,
    .shop-page .likes-icon-link,
    .shop-page .cart-icon-link,
    .shop-page .profile-nav-link,
    .shop-page .topbar-icon-link {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.10);
        box-shadow: 0 6px 15px rgba(15, 23, 42, 0.05);
    }

    .shop-page .notification-topbar-icon,
    .shop-page .likes-topbar-icon,
    .shop-page .messages-topbar-icon,
    .shop-page .cart-topbar-icon,
    .shop-page .message-topbar-icon {
        font-size: 20px;
    }

    .shop-page .profile-nav-link .topbar-profile-img,
    .shop-page .profile-nav-link .topbar-profile-fallback {
        width: 29px;
        height: 29px;
    }

    .shop-page .notification-icon-badge,
    .shop-page .likes-topbar-message-badge,
    .shop-page .topbar-icon-badge,
    .shop-page .cart-count-badge,
    .shop-page .message-icon-badge {
        top: -5px;
        right: -5px;
        min-width: 16px;
        height: 16px;
        font-size: 8.5px;
    }
}

/* =========================================================
   SHOP MOBILE MENU POLISH
   ========================================================= */

@media (max-width: 760px) {
    .shop-page .mobile-menu-link {
        min-height: 44px;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        color: #111827;
        font-size: 14px;
        font-weight: 850;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 13px;
        text-decoration: none;
        box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045);
    }

    .shop-page .mobile-menu-link:hover {
        background: #f8fafc;
    }

    .shop-page .mobile-menu-badge {
        min-width: 18px;
        height: 18px;
        padding: 0 6px;
        border-radius: 999px;
        background: #ef4444;
        color: #ffffff;
        font-size: 9px;
        font-weight: 950;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .shop-page .mobile-menu-like-left {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .shop-page .mobile-menu-like-icon {
        font-size: 18px;
        line-height: 1;
    }
}


/* =========================================================
   FINAL FINAL SHOP TOPBAR ICON OVERRIDE
   keep this at absolute bottom of style.css
   ========================================================= */

body.shop-page .topbar .topbar-nav > a.product-notification-clean-link,
body.shop-page .topbar .topbar-nav > a.likes-icon-link,
body.shop-page .topbar .topbar-nav > a.cart-icon-link,
body.shop-page .topbar .topbar-nav > a.profile-nav-link,
body.shop-page .topbar .topbar-nav > a.topbar-icon-link {
    position: relative !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #111827 !important;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.045) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

body.shop-page .topbar .topbar-nav > a.product-notification-clean-link:hover,
body.shop-page .topbar .topbar-nav > a.likes-icon-link:hover,
body.shop-page .topbar .topbar-nav > a.cart-icon-link:hover,
body.shop-page .topbar .topbar-nav > a.profile-nav-link:hover,
body.shop-page .topbar .topbar-nav > a.topbar-icon-link:hover {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-1px) !important;
}

body.shop-page .topbar .notification-icon-wrap,
body.shop-page .topbar .likes-icon-wrap,
body.shop-page .topbar .messages-icon-wrap,
body.shop-page .topbar .topbar-icon-wrap,
body.shop-page .topbar .cart-icon-wrap {
    width: 100% !important;
    height: 100% !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

body.shop-page .topbar .notification-topbar-icon,
body.shop-page .topbar .likes-topbar-icon,
body.shop-page .topbar .messages-topbar-icon,
body.shop-page .topbar .cart-topbar-icon,
body.shop-page .topbar .message-topbar-icon {
    font-size: 21px !important;
    line-height: 1 !important;
    color: #111827 !important;
    font-weight: 400 !important;
}

body.shop-page .topbar .topbar-profile-img,
body.shop-page .topbar .topbar-profile-fallback {
    width: 31px !important;
    height: 31px !important;
    border-radius: 999px !important;
}

body.shop-page .topbar .topbar-profile-img {
    object-fit: cover !important;
    display: block !important;
}

body.shop-page .topbar .topbar-profile-fallback {
    background: #111827 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.shop-page .topbar .notification-icon-badge,
body.shop-page .topbar .likes-topbar-message-badge,
body.shop-page .topbar .topbar-icon-badge,
body.shop-page .topbar .cart-count-badge,
body.shop-page .topbar .message-icon-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
}

/* Mobile version */
@media (max-width: 760px) {
    body.shop-page .topbar .topbar-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        margin-left: auto !important;
    }

    body.shop-page .topbar .topbar-nav > a.product-notification-clean-link,
    body.shop-page .topbar .topbar-nav > a.likes-icon-link,
    body.shop-page .topbar .topbar-nav > a.cart-icon-link,
    body.shop-page .topbar .topbar-nav > a.profile-nav-link,
    body.shop-page .topbar .topbar-nav > a.topbar-icon-link {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    body.shop-page .topbar .notification-topbar-icon,
    body.shop-page .topbar .likes-topbar-icon,
    body.shop-page .topbar .messages-topbar-icon,
    body.shop-page .topbar .cart-topbar-icon,
    body.shop-page .topbar .message-topbar-icon {
        font-size: 20px !important;
    }

    body.shop-page .topbar .topbar-profile-img,
    body.shop-page .topbar .topbar-profile-fallback {
        width: 29px !important;
        height: 29px !important;
    }
}

/* =========================================================
   SHOP TOPBAR PROFILE CIRCLE BALANCED
   outer circle same as other icons, profile fills more
   ========================================================= */

body.shop-page .topbar .topbar-nav > a.profile-nav-link {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
}

body.shop-page .topbar .profile-nav-link .topbar-profile-img,
body.shop-page .topbar .profile-nav-link .topbar-profile-fallback {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
}

@media (max-width: 760px) {
    body.shop-page .topbar .topbar-nav > a.profile-nav-link {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    body.shop-page .topbar .profile-nav-link .topbar-profile-img,
    body.shop-page .topbar .profile-nav-link .topbar-profile-fallback {
        width: 32px !important;
        height: 32px !important;
    }
}

.profile-polish-topbar .profile-topbar-icon-link[aria-label="Cart"],
.profile-polish-topbar .profile-topbar-icon-link[aria-label="Notifications"] {
    display: none !important;
}

/* =========================================================
   GUEST CART + GUEST CHECKOUT FINAL STYLES
   ========================================================= */

.guest-cart-page-body,
.guest-checkout-page-body {
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.05), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #f8fafc 100%);
    color: #111827;
}

.guest-cart-topbar,
.guest-checkout-topbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.guest-cart-topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-cart-topbar-link,
.guest-cart-signup-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.guest-cart-topbar-link i,
.guest-cart-signup-link i {
    font-size: 17px;
}

.guest-cart-auth-link {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
}

.guest-cart-signup-link {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
}

.guest-cart-signup-link:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.guest-cart-page,
.guest-checkout-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.guest-cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.guest-cart-account-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 340px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.guest-cart-account-note i {
    color: #111827;
    font-size: 19px;
    flex-shrink: 0;
}

.guest-cart-summary .checkout-btn,
.guest-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.guest-cart-signin-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.guest-cart-signin-box p {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.guest-cart-signin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.guest-cart-signin-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.guest-empty-cart-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.guest-empty-cart-icon i {
    font-size: 28px;
}

.guest-empty-cart-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.guest-empty-cart-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.guest-empty-cart-actions .guest-empty-secondary-link {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

/* Guest checkout page */

.guest-checkout-page {
    padding: 34px 0 64px;
}

.guest-checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.guest-checkout-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.guest-checkout-eyebrow i {
    font-size: 16px;
}

.guest-checkout-header h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.guest-checkout-header p {
    max-width: 620px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.guest-checkout-member-card {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.guest-checkout-member-card > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #111827;
    color: #ffffff;
    font-size: 21px;
}

.guest-checkout-member-card strong {
    display: block;
    color: #111827;
    font-size: 13.5px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.guest-checkout-member-card span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.4;
}

.guest-checkout-member-card a {
    grid-column: 2;
    width: fit-content;
    margin-top: 3px;
    color: #111827;
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guest-checkout-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.guest-checkout-alert i {
    font-size: 18px;
}

.guest-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: start;
}

.guest-checkout-form-card,
.guest-checkout-summary-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.075);
}

.guest-checkout-form-card {
    padding: 24px;
}

.guest-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.guest-form-section {
    padding: 20px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.guest-form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.guest-form-section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
    flex-shrink: 0;
}

.guest-form-section-icon i {
    font-size: 21px;
}

.guest-form-section h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.guest-form-section p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.guest-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.guest-form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-form-grid.three-columns {
    grid-template-columns: 1.2fr 0.75fr 0.85fr;
}

.guest-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.guest-form-field.full-width {
    grid-column: 1 / -1;
}

.guest-form-field span {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.guest-form-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.guest-form-field input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.guest-form-field input::placeholder {
    color: #94a3b8;
}

.guest-coupon-preview-section {
    background: #fffef7;
    border-color: rgba(234, 179, 8, 0.22);
}

.guest-checkout-mobile-summary {
    display: none;
}

.guest-checkout-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.guest-secondary-btn,
.guest-primary-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.guest-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.guest-primary-btn {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.guest-primary-btn:hover {
    background: #000000;
}

.guest-checkout-summary-card {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.guest-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.guest-summary-top h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.guest-summary-top p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.guest-summary-top > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #f8fafc;
    color: #111827;
    font-size: 21px;
}

.guest-summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 330px;
    overflow: auto;
    padding-right: 4px;
}

.guest-summary-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.guest-summary-image {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    overflow: hidden;
    background: #e5e7eb;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 10px;
    text-decoration: none;
}

.guest-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guest-summary-title {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guest-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 700;
}

.guest-summary-price {
    color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.guest-summary-totals {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.guest-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
    color: #334155;
    font-size: 14px;
}

.guest-summary-row strong {
    color: #111827;
}

.guest-summary-row.muted {
    color: #64748b;
    font-size: 13px;
}

.guest-summary-row.muted strong {
    color: #64748b;
    font-weight: 800;
}

.guest-summary-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
    margin: 13px 0;
}

.guest-summary-row.total {
    margin-bottom: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
}

.guest-summary-row.total strong {
    font-size: 16px;
}

.guest-summary-trust {
    margin-top: 18px;
    display: grid;
    gap: 9px;
}

.guest-summary-trust div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 12.5px;
    font-weight: 800;
}

.guest-summary-trust i {
    color: #111827;
    font-size: 17px;
}

/* Mobile */

@media (max-width: 900px) {
    .guest-checkout-layout {
        grid-template-columns: 1fr;
    }

    .guest-checkout-summary-card {
        position: static;
        order: -1;
    }

    .guest-summary-items {
        max-height: none;
    }

    .guest-checkout-header {
        flex-direction: column;
    }

    .guest-checkout-member-card {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .guest-cart-page,
    .guest-checkout-page {
        width: min(100% - 22px, 1180px);
    }

    .guest-cart-header {
        flex-direction: column;
        gap: 14px;
    }

    .guest-cart-account-note {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .guest-cart-topbar-nav {
        gap: 7px;
    }

    .guest-cart-topbar-link span,
    .guest-cart-signup-link span {
        display: none;
    }

    .guest-cart-topbar-link,
    .guest-cart-signup-link {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 999px !important;
    }

    .guest-checkout-page {
        padding-top: 24px;
    }

    .guest-checkout-header h1 {
        font-size: 31px;
    }

    .guest-checkout-form-card,
    .guest-checkout-summary-card {
        border-radius: 22px;
    }

    .guest-checkout-form-card {
        padding: 14px;
    }

    .guest-form-section {
        padding: 16px;
        border-radius: 20px;
    }

    .guest-form-section-heading {
        gap: 10px;
    }

    .guest-form-section-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .guest-form-grid.two-columns,
    .guest-form-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .guest-checkout-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .guest-secondary-btn,
    .guest-primary-btn {
        width: 100%;
    }

    .guest-checkout-mobile-summary {
        display: block;
        padding: 14px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .guest-mobile-summary-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: #111827;
        font-size: 14px;
        font-weight: 900;
    }

    .guest-checkout-mobile-summary p {
        margin: 8px 0 0;
        color: #64748b;
        font-size: 12px;
        line-height: 1.45;
    }

    .guest-summary-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .guest-summary-price {
        grid-column: 2;
        justify-self: start;
        margin-top: -3px;
    }
}

@media (max-width: 420px) {
    .guest-checkout-header h1 {
        font-size: 28px;
    }

    .guest-checkout-member-card {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 14px;
        border-radius: 20px;
    }

    .guest-checkout-member-card > i {
        width: 38px;
        height: 38px;
    }

    .guest-summary-top h2 {
        font-size: 18px;
    }

    .guest-form-field input {
        min-height: 44px;
        border-radius: 14px;
    }
}

/* =========================================================
   GUEST CHECKOUT REVIEW FINAL STYLES
   ========================================================= */

.guest-review-page {
    padding-bottom: 72px;
}

.guest-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: start;
}

.guest-review-main-card,
.guest-review-summary-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.075);
}

.guest-review-main-card {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.guest-review-summary-card {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.guest-review-section {
    padding: 20px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.guest-review-section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.guest-review-section-title > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #111827;
    font-size: 21px;
    flex-shrink: 0;
}

.guest-review-section-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.guest-review-section-title p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.guest-address-review-box,
.guest-shipping-review-box {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px;
}

.guest-address-review-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.guest-address-review-box strong {
    color: #111827;
    font-size: 15px;
    font-weight: 950;
}

.guest-edit-link {
    width: fit-content;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guest-shipping-review-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.guest-shipping-review-box strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 950;
}

.guest-shipping-review-box span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12.5px;
}

.guest-review-items {
    display: grid;
    gap: 12px;
}

.guest-review-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.guest-review-item-image {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 17px;
    background: #e5e7eb;
    color: #64748b;
    font-size: 10px;
    text-decoration: none;
}

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

.guest-review-item-info > a {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guest-review-item-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.guest-review-item > strong {
    color: #111827;
    font-size: 14px;
    font-weight: 950;
}

.guest-coupon-result-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 18px;
    margin-bottom: 16px;
}

.guest-coupon-result-box.valid {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.guest-coupon-result-box.invalid {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.guest-coupon-result-box i {
    font-size: 19px;
    flex-shrink: 0;
}

.guest-coupon-result-box strong {
    display: block;
    font-size: 13px;
    font-weight: 950;
}

.guest-coupon-result-box span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.guest-summary-row.discount {
    color: #047857;
}

.guest-summary-row.discount strong {
    color: #047857;
}

.guest-review-pay-form {
    margin-top: 18px;
}

.guest-pay-btn {
    width: 100%;
    min-height: 50px;
}

@media (max-width: 900px) {
    .guest-review-layout {
        grid-template-columns: 1fr;
    }

    .guest-review-summary-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 700px) {
    .guest-review-main-card,
    .guest-review-summary-card {
        border-radius: 22px;
    }

    .guest-review-main-card {
        padding: 14px;
    }

    .guest-review-section {
        padding: 16px;
        border-radius: 20px;
    }

    .guest-shipping-review-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .guest-review-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .guest-review-item-image {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .guest-review-item > strong {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
    }
}

/* =========================================================
   MINI BAG TOAST - NIKE STYLE ADD TO BAG
   ========================================================= */

.mini-bag-toast {
    position: fixed;
    top: 88px;
    right: 22px;
    width: min(360px, calc(100vw - 28px));
    z-index: 99999;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.mini-bag-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mini-bag-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111827;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.mini-bag-close i {
    font-size: 17px;
}

.mini-bag-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 42px;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.mini-bag-check {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    flex-shrink: 0;
}

.mini-bag-check i {
    font-size: 17px;
    font-weight: 900;
}

.mini-bag-product {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    margin-top: 16px;
}

.mini-bag-image-wrap {
    width: 82px;
    height: 82px;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
}

.mini-bag-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.mini-bag-no-image {
    width: 100%;
    height: 100%;
    display: none;
    place-items: center;
    color: #64748b;
}

.mini-bag-no-image i {
    font-size: 24px;
}

.mini-bag-info {
    min-width: 0;
}

.mini-bag-info strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-bag-info span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 750;
}

.mini-bag-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.mini-bag-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.mini-bag-view {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.16);
}

.mini-bag-checkout {
    background: #111827;
    color: #ffffff;
    border: 1px solid #111827;
}

.mini-bag-checkout:hover {
    background: #000000;
    color: #ffffff;
}

@media (max-width: 700px) {
    .mini-bag-toast {
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 16px;
        width: auto;
        border-radius: 22px;
        transform: translateY(14px) scale(0.98);
    }

    .mini-bag-toast.show {
        transform: translateY(0) scale(1);
    }

    .mini-bag-product {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .mini-bag-image-wrap {
        width: 74px;
        height: 74px;
        border-radius: 16px;
    }
}

.guest-coupon-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.guest-coupon-input-row input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.guest-coupon-input-row button {
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.guest-coupon-check-message {
    margin: 10px 0 0;
    font-size: 12.5px;
    font-weight: 800;
}

.guest-coupon-check-message.valid {
    color: #047857;
}

.guest-coupon-check-message.invalid {
    color: #b45309;
}

.checkout-success-check {
    display: none;
    align-items: center;
    justify-content: center;
}

.checkout-success-check i {
    font-size: 34px;
    line-height: 1;
}

.checkout-guest-email-note {
    margin: 18px auto 0;
    max-width: 440px;
    padding: 13px 15px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    align-items: flex-start;
    gap: 10px;
}

.checkout-guest-email-note i {
    color: #111827;
    font-size: 18px;
    flex-shrink: 0;
}

.checkout-success-actions a[style*="display: none"] {
    display: none !important;
}

/* =========================================================
   LOGIN / USER CIRCLE ICON LINKS
   ========================================================= */

.login-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.login-icon-link i {
    font-size: 22px;
    line-height: 1;
}

.login-icon-link span {
    line-height: 1;
}

.login-icon-link:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.login-icon-only {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
}

.login-icon-only i {
    font-size: 24px;
}

/* If placed inside guest/cart/topbar areas */
.guest-cart-topbar .login-icon-link,
.guest-checkout-topbar .login-icon-link,
.cart-page-topbar .login-icon-link,
.topbar .login-icon-link {
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 700px) {
    .login-icon-link {
        min-height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    .login-icon-link i {
        font-size: 21px;
    }

    .login-icon-only {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
    }

    .login-icon-only i {
        font-size: 23px;
    }
}

/* =========================================================
   PRODUCT DETAIL GUEST CHECKOUT PROMO STRIP - FINAL
   ========================================================= */

.guest-checkout-promo-pill {
    display: none !important;
}

.guest-checkout-promo-strip-wrap {
    width: 100%;
    margin: 0 0 12px;
    display: block !important;
    position: relative !important;
    z-index: 5;
}

.guest-checkout-promo-strip {
    width: 100%;
    height: 38px;
    overflow: hidden;
    border-radius: 0;
    background: #111827;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
}

.guest-checkout-promo-track {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
    padding: 0 18px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: -0.01em;
    animation: guestCheckoutPromoStripRoll 24s linear infinite;
    will-change: transform;
}

.guest-checkout-promo-track span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.guest-checkout-promo-track i {
    font-size: 16px;
    color: #bbf7d0;
}

@keyframes guestCheckoutPromoStripRoll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-checkout-promo-track {
        animation: none;
        transform: none;
    }
}

/* Mobile force visible */
@media (max-width: 700px) {
    .guest-checkout-promo-strip-wrap {
        display: block !important;
        width: 100% !important;
        margin: 0 0 10px !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 20 !important;
    }

    .guest-checkout-promo-strip {
        height: 36px;
        border-radius: 0;
        box-shadow: none;
    }

    .guest-checkout-promo-track {
        gap: 18px;
        padding: 0 14px;
        font-size: 11.5px;
        animation-duration: 20s;
    }

    .guest-checkout-promo-track i {
        font-size: 15px;
    }
}

/* =========================================================
   PRODUCT DETAIL GUEST CHECKOUT TOP PROMO - SEAMLESS FINAL
   ========================================================= */

.zms-guest-promo-row,
.zms-guest-promo-bar,
.guest-checkout-promo-strip-wrap,
.guest-checkout-promo-strip,
.guest-checkout-promo-pill {
    display: none !important;
}

.zms-product-guest-top-promo {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block !important;
    position: relative !important;
    z-index: 20;
    box-sizing: border-box;
    background: #111827;
}

.zms-product-guest-top-promo-inner {
    width: 100%;
    height: 36px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.16);
    box-shadow: none;
    box-sizing: border-box;
}

.zms-product-guest-top-promo-track {
    height: 100%;
    width: max-content;
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: zmsProductGuestTopPromoRoll 28s linear infinite;
}

.zms-product-guest-top-promo-group {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 34px;
    padding-right: 34px;
}

.zms-product-guest-top-promo-group span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1;
    flex-shrink: 0;
}

.zms-product-guest-top-promo-group i {
    font-size: 16px;
    color: #bbf7d0;
    line-height: 1;
}

@keyframes zmsProductGuestTopPromoRoll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* tighten product page spacing after promo */
.zms-product-guest-top-promo + .product-detail-page {
    padding-top: 10 !important;
    margin-top: 0 !important;
}

/* if your product image starts with the mobile carousel */
.zms-product-guest-top-promo + .product-detail-page .mobile-product-carousel-section {
    margin-top: 0 !important;
}

/* if desktop gallery had top margin */
.zms-product-guest-top-promo + .product-detail-page .product-gallery {
    margin-top: 0 !important;
}

/* =========================================================
   PRODUCT PROMO BAR SPACING CONTROL
   ========================================================= */

.zms-product-guest-top-promo {
    margin-top: 0 !important;      /* space above moving bar */
    margin-bottom: 0 !important;   /* space below moving bar */
}

.zms-product-guest-top-promo-inner {
    height: 36px !important;       /* height of the moving bar itself */
}

.product-detail-page {
    padding-top: 0 !important;     /* space between bar and product page */
    margin-top: 0 !important;
}

.mobile-product-carousel-section {
    margin-top: 0 !important;      /* mobile image gap */
    padding-top: 0 !important;
}

.product-gallery {
    margin-top: 0 !important;      /* desktop image gap */
    padding-top: 0 !important;
}

/* Mobile */
@media (max-width: 700px) {
    .zms-product-guest-top-promo {
        margin: 0 !important;
        width: 100% !important;
    }

    .zms-product-guest-top-promo-inner {
        height: 34px;
        border-left: 0;
        border-right: 0;
    }

    .zms-product-guest-top-promo-track {
        animation-duration: 22s;
    }

    .zms-product-guest-top-promo-group {
        gap: 26px;
        padding-right: 26px;
    }

    .zms-product-guest-top-promo-group span {
        font-size: 11.5px;
    }

    .zms-product-guest-top-promo-group i {
        font-size: 15px;
    }

    .zms-product-guest-top-promo + .product-detail-page {
        padding-top: 0px !important;
    }

    .zms-product-guest-top-promo + .product-detail-page .mobile-product-carousel-section {
        margin-top: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zms-product-guest-top-promo-track {
        animation: none;
        transform: none;
    }
}

/* =========================================================
   GUEST PROMO MOBILE GAP FIX - FINAL OVERRIDE
   ========================================================= */

@media (max-width: 700px) {
    body .zms-product-guest-top-promo {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    body .zms-product-guest-top-promo-inner {
        height: 34px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    body .product-detail-page {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body .product-detail-page > .mobile-product-carousel-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body .mobile-product-carousel-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body .mobile-product-carousel {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* =========================================================
   GUEST PROMO → MOBILE IMAGE GAP FIX
   ========================================================= */

@media (max-width: 760px) {
    body .zms-product-guest-top-promo {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body .zms-product-guest-top-promo + main.product-detail-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body .zms-product-guest-top-promo + main.product-detail-page > .mobile-product-carousel-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body main.product-detail-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body main.product-detail-page > .mobile-product-carousel-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body .mobile-product-carousel-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body .mobile-product-carousel {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 760px) {
    body .mobile-product-carousel-section {
        transform: translateY(-14px);
        margin-bottom: -14px !important;
    }
}

/* =========================================================
   AUTO REVIEW / ZEROMAXSHOP REVIEW CARD FIX
   ========================================================= */

.review-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auto-system-review-row {
    gap: 14px;
}

.auto-system-review-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.auto-system-review-logo-wrap {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
}

.auto-system-review-logo {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0 !important;
}

.auto-system-review-name {
    color: #111827;
    font-size: 14.5px;
    font-weight: 950;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.auto-system-review-label {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin-top: 1px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1;
}

.auto-system-review-card .review-stars {
    margin-top: 2px;
}

.auto-system-review-card .review-date {
    margin-left: auto;
}

/* Mobile */
@media (max-width: 640px) {
    .auto-system-review-avatar {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .auto-system-review-logo-wrap {
        width: 29px;
        height: 29px;
    }

    .auto-system-review-logo {
        width: 25px !important;
        height: 25px !important;
        max-width: 25px !important;
        max-height: 25px !important;
    }

    .auto-system-review-name {
        font-size: 14px;
    }

    .auto-system-review-label {
        font-size: 10px;
        padding: 3px 7px;
    }
}

/* Admin orders hide button - clean final */
.admin-order-actions form {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

.admin-order-actions button.admin-orders-action-btn {
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
}

.danger-admin-order-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;

    border-radius: 999px !important;
    box-shadow: none !important;
    background-image: none !important;

    min-height: 34px !important;
    padding: 0 14px !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.danger-admin-order-btn:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.danger-admin-order-btn:focus,
.danger-admin-order-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* SMART LIVE VISITORS PAGE */
.live-visitors-page {
    max-width: 1220px !important;
}

.live-visitors-header {
    margin-bottom: 18px !important;
}

.live-visitor-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.live-visitor-stats div {
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.live-visitor-stats strong {
    display: block;
    font-size: 38px;
    font-weight: 950;
    color: #111827;
    letter-spacing: -0.06em;
    line-height: 1;
}

.live-visitor-stats span {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 850;
    color: #64748b;
}

.live-visitors-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.live-panel {
    padding: 22px !important;
    border-radius: 28px !important;
    overflow: hidden;
}

.live-panel-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.live-panel-title-row h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.live-panel-title-row p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.live-dot-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.live-dot-label span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.live-online-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.live-online-card {
    border-radius: 22px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.live-online-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.live-online-top strong {
    display: block;
    color: #111827;
    font-size: 14.5px;
    font-weight: 950;
}

.live-online-top span {
    display: inline-flex;
    width: fit-content;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 850;
}

.live-online-top small {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.live-online-page {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
}

.live-online-page span {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.live-online-page code {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-online-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.live-activity-feed {
    display: grid;
    gap: 10px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.live-activity-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.live-activity-main {
    min-width: 0;
}

.live-activity-main strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 950;
}

.live-activity-main span {
    display: block;
    margin-top: 3px;
    color: #334155;
    font-size: 12.5px;
    font-weight: 850;
}

.live-activity-main code {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-activity-side {
    text-align: right;
    white-space: nowrap;
}

.live-activity-side span {
    display: block;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 850;
}

.live-activity-side small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 850;
}

.live-fresh {
    opacity: 1;
}

.live-warm {
    opacity: 0.88;
}

.live-cool {
    opacity: 0.68;
}

.live-faded {
    opacity: 0.45;
}

.live-empty-state {
    padding: 26px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    text-align: center;
}

.live-empty-state strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 950;
}

.live-empty-state span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 950px) {
    .live-visitors-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .live-visitor-stats {
        grid-template-columns: 1fr;
    }

    .live-panel {
        padding: 18px !important;
        border-radius: 24px !important;
    }

    .live-panel-title-row {
        flex-direction: column;
    }

    .live-activity-item {
        grid-template-columns: 1fr;
    }

    .live-activity-side {
        text-align: left;
    }

    .live-online-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* INSTAGRAM DRAFT IMPORT */
.instagram-draft-import-page {
    max-width: 980px !important;
}

.instagram-import-card {
    margin-top: 18px;
    padding: 26px !important;
    border-radius: 28px !important;
}

.instagram-import-form {
    display: grid;
    gap: 18px;
}

.instagram-import-form label {
    display: grid;
    gap: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.instagram-import-form input[type="url"],
.instagram-import-form textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
    padding: 14px 15px;
    font-size: 14px;
    font-weight: 750;
    outline: none;
    box-sizing: border-box;
}

.instagram-import-form input[type="url"] {
    min-height: 48px;
}

.instagram-import-form textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
}

.instagram-import-form input[type="url"]:focus,
.instagram-import-form textarea:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.instagram-import-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.instagram-import-divider::before,
.instagram-import-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(15, 23, 42, 0.1);
}

.instagram-import-drop-zone {
    min-height: 190px;
    border: 2px dashed rgba(15, 23, 42, 0.18);
    border-radius: 24px;
    background: #f8fafc;
    display: grid !important;
    place-items: center;
    text-align: center;
    padding: 24px;
    cursor: pointer;
}

.instagram-import-drop-zone:hover {
    border-color: #111827;
    background: #ffffff;
}

.instagram-import-drop-zone input {
    display: none;
}

.instagram-import-drop-zone strong {
    display: block;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
}

.instagram-import-drop-zone span {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.instagram-import-message {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 13px;
    font-weight: 900;
}