*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050608;
    color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(255, 165, 0, 0.13), transparent 45%),
                radial-gradient(circle at bottom right, rgba(255, 215, 0, 0.09), transparent 50%),
                #050608;
    color: #f5f5f5;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5vw;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.85), transparent);
    border-bottom: 1px solid rgba(255, 215, 0, 0.14);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffd27f, #ff9f1c 40%, #3b2c10 90%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050608;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        0 0 22px rgba(255, 186, 73, 0.85);
}

.logo-mark-image {
    padding: 0;
    background: radial-gradient(circle at 30% 20%, #111827, #020617);
}

.logo-mark-image img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.logo-subtitle {
    font-size: 11px;
    color: #9ca3af;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #d1d5db;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #facc15);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-sep {
    color: rgba(156, 163, 175, 0.7);
    font-size: 14px;
    margin: 0 2px;
    user-select: none;
    font-weight: 300;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.icon-button-sm {
    font-size: 16px;
    color: #d1d5db;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 30% 20%, rgba(254, 215, 170, 0.4), rgba(31, 41, 55, 0.9));
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 0 14px rgba(249, 115, 22, 0.4);
}

.icon-circle.icon-admin {
    border-color: rgba(250, 204, 21, 0.8);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 0 14px rgba(250, 204, 21, 0.4);
}

.icon-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.icon-circle.icon-cart .icon-svg {
    color: #111827;
}

.icon-circle.icon-admin .icon-svg {
    color: #111827;
}

.icon-circle.icon-whatsapp .icon-svg {
    color: #052e16;
}

.icon-button:hover .icon-circle {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 0 20px rgba(249, 115, 22, 0.8);
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #facc15);
    color: #050608;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(248, 181, 43, 0.9);
}

.main {
    padding: 24px 5vw 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 0 40px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 52px);
    margin: 0 0 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Cinzel", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(90deg, #f9fafb, #facc15);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-content p {
    margin: 0 auto;
    color: #d1d5db;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-highlight {
    border-radius: 18px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 20px 20px 22px;
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.13), rgba(15, 23, 42, 0.98));
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.95),
        0 20px 45px rgba(15, 23, 42, 0.95);
}

.hero-line {
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #facc15);
    margin-bottom: 10px;
}

.hero-highlight p {
    margin: 0;
    font-size: 14px;
    color: #e5e7eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
    background: linear-gradient(120deg, #f97316, #facc15);
    color: #111827;
    border-color: rgba(241, 137, 26, 0.7);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 10px 25px rgba(249, 115, 22, 0.5);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 14px 35px rgba(249, 115, 22, 0.7);
}

.btn-outline {
    border-color: rgba(249, 115, 22, 0.7);
    color: #f97316;
    background: rgba(15, 23, 42, 0.8);
}

.btn-outline:hover:not(:disabled) {
    background: linear-gradient(120deg, rgba(249, 115, 22, 0.1), rgba(250, 204, 21, 0.12));
    color: #fed7aa;
}

.btn-added {
    border-color: rgba(34, 197, 94, 0.7);
    background: rgba(22, 163, 74, 0.15);
    color: #bbf7d0;
}

.btn-added:hover:not(:disabled) {
    background: rgba(22, 163, 74, 0.25);
}

.btn-ghost {
    border-color: rgba(55, 65, 81, 0.8);
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.btn-ghost:hover:not(:disabled) {
    border-color: rgba(156, 163, 175, 0.9);
}

.btn-xs {
    padding: 4px 10px;
    font-size: 11px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.section {
    padding: 40px 0 32px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.catalog-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    flex-wrap: wrap;
}

.catalog-intro-center {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.catalog-intro-desc {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.catalog-intro-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(156, 163, 175, 0.85);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 20px;
    margin: 0 0 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.section-header p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.tabs {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.95);
}

.tabs-inline {
    margin-top: 18px;
}

.tab {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.tab-active {
    background: linear-gradient(120deg, rgba(249, 115, 22, 0.16), rgba(250, 204, 21, 0.18));
    color: #fef3c7;
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.4),
        0 10px 20px rgba(15, 23, 42, 0.9);
}

.tab-panels {
    margin-top: 18px;
}

.tab-panel {
    display: none;
}

.tab-panel-active {
    display: block;
}

.brand-filter-scroll {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px 6px;
    overflow-x: auto;
}

.brand-filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.brand-filter-scroll::-webkit-scrollbar-thumb {
    background: rgba(55, 65, 81, 0.9);
    border-radius: 999px;
}

.brand-filter {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.brand-filter-active {
    background: linear-gradient(120deg, rgba(249, 115, 22, 0.16), rgba(250, 204, 21, 0.18));
    color: #fef3c7;
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.4),
        0 10px 20px rgba(15, 23, 42, 0.9);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.cards-grid-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    border-radius: 18px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: radial-gradient(circle at top, rgba(17, 24, 39, 0.95), #020617);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 18px 38px rgba(15, 23, 42, 0.85);
    position: relative;
}

.card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at center, rgba(55, 65, 81, 0.8), #020617);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(0.9);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(250, 204, 21, 0.18), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.card-body {
    padding: 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    margin: 0;
    font-size: 15px;
}

.card-description {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    min-height: 40px;
}

.card-brand .card-description {
    min-height: 0;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.card-footer .card-price {
    font-weight: 600;
    color: #fbbf24;
    font-size: 15px;
    white-space: nowrap;
}

.card-footer .btn {
    font-size: 11px;
    padding: 6px 12px;
    white-space: nowrap;
}

.card-price {
    font-weight: 600;
    color: #fbbf24;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 28px;
}

.section-text h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.section-text p {
    margin: 0 0 8px;
    color: #d1d5db;
    font-size: 14px;
}

.section-side {
    border-radius: 18px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    padding: 16px 16px 18px;
    background: radial-gradient(circle at top, rgba(24, 24, 27, 0.95), #020617);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 13px;
    color: #9ca3af;
}

.stat-value {
    font-size: 15px;
    color: #fbbf24;
}

.guarantee-block {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.guarantee-block .stat {
    gap: 8px;
}

.contacts-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    font-size: 14px;
}

.contacts-grid p {
    margin: 0 0 6px;
}

.contacts-grid a {
    color: #fbbf24;
}

.brand-models-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.brand-models-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand-model-name {
    color: #e5e7eb;
}

.brand-model-price {
    color: #fbbf24;
}

.admin-section {
    margin-top: 12px;
}

.admin-login-form,
.admin-form {
    margin-top: 14px;
    max-width: 540px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 24px;
    margin-top: 18px;
}

.admin-block h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}

.field-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.95);
    color: #f9fafb;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(249, 115, 22, 0.9);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.5);
}

.admin-form-inline {
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    padding: 10px 12px 10px;
    background: rgba(15, 23, 42, 0.9);
    margin-bottom: 10px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 10px;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.admin-actions {
    margin-top: 10px;
}

.admin-product-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-product-item {
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-product-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(31, 41, 55, 0.9), #020617);
    flex-shrink: 0;
}

.admin-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.admin-product-title {
    font-size: 13px;
    color: #e5e7eb;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.admin-product-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.admin-product-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.error-text {
    color: #f97316;
    font-size: 13px;
    margin: 4px 0 0;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 90vw;
    background: radial-gradient(circle at top, rgba(17, 24, 39, 0.98), #020617);
    border-left: 1px solid rgba(31, 41, 55, 0.95);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.85);
    transform: translateX(100%);
    transition: transform 0.2s ease-out;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.cart-panel-open {
    transform: translateX(0%);
}

.cart-panel-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
}

.cart-panel-header h2 {
    margin: 0;
    font-size: 16px;
}

.cart-panel-body {
    padding: 12px 14px;
    flex: 1;
    overflow: auto;
}

.cart-panel-footer {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(31, 41, 55, 0.95);
}

.cart-empty {
    color: #9ca3af;
    font-size: 14px;
}

.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    border-radius: 12px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(31, 41, 55, 0.8);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 13px;
}

.cart-item-meta {
    font-size: 12px;
    color: #9ca3af;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: #facc15;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer {
    padding: 16px 5vw 20px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.footer-contact {
    max-width: 640px;
    margin: 0 auto 16px;
    font-size: 13px;
    color: #9ca3af;
}

.footer-contact p {
    margin: 0 0 4px;
}

.footer-contact a {
    color: #fbbf24;
}

.footer-line {
    width: 68px;
    height: 2px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4b5563, #f97316);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.modal-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(17, 24, 39, 0.9), rgba(0, 0, 0, 0.96));
    backdrop-filter: blur(6px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    border-radius: 18px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: radial-gradient(circle at top, rgba(24, 24, 27, 0.98), #020617);
    padding: 16px 16px 16px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 26px 60px rgba(0, 0, 0, 0.95);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
}

.modal-body {
    font-size: 14px;
}

.modal-text {
    margin: 0 0 10px;
    color: #9ca3af;
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 55;
}

.image-modal-open {
    display: flex;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(4px);
}

.image-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 900px);
    max-height: min(90vh, 720px);
    border-radius: 18px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: radial-gradient(circle at top, rgba(17, 24, 39, 0.98), #020617);
    padding: 0;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 26px 60px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.image-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

.image-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #f3f4f6;
}

.image-modal-layout {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
    min-height: 0;
    flex: 1;
    padding: 14px 16px 0;
    max-height: 280px;
}

.image-modal-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
}

.image-modal-img {
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-modal-collage {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 72px;
    flex-shrink: 0;
}

.image-modal-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.9);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.image-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-modal-thumb-active {
    border-color: rgba(249, 115, 22, 0.9);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.5);
}

.image-modal-close {
    flex-shrink: 0;
}

.image-modal-card {
    padding: 14px 16px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(55, 65, 81, 0.6);
    background: rgba(15, 23, 42, 0.35);
}

.image-modal-description {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.45;
}

.image-modal-specs {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-size: 13px;
    align-items: baseline;
}

.image-modal-specs dt {
    margin: 0;
    color: #9ca3af;
    font-weight: 500;
}

.image-modal-specs dd {
    margin: 0;
    color: #e5e7eb;
}

.image-modal-no-specs {
    grid-column: 1 / -1;
    color: #6b7280;
    font-style: italic;
}

.image-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    min-height: 44px;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.image-modal-price {
    font-weight: 600;
    font-size: 15px;
    color: #fbbf24;
    white-space: nowrap;
}

.modal-stats {
    margin-top: 14px;
}

.icon-whatsapp {
    border-color: rgba(34, 197, 94, 0.85);
    background: radial-gradient(circle at 30% 20%, rgba(187, 247, 208, 0.8), rgba(22, 163, 74, 0.95));
    box-shadow:
        0 0 0 1px rgba(6, 95, 70, 0.9),
        0 0 16px rgba(34, 197, 94, 0.7);
}

.whatsapp-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #052e16;
    position: relative;
}

.whatsapp-logo::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 8px;
    border-radius: 6px;
    border: 2px solid #052e16;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(40deg);
    top: 2px;
    left: 3px;
}

@media (max-width: 960px) {
    .nav {
        display: none;
    }

    .hero {
        padding: 24px 16px 32px;
    }

    .section-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {
    .main {
        padding-inline: 16px;
    }

    .header {
        padding-inline: 16px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .modal-dialog,
    .image-modal-dialog {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 80px);
        padding: 12px 12px 14px;
        border-radius: 14px;
    }

    .image-modal-layout {
        flex-direction: column;
    }

    .image-modal-collage {
        flex-direction: row;
        width: auto;
        justify-content: center;
    }

    .image-modal-thumb {
        width: 56px;
        height: 56px;
    }
}

