/* Galleri Elin - replicated from gallerielin.com */

:root {
    --color-text: #48410f;
    --color-text-light: #5a4438;
    --color-accent: #876655;
    --color-accent-dark: #5a4438;
    --color-bg: #ede9de;
    --color-bg-overlay: #ede9de;
    --color-white: #ffffff;
    --font-display: 'Fredericka the Great', fantasy;
    --font-body: 'Courier New', Courier, monospace;
    --max-width: 980px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 12px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--color-bg-overlay);
    background-image: url('/assets/images/bg-texture.jpg');
    background-size: 500px 500px;
    background-repeat: repeat;
    background-position: center top;
    background-attachment: fixed;
    pointer-events: none;
}

@media (max-width: 768px), (hover: none) {
    body::before { background-attachment: scroll; }
}

button, .btn, .btn-ghost, .btn-top, .gallery-trigger, .ge-carousel__nav { touch-action: manipulation; }
a:hover { color: var(--color-accent-dark); }

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

#site-root { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; max-width: 100%; }

/* Header */
.site-header {
    text-align: center;
    padding: 20px 20px 10px;
    position: relative;
    background: transparent;
}

.header-inner { max-width: var(--max-width); margin: 0 auto; position: relative; }

.logo-link { display: inline-block; margin-bottom: 10px; }

.logo { max-width: 339px; height: auto; margin: 0 auto; }

.site-title {
    font-family: var(--font-display);
    font-size: 35px;
    font-weight: 400;
    margin: 5px 0;
}

.site-title a { color: var(--color-text); text-decoration: none; }

.site-tagline {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: normal;
    margin-bottom: 5px;
}

.site-nav-block {
    margin: 12px auto 0;
    text-align: center;
}

/* Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.main-nav ul {
    list-style: none;
    display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    border: none;
    background: transparent;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li + li {
    border-left: none;
}

.main-nav > ul > li > a {
    display: block;
    padding: 7px 12px;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    border: 1px solid #c9bdb0;
    background: #ddd5c8;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.main-nav > ul > li.active > a {
    background: var(--color-white);
    color: var(--color-text);
}

.main-nav > ul > li > a:hover {
    background: var(--color-white);
    color: var(--color-text);
}

.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 50;
}

.main-nav .has-submenu:hover .submenu,
.main-nav .has-submenu.open .submenu { display: block; }

.main-nav .submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav .submenu a:hover,
.main-nav .submenu .active a {
    background: var(--color-bg);
    color: var(--color-accent);
}

.nav-item--mobile-only { display: none; }

/* Main content */
.site-main {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    overflow-x: hidden;
    min-width: 0;
}

.section { margin-bottom: 40px; }

.section-title {
    font-family: var(--font-body);
    font-size: 28px;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.stars {
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.7em;
    margin: 20px 0;
    color: var(--color-text-light);
}

.section--quote {
    margin: 24px 0;
}

.quote-heading {
    font-family: var(--font-body);
    font-size: 40px;
    text-align: center;
    line-height: 1.2;
    font-weight: 400;
    margin: 10px 0;
    color: var(--color-text);
}

/* ── Carousels (gallerielin.com) ── */
.section--carousel {
    padding: 0;
    margin-bottom: 24px;
}

.section--carousel .ge-carousel {
    margin: 0 auto;
}

.ge-carousel {
    width: 100%;
    max-width: 956px;
}

/* Hero slideshow – 956 × 682 */
.ge-carousel--hero {
    position: relative;
    aspect-ratio: 956 / 682;
}

.ge-carousel__hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

.ge-carousel__hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ge-carousel__hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.ge-carousel__hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.ge-carousel__hero-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.ge-carousel__hero-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ge-carousel__caption {
    display: none;
}

/* Strip slider – 956 × 160 */
.ge-carousel--strip {
    height: 174px;
}

.ge-carousel__strip-stage {
    position: relative;
    width: 100%;
    height: 174px;
    overflow: hidden;
}

.ge-carousel__strip-track {
    display: flex;
    height: 174px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.ge-carousel__strip-cell {
    flex: 0 0 294px;
    width: 294px;
    height: 174px;
    padding: 5px;
    box-sizing: border-box;
}

.ge-carousel__strip-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 7px solid #fff;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
}

.ge-carousel__strip-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation arrows – cream, overlaid on image (original Wix style) */
.ge-carousel__nav[hidden] { display: none; }

.ge-carousel__nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 23px;
    height: 39px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
    filter: drop-shadow(0 1px 0.15px #b2b2b2);
}

.ge-carousel__nav:hover {
    opacity: 1;
}

.ge-carousel__arrow-icon path {
    fill: #ede9de;
}

.ge-carousel__nav--prev .ge-carousel__arrow-icon {
    transform: scaleX(-1);
}

.ge-carousel__nav--hero.ge-carousel__nav--prev {
    left: 23px;
}

.ge-carousel__nav--hero.ge-carousel__nav--next {
    right: 23px;
}

.ge-carousel__nav--strip.ge-carousel__nav--prev {
    left: 28px;
}

.ge-carousel__nav--strip.ge-carousel__nav--next {
    right: 28px;
}

/* Home social section */
.home-social {
    text-align: center;
}

.home-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 24px;
    align-items: end;
}

.home-social-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.home-social-label {
    font-size: 19px;
    color: var(--color-text-light);
    margin: 0 0 2px;
}

.home-social-platform {
    font-family: var(--font-body);
    font-size: 36px;
    color: var(--color-accent);
    text-decoration: underline;
    line-height: 1.1;
}

.home-social-platform--shop {
    font-size: 36px;
    text-decoration: underline;
}

.home-social-icon {
    display: block;
    line-height: 0;
    margin-top: 6px;
}

.home-social-icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 164px;
    margin: 0;
}

.home-contact-cta {
    margin: 30px 0 20px;
}

.home-contact-title {
    font-family: var(--font-body);
    font-size: 36px;
    color: var(--color-text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.home-contact-sub {
    font-size: 19px;
    line-height: 1.6;
}

.home-contact-sub a {
    color: var(--color-text-light);
    text-decoration: none;
}

.home-contact-sub a:hover {
    text-decoration: underline;
}

/* About page */
.about-photo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.about-photo {
    width: 237px;
    flex-shrink: 0;
}

.about-photo img {
    width: 237px;
    height: 255px;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}


/* Gallery */
.gallery {
    display: grid;
    gap: 8px;
    margin: 20px 0;
    max-width: 100%;
    min-width: 0;
}

.gallery--masonry {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery--featured {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-item { overflow: hidden; position: relative; }

.gallery-trigger {
    display: block;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.gallery-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
    aspect-ratio: 1;
}

.gallery-item--large .gallery-trigger img { aspect-ratio: 4/3; }

.gallery-trigger:hover img { transform: scale(1.03); opacity: 0.9; }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 10px 10px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-trigger:hover .gallery-caption { opacity: 1; }

.gallery-title { display: block; font-weight: 600; font-size: 14px; }
.gallery-desc { display: block; font-size: 12px; opacity: 0.9; }

/* About page */
.about-content {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.8;
}

.about-content p { margin-bottom: 16px; }


/* Contact form */
.contact-form {
    max-width: 500px;
    margin: 30px auto;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--color-text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover { background: var(--color-accent-dark); color: var(--color-white); }

.btn-ghost {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.contact-info {
    text-align: center;
    margin: 30px 0;
    font-size: 16px;
    line-height: 2;
}

.form-success {
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    margin: 20px 0;
    display: none;
}

.form-success.visible { display: block; }

/* Nettbutikk */
.shop-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
    text-align: center;
}

.shop-content p { margin-bottom: 20px; }

.shop-link {
    font-size: 20px;
    text-decoration: underline;
    color: var(--color-accent);
}

/* Footer */
.site-footer {
    padding: 24px 20px;
    margin-top: 40px;
    background: transparent;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-start {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.copyright { font-size: 12px; color: var(--color-text-light); margin: 0; }

.btn-top {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.btn-top:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.social-bar {
    list-style: none;
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.social-bar a {
    display: block;
    line-height: 0;
}

.social-bar img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox[hidden] { display: none; }

.lightbox-panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: min(1100px, 96vw);
    max-height: 90vh;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    gap: 24px;
}

.lightbox-panel--image-only {
    max-width: min(920px, 96vw);
}

.lightbox-panel--shop {
    flex-direction: column;
    align-items: center;
    max-width: min(980px, 96vw);
    gap: 20px;
}

.lightbox-panel--shop .lightbox-media {
    flex: none;
    width: 100%;
}

.lightbox-panel--shop .lightbox-media img {
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 960px);
    margin: 0 auto;
}

.lightbox-panel--shop .lightbox-sidebar {
    flex: none;
    width: 100%;
    max-width: 520px;
    text-align: center;
    align-items: center;
    max-height: none;
    padding: 0 12px 8px;
}

.lightbox-panel--shop .lightbox-buy {
    width: auto;
    min-width: 200px;
}

.lightbox-panel--image-only .lightbox-media {
    flex: none;
    width: 100%;
    background: transparent;
    padding: 0;
}

.lightbox-media {
    flex: 1 1 60%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

.lightbox-media img {
    max-width: 100%;
    max-height: min(82vh, 900px);
    object-fit: contain;
    display: block;
}

.lightbox-sidebar {
    flex: 0 0 min(300px, 36%);
    padding: 0 8px;
    overflow-y: auto;
    color: #ede9de;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-self: center;
    max-height: min(82vh, 900px);
    background: transparent;
}

.lightbox-sidebar[hidden] {
    display: none !important;
}

.lightbox-sidebar-title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    color: #ede9de;
}

.lightbox-sidebar-desc {
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    color: rgba(237, 233, 222, 0.88);
}

.lightbox-sidebar-desc:empty { display: none; }

.lightbox-sidebar-title:empty { display: none; }

.lightbox-sale {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(237, 233, 222, 0.25);
}

.lightbox-price {
    font-size: 18px;
    font-weight: 600;
    color: #ede9de;
    margin: 0 0 12px;
}

.lightbox-buy {
    width: 100%;
}

.gallery-section-heading {
    font-family: var(--font-body);
    font-size: 22px;
    text-align: center;
    margin: 32px 0 8px;
    font-weight: 400;
    color: var(--color-accent);
    scroll-margin-top: 16px;
}

.gallery-section-heading--spaced {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(90, 68, 56, 0.15);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 10px; right: 15px; font-size: 2.5rem; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Responsive */
/* Floating cart button */
.cart-float {
    position: fixed;
    top: 20px;
    right: max(20px, calc((100vw - var(--max-width)) / 2 - 72px));
    bottom: auto;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: transform 0.2s;
    transform: none;
}

.cart-float:hover {
    transform: scale(1.05);
}

.cart-float img {
    display: block;
    width: 88px;
    height: auto;
}

.cart-float .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.lightbox-buy {
    width: auto;
    padding: 10px 24px;
    border: 2px solid #ede9de;
    color: #ede9de;
    font-size: 15px;
}

.lightbox-buy:hover:not(:disabled):not(.in-cart) {
    background: #ede9de;
    color: #1a1a1a;
}

.gallery-item { display: flex; flex-direction: column; }

.btn-buy {
    margin-top: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-buy:hover:not(:disabled):not(.in-cart) { background: var(--color-accent); color: #fff; }

.gallery--shop {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px 20px;
}

.gallery--shop .gallery-trigger img {
    aspect-ratio: auto;
    height: auto;
    min-height: 300px;
    max-height: 420px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.4);
}

.gallery-item--shop .gallery-trigger:hover img {
    transform: none;
    opacity: 1;
}

.gallery-shop-meta {
    margin-top: 10px;
    text-align: center;
}

.gallery-shop-title {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    color: var(--color-text);
    margin-bottom: 4px;
}

.gallery-shop-price {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
}

.gallery-item--shop .btn-buy {
    margin-top: 10px;
}

/* Shop page intro */
.shop-intro {
    max-width: 700px;
    margin: 0 auto 36px;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
}

.shop-intro--before {
    margin-bottom: 24px;
}

.shop-intro--after {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(90, 68, 56, 0.15);
}

.shop-welcome {
    text-align: center;
    font-size: 18px;
    margin-bottom: 24px;
}

.shop-info-block {
    margin-bottom: 20px;
}

.shop-info-heading {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.shop-note {
    margin-top: 16px;
    font-size: 15px;
    color: var(--color-text-light);
}

.shop-products-heading {
    font-family: var(--font-body);
    font-size: 22px;
    text-align: center;
    margin: 32px 0 8px;
    font-weight: 400;
}

.shop-products-note {
    margin-bottom: 24px;
}

/* Cart page */
.cart-section { max-width: 600px; margin: 0 auto; }

.cart-list { margin: 24px 0; }

.cart-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(90, 68, 56, 0.15);
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.cart-item-desc { font-size: 13px; color: var(--color-text-light); margin-bottom: 4px; }
.cart-item-price { font-weight: 600; color: var(--color-accent); }

.cart-remove {
    position: absolute;
    top: 12px;
    right: 0;
    font-size: 24px;
    line-height: 1;
    padding: 4px 8px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-light);
}

.cart-summary {
    text-align: right;
    margin-top: 24px;
    padding-top: 16px;
}

.cart-total { font-size: 1.2rem; margin-bottom: 16px; }
.cart-empty { text-align: center; margin: 30px 0; color: var(--color-text-light); }
.cart-note { font-size: 14px; color: var(--color-text-light); margin-top: 12px; }

/* Cart added popup */
.cart-added {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-added[hidden] { display: none; }

.cart-added-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cart-added-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 92vw);
    padding: 28px 24px;
    background: var(--color-bg);
    border: 1px solid rgba(90, 68, 56, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.cart-added-label {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin: 0 0 10px;
}

.cart-added-title {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--color-text);
}

.cart-added-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 22px;
}

.cart-added-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-added-actions .btn,
.cart-added-actions .btn-ghost {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .cart-added-actions {
        flex-direction: row;
        justify-content: center;
    }

    .cart-added-actions .btn,
    .cart-added-actions .btn-ghost {
        width: auto;
        min-width: 160px;
    }
}

.btn-checkout { font-size: 16px; padding: 14px 36px; }

/* Contact page */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-info a { color: var(--color-accent); }

@media (max-width: 960px) {
    .main-nav > ul > li > a {
        padding: 7px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .logo { max-width: min(280px, 85vw); }

    .site-title { font-size: 28px; }

    .site-tagline { font-size: 16px; }

    .ge-carousel--strip,
    .ge-carousel__strip-stage,
    .ge-carousel__strip-track { height: auto; }

    .ge-carousel__strip-track { min-height: 100px; }

    .ge-carousel__strip-cell {
        flex: 0 0 33.333%;
        width: 33.333%;
        height: auto;
        aspect-ratio: 284 / 160;
    }

    .ge-carousel__strip-btn { border-width: 4px; }

    .ge-carousel__nav--strip.ge-carousel__nav--prev { left: 8px; }
    .ge-carousel__nav--strip.ge-carousel__nav--next { right: 8px; }

    .lightbox-panel {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
        gap: 16px;
    }

    .lightbox-media {
        flex: none;
        max-height: 55vh;
    }

    .lightbox-panel--shop .lightbox-media img {
        max-height: 58vh;
    }

    .lightbox-sidebar {
        flex: none;
        width: 100%;
        padding: 0 8px 16px;
        align-self: center;
    }

    .cart-float {
        top: 16px;
        left: 16px;
        right: auto;
        bottom: auto;
    }
    .cart-float:hover { transform: scale(1.05); }
    .cart-float img { width: 64px; height: auto; }
    .form-row { grid-template-columns: 1fr; }
    .menu-toggle { display: flex; z-index: 1101; }

    .site-nav-block {
        display: block;
        max-width: none;
        margin: 0;
        padding: 0;
        height: 0;
        overflow: visible;
    }

    body.nav-open { overflow: hidden; }

    body.nav-open .menu-toggle span { background: #ede9de; }

    body.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }

    body.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-item--mobile-only { display: list-item; }

    .main-nav {
        display: flex;
        position: fixed;
        inset: 0;
        align-items: center;
        justify-content: center;
        background: #4a3728;
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: min(320px, 88vw);
        gap: 0;
        border: none;
        background: transparent;
    }

    .main-nav > ul > li {
        width: 100%;
        text-align: center;
    }

    .main-nav > ul > li + li {
        border-left: none;
    }

    .main-nav > ul > li + li::before {
        content: '';
        display: block;
        width: 72%;
        max-width: 220px;
        height: 1px;
        margin: 0 auto;
        background: rgba(237, 233, 222, 0.35);
    }

    .main-nav > ul > li > a {
        padding: 22px 16px;
        border: none;
        color: #ede9de;
        font-size: 15px;
        letter-spacing: 0.28em;
        text-transform: uppercase;
        background: transparent;
    }

    .main-nav > ul > li.active > a,
    .main-nav > ul > li > a:hover {
        border-bottom-color: transparent;
        color: #fff;
        background: transparent;
    }

    .main-nav .has-submenu > a::before {
        content: '+ ';
        letter-spacing: 0.1em;
    }

    .main-nav .has-submenu.open > a::before { content: '- '; }

    .main-nav .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        display: none;
        background: transparent;
        min-width: 0;
    }

    .main-nav .has-submenu.open .submenu { display: block; }

    .main-nav .submenu a {
        padding: 10px 16px 18px;
        color: rgba(237, 233, 222, 0.85);
        font-size: 14px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .main-nav .submenu a:hover,
    .main-nav .submenu .active a {
        background: transparent;
        color: #fff;
    }

    .social-links { gap: 30px; }

    .home-social-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quote-heading { font-size: 28px; }

    .section-title { font-size: 2rem; }

    .gallery--masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery--shop {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    .gallery--shop .gallery-trigger img {
        min-height: 200px;
        max-height: 280px;
    }

    .gallery-shop-title { font-size: 14px; }
    .gallery-shop-price { font-size: 13px; }

    .stars {
        letter-spacing: 0.35em;
        overflow: hidden;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-bar {
        align-self: flex-end;
    }

    .social-bar img {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .ge-carousel__strip-cell {
        flex: 0 0 50%;
        width: 50%;
    }

    .home-social-platform { font-size: 28px; }

    .gallery--masonry,
    .gallery--shop {
        grid-template-columns: 1fr;
    }
}
