/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --brown: #5C3D2E;
    --brown-light: #7A5544;
    --brown-dark: #3D2518;
    --cream: #F9F4EE;
    --cream-dark: #EDE5D8;
    --text: #2C1F14;
    --text-muted: #7A6A5A;
    --white: #FFFFFF;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(92,61,46,.12);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Mulish', sans-serif;
    --transition: .2s ease;
}

.product-card__img-wrap {
    position: relative;
}
.product-card__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* ===== СБРОС ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown); }

/* ===== УТИЛИТЫ ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
}
.btn--primary { background: var(--brown); color: var(--white); border-color: var(--brown); }
.btn--primary:hover { background: var(--brown-light); color: var(--white); border-color: var(--brown-light); }
.btn--outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--outline:hover { background: var(--brown); color: var(--white); }
.btn--full { width: 100%; }
.section { padding: 72px 0; }
.section__title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; }
.section__sub { color: var(--text-muted); margin-bottom: 48px; font-size: 1.05rem; }
.tag { display: inline-block; background: var(--cream-dark); color: var(--brown); padding: 4px 12px; border-radius: 50px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ===== ШАПКА ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(92,61,46,.08);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__img {
    height: 60px;
    width: auto;
    display: block;
}
.logo__icon { font-size: 1.6rem; }
.logo__text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--brown); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav__link { font-size: .95rem; font-weight: 600; color: var(--text-muted); transition: color var(--transition); }
.nav__link:hover { color: var(--brown); }
.header__cta { margin-left: 16px; padding: 10px 22px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--brown); transition: all var(--transition); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}
.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
}
.hero__tag { margin-bottom: 20px; background: rgba(255,255,255,.15); color: var(--white); }
.hero__title { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1.15; margin-bottom: 20px; color: var(--white); }
.hero__text { font-size: 1.1rem; opacity: .85; margin-bottom: 36px; font-weight: 300; color: var(--white); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__btn-white { background: var(--white); color: var(--brown); border-color: var(--white); }
.hero__btn-white:hover { background: var(--cream); color: var(--brown); }

/* ===== КАТЕГОРИИ ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.cat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(92,61,46,.18); }
.cat-card__icon { font-size: 2.4rem; margin-bottom: 12px; }
.cat-card__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.cat-card__count { font-size: .85rem; color: var(--text-muted); }

/* ===== ТОВАРЫ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(92,61,46,.18); }
.product-card__img { width: 100%; height: 220px; object-fit: cover; background: var(--cream-dark); }
.product-card__img-placeholder { width: 100%; height: 220px; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.product-card__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.product-card__desc {
    font-size: .9rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
    max-height: calc(1.55em * 3);
}
.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-weight: 700; color: var(--brown); font-size: 1.05rem; }

/* ===== ГАЛЕРЕЯ ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.gallery-grid img {
    width: 100%; height: 240px; object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition);
}
.gallery-grid img:hover { transform: scale(1.02); opacity: .9; }

/* ===== LIGHTBOX (галерея страница) ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 999; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 20px; right: 24px; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; }

/* ===== ФИЛЬТРЫ КАТАЛОГА ===== */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    padding: 8px 20px; border-radius: 50px;
    border: 2px solid var(--cream-dark);
    background: var(--white);
    color: var(--text-muted);
    font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all var(--transition);
    font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--brown); color: var(--brown); background: var(--cream); }

/* ===== ФОРМА ЗАЯВКИ ===== */
.form-section { max-width: 560px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__input, .form__textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}
.form__input:focus, .form__textarea:focus { border-color: var(--brown); }
.form__textarea { min-height: 120px; resize: vertical; }
.form__label { font-weight: 600; font-size: .9rem; margin-bottom: 4px; display: block; }

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail__img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-detail__placeholder { width: 100%; aspect-ratio: 4/3; background: var(--cream-dark); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.product-detail__title { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 16px; }
.product-detail__price { font-size: 1.5rem; font-weight: 700; color: var(--brown); margin-bottom: 24px; }
.product-detail__desc { color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }

/* ===== ИНФО БЛОКИ (доставка, о нас) ===== */
.info-block { max-width: 800px; }
.info-block h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 32px 0 12px; }
.info-block h2:first-child { margin-top: 0; }
.info-block p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.8; }
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--brown);
}
.info-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }

/* ===== КОНТАКТЫ ===== */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.contact-card__label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.contact-card__value { font-weight: 600; font-size: 1.05rem; }
.contact-card__value a { color: var(--brown); }

/* ===== ПРИЗЫВ К ДЕЙСТВИЮ (CTA секция) ===== */
.cta-section {
    background: linear-gradient(135deg, var(--brown), var(--brown-light));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.cta-section .section__title { color: var(--white); }
.cta-section .section__sub { color: rgba(255,255,255,.8); }

/* ===== СООБЩЕНИЯ ===== */
.messages { margin: 20px auto; }
.message { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 10px; font-weight: 600; }
.message--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== МОДАЛКА ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(44,31,20,.6); z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: 12px; padding: 40px; max-width: 440px; width: 90%; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal__close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); }
.modal__title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; }
.modal__sub { color: var(--text-muted); margin-bottom: 24px; font-size: .95rem; }

/* ===== ПОДВАЛ ===== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.75);
    padding: 60px 0 0;
}
.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    align-items: start;
    width: 100%;
}
.footer__logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .9;
    margin-bottom: 16px;
    display: block;
    object-fit: contain;
}
.footer__tagline {
    font-size: .9rem;
    opacity: .6;
    line-height: 1.6;
}
.footer__heading {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col a {
    font-size: .9rem;
    transition: color var(--transition);
    color: rgba(255,255,255,.75);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    font-size: .85rem;
    opacity: .5;
}
.footer__col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--text-muted); margin-bottom: 32px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb__sep { opacity: .4; }

/* ===== СТРАНИЦА HERO (внутренние) ===== */
.page-hero { background: linear-gradient(135deg, var(--brown), var(--brown-light)); color: var(--white); padding: 60px 0; margin-bottom: 60px; }
.page-hero__title { font-family: var(--font-display); font-size: 2.4rem; }
.page-hero__sub { opacity: .8; margin-top: 8px; }

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__col:first-child { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}

@media (max-width: 720px) {
    .hero__title { font-size: 2.2rem; }
    .section__title { font-size: 1.8rem; }
    .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
    .nav.open { display: flex; }
    .header__cta { display: none; }
    .burger { display: flex; margin-left: auto; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; text-align: center; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__col:first-child { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 0; }
    .hero__title { font-size: 1.8rem; }
    .section { padding: 48px 0; }
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }
    .footer__col:first-child { grid-column: auto; align-items: flex-start; text-align: left; }
    .footer__logo { height: 50px; }
    .footer__bottom { text-align: center; }
    .container { padding: 0 16px; }
    .page-hero { padding: 40px 0; margin-bottom: 32px; }
}

/* ============================================================
   CATALOG LAYOUT — sidebar + main
   ============================================================ */
.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { order: -1; position: static; }
}

.sidebar-cats {
    background: var(--cream-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(139,90,43,.1);
}

.sidebar-cats__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brown-dark);
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(139,90,43,.12);
}

.sidebar-cats__link {
    display: block;
    padding: 11px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    border-left: 3px solid transparent;
    transition: all .2s;
    border-bottom: 1px solid rgba(139,90,43,.06);
}

.sidebar-cats__link:last-child { border-bottom: none; }

.sidebar-cats__link:hover,
.sidebar-cats__link.active {
    color: var(--brown);
    border-left-color: var(--brown);
    background: rgba(139,90,43,.06);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--cream-dark);
    color: var(--brown-dark);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid rgba(139,90,43,.15);
    transition: all .2s;
    cursor: pointer;
}

.pagination__btn:hover:not(.disabled):not(.active) {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
}

.pagination__btn.active {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
    cursor: default;
}

.pagination__btn.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.pagination__dots {
    color: var(--text-muted);
    font-size: .9rem;
    padding: 0 4px;
}

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.review-card {
    background: var(--cream-dark);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(139,90,43,.1);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brown);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.review-card__name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--brown-dark);
}

.review-card__city {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-card__stars {
    margin-left: auto;
    font-size: 1rem;
    color: #d4870a;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.review-card__photo img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 220px;
    transition: opacity .2s;
}

.review-card__photo img:hover { opacity: .88; }

.review-card__text {
    font-size: .9rem;
    line-height: 1.65;
    color: var(--text);
    flex-grow: 1;
}

.review-card__text p { margin: 0 0 8px; }
.review-card__text p:last-child { margin-bottom: 0; }

.review-card__product {
    font-size: .8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(139,90,43,.1);
    padding-top: 10px;
}

.review-card__product a { color: var(--brown); text-decoration: none; }
.review-card__product a:hover { text-decoration: underline; }

.reviews-cta {
    text-align: center;
    background: var(--brown-dark);
    color: #fff;
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 60px;
}

.reviews-cta h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0 0 12px;
}

.reviews-cta p {
    opacity: .8;
    font-size: 1.05rem;
    margin: 0;
}

.reviews-cta .btn--primary {
    background: #fff;
    color: var(--brown-dark);
    border-color: #fff;
}

.reviews-cta .btn--primary:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--brown-dark);
}

.reviews-cta .btn--outline {
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

.reviews-cta .btn--outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
}

/* ============================================================
   LIGHTBOX (товар)
   ============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lbFadeIn .2s ease;
}

@keyframes lbFadeIn { from { opacity:0; } to { opacity:1; } }

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100vw - 160px);
    height: calc(100vh - 120px);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 100000;
}

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

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 100000;
}

.lightbox-arrow:hover { background: rgba(255,255,255,.3); }
.lightbox-arrow--prev { left: 16px; }
.lightbox-arrow--next { right: 16px; }

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    background: rgba(0,0,0,.4);
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 100000;
}

/* ============================================================
   GALLERY — zoom cursor + expand button
   ============================================================ */
.gallery-zoom-trigger { cursor: zoom-in; }

.gallery-expand-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,.85);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--brown-dark);
    transition: background .2s;
    z-index: 2;
}

.gallery-expand-btn:hover { background: #fff; }

/* ============================================================
   GALLERY — gallery-arrow
   ============================================================ */
.gallery-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.85);
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 2;
    transition: background .2s;
}
.gallery-arrow:hover { background: #fff; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

/* ============================================================
   SEO text block
   ============================================================ */
.seo-text {
    margin-top: 60px;
    padding: 32px;
    background: var(--cream-dark);
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.75;
    color: var(--text-muted);
    border: 1px solid rgba(139,90,43,.08);
}

.seo-text p { margin: 0 0 12px; }
.seo-text p:last-child { margin-bottom: 0; }

/* ============================================================
   PRODUCT GALLERY
   ============================================================ */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 80px;
}

.product-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-dark);
    box-shadow: var(--shadow);
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .15s ease, transform .35s ease;
    cursor: zoom-in;
    pointer-events: auto;
}

.product-gallery__main:hover img {
    transform: scale(1.07);
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: .78rem;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
}

.product-gallery__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--brown) transparent;
}

.product-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.product-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 2px; }

.product-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s, opacity .15s;
    opacity: .65;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.product-gallery__thumb:hover { opacity: .9; }
.product-gallery__thumb.active {
    border-color: var(--brown);
    opacity: 1;
}

.product-detail__desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
}

.product-detail__desc p { margin: 0 0 10px; }
.product-detail__desc p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .product-gallery__thumb { flex: 0 0 58px; width: 58px; height: 58px; }
    .product-gallery { position: static; }
}