* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1f2a44;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-box {
    background-color: #ffffff;
    padding: 48px 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
}

.login-box h1 {
    margin: 0 0 4px;
    font-size: 24px;
    text-align: center;
}

.login-subtitle {
    margin: 0 0 28px;
    text-align: center;
    color: #8c8478;
    font-size: 14px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid #e4ded9;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #1f2a44;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background-color: #b8788a;
}

.error-message {
    color: #c0392b;
    font-size: 13px;
    text-align: center;
    margin: 12px 0 0;
}

.admin-body {
    display: block;
    background-color: #faf7f4;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background-color: #1f2a44;
    color: #ffffff;
}

.admin-nav-title {
    font-family: "Georgia", serif;
    font-size: 17px;
    letter-spacing: 0.3px;
}

.admin-nav-links {
    display: flex;
    gap: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 6px;
}

.admin-nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-nav-links a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-nav-links a.active {
    color: #1f2a44;
    background-color: #ffffff;
}

.logout-btn {
    width: auto;
    padding: 8px 18px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.logout-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.admin-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 32px;
}

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

.admin-header h1 {
    margin: 0;
}

.btn-primary {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    background-color: #1f2a44;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e4ded9;
    font-size: 14px;
}

.admin-table th {
    background-color: #f3ece7;
    font-weight: 600;
}

.admin-table tbody tr {
    background-color: #fdf9f8;
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: #f3ece7;
}

.table-btn {
    width: auto;
    padding: 6px 14px;
    font-size: 13px;
    margin-right: 6px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.table-btn-delete {
    background-color: #c0392b;
}

.admin-thumb {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.stock-sizes {
    font-size: 11px;
    color: #8c8478;
}

.product-form {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    max-width: 600px;
}

.product-form label {
    margin-top: 16px;
}

.product-form input,
.product-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 4px;
    border: 1px solid #e4ded9;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f3ece7;
    color: #1f2a44;
    text-decoration: none;
    border: 1px solid #e4ded9;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}

.form-submit {
    margin-top: 24px;
}

.length-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.length-row input {
    margin-bottom: 0;
}

.length-row button {
    width: auto;
    padding: 10px 14px;
    background-color: #c0392b;
}

.confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 42, 68, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirm-overlay.active {
    display: flex;
}

.confirm-box {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    max-width: 360px;
    text-align: center;
}

.confirm-box h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.confirm-box p {
    margin: 0 0 24px;
    color: #8c8478;
    font-size: 14px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
}

.confirm-buttons button {
    width: auto;
    flex: 1;
    padding: 10px;
}

.btn-delete-confirm {
    background-color: #c0392b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.category-box {
    max-width: 420px;
    text-align: left;
}

.category-box form label {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
}

.category-box input,
.category-box textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #e4ded9;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.category-box .confirm-buttons {
    margin-top: 20px;
}

.image-preview {
    width: 120px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 10px;
    display: block;
}

.image-upload-box {
    width: 140px;
    height: 160px;
    border: 2px dashed #e4ded9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: #faf7f4;
    margin-top: 6px;
}

.image-upload-box:hover {
    border-color: #b8788a;
}

.image-upload-box .upload-plus {
    font-size: 32px;
    color: #8c8478;
}

.image-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-upload-box img.has-image {
    display: block;
}

.image-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.settings-gap { 
    margin-bottom: 24px; 
}

.product-form h2 { 
    font-size: 18px; margin: 0 0 8px; 
}

.settings-message { 
    font-size: 13px; margin: 12px 0 0; min-height: 18px; 
}
.settings-message.ok { 
    color: #4f7a5a; 
}
.settings-message.fail { 
    color: #c0392b; 
}

.order-filters { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 20px; 
    flex-wrap: wrap; 
}

.order-filters button {
    width: auto;
    padding: 8px 16px;
    background: #ffffff;
    color: #1f2a44;
    border: 1px solid #e4ded9;
    border-radius: 4px;
    font-size: 13px;
}

.order-filters button.active { 
    background: #1f2a44; 
    color: #ffffff; 
    border-color: #1f2a44; 
}

.order-card-admin { 
    background: #fdf9f8; 
    border-radius: 4px; 
    padding: 18px 20px; 
    margin-bottom: 14px; 
    box-shadow: 0 1px 3px rgba(31, 42, 68, 0.08); 
}

.order-card-head { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 12px; 
    flex-wrap: wrap; 
    margin-bottom: 12px; 
}
.order-card-head small { 
    color: #8c8478; 
    display: block; 
    margin-top: 2px; 
}

.status-badge { 
    font-size: 12px; 
    font-weight: 600; 
    text-transform: uppercase; 
    padding: 4px 10px; 
    border-radius: 3px; 
    color: #ffffff; 
    background: #8c8478; 
}
.status-badge.processing { 
    background: #b8788a; 
}
.status-badge.shipped { 
    background: #c58a1f; 
}
.status-badge.delivered { 
    background: #4f7a5a; 
}

.order-line { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 14px; 
    margin-bottom: 8px; 
}
.order-line img { 
    width: 40px; 
    height: 48px; 
    object-fit: cover; 
    border-radius: 3px; 
}
.order-line span:nth-child(2) { 
    flex: 1; 
}

.order-total { 
    font-weight: 600; 
    margin: 12px 0; 
    text-align: right; 
}

.order-update { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    align-items: center; 
    border-top: 1px solid #e4ded9; 
    padding-top: 14px; 
}
.order-update select, .order-update input { 
    padding: 9px 10px; 
    border: 1px solid #e4ded9; 
    border-radius: 4px; 
    font-size: 14px; 
    font-family: inherit; 
    background: #ffffff; 
    width: auto; 
    margin: 0; 
    flex: 1; 
    min-width: 130px; 
}
.order-update button { 
    width: auto; 
    padding: 9px 18px; 
}

.order-address-admin { 
    font-size: 13px; line-height: 1.6; 
    background: #f3ece7; 
    padding: 10px 12px; 
    border-radius: 4px; 
    margin-top: 10px; 
}
.order-address-admin.muted { 
    color: #8c8478; 
}

.state-fee-row { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 8px; 
}
.state-fee-row select, .state-fee-row input { 
    margin: 0; 
    flex: 1; 
}
.state-fee-row button { 
    width: auto; 
    padding: 8px 12px; 
    background: #c0392b; 
}

.admin-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 40px;
    background: linear-gradient(180deg, #1f2a44, #182038);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(24, 32, 56, 0.18);
}

.admin-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    color: #ffffff; 
}
.admin-brand-mark {
    width: 34px; 
    height: 34px; 
    border-radius: 50%; 
    background: #b8788a;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-family: Georgia, serif; 
    font-size: 17px; 
    font-weight: 700;
}
.admin-brand-text { 
    font-family: Georgia, serif; 
    font-size: 17px; 
    letter-spacing: 0.3px; 
}
.admin-brand-text em {
    font-style: normal; 
    color: #e9c3cf; 
    font-size: 11px; 
    letter-spacing: 2px;
    text-transform: uppercase; 
    margin-left: 8px;
}

.admin-nav-links {
    justify-self: center; 
    display: flex; gap: 4px;
    background: rgba(255, 255, 255, 0.07); 
    padding: 4px; 
    border-radius: 999px;
}
.admin-nav-links a { 
    padding: 8px 20px; 
    border-radius: 999px; 
}

.admin-nav-actions { 
    justify-self: end; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.nav-icon-btn,
.admin-nav .logout-btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    height: 40px; 
    min-width: 40px; 
    width: auto; 
    padding: 0 12px;
    border-radius: 999px; 
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent; 
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px; 
    font-weight: 600; 
    text-decoration: none; 
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-icon-btn:hover,
.admin-nav .logout-btn:hover { 
    background: rgba(255, 255, 255, 0.12); 
    color: #ffffff; 
}
.nav-icon-btn.active { 
    background: #ffffff; 
    color: #1f2a44; 
    border-color: #ffffff; 
}

.settings-page { max-width: 680px; }
.settings-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.settings-hero h1 { margin: 0; font-size: 28px; }
.settings-hero p { margin: 4px 0 0; color: #8c8478; font-size: 14px; }
.settings-avatar {
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    background: #1f2a44; color: #ffffff;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-family: Georgia, serif; 
    font-size: 24px; font-weight: 700;
}
.settings-page .product-form {
    max-width: 100%; border-radius: 14px; padding: 32px;
    box-shadow: 0 6px 24px rgba(31, 42, 68, 0.07); margin-bottom: 24px;
}
.settings-page .product-form h2 { font-size: 19px; margin-bottom: 18px; }

.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.switch-row p { margin: 4px 0 0; font-size: 13px; color: #8c8478; }

.product-form .switch { 
    position: relative; 
    display: inline-block; 
    width: 52px; 
    height: 30px; 
    margin: 0; 
    flex-shrink: 0; 
}

.product-form .switch input { 
    position: absolute; inset: 0; width: 100%; 
    height: 100%; margin: 0; padding: 0; 
    opacity: 0; cursor: pointer; z-index: 2; 
}

.slider { 
    position: absolute; inset: 0; 
    background: #cfc8c0; 
    border-radius: 30px; 
    transition: background-color 0.3s ease; 
}

.slider::before {
    content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px;
    background: #ffffff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}
.switch input:checked + .slider { background: #b8788a; }
.switch input:checked + .slider::before { transform: translateX(22px); }

.admin-body { transition: background-color 0.3s ease, color 0.3s ease; }

[data-theme="dark"] .admin-body { background-color: #12151d; color: #ece8e3; }
[data-theme="dark"] .admin-main h1,
[data-theme="dark"] .admin-main h2,
[data-theme="dark"] .login-box h1 { color: #ece8e3; }
[data-theme="dark"] .login-box { background-color: #1b2030; }

[data-theme="dark"] .admin-table { background-color: #1b2030; }
[data-theme="dark"] .admin-table th { background-color: #232940; color: #ece8e3; }
[data-theme="dark"] .admin-table td { border-color: #2c3345; color: #ece8e3; }
[data-theme="dark"] .admin-table tbody tr,
[data-theme="dark"] .admin-table tr { background-color: #1b2030; }
[data-theme="dark"] .admin-table tbody tr:hover { background-color: #232940; }

[data-theme="dark"] .product-form,
[data-theme="dark"] .confirm-box,
[data-theme="dark"] .order-card-admin { background: #1b2030; color: #ece8e3; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .product-form label,
[data-theme="dark"] label { color: #ece8e3; }
[data-theme="dark"] .confirm-box h2 { color: #ece8e3; }
[data-theme="dark"] .confirm-box p { color: #a39d94; }

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .order-update select,
[data-theme="dark"] .order-update input {
    background: #12151d; color: #ece8e3; border-color: #2c3345;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .form-submit { background-color: #b8788a; color: #ffffff; }
[data-theme="dark"] .btn-secondary { background-color: #2a3046; color: #ece8e3; }
[data-theme="dark"] .table-btn { background-color: #2f3a5c; color: #ffffff; }
[data-theme="dark"] .table-btn-delete { background-color: #c0392b; }

[data-theme="dark"] .order-filters button { background: #1b2030; color: #ece8e3; border-color: #2c3345; }
[data-theme="dark"] .order-filters button.active { background: #b8788a; border-color: #b8788a; color: #ffffff; }
[data-theme="dark"] .order-address-admin { background: #232940; color: #ece8e3; }
[data-theme="dark"] .order-update { border-color: #2c3345; }
[data-theme="dark"] .image-upload-box { background: #12151d; border-color: #2c3345; }
[data-theme="dark"] .settings-avatar { background: #b8788a; }
[data-theme="dark"] .order-card-head small,
[data-theme="dark"] .settings-hero p { color: #a39d94; }

.status-badge.cancelled { background: #c0392b; }
.order-cancel-info { border-top: 1px solid #e4ded9; padding-top: 14px; font-size: 14px; line-height: 1.7; }
.order-update .o-cancel { background: #c0392b; color: #ffffff; }

[data-theme="dark"] .order-cancel-info { border-color: #2c3345; }

/* admin login page in dark mode */
[data-theme="dark"] body { background-color: #0e1016; }
[data-theme="dark"] .login-box button { background-color: #b8788a; color: #ffffff; }
[data-theme="dark"] .login-box a { color: #e9c3cf; }

.orders-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.pager-info { flex-basis: 100%; text-align: center; font-size: 13px; color: #8c8478; margin-bottom: 4px; }

.page-btn {
    width: auto; min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 999px; border: 1px solid #e4ded9;
    background: #ffffff; color: #1f2a44;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: #b8788a; color: #b8788a; }
.page-btn.active { background: #1f2a44; color: #ffffff; border-color: #1f2a44; }
.page-btn:disabled { opacity: 0.35; cursor: default; }
.page-gap { color: #8c8478; padding: 0 4px; }

[data-theme="dark"] .page-btn { background: #1b2030; color: #ece8e3; border-color: #2c3345; }
[data-theme="dark"] .page-btn.active { background: #b8788a; border-color: #b8788a; color: #ffffff; }


@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        text-align: center;
    }

    .admin-nav-links {
        gap: 16px;
    }

    .admin-main {
        padding: 24px 16px;
    }

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

    .header-actions {
        width: 100%;
    }

    .header-actions a,
    .header-actions button {
        flex: 1;
        text-align: center;
    }

    .admin-table thead {
    display: none;
    }

    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        background-color: #fdf9f8;
        border-radius: 4px;
        margin-bottom: 14px;
        padding: 16px;
        border: none;
        box-shadow: 0 1px 3px rgba(31, 42, 68, 0.08);
        position: relative;
    }

    .admin-table td {
        border: none;
        padding: 4px 0;
    }

    .admin-table td:empty {
        display: none;
    }

    .admin-table .admin-thumb {
        width: 70px;
        height: 84px;
        float: left;
        margin-right: 14px;
    }

    .admin-table td:nth-child(2) {
        font-weight: 600;
        font-size: 15px;
        padding-top: 4px;
    }

    .admin-table .cell-hide-mobile {
        display: none;
    }

    .admin-table .action-buttons {
        clear: both;
        padding-top: 12px;
    }

    .admin-table td:nth-child(3),
    .admin-table td:nth-child(4) {
        display: inline-block;
        margin-right: 16px;
        font-size: 13px;
        color: #8c8478;
    }

    .product-form,
    .confirm-box {
        padding: 24px 20px;
        max-width: 100%;
    }

    .confirm-overlay {
        padding: 16px;
    }

    .length-row {
        flex-wrap: wrap;
    }

    .length-row input {
        min-width: 80px;
        flex: 1;
    }

    .admin-nav {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand actions" "links links";
        padding: 12px 16px;
        row-gap: 12px;
    }
    .admin-brand { grid-area: brand; }
    .admin-nav-actions { grid-area: actions; }
    .admin-nav-links { 
        grid-area: links; 
        justify-self: stretch; 
        justify-content: space-between; 
    }
    .admin-nav-links a { flex: 1; 
        text-align: center; 
        padding: 9px 6px; 
    }
    .admin-brand-text em { display: none; }
    .admin-nav .logout-btn span { display: none; }
    .admin-nav .logout-btn { 
        padding: 0; 
        width: 40px; 
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
        margin: 16px;
    }

    .admin-thumb {
        width: 40px;
        height: 48px;
    }

    .image-upload-box {
        width: 110px;
        height: 130px;
    }
}

/* ----- recent additions ----- */
.admin-search {
    width: 100%;
    max-width: 420px;
    padding: 9px 14px 9px 38px;
    margin-bottom: 16px;
    border: 1px solid #8a8a8a;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23616161' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
}
.upload-note { font-size: 13px; margin: 8px 0 0; color: #616161; min-height: 18px; }
.upload-note.ok { color: #014b40; }
.upload-note.fail { color: #8e0b21; }

/* =====================================================================
   SHOPIFY-STYLE LOOK: grey page, white rounded cards, black top bar
   To undo, delete everything from this line down to "SHOPIFY END".
   ===================================================================== */

body { background-color: #1a1a1a; }
.admin-body { background-color: #f1f1f1; color: #303030; }
.login-box { border-radius: 12px; }

/* ---- top bar ---- */
.admin-nav { background: #1a1a1a; box-shadow: none; }
.admin-brand-mark { background: #ffffff; color: #1a1a1a; }
.admin-brand-text em { color: #b5b5b5; }
.admin-nav-links a.active,
.nav-icon-btn.active { color: #303030; }

/* ---- page ---- */
.admin-main { max-width: 1100px; padding: 32px 24px 60px; }
.admin-header h1 { font-size: 22px; font-weight: 650; letter-spacing: 0; }

/* ---- cards ---- */
.product-form,
.card,
.order-card-admin,
.admin-table {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06);
}

.settings-page .product-form {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06);
}

.settings-page .product-form h2,
.card h2 { font-size: 14px; font-weight: 650; margin: 0 0 14px; }

.confirm-box {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

/* ---- tables ---- */
.admin-table { border-collapse: separate; border-spacing: 0; overflow: hidden; }

.admin-table th {
    background: #f7f7f7;
    color: #616161;
    font-size: 12px;
    font-weight: 550;
    border-bottom: 1px solid #e3e3e3;
}

.admin-table td { border-bottom: 1px solid #ebebeb; color: #303030; }
.admin-table tbody tr { background: #ffffff; }
.admin-table tbody tr:hover { background: #f7f7f7; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-thumb { border-radius: 8px; border: 1px solid #e3e3e3; }

@media (max-width: 768px) {
    .admin-table { background: transparent; border: 0; box-shadow: none; overflow: visible; }

    .admin-table tr {
        background: #ffffff;
        border: 1px solid #e3e3e3;
        border-radius: 12px;
        box-shadow: none;
    }
}

/* ---- buttons ---- */
button:hover { background-color: #1a1a1a; }

.btn-primary,
.form-submit {
    background: #303030;
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 550;
    padding: 9px 16px;
}

.btn-primary:hover,
.form-submit:hover { background: #1a1a1a; }

.btn-secondary {
    background: #ffffff;
    color: #303030;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 550;
    padding: 9px 16px;
}

.btn-secondary:hover { background: #f7f7f7; color: #303030; }

.table-btn {
    background: #ffffff;
    color: #303030;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    font-weight: 550;
}

.table-btn:hover { background: #f7f7f7; }
.table-btn-delete { background: #ffffff; color: #8e0b21; border-color: #fed1d7; }
.table-btn-delete:hover { background: #fff1f3; }
.btn-delete-confirm { background: #c70a24; border-radius: 8px; }
.btn-delete-confirm:hover,
.order-update .o-cancel:hover,
.state-fee-row button:hover { background: #a30a1f; }

/* ---- inputs ---- */
input, textarea, select {
    border: 1px solid #8a8a8a;
    border-radius: 8px;
    font-size: 13px;
}

.product-form input,
.product-form textarea { border: 1px solid #8a8a8a; border-radius: 8px; }

input:focus, textarea:focus, select:focus {
    outline: 2px solid #303030;
    outline-offset: 1px;
}

/* ---- status chips ---- */
.status-badge {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 550;
    text-transform: capitalize;
    padding: 3px 10px;
}

.status-badge.processing { background: #ffd6a4; color: #5e4200; }
.status-badge.shipped { background: #a4e8f2; color: #00434e; }
.status-badge.delivered { background: #cdfed4; color: #014b40; }
.status-badge.cancelled { background: #fed1d7; color: #8e0b21; }

/* ---- orders, filters, pages ---- */
.order-filters button {
    background: transparent;
    color: #616161;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 550;
}

.order-filters button:hover { background: #ebebeb; color: #303030; }
.order-filters button.active { background: #e3e3e3; color: #303030; border-color: #e3e3e3; }

.order-address-admin { background: #f7f7f7; border-radius: 8px; }
.order-update { border-color: #e3e3e3; }

.page-btn { border-radius: 8px; border-color: #c9c9c9; }
.page-btn:hover:not(:disabled):not(.active) { background: #f7f7f7; border-color: #8a8a8a; color: #303030; }
.page-btn.active { background: #303030; border-color: #303030; color: #ffffff; }
.pager-info { color: #616161; }
.settings-avatar { background: #303030; }
.settings-hero p, .stock-sizes { color: #616161; }

/* ---- Add product page: cards in two columns ---- */
.shopify-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.form-main,
.form-side { display: flex; flex-direction: column; gap: 20px; }

.card { padding: 20px; }
.card h2 + label { margin-top: 0; }
.card textarea { resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: 12px; color: #616161; margin: 2px 0 0; }

.card .image-upload-box {
    width: 100%;
    max-width: 240px;
    height: 260px;
    border: 1.5px dashed #8a8a8a;
    border-radius: 12px;
    background: #fafafa;
}

.card .image-upload-box:hover { border-color: #303030; }
.card .image-upload-box .upload-plus { color: #616161; }

.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.form-actions .form-submit { margin-top: 0; }

@media (max-width: 900px) {
    .form-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
}

/* ---- dark mode, in the same neutral greys ---- */
[data-theme="dark"] body { background-color: #000000; }
[data-theme="dark"] .admin-body { background-color: #121212; color: #e3e3e3; }

[data-theme="dark"] .admin-main h1,
[data-theme="dark"] .admin-main h2,
[data-theme="dark"] .login-box h1 { color: #e3e3e3; }

[data-theme="dark"] .login-box { background-color: #1e1e1e; }

[data-theme="dark"] .product-form,
[data-theme="dark"] .card,
[data-theme="dark"] .confirm-box,
[data-theme="dark"] .order-card-admin,
[data-theme="dark"] .admin-table {
    background: #1e1e1e;
    border-color: #303030;
    color: #e3e3e3;
}

[data-theme="dark"] .shopify-form { background: transparent; border: 0; }

[data-theme="dark"] .admin-table th { background: #262626; color: #a8a8a8; border-color: #303030; }
[data-theme="dark"] .admin-table td { border-color: #2b2b2b; color: #e3e3e3; }
[data-theme="dark"] .admin-table tbody tr,
[data-theme="dark"] .admin-table tr { background: #1e1e1e; }
[data-theme="dark"] .admin-table tbody tr:hover { background: #262626; }

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .admin-search,
[data-theme="dark"] .order-update select,
[data-theme="dark"] .order-update input { background-color: #121212; color: #e3e3e3; border-color: #5a5a5a; }

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus { outline-color: #e3e3e3; }

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .form-submit { background: #e3e3e3; color: #1a1a1a; }
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .form-submit:hover { background: #ffffff; }
[data-theme="dark"] .btn-secondary { background: #262626; color: #e3e3e3; border-color: #4a4a4a; }
[data-theme="dark"] .table-btn { background: #262626; color: #e3e3e3; border-color: #4a4a4a; }
[data-theme="dark"] .table-btn-delete { color: #ff8a98; border-color: #5a2a30; }
[data-theme="dark"] .login-box button { background-color: #e3e3e3; color: #1a1a1a; }

[data-theme="dark"] .order-filters button { background: transparent; color: #a8a8a8; border-color: transparent; }
[data-theme="dark"] .order-filters button.active { background: #333333; color: #ffffff; border-color: #333333; }
[data-theme="dark"] .order-address-admin { background: #262626; color: #e3e3e3; }
[data-theme="dark"] .order-update,
[data-theme="dark"] .order-cancel-info { border-color: #303030; }
[data-theme="dark"] .image-upload-box,
[data-theme="dark"] .card .image-upload-box { background: #121212; border-color: #5a5a5a; }
[data-theme="dark"] .page-btn { background: #1e1e1e; color: #e3e3e3; border-color: #4a4a4a; }
[data-theme="dark"] .page-btn.active { background: #e3e3e3; color: #1a1a1a; border-color: #e3e3e3; }
[data-theme="dark"] .settings-avatar { background: #e3e3e3; color: #1a1a1a; }
[data-theme="dark"] .field-hint,
[data-theme="dark"] .pager-info { color: #a8a8a8; }
[data-theme="dark"] .upload-note.ok { color: #7ee3a0; }
[data-theme="dark"] .upload-note.fail { color: #ff8a98; }

/* ===== SHOPIFY END ===== */
