/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg:       #ffffff;
    --color-box-bg:   #fafafa;
    --color-text:     #4f4f4f;
    --color-heading:  #3d3d3d;
    --color-menu:     #4f4f4f;
    --color-active:   #000000;
    --color-hover:    #7f122f;
    --color-accent:   #91a1a6;
    --color-link:     #7f1130;
    --color-border:   #ebebeb;
    --font-display:   'Quicksand', sans-serif;
    --font-body:      'Open Sans', sans-serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.9;
}

a {
    color: inherit;
    text-decoration: none;
}

img { max-width: 100%; display: block; }

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--color-bg);
    padding: 28px 0 20px;
    text-align: center;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-logo {
    display: inline-block;
    line-height: 0; /* removes extra inline-block space below img */
}

/* ─── Navigation ────────────────────────────────────────────────────────── */
.site-nav {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: stretch;
}

/* Reserve width for bold so font-weight change doesn't shift siblings */
.nav-menu > li > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 22px;
    height: 64px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--color-menu);
    outline: none;
    border: none;
    transition: color 0.18s ease;
    /* pseudo-element below reserves bold width → no layout shift */
}

/* Invisible bold copy reserves horizontal space */
.nav-menu > li > a::after {
    content: attr(data-label);
    font-weight: 700;
    letter-spacing: 8px;
    font-size: 18px;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.nav-menu > li > a:hover {
    color: var(--color-hover);
    font-weight: 700;
}

.nav-menu > li.active > a {
    color: var(--color-active);
}

/* ─── Dropdown ──────────────────────────────────────────────────────────── */
.has-dropdown { position: relative; }

.dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 1px); /* sit just below the nav border */
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    list-style: none;
    min-width: 220px;
    z-index: 200;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.dropdown li a {
    display: block;
    padding: 11px 24px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-menu);
    white-space: nowrap;
    outline: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.dropdown li a:hover {
    color: var(--color-hover);
    background: var(--color-box-bg);
    font-weight: 700;
}

.dropdown li.active a {
    color: var(--color-active);
}

/* ─── In-nav logo (visible on scroll) ──────────────────────────────────── */
.nav-logo {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(calc(-50% - 5px));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    line-height: 0;
}

.site-nav.scrolled .nav-logo {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
}

/* ─── Mobile toggle ─────────────────────────────────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-menu);
    padding: 14px 8px;
    outline: none;
    line-height: 1;
}

/* ─── Page content ──────────────────────────────────────────────────────── */
/* Full-width — children handle their own horizontal constraints */
.page-content {
    width: 100%;
    padding-bottom: 80px;
}

/* ─── Gallery intro ─────────────────────────────────────────────────────── */
.gallery-intro {
    text-align: center;
    padding: 36px 32px 28px;
}

.shop-empty {
    text-align: center;
    padding: 40px 32px 90px;
    color: var(--color-text);
    opacity: 0.7;
    font-size: 15px;
}

.gallery-intro h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.gallery-intro p {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.9;
    max-width: 680px;
    margin: 0 auto;
}

/* ─── evenRows gallery ──────────────────────────────────────────────────── */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    /* spacing handled by JS (margin on each item) */
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-sizing: content-box; /* margin outside the measured box */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(0.88);
}

/* ─── Portfolio overview ─────────────────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding-top: 36px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: #000;
    outline: none;
}

.portfolio-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    opacity: 0.82;
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: transform;
}

.portfolio-card:hover img {
    opacity: 0.55;
    transform: scale(1.05);
}

.portfolio-card-label {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    transition: bottom 0.3s ease;
}

.portfolio-card:hover .portfolio-card-label { bottom: 28px; }

/* Card for a section that has no photos yet */
.portfolio-card--empty {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
}

.portfolio-card--empty .portfolio-card-label {
    position: static;
    color: #8a8a8a;
}

/* ─── Autor page ─────────────────────────────────────────────────────────── */
.autor-wrap {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.autor-heading {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 28px;
}

.autor-body {
    column-count: 2;
    column-gap: 48px;
    orphans: 3;
    widows: 3;
}

.autor-photo {
    float: left;
    width: 48%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    margin: 4px 28px 18px 0;
    display: block;
}

.autor-body p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 10px;
    break-inside: avoid;
}

.autor-body h2 {
    column-span: all;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin: 32px 0 14px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.autor-body a { color: var(--color-link); }
.autor-body a:hover { color: var(--color-hover); }

/* ─── Text / author page ────────────────────────────────────────────────── */
.text-page { max-width: 720px; margin: 0 auto; padding: 40px 32px 0; }

.text-page h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 24px;
}

.text-page h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin: 32px 0 12px;
}

.text-page p {
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 14px;
    color: var(--color-text);
}

.text-page a { color: var(--color-link); }
.text-page a:hover { color: var(--color-hover); }


/* ─── Contact ───────────────────────────────────────────────────────────── */
.contact-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 48px 80px;
    overflow: hidden; /* clearfix for floats */
}

.contact-wrap::after {
    content: '';
    display: table;
    clear: both;
}

.contact-main-img {
    float: left;
    width: 35%;
    height: auto;
    margin-top: 15px;
    display: block;
}

.contact-content {
    float: right;
    width: 60%;
}

.contact-content h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 13px;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 24px;
}

.contact-text a { color: var(--color-link); }
.contact-text a:hover { color: var(--color-hover); }

/* formStyle2 — bottom-border only inputs */
.contact-form {
    width: 400px;
    max-width: 100%;
    margin-top: 10px;
}

.contact-form .field {
    position: relative;
    margin-bottom: 24px;
}

.contact-form .field label {
    display: block;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.7;
    padding-top: 5px;
    margin-bottom: 2px;
}

.contact-form input:not([type=radio]):not([type=checkbox]),
.contact-form textarea {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    opacity: 0.7;
    outline: none;
    appearance: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.contact-form input:not([type=radio]):not([type=checkbox]):focus,
.contact-form textarea:focus {
    opacity: 1;
    border-color: var(--color-text);
}

.contact-form textarea {
    min-height: 100px;
    resize: none;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    margin-top: 8px;
}

.btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.form-msg {
    padding: 12px 18px;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.form-msg--ok  { background: #edf7ed; border: 1px solid #a8d5a2; color: #2e6b2e; }
.form-msg--err { background: #fdecea; border: 1px solid #f5c6cb; color: #721c24; }

/* ─── Shop ──────────────────────────────────────────────────────────────── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.shop-item { background: var(--color-box-bg); display: flex; flex-direction: column; }

.shop-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.shop-item:hover img { opacity: 0.85; }

.shop-item-info { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.shop-item-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.shop-item-desc {
    font-size: 12px;
    line-height: 1.7;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 16px;
}

.shop-item-format {
    margin-bottom: 12px;
}

.shop-item-format label {
    display: block;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.6;
    margin-bottom: 2px;
}

.shop-item-format select {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 18px;
}

.shop-item-format select:focus {
    border-color: var(--color-text);
}

.shop-item-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.shop-item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-item-price {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--color-hover);
    font-weight: 700;
    white-space: nowrap;
}

.btn--cart {
    white-space: nowrap;
    padding: 10px 16px;
    color: var(--color-hover);
    border-color: var(--color-hover);
}

.btn--cart:hover {
    background: var(--color-hover);
    color: #fff;
    border-color: var(--color-hover);
}

/* ─── Nav cart icon ─────────────────────────────────────────────────────── */
.nav-cart {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.nav-cart:hover,
.nav-cart.active { color: var(--color-hover); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-hover);
    color: #fff;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ─── Cart page ─────────────────────────────────────────────────────────── */
.cart-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.cart-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 36px;
}

.cart-empty {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--color-text);
    opacity: 0.6;
    text-align: center;
    padding: 60px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 32px;
}

.cart-table th {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.55;
    padding: 0 12px 14px 0;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.cart-table td {
    padding: 14px 12px 14px 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.cart-qty button {
    background: none;
    border: 1px solid var(--color-border);
    width: 24px;
    height: 24px;
    line-height: 1;
    cursor: pointer;
    font-size: 16px;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.cart-qty button:hover { border-color: var(--color-text); }

.cart-remove {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--color-text);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0 4px;
}

.cart-remove:hover { opacity: 1; }

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.cart-total {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--color-text);
    letter-spacing: 1px;
}

.cart-total strong {
    color: var(--color-hover);
    font-size: 18px;
}

/* ─── Order page ────────────────────────────────────────────────────────── */
.order-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.order-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 36px;
}

.order-sub-heading {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.55;
    margin-bottom: 20px;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.order-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.order-delivery,
.order-form .field label {
    font-size: 11px;
    letter-spacing: 1.5px;
    opacity: 0.75;
    margin-bottom: 4px;
}

.order-form input:not([type=radio]):not([type=checkbox]) {
    border: 1px solid #ccc;
    background: #fafafa;
    padding: 10px 12px;
    opacity: 1;
    font-size: 14px;
}

.order-form input:not([type=radio]):not([type=checkbox]):focus {
    border-color: var(--color-text);
    background: #fff;
    opacity: 1;
}

.order-radio input[type=radio] {
    appearance: auto;
    -webkit-appearance: auto;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-hover);
}

.order-payment {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.order-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    transition: border-color 0.15s ease, background 0.15s ease;
}


.order-radio input[type=radio] {
    accent-color: var(--color-hover);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.order-radio-label {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
}


.order-radio-label em {
    font-style: normal;
    color: var(--color-hover);
    margin-left: 4px;
}

.order-payment p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text);
    opacity: 0.75;
    margin-top: 6px;
}

/* ─── 404 ───────────────────────────────────────────────────────────────── */
.not-found {
    text-align: center;
    padding: 100px 32px;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
    padding: 48px 32px 40px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.social-links a {
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    color: #fff;
    background: var(--color-hover);
    border-color: var(--color-hover);
}

.footer-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text);
}

/* thin divider between copyright and legal link */
.footer-copy .footer-sep {
    width: 1px;
    height: 11px;
    background: var(--color-border);
}

.footer-link {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-border);
    transition: color .2s ease, text-decoration-color .2s ease;
}

.footer-link:hover {
    color: var(--color-hover);
    text-decoration-color: var(--color-hover);
}

/* ─── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lb-img-wrap {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}

.lb-img.loaded { opacity: 1; }

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    line-height: 1;
    padding: 16px;
    outline: none;
    transition: color 0.2s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { color: #fff; }

.lb-close { top: 14px; right: 18px; font-size: 38px; }
.lb-prev  { left: 10px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.lb-next  { right: 10px; top: 50%; transform: translateY(-50%); font-size: 52px; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .portfolio-grid          { grid-template-columns: repeat(2, 1fr); }
    .portfolio-card img      { height: 200px; }
    .shop-grid               { grid-template-columns: repeat(2, 1fr); }
    .contact-main-img        { width: 40%; }
    .contact-content         { width: 55%; }
    .order-layout            { grid-template-columns: 1fr; gap: 36px; }
    .nav-cart                { right: 16px; }
    .autor-wrap              { width: 88%; }
    .autor-body              { column-count: 1; }
    .autor-photo             { width: 55%; }
}

@media (max-width: 640px) {
    .site-header         { padding: 20px 0 16px; }
    .site-logo img       { height: 38px !important; }
    .nav-toggle          { display: block; }
    .nav-inner           { justify-content: space-between; padding: 0 16px; }
    .order-form-row      { grid-template-columns: 1fr; gap: 0; }
    .order-wrap          { padding: 28px 16px 48px; }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 8px 0 16px;
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.open         { display: flex; }
    .nav-menu > li         { width: 100%; }

    .nav-menu > li > a {
        height: auto;
        padding: 10px 16px;
        font-size: 13px;
        letter-spacing: 5px;
        align-items: flex-start;
    }

    .nav-menu > li > a::after { display: none; }

    .dropdown {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        position: static;
        transform: none;
        border: none;
        min-width: 0;
        transition: none;
        padding-left: 16px;
    }

    .portfolio-grid        { grid-template-columns: 1fr; padding-top: 20px; }
    .portfolio-card img    { height: 240px; }
    .shop-grid             { grid-template-columns: 1fr; padding: 0 16px; }
    .gallery-intro         { padding: 24px 16px 20px; }
    .text-page             { padding: 24px 16px 0; }
    .contact-wrap          { padding: 24px 16px 48px; }
    .contact-main-img      { float: none; width: 100%; margin-bottom: 28px; margin-top: 0; }
    .contact-content       { float: none; width: 100%; }
    .page-content          { padding-bottom: 48px; }
    .autor-wrap            { width: 92%; padding: 28px 0 48px; }
    .autor-body            { column-count: 1; }
    .autor-photo           { width: 100%; aspect-ratio: unset; margin: 0 0 20px 0; float: none; }
}

/* Cookie settings link (bottom-right corner) */
.cookie-settings-link {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--color-menu);
    background: var(--color-box-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 6px 12px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    transition: color .2s, background .2s;
}

.cookie-settings-link:hover {
    color: var(--color-hover);
    background: var(--color-bg);
}

/* Match cookie consent accent to site palette */
#cc-main {
    --cc-btn-primary-bg:           var(--color-link);
    --cc-btn-primary-hover-bg:     var(--color-hover);
    --cc-btn-primary-border-color: var(--color-link);
    --cc-btn-primary-hover-border-color: var(--color-hover);
    --cc-toggle-on-bg:             var(--color-link);
    --cc-font-family:              var(--font-body);
}
