:root {
    --bg-color: #ffffff;
    --secondary-bg: #f4f4f4;
    --text-color: #000000;
    --hint-color: #555555;
    --accent-color: #000000;

    --card-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1), -2px -2px 8px rgba(255, 255, 255, 0.5);
    --card-shadow-active: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -2px -2px 6px rgba(255, 255, 255, 0.5);
    --inner-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
    --input-focus-shadow: 0 0 0 2px #9c9c9c, 2px 2px 5px rgba(0,0,0,0.1);
}

@font-face {
    font-family: 'CustomFont';
    src: url('../assets/fonts/himalaya.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block; /* Предотвращает невидимый текст при загрузке */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-color);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s linear, visibility 0.25s;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) !important;
    z-index: 20;
}

#brand-screen { transform: translate3d(-100%, 0, 0); }

#catalog-screen, #cart-screen, #orders-screen {
    display: flex;
    flex-direction: column;
}

#cart-screen { transform: translate3d(100%, 0, 0); }
#product-screen, #checkout-screen, #qr-screen { transform: translate3d(0, 20px, 0); }

#product-screen, #brand-screen, #checkout-screen, #qr-screen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.menu-hamburger-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-hamburger-btn:active {
    box-shadow: var(--card-shadow-active);
    transform: scale(0.96);
}

.menu-hamburger-btn svg {
    width: 60%;
    height: 60%;
    stroke: var(--text-color);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke 0.1s ease;
}

.menu-hamburger-btn:active svg {
    stroke: var(--accent-color);
}

.main-title-name {
    font-family: 'CustomFont', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-color);
}

.main-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.cart-icon-container {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 7px;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-container:active {
    box-shadow: var(--card-shadow-active);
    transform: scale(0.96);
}

.cart-icon-container svg {
    width: 58%;
    height: 58%;
    fill: var(--text-color);
    transition: fill 0.1s ease;
}

.cart-icon-container:active svg { fill: var(--accent-color); }

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 30%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1.5px solid var(--secondary-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: 16px;
    padding: 16px 16px 40px 16px;
    background-color: var(--bg-color);
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.product-card {
    background: transparent;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.15s ease;
    border: none;
}

.product-card:active {
    transform: scale(0.97);
    box-shadow: none;
}

.product-card-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 7px;

}

.product-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    padding: 8px 2px;
    background: transparent;
    text-align: center;
}

.product-card-info h3 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1px;
    color: var(--text-color);
}

.product-card-price-container {
    display: flex;
    align-items: center;
    margin-bottom: 1px;
    width: 100%;
}

.product-card-price-container.center { justify-content: center; }
.product-card-price-container.space-between { justify-content: center; gap: 8px; padding: 1px; }

.product-card-info .price {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-color);
}

.product-card-info .old-price {
    font-size: 12px;
    font-weight: 400;
    color: var(--hint-color);
    text-decoration: line-through;
}

.product-status {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}
.status-out { color: #ff3b30; }
.status-preorder { color: #34c759; }
.status-in-stock { color: #34c759; }

.carousel-container {
    position: relative;
    width: calc(100% - 32px);
    margin: 16px auto 0;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 7px;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255,255,255,0.05);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 10%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dots .dot.active {
    background: var(--accent-color);
    transform: scale(1.25);
}

.product-info-box {
    padding: 28px 16px;
    background: var(--secondary-bg);
    border-radius: 24px 24px 0 0;
    margin-top: 20px;
    position: relative;
    z-index: 5;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.product-info-box h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.product-screen-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-out { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }
.badge-preorder { background: rgba(52, 199, 89, 0.1); color: #34c759; }
.badge-in-stock { background: rgba(52, 199, 89, 0.1); color: #34c759; }

.product-screen-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.product-screen-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
}

.product-screen-old-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--hint-color);
    text-decoration: line-through;
}

.size-section, .description-section { margin-bottom: 24px; }
.size-section label, .description-section label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--hint-color);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}
.desc-header {
    display: inline-block;
    font-weight: 700;       /* Жирный шрифт */
    font-size: 15px;        /* Чуть больший размер (базовый обычно ~13px-14px) */
    margin-top: 8px;        /* Небольшой отступ сверху для читаемости */
    color: var(--text-color);
}

.size-selector { display: flex; gap: 14px; }
.size-chip {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(0,0,0,0.02);
    border-color: var(--accent-color);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--bg-color);
    color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.size-chip.selected {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: none;
    transform: scale(0.95);
}

.size-chip.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.01);
    color: var(--hint-color);
    box-shadow: none;
    pointer-events: none;
}

.out-of-stock-notice {
    width: 100%;
    height: 52px;
    background: #1c1c1e;
    color: var(--hint-color);
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
    letter-spacing: 0.3px;
}

.action-buttons-container {
    width: 100%;
    height: 52px;
    position: relative;
    margin-bottom: 24px;
}

.main-action-btn {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: block;
    box-shadow: 0 4px 16px rgba(36, 129, 204, 0.3);
}

.main-action-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.split-action-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.split-quantity-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 7px;
    padding: 0 8px;
    height: 100%;
    box-shadow: var(--inner-shadow);
}

.split-quantity-picker button {
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-quantity-picker span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.go-to-cart-btn {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 4px 16px rgba(36, 129, 204, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-items-container, #orders-container {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-color);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

#cart-items-container {
    padding: 0 16px 140px;
}

#orders-container {
    padding: 0 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-cart-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    animation: fadeInEmptyCart 0.3s ease-out forwards;
}

.empty-cart-msg svg {
    width: 80px;
    height: 80px;
    fill: var(--hint-color);
    margin-bottom: 16px;
}

.empty-cart-msg span {
    font-size: 16px;
    font-weight: 600;
    color: var(--hint-color);
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

@keyframes fadeInEmptyCart {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-item {
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    padding: 14px;
    border-radius: 7px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.cart-item img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 7px;
    margin-right: 14px;
}

.cart-item-details { flex-grow: 1; }

.cart-item-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.cart-item-meta {
    font-size: 12px;
    color: var(--hint-color);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-color);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.quantity-picker {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 7px;
    padding: 3px;
    box-shadow: var(--inner-shadow);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.quantity-picker button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
}

.quantity-picker span {
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.delete-item-btn {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cart-summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 40px;
    padding-right: 40px;
    padding-left: 40px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: var(--bg-color);
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 100;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
}

.checkout-btn {
    width: 100%;
    height: 52px;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.checkout-btn.disabled {
    background: #1c1c1e;
    color: #48484a;
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.checkout-container {
    padding: 16px;
    background-color: var(--bg-color);
}

.checkout-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--hint-color);
    margin: 24px 0 8px 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.checkout-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-input {
    width: 100%;
    height: 54px;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    padding: 0 16px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    padding: 16px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
    resize: none;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--hint-color);
    transition: opacity 0.15s ease;
    opacity: 1;
}

.form-input:focus::placeholder, .form-textarea:focus::placeholder { opacity: 0; }

.form-input:focus, .form-textarea:focus {
    border-color: var(--secondary-bg);
    box-shadow: var(--input-focus-shadow);
    background: var(--secondary-bg);
}

.form-group-info {
    font-size: 13px;
    color: var(--hint-color);
    line-height: 1.5;
    margin-top: 8px;
    padding-left: 4px;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    pointer-events: none;
}

.phone-input-padding { padding-left: 42px !important; }

.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    padding: 16px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.15s ease;
}

.radio-label:active {
    transform: scale(0.98);
    box-shadow: var(--card-shadow-active);
}

.radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--hint-color);
    border-radius: 50%;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-input:checked + .custom-radio {
    border-color: var(--accent-color);
    background: transparent;
}

.custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.radio-input:checked + .custom-radio::after {
    opacity: 1;
    transform: scale(1);
}

.input-title {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 4px;
}

.submit-order-btn {
    width: 100%;
    height: 52px;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(36, 129, 204, 0.3);
}

.submit-order-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.qr-container {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-card {
    background: var(--bg-color);
    border-radius: 7px;
    padding: 24px;
    margin: 16px 0 28px 0;

    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-image-wrapper {
    width: 220px;
    height: 220px;
    background: #ffffff;
    border-radius: 7px;
    padding: 12px;

}

.qr-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-amount-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--hint-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.qr-amount-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
}

.qr-instructions {
    font-size: 14px;
    color: #a1a1a6;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 280px;
}

.brand-screen-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-main-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 24px;
    background: #080809;
}

.brand-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text-card {
    background: linear-gradient(145deg, #ffffff, #d9d9d9);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 28px;
    width: 100%;
}

.brand-text-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.brand-text-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #a1a1a6;
}

.brand-links-container {
    width: 100%;
    display: flex;
    margin-bottom: 24px;
    flex-direction: column;
    gap: 14px;
}

.brand-social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-social-link:active {
    transform: scale(0.98);
    box-shadow: var(--card-shadow-active);
}

.brand-social-link svg {
    width: 22px;
    height: 22px;
    fill: var(--text-color);
}

.brand-social-link:active svg { fill: var(--accent-color); }

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.lightbox-modal.active { display: flex; }

.lightbox-container {
    position: relative;
    width: 100%;
    height: 70%;
    overflow: hidden;
}

.lightbox-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--hint-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2010;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 52px;
    height: 52px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2020;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn:active {
    transform: translateY(-50%) scale(0.92);
    background: rgba(36, 129, 204, 0.3);
    border-color: var(--accent-color);
}

.lightbox-nav-btn.prev { left: 24px; right: auto; }
.lightbox-nav-btn.next { right: 24px; left: auto; }

/* Оверлей (задний фон модального окна) */
.custom-alert-overlay {
    background-color: rgba(0, 0, 0, 0.3) !important;
    z-index: 3000 !important;

    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Контейнер самого алерта */
.custom-alert-container {
    background: var(--secondary-bg);
    width: 85%;
    max-width: 320px;
    padding: 24px;
    border-radius: 7px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Текст уведомления */
.custom-alert-message {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

/* Кнопка подтверждения */
.custom-alert-submit {
    height: 44px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .lightbox-nav-btn.prev { left: 12px; right: auto; }
    .lightbox-nav-btn.next { right: 12px; left: auto; }
}

/* Загрузка, ошибки, заказы */
.loading-msg {
    text-align: center;
    padding: 40px;
    color: var(--hint-color);
    font-weight: 600;
}

.loading-msg .main-action-btn { margin-top: 16px; }
.error-msg { color: #ff3b30; }

.submit-order-btn:disabled { opacity: 0.6; }

.order-card {
    flex-direction: column;
    align-items: stretch;
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.order-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-color);
}

.order-status {
    font-size: 12px;
    font-weight: 700;
    color: var(--hint-color);
}

.order-status-active { color: #34c759; }

.order-track {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--accent-color);
    font-weight: 700;
}

.order-details {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.5;
    white-space: pre-wrap;
    background: var(--bg-color);
    padding: 12px;
    border-radius: 7px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
