/* ==========================================================================
   STK Orders — Frontend CSS
   Premium dark UI design system
   ========================================================================== */

/* ── Google Fonts are loaded by PHP → wp_enqueue_style ─────────────────── */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
    --stk-radius-sm:    8px;
    --stk-radius-md:    16px;
    --stk-radius-lg:    24px;
    --stk-radius-pill:  50px;

    --stk-shadow:       0 8px 32px rgba(0, 0, 0, 0.4);
    --stk-shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.3);

    --stk-transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --stk-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset (scoped to plugin) ───────────────────────────────────────────── */
#stk-app,
#stk-app * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── App Shell ───────────────────────────────────────────────────────────── */
#stk-app {
    font-family: var(--stk-font);
    background:  var(--stk-bg);
    color:       var(--stk-text);
    min-height:  100vh;
    position:    relative;
    overflow-x:  hidden;
}

/* ── Views ───────────────────────────────────────────────────────────────── */
.stk-view {
    display:    none;
    min-height: 100vh;
    padding:    0 0 100px; /* space for bottom nav */
    animation:  stk-fade-in 0.25s ease forwards;
}

.stk-view.stk-view--active {
    display: block;
}

@keyframes stk-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── App Header ─────────────────────────────────────────────────────────── */
.stk-header {
    position:   sticky;
    top:        0;
    z-index:    100;
    background: rgba(var(--stk-bg-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stk-border);
    padding:    16px 20px;
    display:    flex;
    align-items: center;
    gap:        12px;
}

.stk-header__back {
    width:       36px;
    height:      36px;
    border-radius: var(--stk-radius-pill);
    background:  var(--stk-surface);
    border:      1px solid var(--stk-border);
    display:     flex;
    align-items: center;
    justify-content: center;
    cursor:      pointer;
    color:       var(--stk-text);
    transition:  all var(--stk-transition);
    flex-shrink: 0;
    font-size:   16px;
    text-decoration: none;
}

.stk-header__back:hover {
    background: var(--stk-border-hover);
    border-color: var(--stk-primary);
    color: var(--stk-primary);
}

.stk-header__title {
    flex: 1;
}

.stk-header__title h1 {
    font-size:   18px;
    font-weight: 600;
    margin:      0;
    color:       var(--stk-text);
    line-height: 1.2;
}

.stk-header__title p {
    font-size:  12px;
    color:      var(--stk-text-muted);
    margin:     2px 0 0;
}

.stk-header__actions {
    display:    flex;
    align-items: center;
    gap:        8px;
    flex-shrink: 0;
}

/* ── Cart Button ─────────────────────────────────────────────────────────── */
.stk-cart-btn {
    position:    relative;
    width:       40px;
    height:      40px;
    border-radius: var(--stk-radius-pill);
    background:  var(--stk-surface);
    border:      1px solid var(--stk-border);
    display:     flex;
    align-items: center;
    justify-content: center;
    cursor:      pointer;
    color:       var(--stk-text);
    font-size:   18px;
    transition:  all var(--stk-transition);
}

.stk-cart-btn:hover {
    border-color: var(--stk-primary);
    color:        var(--stk-primary);
}

.stk-cart-badge {
    position:    absolute;
    top:         -4px;
    right:       -4px;
    min-width:   18px;
    height:      18px;
    background:  var(--stk-danger);
    color:       #fff;
    font-size:   10px;
    font-weight: 700;
    border-radius: var(--stk-radius-pill);
    display:     flex;
    align-items: center;
    justify-content: center;
    padding:     0 4px;
    display:     none;
}

.stk-cart-badge.stk-visible { display: flex; }

/* ── Logo / Brand Header ─────────────────────────────────────────────────── */
.stk-brand-header {
    text-align:  center;
    padding:     48px 24px 32px;
}

.stk-brand-header img {
    height:      56px;
    width:       auto;
    margin-bottom: 12px;
}

.stk-brand-header h2 {
    font-size:   24px;
    font-weight: 700;
    margin:      0 0 6px;
    color:       var(--stk-text);
}

.stk-brand-header p {
    font-size:  14px;
    color:      var(--stk-text-muted);
    margin:     0;
}

/* ── Login Card ──────────────────────────────────────────────────────────── */
.stk-login-wrap {
    display:    flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding:    24px;
    background: var(--stk-bg);
}

.stk-login-card {
    width:       100%;
    max-width:   420px;
    background:  var(--stk-surface);
    border:      1px solid var(--stk-border);
    border-radius: var(--stk-radius-lg);
    padding:     40px 36px;
    box-shadow:  var(--stk-shadow);
}

.stk-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.stk-login-logo img {
    height:     52px;
    width:      auto;
}

.stk-login-logo .stk-brand-name {
    display:    block;
    font-size:  13px;
    color:      var(--stk-text-muted);
    margin-top: 8px;
}

.stk-login-card h2 {
    font-size:    20px;
    font-weight:  700;
    margin:       0 0 24px;
    color:        var(--stk-text);
    text-align:   center;
}

/* ── Form Elements ───────────────────────────────────────────────────────── */
.stk-field {
    margin-bottom: 16px;
}

.stk-label {
    display:     block;
    font-size:   12px;
    font-weight: 500;
    color:       var(--stk-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stk-input {
    width:        100%;
    background:   var(--stk-surface-2);
    border:       1px solid var(--stk-border);
    border-radius: var(--stk-radius-sm);
    color:        var(--stk-text);
    font-family:  var(--stk-font);
    font-size:    14px;
    padding:      12px 16px;
    outline:      none;
    transition:   border-color var(--stk-transition), box-shadow var(--stk-transition);
}

.stk-input:focus {
    border-color: var(--stk-primary);
    box-shadow:   0 0 0 3px rgba(var(--stk-primary-rgb), 0.15);
}

.stk-input::placeholder {
    color: var(--stk-text-dim);
}

textarea.stk-input {
    resize:      vertical;
    min-height:  100px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.stk-btn {
    display:      flex;
    align-items:  center;
    justify-content: center;
    gap:          8px;
    width:        100%;
    padding:      14px 24px;
    border-radius: var(--stk-radius-pill);
    border:       none;
    font-family:  var(--stk-font);
    font-size:    15px;
    font-weight:  600;
    cursor:       pointer;
    transition:   all var(--stk-transition);
    text-decoration: none;
    outline:      none;
}

.stk-btn--primary {
    background: var(--stk-primary);
    color:      #0f0f12;
}

.stk-btn--primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--stk-primary-rgb), 0.35);
}

.stk-btn--primary:active {
    transform: translateY(0);
}

.stk-btn--ghost {
    background:  transparent;
    color:       var(--stk-text-muted);
    border:      1px solid var(--stk-border);
}

.stk-btn--ghost:hover {
    border-color: var(--stk-primary);
    color:        var(--stk-primary);
}

.stk-btn--danger {
    background: rgba(var(--stk-danger-rgb), 0.12);
    color:      var(--stk-danger);
    border:     1px solid rgba(var(--stk-danger-rgb), 0.2);
}

.stk-btn--danger:hover {
    background: var(--stk-danger);
    color:      #fff;
}

.stk-btn:disabled,
.stk-btn.stk-loading {
    opacity: 0.5;
    cursor:  not-allowed;
    transform: none !important;
}

/* ── Error message ───────────────────────────────────────────────────────── */
.stk-error {
    color:        var(--stk-danger);
    font-size:    13px;
    margin-top:   8px;
    padding:      10px 14px;
    background:   rgba(var(--stk-danger-rgb), 0.1);
    border-radius: var(--stk-radius-sm);
    border:       1px solid rgba(var(--stk-danger-rgb), 0.2);
    display:      none;
}

.stk-error.stk-visible { display: block; }

/* ── Home — Container ────────────────────────────────────────────────────── */
.stk-home-wrap {
    padding: 0;
}

/* ── Month nav ───────────────────────────────────────────────────────────── */
.stk-month-nav {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    padding:     20px 20px 16px;
}

.stk-month-nav h2 {
    font-size:   20px;
    font-weight: 700;
    margin:      0;
    color:       var(--stk-text);
}

.stk-month-arrow {
    width:       36px;
    height:      36px;
    border-radius: var(--stk-radius-pill);
    background:  var(--stk-surface);
    border:      1px solid var(--stk-border);
    color:       var(--stk-text);
    display:     flex;
    align-items: center;
    justify-content: center;
    cursor:      pointer;
    font-size:   14px;
    transition:  all var(--stk-transition);
}

.stk-month-arrow:hover {
    border-color: var(--stk-primary);
    color:        var(--stk-primary);
}

/* ── Date List ───────────────────────────────────────────────────────────── */
.stk-date-list {
    padding: 0 16px;
}

.stk-date-item {
    display:       flex;
    align-items:   center;
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-md);
    padding:       16px 18px;
    margin-bottom: 8px;
    cursor:        pointer;
    transition:    all var(--stk-transition);
    gap:           12px;
    position:      relative;
    overflow:      hidden;
}

.stk-date-item::before {
    content:   '';
    position:  absolute;
    left:      0; top: 0; bottom: 0;
    width:     3px;
    background: transparent;
    transition: background var(--stk-transition);
    border-radius: 3px 0 0 3px;
}

.stk-date-item:hover {
    border-color: var(--stk-border-hover);
    transform:    translateX(2px);
    box-shadow:   var(--stk-shadow-sm);
}

.stk-date-item:hover::before {
    background: var(--stk-primary);
}

.stk-date-item--ordered::before {
    background: var(--stk-ordered);
}

.stk-date-item--concept::before {
    background: var(--stk-concept);
}

.stk-date-main {
    flex: 1;
    min-width: 0;
}

.stk-date-main h3 {
    font-size:   15px;
    font-weight: 600;
    color:       var(--stk-text);
    margin:      0 0 2px;
}

.stk-date-main .stk-date-sub {
    font-size:  12px;
    color:      var(--stk-text-muted);
    margin:     0;
}

.stk-date-meta {
    display:    flex;
    flex-direction: column;
    align-items: flex-end;
    gap:        4px;
    flex-shrink: 0;
}

/* ── Status Badges ───────────────────────────────────────────────────────── */
.stk-badge {
    display:       inline-flex;
    align-items:   center;
    padding:       3px 10px;
    border-radius: var(--stk-radius-pill);
    font-size:     11px;
    font-weight:   600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.stk-badge--ordered {
    background: rgba(var(--stk-ordered-rgb), 0.15);
    color:      var(--stk-ordered);
    border:     1px solid rgba(var(--stk-ordered-rgb), 0.25);
}

.stk-badge--concept {
    background: rgba(var(--stk-concept-rgb), 0.15);
    color:      var(--stk-concept);
    border:     1px solid rgba(var(--stk-concept-rgb), 0.25);
}

.stk-summary-text {
    font-size:  11px;
    color:      var(--stk-primary);
    font-weight: 500;
}

.stk-arrow-icon {
    color:    var(--stk-text-dim);
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Accordion Categories ────────────────────────────────────────────────── */
.stk-categories-wrap {
    padding: 12px 16px;
}

.stk-accordion {
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-md);
    margin-bottom: 8px;
    overflow:      hidden;
    transition:    border-color var(--stk-transition);
}

.stk-accordion:hover {
    border-color: var(--stk-border-hover);
}

.stk-accordion-header {
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    padding:       16px 18px;
    cursor:        pointer;
    user-select:   none;
    gap:           12px;
}

.stk-accordion-title {
    font-size:   15px;
    font-weight: 600;
    color:       var(--stk-text);
}

.stk-accordion-meta {
    font-size:  12px;
    color:      var(--stk-primary);
    font-weight: 500;
    margin-top: 2px;
}

.stk-accordion-chevron {
    color:      var(--stk-text-dim);
    font-size:  12px;
    transition: transform var(--stk-transition);
    flex-shrink: 0;
}

.stk-accordion--open .stk-accordion-chevron {
    transform: rotate(180deg);
}

.stk-accordion-body {
    max-height: 0;
    overflow:   hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stk-accordion--open .stk-accordion-body {
    max-height: 2000px;
}

/* ── Product Rows ────────────────────────────────────────────────────────── */
.stk-product-row {
    display:       flex;
    align-items:   center;
    padding:       14px 18px;
    border-top:    1px solid var(--stk-border);
    gap:           12px;
    transition:    background var(--stk-transition);
}

.stk-product-row:hover {
    background: rgba(var(--stk-text-rgb), 0.02);
}

.stk-product-info {
    flex: 1;
    min-width: 0;
}

.stk-product-title {
    font-size:   14px;
    font-weight: 500;
    color:       var(--stk-text);
    margin:      0 0 2px;
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
}

.stk-product-price {
    font-size:  12px;
    color:      var(--stk-text-muted);
    margin:     0;
}

/* ── Quantity Stepper ────────────────────────────────────────────────────── */
.stk-stepper {
    display:       flex;
    align-items:   center;
    background:    var(--stk-surface-2);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-pill);
    overflow:      hidden;
    transition:    all var(--stk-transition);
    flex-shrink:   0;
}

.stk-stepper--active {
    background:   rgba(var(--stk-primary-rgb), 0.12);
    border-color: rgba(var(--stk-primary-rgb), 0.4);
}

.stk-stepper__btn {
    width:       36px;
    height:      36px;
    display:     flex;
    align-items: center;
    justify-content: center;
    background:  transparent;
    border:      none;
    cursor:      pointer;
    color:       var(--stk-text-muted);
    font-size:   16px;
    font-weight: 700;
    padding:     0;
    transition:  color var(--stk-transition);
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.stk-stepper--active .stk-stepper__btn {
    color: var(--stk-primary);
}

.stk-stepper__btn:hover {
    color: var(--stk-primary) !important;
}

.stk-stepper__val {
    min-width:   28px;
    text-align:  center;
    font-size:   14px;
    font-weight: 600;
    color:       var(--stk-text);
    padding:     0 4px;
}

.stk-stepper--active .stk-stepper__val {
    color: var(--stk-primary);
}

/* ── Bottom Navigation ───────────────────────────────────────────────────── */
.stk-bottom-nav {
    position:    fixed;
    bottom:      20px;
    left:        50%;
    transform:   translateX(-50%);
    z-index:     200;
    background:  rgba(var(--stk-surface-rgb), 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border:      1px solid var(--stk-border);
    border-radius: var(--stk-radius-pill);
    padding:     8px 8px;
    display:     flex;
    gap:         4px;
    box-shadow:  var(--stk-shadow);
}

.stk-nav-btn {
    display:       flex;
    flex-direction: column;
    align-items:   center;
    gap:           3px;
    padding:       8px 20px;
    border-radius: var(--stk-radius-pill);
    background:    transparent;
    border:        none;
    cursor:        pointer;
    color:         var(--stk-text-muted);
    font-family:   var(--stk-font);
    font-size:     11px;
    font-weight:   500;
    transition:    all var(--stk-transition);
}

.stk-nav-btn svg,
.stk-nav-btn .stk-nav-icon {
    font-size: 18px;
    line-height: 1;
}

.stk-nav-btn:hover {
    color: var(--stk-text);
}

.stk-nav-btn--active {
    background: rgba(var(--stk-primary-rgb), 0.12);
    color:      var(--stk-primary) !important;
}

/* ── Checkout ────────────────────────────────────────────────────────────── */
.stk-checkout-wrap {
    padding: 20px 16px;
}

.stk-section {
    margin-bottom: 20px;
}

.stk-section-label {
    font-size:     11px;
    font-weight:   600;
    color:         var(--stk-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-left:  4px;
}

.stk-info-card {
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-md);
    overflow:      hidden;
}

.stk-info-row {
    padding:    14px 18px;
    border-bottom: 1px solid var(--stk-border);
}

.stk-info-row:last-child {
    border-bottom: none;
}

.stk-info-row__label {
    font-size:  12px;
    color:      var(--stk-text-muted);
    margin:     0 0 2px;
}

.stk-info-row__value {
    font-size:  14px;
    font-weight: 500;
    color:      var(--stk-text);
    margin:     0;
}

/* ── Cart Item Row ───────────────────────────────────────────────────────── */
.stk-cart-item {
    display:    flex;
    align-items: center;
    gap:        12px;
    padding:    14px 18px;
    border-bottom: 1px solid var(--stk-border);
}

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

.stk-cart-item-info {
    flex: 1;
    min-width: 0;
}

.stk-cart-item-title {
    font-size:   14px;
    font-weight: 500;
    color:       var(--stk-text);
    margin:      0 0 2px;
}

.stk-cart-item-sub {
    font-size: 12px;
    color:     var(--stk-text-muted);
    margin:    0;
}

/* ── Order Total ─────────────────────────────────────────────────────────── */
.stk-total-card {
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-md);
    padding:       16px 18px;
    margin-bottom: 16px;
}

.stk-total-row {
    display:     flex;
    justify-content: space-between;
    align-items: center;
    padding:     6px 0;
    font-size:   14px;
}

.stk-total-row + .stk-total-row {
    border-top: 1px solid var(--stk-border);
    padding-top: 12px;
    margin-top:  6px;
}

.stk-total-row--final {
    font-size:   18px;
    font-weight: 700;
}

.stk-total-row--final .stk-total-amount {
    color: var(--stk-primary);
}

.stk-total-label { color: var(--stk-text-muted); }
.stk-total-amount { color: var(--stk-text); font-weight: 600; }

/* ── Orders List ─────────────────────────────────────────────────────────── */
.stk-orders-wrap {
    padding: 20px 16px;
}

.stk-order-item {
    display:       flex;
    align-items:   center;
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-md);
    padding:       16px 18px;
    margin-bottom: 8px;
    cursor:        pointer;
    transition:    all var(--stk-transition);
    gap:           12px;
}

.stk-order-item:hover {
    border-color: var(--stk-border-hover);
    box-shadow:   var(--stk-shadow-sm);
}

.stk-order-info {
    flex: 1;
}

.stk-order-date {
    font-size:   15px;
    font-weight: 600;
    color:       var(--stk-text);
    margin:      0 0 2px;
}

.stk-order-meta {
    font-size:  12px;
    color:      var(--stk-text-muted);
    margin:     0;
}

/* ── Control / Users ─────────────────────────────────────────────────────── */
.stk-control-wrap {
    padding: 20px 16px;
}

.stk-user-accordion {
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-md);
    margin-bottom: 8px;
    overflow:      hidden;
}

.stk-user-header {
    display:       flex;
    align-items:   center;
    padding:       14px 18px;
    cursor:        pointer;
    gap:           12px;
}

.stk-user-avatar {
    width:         36px;
    height:        36px;
    border-radius: var(--stk-radius-pill);
    background:    rgba(var(--stk-primary-rgb), 0.15);
    color:         var(--stk-primary);
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-size:     14px;
    font-weight:   700;
    flex-shrink:   0;
}

.stk-user-info { flex: 1; }
.stk-user-name {
    font-size:   14px;
    font-weight: 600;
    color:       var(--stk-text);
    margin:      0 0 1px;
}
.stk-user-role {
    font-size:  12px;
    color:      var(--stk-text-muted);
    margin:     0;
}

/* ── Add User Form ───────────────────────────────────────────────────────── */
.stk-add-user-card {
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-md);
    margin-bottom: 8px;
    overflow:      hidden;
}

.stk-add-user-header {
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    padding:       14px 18px;
    cursor:        pointer;
    font-size:     15px;
    font-weight:   600;
    color:         var(--stk-text);
}

.stk-add-user-body {
    max-height: 0;
    overflow:   hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stk-add-user-body--open {
    max-height: 800px;
}

.stk-add-user-form {
    padding: 0 18px 18px;
}

/* ── Toast Notification ──────────────────────────────────────────────────── */
.stk-toast {
    position:      fixed;
    bottom:        90px;
    left:          50%;
    transform:     translateX(-50%) translateY(20px);
    background:    var(--stk-surface);
    border:        1px solid var(--stk-border);
    border-radius: var(--stk-radius-pill);
    padding:       12px 24px;
    font-size:     14px;
    font-weight:   500;
    color:         var(--stk-text);
    box-shadow:    var(--stk-shadow);
    z-index:       1000;
    opacity:       0;
    transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space:   nowrap;
}

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

.stk-toast--success { border-color: rgba(52, 211, 153, 0.4); color: var(--stk-ordered); }
.stk-toast--error   { border-color: rgba(255, 77, 109, 0.4); color: var(--stk-danger);  }

/* ── Loading Overlay ─────────────────────────────────────────────────────── */
.stk-loading-overlay {
    position:    fixed;
    inset:       0;
    background:  rgba(15, 15, 18, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index:     500;
    display:     flex;
    align-items: center;
    justify-content: center;
    opacity:     0;
    visibility:  hidden;
    transition:  all var(--stk-transition);
}

.stk-loading-overlay--visible {
    opacity:    1;
    visibility: visible;
}

.stk-spinner {
    width:       40px;
    height:      40px;
    border:      3px solid var(--stk-border);
    border-top-color: var(--stk-primary);
    border-radius: 50%;
    animation:   stk-spin 0.8s linear infinite;
}

@keyframes stk-spin {
    to { transform: rotate(360deg); }
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.stk-empty {
    text-align:  center;
    padding:     60px 24px;
    color:       var(--stk-text-muted);
}

.stk-empty-icon {
    font-size:    48px;
    margin-bottom: 16px;
    opacity:       0.4;
}

.stk-empty p {
    font-size:  15px;
    margin:     0;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.stk-divider {
    height:     1px;
    background: var(--stk-border);
    margin:     16px 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* --- Tablets & small desktops ------------------------------------------- */
@media (max-width: 600px) {
    /* Header */
    .stk-header { padding: 12px 16px; gap: 10px; }
    .stk-header__title h1 { font-size: 16px; }
    .stk-header__title p  { font-size: 11px; }

    /* Brand header */
    .stk-brand-header { padding: 32px 16px 24px; }
    .stk-brand-header h2 { font-size: 20px; }

    /* Date list */
    .stk-date-list { padding: 0 12px; }
    .stk-date-item { padding: 12px 14px; gap: 10px; border-radius: 12px; }
    .stk-date-main h3 { font-size: 14px; }

    /* Categories / Product rows */
    .stk-categories-wrap { padding: 8px 12px; }
    .stk-accordion-header { padding: 14px 14px; gap: 10px; }
    .stk-product-row { padding: 12px 14px; gap: 10px; }
    .stk-product-title { font-size: 13px; }
    .stk-product-price { font-size: 11px; }

    /* Stepper */
    .stk-stepper__btn { width: 32px; height: 32px; font-size: 14px; }
    .stk-stepper__val { font-size: 13px; min-width: 24px; }

    /* Checkout */
    .stk-checkout-wrap { padding: 16px 12px; }
    .stk-info-row { padding: 12px 14px; }
    .stk-cart-item { padding: 12px 14px; gap: 10px; }
    .stk-cart-item-title { font-size: 13px; }

    /* Total card */
    .stk-total-card { padding: 14px 14px; }
    .stk-total-row { font-size: 13px; }
    .stk-total-row--final { font-size: 16px; }

    /* Orders list */
    .stk-orders-wrap { padding: 16px 12px; }
    .stk-order-item { padding: 14px 14px; gap: 10px; }
    .stk-order-date { font-size: 14px; }

    /* Control / Users */
    .stk-control-wrap { padding: 16px 12px; }
    .stk-user-header { padding: 12px 14px; gap: 10px; }
    .stk-add-user-form { padding: 0 14px 14px; }

    /* Bottom nav */
    .stk-bottom-nav {
        width: calc(100% - 24px);
        justify-content: space-around;
        bottom: 12px;
        padding: 6px 6px;
    }
    .stk-nav-btn { padding: 8px 14px; font-size: 10px; }

    /* Buttons */
    .stk-btn { padding: 12px 20px; font-size: 14px; }

    /* Login */
    .stk-login-card { padding: 32px 24px; max-width: 100%; }

    /* Toast */
    .stk-toast {
        max-width: calc(100% - 32px);
        white-space: normal;
        text-align: center;
        font-size: 13px;
        bottom: 80px;
    }
}

/* --- Small phones ------------------------------------------------------- */
@media (max-width: 380px) {
    .stk-header { padding: 10px 12px; }
    .stk-header__title h1 { font-size: 15px; }
    .stk-header__back { width: 32px; height: 32px; font-size: 14px; }
    .stk-cart-btn { width: 36px; height: 36px; font-size: 16px; }

    .stk-date-list { padding: 0 10px; }
    .stk-date-item { padding: 10px 12px; }

    .stk-categories-wrap { padding: 6px 10px; }
    .stk-accordion-header { padding: 12px 12px; }
    .stk-product-row { padding: 10px 12px; }

    .stk-stepper__btn { width: 28px; height: 28px; }
    .stk-stepper__val { min-width: 20px; font-size: 12px; }

    .stk-bottom-nav { width: calc(100% - 16px); bottom: 8px; }
    .stk-nav-btn { padding: 6px 10px; gap: 2px; }

    .stk-login-card { padding: 24px 16px; border-radius: 16px; }
    .stk-login-card h2 { font-size: 18px; }
    .stk-input { padding: 10px 12px; font-size: 13px; }

    .stk-checkout-wrap { padding: 12px 10px; }
    .stk-total-row--final { font-size: 15px; }

    .stk-btn { padding: 11px 16px; font-size: 13px; }
}
