:root {
    --ink: #1c2430;
    --muted: #667085;
    --accent: #b0175f;
    --accent-dark: #8a1149;
    --border: #e4e7ec;
    --bg: #fafafa;
    --sky: #6ec3ea;
    --sky-dark: #4fa8d6;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--sky), var(--sky-dark) 600px, var(--sky-dark));
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-shell {
    background: #fff;
    max-width: 1040px;
    margin: 28px auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(11, 60, 93, 0.25);
    overflow: hidden;
}

.site-header {
    background: #111417;
    position: relative;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}

.cart-link, .nav-text-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.cart-link:hover, .nav-text-link:hover {
    color: var(--sky);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 4px solid var(--accent);
    box-shadow: 0 20px 45px rgba(11, 20, 30, 0.35);
    border-radius: 0 0 16px 16px;
    z-index: 60;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.main-menu > ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.main-menu > ul > li {
    padding: 2px 0;
}

.main-menu > ul > li > a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.main-menu > ul > li > a:hover {
    background: #eaf6fd;
    color: var(--accent);
}

.submenu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 10px;
}

.submenu-toggle:hover {
    background: #eaf6fd;
    color: var(--accent);
}

.submenu {
    list-style: none;
    margin: 2px 0 6px;
    padding: 0 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submenu a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.submenu a:hover {
    background: #eaf6fd;
    color: var(--accent);
}

.submenu[hidden] { display: none; }

main {
    padding: 32px 0 64px;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 24px 0;
}

.product {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 720px) {
    .product { grid-template-columns: 1fr; }
}

.product-media, .product-info {
    min-width: 0;
}

.product-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.gallery-image {
    cursor: zoom-in;
}

.media-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

.thumb-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

h1 { margin-top: 0; }

.subtitle { color: var(--muted); margin-top: -8px; }

.price-display {
    font-size: 1.4rem;
    margin: 10px 0 4px;
}

.price-display strong {
    color: var(--accent);
}

.specs {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs th, .specs td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.specs th { color: var(--muted); font-weight: 500; width: 40%; }

.eye-row {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.eye-row legend {
    font-weight: 600;
    padding: 0;
    margin-bottom: 4px;
}

.eye-row-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 560px) {
    .eye-row-fields { grid-template-columns: 1fr 1fr; }
}

.eye-row-fields.locked {
    opacity: 0.45;
    pointer-events: none;
}

.eye-row-actions {
    margin-top: 12px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--muted);
}

select, input[type=text], input[type=email], input[type=tel], textarea {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
}

textarea { min-height: 70px; }

.primary-button, .secondary-button, .danger-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-left: 8px;
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.2;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.primary-button:first-child, .secondary-button:first-child, .danger-button:first-child {
    margin-left: 0;
}

.primary-button {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.primary-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.secondary-button {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}

.secondary-button:hover { background: #fdf1f6; }

.danger-button {
    background: #fff;
    color: #b42318;
    border-color: #b42318;
}

.danger-button:hover { background: #fef3f2; }

.button-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-left: 0;
}

.order-summary {
    margin: 20px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.shipping-note { color: var(--muted); font-size: 0.85rem; }

.grand-total { font-size: 1.1rem; margin-top: 6px; }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.cart-table th, .cart-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 720px) {
    .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.order-review {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.order-review ul { padding-left: 18px; font-size: 0.9rem; }

.hint { font-size: 0.75rem; color: var(--muted); }

.validation-summary { color: #b42318; }

.validation-summary ul { margin: 0; padding-left: 18px; }

.info-page section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    scroll-margin-top: 16px;
}

.info-page h2 { margin-top: 0; font-size: 1.1rem; }

.contact-page {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.contact-email {
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-email a { color: var(--accent); text-decoration: none; }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close, .lightbox-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover, .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
