/* ============================================
   P2B Jewelry — Shared Styles
   ============================================ */

/* === CSS Variables === */
:root {
    --forest-dark: #116327;
    --moss-green: #428f56;
    --moss-light: #5bb870;
    --wood-dark: #3d2f1f;
    --wood-medium: #765222;
    --wood-light: #8b7355;
    --gold: #116327;
    --gold-light: #428f56;
    --cream: #8bd09e;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Body / Background === */
body {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    background-image: url('../img/fon.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}


/* === Header === */
header {
    position: sticky;
    top: 0;
    background: rgba(17, 99, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 99, 39, 0.2);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0 40px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    gap: 40px;
}

/* Left: Nav Links (Desktop) */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--cream);
    text-decoration: none;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
}

/* === Desktop Dropdown Menu === */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    margin-top: 12px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Bridge to prevent hover gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.dropdown-item {
    display: block;
    padding: 10px 24px;
    color: #444;
    text-decoration: none;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 0.92rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(17, 99, 39, 0.06);
    color: var(--forest-dark);
    border-left-color: var(--gold);
    padding-left: 28px;
}

/* Mobile sidebar section titles */
.sidebar-section-title {
    padding: 12px 15px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 6px;
}

.sidebar-section-title:first-child {
    border-top: none;
    margin-top: 0;
}

/* Center: Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--cream);
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-icon { font-size: 1.65rem; }
.logo-text { letter-spacing: 1px; }
.logo-img { height: 64px; width: auto; display: block; }

/* Right: Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

/* === Language Switch Toggle === */
.lang-switch-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    user-select: none;
}
.lang-switch-btn:focus-visible .lang-toggle {
    outline: 2px solid var(--cream);
    outline-offset: 2px;
    border-radius: 20px;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: #beedb1;
    border: 2px solid #beedb1;
    border-radius: 20px;
    padding: 4px;
    position: relative;
    transition: box-shadow 0.2s;
}
.lang-switch-btn:hover .lang-toggle {
    box-shadow: 0 0 0 2px rgba(190, 237, 177, 0.7);
}
.lang-opt {
    font-family: 'Philosopher', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: rgba(17, 99, 39, 0.5);
    padding: 5px 12px;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    transition: color 0.25s;
    line-height: 1;
    pointer-events: none;
}
.lang-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    border-radius: 14px;
    background: #116327;
    transition: left 0.25s ease;
}
/* UA active — white text on dark knob */
body[data-lang="uk"] .lang-opt-ua,
body:not([data-lang]) .lang-opt-ua { color: #ffffff; }
/* EN active */
body[data-lang="en"] .lang-opt-en { color: #ffffff; }
body[data-lang="en"] .lang-knob   { left: 50%; }
/* Desktop button: visible in header-actions */
.lang-switch-desktop { display: flex; align-items: center; }
/* Mobile button: hidden by default (shown at ≤768px) */
.lang-switch-mobile  { display: none; }

/* === Language Content Visibility (lang-uk / lang-en) === */
.lang-en { display: none; }
body[data-lang="en"] .lang-uk { display: none !important; }
body[data-lang="en"] .lang-en { display: block; }
body[data-lang="en"] span.lang-en,
body[data-lang="en"] li.lang-en  { display: inline; }

.icon-btn {
    background: none;
    border: none;
    color: var(--cream);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
}

.cart-btn svg {
    width: 26px;
    height: 26px;
}

.icon-btn:hover {
    background: rgba(17, 99, 39, 0.1);
    color: var(--gold);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--gold);
    color: var(--cream);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* === Hamburger (Mobile) === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--cream);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === Mobile Sidebar === */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgba(17, 99, 39, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 2px solid rgba(17, 99, 39, 0.3);
    z-index: 1999;
    transition: left 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 5px 0 30px var(--shadow);
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(17, 99, 39, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo .brand-name {
    color: var(--gold);
    font-size: 1.65rem;
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2.3rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu > li {
    border-bottom: 1px solid rgba(17, 99, 39, 0.1);
}

.sidebar-menu > li > a,
.sidebar-link {
    display: block;
    padding: 15px 20px;
    color: var(--cream);
    text-decoration: none;
    font-size: 1.35rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.sidebar-menu > li > a:hover,
.sidebar-link:hover {
    background: rgba(17, 99, 39, 0.1);
    color: var(--gold);
    padding-left: 30px;
}

.sidebar-toggle {
    display: block;
    padding: 15px 20px;
    color: var(--cream);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.sidebar-toggle:hover {
    background: rgba(17, 99, 39, 0.1);
}

.sidebar-toggle::after {
    content: "▼";
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.menu-item-with-sub.active .sidebar-toggle::after {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-submenu.active {
    max-height: 500px;
}

.sidebar-submenu a {
    padding: 12px 20px 12px 40px;
    font-size: 1.25rem;
    display: block;
    color: rgba(245, 241, 232, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-submenu a:hover {
    background: rgba(17, 99, 39, 0.1);
    color: var(--gold);
    padding-left: 50px;
}

/* === Announcement Bar === */
.announcement-bar {
    background: #beedb1;
    color: #116327;
    text-align: center;
    padding: 8px 50px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 32px;
    position: sticky;
    top: 100px;
    z-index: 999;
}

.announcement-arrow {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.55rem;
    cursor: pointer;
    padding: 0 8px;
    transition: all 0.3s ease;
    line-height: 1;
    height: 24px;
    display: flex;
    align-items: center;
}

.announcement-arrow:hover {
    color: var(--gold-light);
    transform: scale(1.15);
}

.announcement-text {
    flex: 1;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* === Home Banner 16:9 === */
.home-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.home-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Hero Section (Home only) === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(17,99,39,0.3), rgba(61,47,31,0.5)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a5d4a" width="1200" height="600"/><path fill="%233d2f1f" opacity="0.3" d="M0 300 Q300 200 600 300 T1200 300 V600 H0 Z"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 100px 40px;
    overflow: hidden;
}

.hero::before {
    content: '✨';
    position: absolute;
    font-size: 3.3rem;
    top: 10%; left: 15%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.hero::after {
    content: '🌿';
    position: absolute;
    font-size: 2.8rem;
    bottom: 15%; right: 10%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 4.5rem;
    margin-bottom: 30px;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(17, 99, 39,0.5);
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.55rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--cream);
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--gold);
    color: var(--cream);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.4s ease;
    border: 2px solid var(--gold);
    letter-spacing: 1px;
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 5px 20px rgba(17, 99, 39,0.4);
}

.cta-button:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(17, 99, 39,0.6);
}

/* === Category Grid (Home) === */
.categories {
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 0 40px;
}

.section-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--gold);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gold);
    margin: 20px auto 0;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background: rgba(74, 93, 74, 0.2);
    border: 1px solid rgba(17, 99, 39, 0.2);
    border-radius: 15px;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(17, 99, 39,0.1), transparent);
    transition: left 0.6s ease;
}

.category-card:hover::before { left: 100%; }

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(17, 99, 39,0.3);
}

.category-icon {
    font-size: 3.3rem;
    margin-bottom: 20px;
}

.category-card h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.65rem;
    margin-bottom: 15px;
    color: var(--gold-light);
}

.category-card p {
    color: var(--cream);
    opacity: 0.9;
    line-height: 1.6;
}

.category-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.category-overlay {
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    border-radius: 0 0 15px 15px;
}

.category-overlay h3 {
    color: #fff;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.category-overlay h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.category-card:hover .category-overlay h3::after {
    width: 80%;
}

/* Category background images */
.category-card:nth-child(1) .category-image { background-image: url('../img/home-1.webp'); }
.category-card:nth-child(2) .category-image { background-image: url('../img/home-2.webp'); }
.category-card:nth-child(3) .category-image { background-image: url('../img/home-3.webp'); }
.category-card:nth-child(4) .category-image { background-image: url('../img/home-4.webp'); }

/* === Product Grid === */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 99, 39, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.product-card:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Image wrapper for hover swap */
.product-card-images {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 280px;
    background: var(--cream);
}

.product-card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.product-card-images .product-img-primary {
    position: relative;
    z-index: 1;
}

.product-card-images .product-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0;
}

.product-card:hover .product-img-primary {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
    z-index: 1;
}

/* Fallback: single image card (no hover swap) */
.product-card img:only-child {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.35rem;
    color: var(--forest-dark);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 600;
}

.product-card-custom-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--moss-light);
    margin-top: 4px;
}

.product-card-sold-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #c0392b;
    margin-top: 4px;
}

/* === Product Detail Page === */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px 60px;
}

.product-detail-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--moss-green);
}

.product-detail-loading p {
    margin-top: 20px;
    font-size: 1.15rem;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-detail-layout--gift {
    align-items: center;
}

.product-detail-layout--butterfly {
    align-items: center;
}

.product-detail-layout--butterfly .product-detail-desc {
    white-space: pre-line;
}

/* Left: Product Image */
.product-detail-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 99, 39, 0.2);
    margin-top: 40px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Right: Product Info */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-category {
    font-size: 1.05rem;
    color: var(--moss-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.product-detail-name {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.3rem;
    color: var(--forest-dark);
    line-height: 1.3;
}

.product-detail-price {
    font-family: 'Philosopher', sans-serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
}

.product-detail-divider {
    border: none;
    border-top: 1px solid rgba(17, 99, 39, 0.2);
    margin: 8px 0;
}

.product-detail-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--forest-dark);
    white-space: pre-line;
    margin-bottom: 24px;
}

.product-detail-status {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 0;
}

.product-detail-status.in-stock {
    color: var(--moss-green);
}

.product-detail-status.out-of-stock {
    color: #c0392b;
}

.product-detail-date {
    font-size: 1rem;
    color: var(--moss-light);
}

/* Quantity selector */
.product-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 10px;
}

.product-qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(17, 99, 39, 0.35);
    background: transparent;
    color: var(--forest-dark);
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-qty-btn:hover {
    background: rgba(17, 99, 39, 0.08);
}

.product-qty-value {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.25rem;
    color: var(--forest-dark);
    min-width: 36px;
    text-align: center;
}

.product-detail-cart-btn {
    margin-top: 30px;
    padding: 16px;
    font-size: 1.15rem;
}

.product-detail-stock.stock-last {
    margin-top: 16px;
    margin-bottom: -10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: #8b6914;
    font-family: 'Philosopher', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.product-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1.5px solid var(--forest-dark);
    border-radius: 8px;
    color: var(--forest-dark);
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-share-btn:hover {
    background: var(--forest-dark);
    color: var(--cream);
}

.product-detail-back {
    display: inline-block;
    margin-top: 15px;
    color: var(--moss-green);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.product-detail-back:hover {
    color: var(--gold);
}

.product-detail-error {
    text-align: center;
    padding: 80px 20px;
    color: var(--forest-dark);
}

.product-detail-error h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-detail-error p {
    color: var(--moss-green);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

/* === Image Carousel === */
.product-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    aspect-ratio: 4 / 5;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--forest-dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-arrow:hover {
    background: var(--gold);
    color: var(--cream);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.carousel-dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

/* === Product Options (dropdowns) === */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}

.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-option-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--forest-dark);
}

.product-option-select {
    padding: 12px 16px;
    border: 2px solid rgba(17, 99, 39, 0.3);
    border-radius: 10px;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    color: var(--forest-dark);
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}

.product-option-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(17, 99, 39, 0.15);
}

/* === Custom-order status === */
.product-detail-status.custom-order {
    color: #e67e22;
}

.product-category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(17, 99, 39, 0.1);
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--moss-green);
    margin-top: 8px;
}

.product-card-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--moss-green);
}

.product-card-placeholder .placeholder-icon {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.product-card-placeholder h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.65rem;
    margin-bottom: 10px;
    color: var(--forest-dark);
}

/* === Category Filter Buttons === */
.category-filter {
    background: rgba(255, 255, 255, 0.4);
    padding: 15px 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(17, 99, 39, 0.15);
}

.category-filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    padding: 8px 20px;
    border: 1px solid rgba(17, 99, 39, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--forest-dark);
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--gold);
    background: rgba(17, 99, 39, 0.1);
}

.category-btn.active {
    background: var(--gold);
    color: var(--cream);
    border-color: var(--gold);
    font-weight: 600;
}

/* === Controls Bar (Currency + Sort) === */
.controls-bar {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(17, 99, 39, 0.2);
    padding: 12px 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 30px;
}

.controls-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.currency-dropdown { margin-right: auto; }

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sort-wrapper label {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    color: var(--forest-dark);
    font-weight: 600;
    white-space: nowrap;
}

.controls-select {
    padding: 8px 35px 8px 14px;
    border: 1px solid rgba(17, 99, 39, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    color: var(--forest-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23116327' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 150px;
}

.controls-select:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(17, 99, 39, 0.2);
}

.controls-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(17, 99, 39, 0.1);
}

/* === Contact / Form === */
.contact-section {
    max-width: 800px;
    margin: 5px auto 60px;
    padding: 0 40px;
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 99, 39, 0.2);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.3rem;
    color: var(--forest-dark);
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--moss-green);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--forest-dark);
    font-weight: 600;
    font-size: 1.15rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(17, 99, 39, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.15rem;
    color: var(--forest-dark);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(17, 99, 39, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(74, 93, 74, 0.5);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--gold);
    color: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 99, 39, 0.3);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.h-captcha {
    display: none;
    margin: 12px 0 16px;
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px;
    color: var(--moss-green);
    font-size: 1.25rem;
    animation: fadeInUp 0.5s ease;
}

.success-message.visible {
    display: block;
}

/* Honeypot (spam protection) */
.honey-pot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* === Footer === */
footer {
    background: rgba(17, 99, 39, 0.95);
    border-top: 1px solid rgba(17, 99, 39, 0.2);
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav a,
.footer-nav a:link,
.footer-nav a:visited {
    color: var(--cream);
    text-decoration: none;
    font-size: 1.15rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-cta {
    text-align: center;
    margin-bottom: 50px;
}

.footer-cta h3 {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    color: #e8c04a;
    margin-bottom: 15px;
    font-weight: 400;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--moss-green);
    color: var(--cream);
    font-family: 'Philosopher', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.25s, color 0.25s;
    flex-shrink: 0;
}

/* Etsy — same circle, smaller font to fit text */
.social-icon[aria-label="Etsy"] {
    font-size: 0.72rem;
    letter-spacing: 0;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--forest-dark);
}



.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    color: rgba(245, 241, 232, 0.6);
    font-size: 1.35rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 99, 39, 0.1);
}

/* === About Page === */
.about-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 40px;
}

.about-section h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(17, 99, 39, 0.2);
    line-height: 1.8;
    color: var(--forest-dark);
}

/* === Page Title (Shared) === */
.page-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.8rem;
    color: var(--gold);
    text-align: center;
    padding: 50px 20px 30px;
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--cream);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(17, 99, 39, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    font-size: 1.65rem;
    cursor: pointer;
    color: var(--forest-dark);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold);
}

/* === Preloader === */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--forest-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.3rem;
    color: var(--cream);
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(17, 99, 39, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Breadcrumbs === */
.breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px 5px;
    font-size: 1.35rem;
    color: var(--moss-green);
}

.breadcrumbs a {
    color: var(--moss-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--moss-light);
    font-size: 1.35rem;
}

.breadcrumbs .current {
    color: var(--gold);
    font-weight: 600;
}

/* === Product Badges (Новинка / Хіт / Продано) === */
.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 1.35rem;
    font-weight: 600;
    font-family: 'Philosopher', sans-serif;
    letter-spacing: 0.5px;
    z-index: 2;
    line-height: 1.3;
}

.product-badge.badge-new {
    background: var(--gold);
    color: var(--forest-dark);
}

.product-badge.badge-hit {
    background: #e85d75;
    color: #fff;
}

.product-badge.badge-sold {
    background: rgba(17, 99, 39, 0.85);
    color: var(--cream);
}

.product-badge.badge-custom {
    background: #e67e22;
    color: #fff;
}

/* Multiple badges stacking */
.product-badge + .product-badge {
    left: auto;
    right: 12px;
}

/* Sold-out card dimming */
.product-card.sold-out img {
    opacity: 0.5;
    filter: grayscale(30%);
}

/* === Add to Cart Button === */
.product-cart-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: var(--gold);
    color: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.product-cart-btn:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(17, 99, 39, 0.3);
}

.product-cart-btn:active {
    transform: translateY(0);
}

.product-cart-btn.sold-out-btn {
    background: rgba(74, 93, 74, 0.15);
    color: var(--moss-green);
    border-color: rgba(74, 93, 74, 0.3);
    cursor: not-allowed;
    pointer-events: none;
}

/* Cart button added animation */
.product-cart-btn.added {
    background: var(--moss-green);
    border-color: var(--moss-green);
    color: #fff;
}

/* === Scroll to Top Button === */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--cream);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(17, 99, 39, 0.4);
    transition: all 0.3s ease;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #0a2e14;
    color: var(--cream);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
}


/* === Utility Classes (replaced inline styles) === */
.dev-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--moss);
}
.dev-placeholder-icon { font-size: 3rem; }
.dev-placeholder-text {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.3rem;
}
.contact-intro {
    text-align: center;
    color: var(--moss);
    margin-bottom: 30px;
}

/* === Search Bar === */
.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 0 20px;
}
.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    border: 2px solid rgba(17, 99, 39, 0.25);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: var(--forest-dark);
    outline: none;
    transition: border-color 0.3s;
    backdrop-filter: blur(5px);
}
.search-bar input:focus {
    border-color: var(--gold);
}
.search-bar input::placeholder { color: #aaa; }
.search-bar-icon {
    position: absolute;
    left: 34px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* === Cart Page === */

/* Single-column checkout wrapper */
.cart-checkout-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Each section card */
.cart-section {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.cart-section-title {
    font-family: 'Philosopher', serif;
    font-size: 1.25rem;
    color: var(--forest-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
/* Sec1 header row: title + currency selector side by side */

/* Options line under item name */
.cart-item-options {
    font-size: 0.83rem;
    color: var(--moss-light);
    margin-top: 3px;
    margin-bottom: 2px;
}

/* Delivery form */
.cart-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 0;
}

.cart-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-field-label {
    font-size: 0.85rem;
    color: var(--forest-dark);
    font-weight: 600;
}

.cart-field-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid rgba(74, 93, 74, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--forest-dark);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cart-field-input:focus {
    outline: none;
    border-color: var(--moss-green);
}

textarea.cart-field-input {
    resize: vertical;
    min-height: 72px;
}

/* Promo row */
.cart-promo-row {
    display: flex;
    gap: 8px;
}

.cart-promo-row .cart-field-input {
    flex: 1;
}

.cart-promo-btn {
    padding: 10px 16px;
    background: transparent;
    border: 1.5px solid rgba(74, 93, 74, 0.4);
    border-radius: 8px;
    color: var(--forest-dark);
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.cart-promo-btn:hover {
    background: rgba(74, 93, 74, 0.08);
    border-color: var(--moss-green);
}

.cart-promo-msg {
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 18px;
}

.cart-promo-ok {
    color: #2d6e2d;
    font-weight: 600;
}

.cart-promo-error {
    color: #a33;
}

/* Select styling */
.cart-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5d4a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Responsive cart */
@media (max-width: 480px) {
    .cart-checkout-wrap { padding: 0 12px 40px; }
    .cart-section { padding: 18px 16px; }
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--moss);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.cart-empty h2 { font-family: 'Philosopher', sans-serif; margin-bottom: 10px; }
.cart-empty a { color: var(--gold); text-decoration: underline; }

/* Ukraine order success */
.cart-success {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}
.cart-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--moss-green);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.cart-success h2 {
    font-family: 'Philosopher', serif;
    font-size: 1.8rem;
    color: var(--forest-dark);
    margin-bottom: 12px;
}
.cart-success p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Cost breakdown */
.cart-breakdown {
    margin-bottom: 4px;
}
.cart-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.93rem;
    color: #555;
    border-bottom: 1px dashed rgba(0,0,0,0.07);
}
.cart-breakdown-value { font-weight: 500; }

/* Customs / import tax notice (international orders) */
.cart-customs-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fffbf0;
    border: 1px solid #e8c84a;
    border-left: 4px solid #d4af37;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: #5c4a33;
    line-height: 1.6;
}
.cart-customs-notice .notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.6;
}

/* Ukraine payment instructions */
.cart-ukraine-info {
    background: rgba(17, 99, 39, 0.05);
    border-left: 3px solid var(--moss-green);
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #444;
}
.cart-ukraine-info p + p { margin-top: 10px; }

.cart-items { display: block; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: opacity 0.3s;
}
.cart-item.disabled {
    opacity: 0.45;
}
.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--cream);
    flex-shrink: 0;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--forest-dark);
    margin-bottom: 2px;
}
.cart-item-sku {
    font-size: 0.78rem;
    color: #999;
    font-family: monospace;
}
.cart-item-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--forest-dark);
    margin-top: 4px;
}
.cart-item-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(17, 99, 39, 0.3);
    background: transparent;
    color: var(--forest-dark);
    font-size: 1.05rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cart-qty-btn:hover {
    background: rgba(17, 99, 39, 0.08);
}
.cart-qty-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--forest-dark);
    min-width: 20px;
    text-align: center;
}
.cart-remove {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.cart-remove:hover { color: #c0392b; }

.cart-summary {
    display: block;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.cart-summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Philosopher', sans-serif;
    border-top: 2px solid var(--gold);
    padding-top: 12px;
    margin-top: 8px;
}
.cart-continue {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: var(--moss);
    text-decoration: none;
    font-size: 0.9rem;
}
.cart-continue:hover { color: var(--gold); }
.cart-muted { color: #999; }

/* === FAQ Page === */
body[data-page="faqs"] {
    background: linear-gradient(135deg,
        #d4e8d4 0%,
        #e8f5e8 30%,
        #c8e0c8 60%,
        #d4e8d4 100%
    );
    background-attachment: fixed;
}

body[data-page="faqs"] .page-title {
    color: var(--forest-dark);
    padding-bottom: 60px;
}

.faq-container {
    max-width: none;
    margin: 0 0 60px;
    padding: 0 160px;
}

.faq-section {
    margin-bottom: 80px;
}

.faq-section-title {
    font-family: 'Philosopher', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--gold);
    text-transform: none;
    letter-spacing: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    margin-bottom: 28px;
}

.faq-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    background: transparent;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 20px;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    color: var(--forest-dark);
    transition: color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
    line-height: 1;
    font-weight: 300;
    font-family: 'Philosopher', serif;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    color: var(--moss-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1200px;
}

.faq-answer-inner {
    padding: 0 0 30px 0;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    color: #3a4a3a;
    line-height: 1.9;
}

.faq-answer-inner p {
    margin: 0 0 10px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul {
    margin: 6px 0 10px 0;
    padding-left: 22px;
}

.faq-answer-inner li {
    margin-bottom: 4px;
}

/* FAQ Contact CTA */
.faq-contact {
    margin: 40px 0 0;
    padding: 0 160px 20px;
    text-align: center;
}

.faq-contact-box {
    display: inline-block;
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    border-radius: 22px;
    padding: 52px 80px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    min-width: 380px;
}

.faq-contact-question {
    font-family: 'Philosopher', serif;
    font-size: 1.7rem;
    color: var(--forest-dark);
    margin-bottom: 36px;
    font-weight: 400;
}

.faq-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.faq-contact-btn {
    display: inline-block;
    padding: 15px 0;
    width: 220px;
    border: 1.5px solid var(--forest-dark);
    color: var(--forest-dark);
    text-decoration: none;
    font-family: 'Philosopher', serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease;
    text-align: center;
}

.faq-contact-btn:hover {
    background: var(--forest-dark);
    color: var(--cream);
}

.faq-contact-instagram {
    border-color: var(--gold);
    color: var(--gold);
}

.faq-contact-instagram:hover {
    background: var(--gold);
    color: #fff;
}

/* ============================
   RESPONSIVE
   ============================ */

/* --- Large Tablets / Small Laptops --- */
@media (max-width: 1024px) {
    .nav-links { gap: 16px; }
    .nav-link { font-size: 0.88rem; }
    .breadcrumbs { padding: 15px 20px 5px; }
}

/* --- Tablets (portrait) & large phones --- */
@media (max-width: 768px) {
    .hamburger { display: flex !important; }
    .nav-links { display: none !important; }

    .logo {
        position: static !important;
        transform: none !important;
    }

    header { padding: 0 20px; }

    .nav-container {
        height: 60px;
        gap: 12px;
    }

    /* Language switch: hide desktop version, show mobile version */
    .lang-switch-desktop { display: none; }
    .lang-switch-mobile  { display: flex; align-items: center; flex-shrink: 0; }

    .logo a { font-size: 1.25rem; }
    .logo-icon { font-size: 1.45rem; }
    .logo-img { height: 36px; }

    /* Touch-friendly: minimum 44px hit area (Apple/Google guidelines) */
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .icon-btn svg { width: 20px; height: 20px; }
    .hamburger { min-width: 44px; min-height: 44px; }
    .category-btn { min-height: 44px; padding: 10px 20px; }
    .announcement-arrow { min-width: 44px; min-height: 44px; }

    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.25rem; }
    .hero { padding: 60px 20px; min-height: 400px; }

    .category-grid { gap: 15px; }
    .category-card { padding: 30px 20px; }
    .category-icon { font-size: 2.8rem; }
    .category-card h3 { font-size: 1.45rem; }

    .categories { padding: 0 20px; margin: 50px auto; }
    .section-title { font-size: 2.3rem; margin-bottom: 40px; }

    .products-section { padding: 20px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
    .product-card-images { height: 220px; }

    .controls-bar { padding: 12px 15px; }
    .controls-container { gap: 10px; flex-wrap: wrap; }
    .sort-wrapper label { font-size: 1.35rem; }
    .controls-select { min-width: 120px; font-size: 1.35rem; }
    .currency-dropdown, .sort-wrapper { margin: 0; }

    .contact-section { padding: 0 20px; }

    /* Product Detail: stack vertically on tablets/phones */
    .product-detail { padding: 20px; }
    .product-detail-layout { grid-template-columns: 1fr; gap: 30px; }
    .product-detail-name { font-size: 2rem; }
    .product-detail-price { font-size: 1.65rem; }
    .form-container { padding: 25px; }
    .faq-container { padding: 0 24px; }
    .faq-section { margin-bottom: 50px; }
    .faq-contact { padding: 0 24px 50px; }
    .faq-contact-box { padding: 36px 28px; min-width: 0; width: 100%; box-sizing: border-box; }
    .faq-contact-question { font-size: 1.35rem; margin-bottom: 28px; }
    .faq-contact-btn { width: 190px; font-size: 0.98rem; padding: 13px 0; }
    .breadcrumbs { padding: 12px 20px 5px; font-size: 1.15rem; }

    footer { padding: 40px 20px 20px; }
    .footer-nav { flex-direction: column; gap: 15px; align-items: center; }

    .scroll-top-btn { bottom: 20px; right: 20px; }
}

/* --- Small phones (480px) --- */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1.15rem; }
    .hero { padding: 50px 15px; min-height: 350px; }
    .cta-button { padding: 14px 30px; font-size: 1.15rem; }

    .category-grid { grid-template-columns: 1fr; gap: 12px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card-images { height: 180px; }
    .product-info { padding: 12px; }
    .product-title { font-size: 1.15rem; }
    .product-price { font-size: 1.25rem; }
    .product-cart-btn { padding: 10px; font-size: 1.15rem; }
    .product-badge { font-size: 1.15rem; padding: 4px 10px; top: 8px; left: 8px; }

    .page-title { font-size: 2.3rem; padding: 30px 15px 20px; }

    .controls-container { flex-direction: column; align-items: stretch; }
    .controls-select { min-width: 100%; }
    .sort-wrapper { flex-direction: column; align-items: stretch; gap: 5px; }
    .sort-wrapper label { text-align: left; }

    .breadcrumbs { padding: 10px 15px 5px; font-size: 1.25rem; }
    .breadcrumbs .separator { margin: 0 5px; }

    .category-filter { padding: 10px 15px; }
    .category-filter-container { gap: 8px; }
    .category-btn { padding: 8px 14px; font-size: 1.15rem; }

    /* Product Detail on small phones */
    .product-detail { padding: 15px; }
    .product-detail-name { font-size: 1.65rem; }
    .product-detail-price { font-size: 1.45rem; }
    .product-detail-cart-btn { padding: 14px; font-size: 1.05rem; }
}

/* --- Extra-small phones (iPhone SE, Galaxy A01, etc.) --- */
@media (max-width: 360px) {
    header { padding: 0 12px; }
    .nav-container { gap: 10px; }
    .logo a { font-size: 1.15rem; gap: 5px; }
    .logo-icon { font-size: 1.25rem; }
    .logo-img { height: 30px; }
    .header-actions { gap: 8px; }

    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 1.25rem; }

    .products-grid { grid-template-columns: 1fr; gap: 12px; }
    .product-card-images { height: 200px; }

    .page-title { font-size: 1.7rem; padding: 25px 12px 15px; }
    .section-title { font-size: 1.6rem; }

    footer { padding: 30px 12px 15px; }
    .social-icons { gap: 12px; flex-wrap: wrap; }

    .announcement-bar { padding: 8px 10px; font-size: 1rem; top: 60px; }
    .announcement-text { font-size: 1rem; }

    .breadcrumbs { padding: 8px 12px 3px; font-size: 1.35rem; }

    .form-container { padding: 20px 15px; }
    .form-input, .form-textarea { font-size: 16px; } /* Prevents iOS zoom on focus */
    .faq-contact-box { padding: 28px 18px; }
    .faq-contact-question { font-size: 1.2rem; }
    .faq-contact-btn { width: 170px; font-size: 0.93rem; }
}

/* --- iPhone notch / Dynamic Island safe areas --- */
@supports (padding: env(safe-area-inset-bottom)) {
    header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .mobile-sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .scroll-top-btn {
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
    }
}

/* --- Tablet landscape (between 768 and 1024) --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .product-card-images { height: 250px; }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover animations on touch devices (prevents sticky hover) */
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
    .product-cart-btn:hover {
        background: var(--gold);
        color: var(--cream);
        transform: none;
        box-shadow: none;
    }
    /* Tap highlight for touch feedback */
    .product-card {
        -webkit-tap-highlight-color: rgba(17, 99, 39, 0.15);
    }
    .product-cart-btn:active {
        background: var(--forest-dark);
        color: var(--gold);
    }
}

/* === Skip to content (Accessibility) === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 10px 20px;
    background: var(--gold);
    color: var(--forest-dark);
    z-index: 10000;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* =============================================
   PAYMENT INTEGRATION — Cart & Order Success
   ============================================= */

/* --- Cart Email Section --- */
.cart-email-section {
    margin: 1.2rem 0;
}
.cart-email-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.4rem;
}
.cart-email-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.cart-email-input:focus {
    border-color: #4a5d4a;
    outline: none;
    background: #fff;
}
.cart-input-error {
    border-color: #c44 !important;
    background: #fff5f5 !important;
}

/* --- Payment Button --- */
.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    background: #1a2b1a;
    color: #fff;
    transition: background 0.2s, opacity 0.2s, transform 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.cart-checkout-btn:hover:not(:disabled) {
    background: #2d4a2d;
    transform: translateY(-1px);
}
.cart-checkout-btn:active:not(:disabled) {
    transform: translateY(0);
}
.cart-btn-text {
    font-size: 1.1rem;
}
.cart-btn-methods {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
}
.cart-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.cart-btn-loading {
    opacity: 0.7;
    cursor: wait;
    position: relative;
}
.cart-btn-loading .cart-btn-methods {
    visibility: hidden;
}

/* --- Payment Badge --- */
.cart-payment-badge {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.8rem;
    padding-top: 0.6rem;
}

/* --- Payment Error --- */
.cart-payment-error {
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    background: #fff5f5;
    border: 1px solid #e8c4c4;
    border-radius: 6px;
    color: #a33;
    font-size: 0.9rem;
    text-align: center;
    animation: cartErrorFade 0.3s ease;
}
@keyframes cartErrorFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Cart Image Hidden --- */
.cart-item-img-hidden {
    display: none !important;
}

/* =============================================
   ORDER SUCCESS PAGE
   ============================================= */

.order-status-container {
    max-width: 520px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

/* Loading state */
.order-status-loading {
    padding: 3rem 0;
}
.order-status-loading h2 {
    margin: 1.5rem 0 0.5rem;
    color: #1a2b1a;
    font-family: 'Philosopher', serif;
}
.order-status-loading p {
    color: #888;
}
.order-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid #e0e0e0;
    border-top-color: #4a5d4a;
    border-radius: 50%;
    animation: orderSpin 0.8s linear infinite;
}
@keyframes orderSpin {
    to { transform: rotate(360deg); }
}

/* Result states */
.order-result {
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}
.order-result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.order-result-title {
    font-family: 'Philosopher', serif;
    font-size: 1.5rem;
    color: #1a2b1a;
    margin-bottom: 0.8rem;
}
.order-result-message {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Result type colors */
.order-result-success {
    background: #f0f8f0;
    border-color: #b8d8b8;
}
.order-result-error {
    background: #fdf5f5;
    border-color: #e8c4c4;
}
.order-result-warning {
    background: #fefaf0;
    border-color: #e8dbb8;
}
.order-result-info {
    background: #f5f8fd;
    border-color: #c4d4e8;
}

/* Result action buttons */
.order-result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.order-result-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
    background: #1a2b1a;
    color: #fff;
}
.order-result-btn:hover {
    background: #2d4a2d;
    transform: translateY(-1px);
}
.order-result-btn-secondary {
    background: transparent;
    color: #4a5d4a;
    border: 1px solid #4a5d4a;
}
.order-result-btn-secondary:hover {
    background: #f0f5f0;
    color: #4a5d4a;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .order-status-container {
        margin: 1.5rem auto;
    }
    .order-result {
        padding: 2rem 1rem;
    }
    .order-result-actions {
        flex-direction: column;
    }
    .order-result-btn {
        text-align: center;
    }
}

/* =============================================
   GLOBAL SEARCH (p2b-search)
   ============================================= */

.p2b-search {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 35, 20, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.p2b-search.active {
    opacity: 1;
    visibility: visible;
}

.p2b-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 660px;
    padding: 0 24px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.p2b-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.6rem;
    color: var(--cream);
    caret-color: var(--gold);
    min-width: 0;
}

.p2b-search-input::placeholder {
    color: rgba(245, 241, 232, 0.3);
}

.p2b-search-close {
    background: none;
    border: none;
    color: rgba(245, 241, 232, 0.5);
    font-size: 2rem;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.p2b-search-close:hover { color: var(--gold); }

.p2b-search-results {
    width: 100%;
    max-width: 660px;
    padding: 0 10px;
    overflow-y: auto;
    max-height: calc(100vh - 230px);
}

.p2b-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--cream);
    transition: background 0.18s;
}

.p2b-search-item:hover {
    background: rgba(17, 99, 39, 0.1);
}

.p2b-search-item + .p2b-search-item {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.p2b-search-item-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.p2b-search-item-info {
    flex: 1;
    min-width: 0;
}

.p2b-search-item-name {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p2b-search-item-sku {
    font-size: 0.78rem;
    color: rgba(245, 241, 232, 0.4);
    font-family: monospace;
    margin-bottom: 2px;
}

.p2b-search-item-price {
    font-size: 0.92rem;
    color: var(--gold);
    font-weight: 600;
}

.p2b-search-hint {
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
    color: rgba(245, 241, 232, 0.35);
}

@media (max-width: 768px) {
    .p2b-search { padding-top: 70px; }
    .p2b-search-input { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .p2b-search-input { font-size: 1.05rem; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* Top wide carousel — 3:2 ratio */
/* Frame wrapper for the about-page carousel */
.about-carousel-frame {
    max-width: 820px;
    margin: 0 auto 40px;
}

.about-carousel-wide {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--forest-dark);
    border-radius: 10px;
}

.about-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.about-carousel-slide {
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.about-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-slide-caption {
    position: absolute;
    bottom: 18px;
    right: 22px;
    font-family: 'Philosopher', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    letter-spacing: 1px;
    pointer-events: none;
}

.about-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.about-carousel-arrow:hover { background: rgba(0, 0, 0, 0.62); }
.about-carousel-prev { left: 16px; }
.about-carousel-next { right: 16px; }

.about-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.about-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.about-carousel-dot.active { background: #fff; }

/* Content container */
.about-content {
    max-width: 980px;
    margin: 30px auto 0;
    padding: 40px 48px 64px;
}

/* Intro text */
.about-intro p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--forest-dark);
    margin-bottom: 16px;
    text-align: center;
}

/* Divider */
.about-divider {
    text-align: center;
    font-size: 1.6rem;
    color: var(--gold);
    margin: 56px 0;
    font-family: 'Philosopher', serif;
    letter-spacing: 0.08em;
}

/* Two-column: text + stacked photos */
.about-text-photo {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: center;
}

.about-text-col p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--forest-dark);
    margin-bottom: 20px;
    text-align: center;
}

.about-quote {
    font-family: 'Philosopher', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--wood-dark);
    text-align: center;
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

/* Stacked photos (right column) */
.about-stacked-photos {
    display: flex;
    flex-direction: column;
    gap: 101px;
}

.about-stacked-photos img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

/* Plain text sections */
.about-section p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--forest-dark);
    margin-bottom: 20px;
    text-align: center;
}

.about-thankyou {
    font-family: 'Philosopher', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--wood-dark);
    text-align: center;
    margin-top: 40px;
}

/* Bottom photo 3:2 */
.about-photo-end {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.about-photo-end img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About — responsive */
@media (max-width: 1024px) {
    .about-text-photo { grid-template-columns: 1fr 300px; gap: 48px; }
}

@media (max-width: 768px) {
    .about-content { padding: 44px 24px; }
    .about-text-photo { grid-template-columns: 1fr; gap: 36px; }
    .about-divider { margin: 40px 0; }
    .about-carousel-arrow { width: 38px; height: 38px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .about-content { padding: 32px 16px; }
    .about-intro p,
    .about-text-col p,
    .about-section p { font-size: 1rem; }
    .about-divider { font-size: 1.4rem; margin: 32px 0; }
}

/* ============================================
   SERVICES PAGE — 5:4 images fully visible, centered grid
   ============================================ */
[data-page="catalog-services"] .product-card-images {
    height: auto;
    aspect-ratio: 5 / 4;
    position: relative;
}
[data-page="catalog-services"] .product-card-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
[data-page="catalog-services"] .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
}

/* ============================================
   GIFT PAGE — center items when USD/EUR selected
   ============================================ */
[data-page="catalog-gift"] .products-grid.gift-centered {
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    justify-content: center;
}

/* ============================================
   SIZE TABLE — rings product page
   ============================================ */
.size-table-wrap {
    margin: 16px 0 8px;
}

.size-table-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Philosopher', serif;
    font-size: 0.95rem;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.size-table-toggle:hover {
    color: var(--gold-light);
}

.size-table-arrow {
    font-style: normal;
    font-size: 0.85rem;
}

.size-table-content {
    display: none;
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.size-table-content.open {
    display: block;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    white-space: nowrap;
}

.size-table th {
    background: var(--forest-dark);
    color: var(--cream);
    padding: 8px 10px;
    text-align: center;
    font-family: 'Philosopher', serif;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: normal;
    min-width: 70px;
}

.size-table td {
    padding: 6px 10px;
    text-align: center;
    color: var(--wood-dark);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.size-table tbody tr:nth-child(even) td {
    background: rgba(212, 175, 55, 0.05);
}

.size-table tbody tr:last-child td {
    border-bottom: none;
}

/* Highlight "Розмір" column (3rd) — body cells only */
.size-table td:nth-child(3) {
    background: rgba(107, 142, 107, 0.22) !important;
    font-weight: 600;
    color: var(--forest-dark);
}

/* ============================================
   UKRAINE IBAN MODAL
   ============================================ */
.ukraine-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ukraine-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
}

.ukraine-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}
.ukraine-modal-close:hover { color: var(--forest-dark); }

.ukraine-modal-box p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--forest-dark);
    margin-bottom: 14px;
}

.ukraine-modal-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.ukraine-modal-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'Philosopher', serif;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.ukraine-modal-btn:hover { opacity: 0.85; }

.ukraine-modal-btn--primary {
    background: var(--forest-dark);
    color: var(--cream);
}

.ukraine-modal-btn--secondary {
    background: #000000;
    border: none;
    color: #ffffff;
    position: relative;
}

.ukraine-modal-btn--secondary::after {
    content: 'mono';
    position: absolute;
    top: 6px;
    right: 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 480px) {
    .ukraine-modal-box { padding: 28px 20px 20px; }
}
