/**
 * Аренда Стиля - PWA Mobile App Styles
 * v1.0.0
 */

/* === THEME === */
:root {
    --bg: #ffffff;
    --text: #000000;
    --hint: #999999;
    --link: #C9A962;
    --btn: #C9A962;
    --btn-text: #ffffff;
    --secondary: #f4f4f5;
    --gold: #C9A962;
    --gold-dark: #b8954d;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 12px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a2e;
        --text: #ffffff;
        --hint: #888888;
        --secondary: #2a2a4e;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

.app {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(70px + var(--safe-bottom));
    padding-top: var(--safe-top);
}

/* === INSTALL BANNER === */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gold), #E8D5A3);
    z-index: 3000;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-top));
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.install-banner__content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.install-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.install-banner__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.install-banner__text {
    flex: 1;
    color: #fff;
}

.install-banner__text strong {
    display: block;
    font-size: 14px;
}

.install-banner__text span {
    font-size: 12px;
    opacity: 0.9;
}

.install-banner__btn {
    padding: 8px 16px;
    background: #fff;
    color: var(--gold);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

.install-banner__close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* === iOS INSTALL PROMPT === */
.ios-install-prompt {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2500;
}

.ios-install-prompt__content {
    position: relative;
}

.ios-install-prompt__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
}

.ios-install-prompt p {
    font-weight: 600;
    margin-bottom: 12px;
}

.ios-install-prompt ol {
    padding-left: 20px;
    font-size: 14px;
    color: var(--hint);
}

.ios-install-prompt li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-install-prompt svg {
    vertical-align: middle;
}

/* === UPDATE TOAST === */
.update-toast {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom));
    left: 16px;
    right: 16px;
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2500;
    animation: slideUp 0.3s ease;
}

.update-toast__btn {
    padding: 6px 16px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--bg);
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 4px;
    padding-bottom: max(4px, var(--safe-bottom));
}

.nav__btn {
    flex: 1;
    padding: 6px 4px;
    border: none;
    background: none;
    color: var(--hint);
    font-size: 10px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav__btn.active { color: var(--gold); }

.nav__icon {
    width: 24px;
    height: 24px;
}

.nav__badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(16px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
}

.nav__badge.show { display: flex; }

/* === TABS === */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === HEADER === */
.header {
    background: linear-gradient(135deg, var(--gold), #E8D5A3);
    color: #fff;
    padding: 24px 16px;
    text-align: center;
}

.header__title { font-size: 24px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.header__subtitle { font-size: 14px; opacity: 0.9; margin-top: 4px; }

/* === CATEGORIES === */
.categories {
    background: var(--secondary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.categories__scroll {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories__scroll::-webkit-scrollbar { display: none; }

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn:active { transform: scale(0.95); }
.category-btn.active { background: var(--gold); color: #fff; }

/* === BLOCKS (Sub-categories) === */
.blocks {
    background: var(--bg);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.blocks__scroll {
    display: flex;
    gap: 6px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.blocks__scroll::-webkit-scrollbar { display: none; }

.block-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--gold);
    border-radius: 16px;
    background: transparent;
    color: var(--gold);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.block-btn.active {
    background: var(--gold);
    color: #fff;
}

/* === CATALOG SECTIONS === */
.catalog__category-header {
    grid-column: 1 / -1;
    padding: 20px 0 8px;
    margin-top: 8px;
    border-top: 2px solid var(--gold);
}

.catalog__category-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
}

.catalog__section-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 8px;
    margin-top: 8px;
}

.catalog__section-header--compact {
    padding: 12px 0 6px;
    margin-top: 4px;
}

.catalog__section-header h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.catalog__section-header--compact h3 {
    font-size: 14px;
    color: var(--hint);
}

.catalog__section-count {
    font-size: 12px;
    color: var(--hint);
    background: var(--secondary);
    padding: 2px 8px;
    border-radius: 10px;
}

/* === SEARCH === */
.search { padding: 12px 16px; }

.search__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--secondary);
    color: var(--text);
    -webkit-appearance: none;
}

.search__input:focus { border-color: var(--gold); outline: none; }

/* === CATALOG === */
.catalog { padding: 0 16px 16px; }

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.catalog__loading { text-align: center; padding: 40px; color: var(--hint); }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--secondary);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

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

/* === PRODUCT CARD === */
.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card:active { transform: scale(0.98); }

.product-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--secondary);
}

.product-card__info { padding: 10px; }

.product-card__title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price { font-size: 15px; font-weight: 700; color: var(--gold); }

.product-card__add-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.product-card__add-btn:active { background: var(--gold-dark); }

/* === PAGE TITLE === */
.page-title {
    font-size: 20px;
    font-weight: 700;
    padding: 20px 16px 12px;
}

/* === CART === */
.cart-page { padding: 0 16px 16px; }

.cart-items { margin-bottom: 16px; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.cart-item__image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cart-item__price { font-size: 14px; color: var(--gold); font-weight: 600; }

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item__qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    background: var(--bg);
    font-size: 16px;
    cursor: pointer;
}

.cart-item__qty { font-weight: 600; min-width: 24px; text-align: center; }

.cart-item__qty-input {
    width: 50px;
    padding: 4px 2px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
}

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

.cart-item__remove {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #ff3b30;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--hint);
}

/* === RENTAL CALCULATOR === */
.rental-calc {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.rental-calc h3 { font-size: 16px; margin-bottom: 12px; }

.rental-calc__dates {
    margin-bottom: 16px;
}

.rental-calc__result { margin-bottom: 16px; }

.rental-calc__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rental-calc__row--total {
    font-size: 18px;
    font-weight: 700;
    border-bottom: none;
    color: var(--gold);
}

/* === DELIVERY INFO === */
.delivery-info {
    background: linear-gradient(135deg, #fff8e6 0%, #fff5dc 100%);
    border: 1px solid #f0c36d;
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}

.delivery-info__title {
    font-weight: 600;
    color: #8a6d3b;
    margin-bottom: 12px;
    font-size: 15px;
}

.delivery-info__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-info__item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.delivery-info__zone { color: #666; }
.delivery-info__price { font-weight: 600; color: var(--gold-dark); }

.delivery-info__note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #f0c36d;
    font-size: 12px;
    color: #8a6d3b;
    line-height: 1.4;
}

/* === AUTH PROMPT === */
.auth-prompt {
    text-align: center;
    padding: 40px 20px;
    color: var(--hint);
}

.auth-prompt__icon {
    margin-bottom: 16px;
    color: var(--secondary);
}

.auth-prompt p {
    margin-bottom: 16px;
}

/* === ORDERS === */
.orders-page { padding: 0 16px 16px; }

.order-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.order-card:active { transform: scale(0.98); }

.order-card__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.order-card__id { font-weight: 600; }

.order-card__status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.order-card__status--request { background: #fff3cd; color: #856404; }
.order-card__status--confirmed { background: #d4edda; color: #155724; }
.order-card__status--completed { background: #cce5ff; color: #004085; }
.order-card__status--cancelled { background: #f8d7da; color: #721c24; }
.order-card__status--in_delivery { background: #e2e3ff; color: #383d8a; }

.order-card__items { font-size: 14px; color: var(--hint); margin-bottom: 8px; }
.order-card__total { font-weight: 600; color: var(--gold); }

.orders-empty, .orders-loading { text-align: center; padding: 40px; color: var(--hint); }

/* === PROFILE === */
.profile-page { padding: 0 16px 16px; }

.profile-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--hint);
}

.profile-loading { padding: 40px 0; }

.profile-form {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.profile-info {
    margin: 16px 0;
    padding: 16px;
    background: var(--secondary);
    border-radius: 8px;
}

.profile-info__item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.profile-info__item + .profile-info__item {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.profile-info__label { color: var(--hint); font-size: 14px; }
.profile-info__value { font-weight: 600; color: var(--gold); }

.profile-contacts {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-contacts__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.profile-contact-link {
    display: block;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.profile-contact-link:last-child { border-bottom: none; }

a.profile-contact-link:active { color: var(--gold); }

.profile-contact-link--telegram {
    background: linear-gradient(135deg, #229ED9 0%, #1E96C8 100%);
    color: #fff !important;
    border-radius: 8px;
    padding: 12px 16px !important;
    margin: 8px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: none !important;
}

.profile-contact-link--telegram:active {
    background: linear-gradient(135deg, #1E96C8 0%, #1A88B8 100%);
    color: #fff !important;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.modal.active { display: block; }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal__content--full { max-height: 95vh; }

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.modal__body {
    padding: 20px;
    padding-top: 48px;
    padding-bottom: calc(20px + var(--safe-bottom));
    overflow-y: auto;
    max-height: calc(90vh - 20px);
    -webkit-overflow-scrolling: touch;
}

.modal__title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.modal__subtitle { font-size: 14px; color: var(--hint); margin-bottom: 16px; line-height: 1.5; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* === ITEM DETAIL === */
.item-detail__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.item-detail__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.item-detail__price { font-size: 24px; font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.item-detail__availability { font-size: 14px; color: var(--hint); margin-bottom: 16px; }
.item-detail__description { font-size: 14px; color: var(--hint); margin-bottom: 16px; line-height: 1.6; }

.item-detail__quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.item-detail__qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: var(--bg);
    font-size: 20px;
    cursor: pointer;
}

.item-detail__qty-value { font-size: 20px; font-weight: 600; min-width: 40px; text-align: center; }

.item-detail__qty-input {
    width: 70px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: var(--bg);
    -moz-appearance: textfield;
}
.item-detail__qty-input::-webkit-outer-spin-button,
.item-detail__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* === FORM === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--hint); margin-bottom: 6px; }

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    -webkit-appearance: none;
}

.form-input:focus { border-color: var(--gold); outline: none; }

.form-input--error {
    border-color: #f44336 !important;
    background: #fff5f5;
}

.form-input--error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

/* Fix for long text inputs - address field */
.form-input[type="text"] {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.form-input[type="text"]:focus {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

select.form-input { cursor: pointer; }

textarea.form-input { resize: vertical; min-height: 80px; }

input[readonly] {
    background: var(--secondary);
    color: var(--hint);
    cursor: not-allowed;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group--half { flex: 1; }

/* === BUTTONS === */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:active { background: var(--gold-dark); }
.btn--secondary { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn--secondary:active { background: var(--gold); color: #fff; }
.btn--danger { background: #f44336; color: #fff; }
.btn--danger:active { background: #d32f2f; }
.btn--full { width: 100%; }

/* === ORDER SUMMARY === */
.order-summary {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}

.order-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.order-summary__row--total {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 12px;
    margin-top: 8px;
}

/* === ORDER DETAILS === */
.order-detail__status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.order-detail__section {
    background: var(--secondary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.order-detail__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.order-detail__row:last-child { border-bottom: none; }

.order-detail__row--total {
    font-weight: 600;
    font-size: 16px;
    color: var(--gold);
    border-bottom: none;
    padding-top: 12px;
}

.order-detail__label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-detail__items {
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
}

.order-detail__item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--secondary);
}

.order-detail__item:last-child { border-bottom: none; }

.order-detail__total {
    background: var(--secondary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.order-detail__driver {
    background: #f5f9f5;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 12px;
}

.order-detail__delivery {
    background: #fff8e6;
    border: 1px solid #f0c36d;
    border-radius: 8px;
    padding: 12px;
}

.order-detail__link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.order-detail__payment--paid { color: #4caf50; }
.order-detail__payment--partial { color: #ff9800; }
.order-detail__payment--not_paid { color: #f44336; }

.order-detail__row--discount {
    color: #4caf50;
    font-size: 14px;
}

.order-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

/* === LOGIN === */
.login-alt {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.login-alt span {
    color: var(--hint);
    font-size: 14px;
}

/* === NOTIFICATION === */
.notification {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 3000;
    animation: fadeInOut 2s ease forwards;
    max-width: calc(100% - 32px);
    text-align: center;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* === PROFILE BUTTONS === */
.profile-card .btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.profile-card .btn + .btn {
    margin-top: 12px;
}

.profile-form .btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.profile-form .btn + .btn,
.profile-form a.btn {
    margin-top: 12px;
}

/* Reset inline styles for profile buttons */
.profile-form #saveProfileBtn,
.profile-form #logoutBtn,
.profile-form a[href*="changepassword"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* === MEDIA QUERIES === */
@media (min-width: 500px) {
    .catalog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .catalog__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .app {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
    }

    .nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }
}
