/*
 * Mekohaus Website Styles
 * Author: AVPdev
 */

/* === CSS переменные === */
:root {
    --meko-yellow: #FFE600;
    --meko-blue: #0065B3;
    --meko-light-blue: #82B1D8;
    --meko-dark-bg: #222220;
    --meko-white: #FFFFFF;
    --meko-text-on-dark: #FFFFFF;
    --meko-text-on-light: #222220;
    --meko-text-secondary-on-light: #585858;
    --meko-section-bg: #f7f7f7;
    --meko-advantage-icon-color: #000000;
    --meko-advantage-title-color: #000000;
    --meko-advantage-text-color: #707070;
    --background-white: var(--meko-white);
    --background-main-light: #F8F8F7;
    --text-color: var(--meko-text-on-light);
    --text-color-secondary: var(--meko-text-secondary-on-light);
    --light-text-color: var(--meko-text-on-dark);
    --background-footer: var(--meko-dark-bg);
    --footer-text-color: #BDBDBD;
    --border-color: #E0E0E0;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --header-height: 70px;
    --font-family-main: 'Montserrat', 'Arial', sans-serif;
}

/* === Глобальные стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-main);
    line-height: 1.7;
    color: var(--text-color);
    padding-top: var(--header-height);
    background-color: var(--background-main-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    overflow-wrap: break-word;
}
h1 { font-size: 44px; }
h2 { font-size: 36px; margin-bottom: 40px; text-align: center; }
h3 { font-size: 22px; margin-bottom: 15px; }
h4 { font-size: 18px; margin-bottom: 10px; }

/* === Компоненты === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}
.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.btn-primary {
    background: var(--meko-yellow);
    color: var(--meko-text-on-light);
    border-color: var(--meko-yellow);
}
.btn-primary:hover:not(:disabled) {
    background: #e6cf00;
    border-color: #e6cf00;
    color: var(--meko-text-on-light);
}

.btn-secondary {
    background: transparent;
    color: var(--meko-text-on-dark);
    border: 2px solid var(--meko-text-on-dark);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--meko-text-on-dark);
    color: var(--meko-yellow);
}

/* === Шапка сайта === */
header#site-header {
    background: var(--meko-dark-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: top 0.3s ease-in-out;
}
header#site-header.header-hidden {
    top: calc(-1 * var(--header-height) - 10px);
}

header#site-header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
    flex-shrink: 0;
    max-height: 100%;
    gap: 15px;
}

.logo-image {
    display: block;
    height: 55px;
    width: auto;
}

.logo-text-addon {
    color: var(--meko-text-on-dark);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: lowercase;
    align-self: center;
}

nav#main-nav {
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;
}

nav#main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding-left: 0;
    gap: 25px;
}
nav#main-nav ul li {
    margin-left: 0;
}
nav#main-nav ul li a {
    text-decoration: none;
    color: var(--meko-text-on-dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}
nav#main-nav ul li a:hover,
nav#main-nav ul li a.active {
    color: var(--meko-yellow);
}

nav#main-nav ul li.mobile-only-contact {
    display: none;
}
nav#main-nav ul li.mobile-only-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}
nav#main-nav ul li.mobile-only-contact a i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
    color: var(--meko-blue);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.header-contact-info {
    display: flex;
    align-items: center;
    font-size: 0.9em;
}
.header-contact-info .header-email {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact-info a {
    text-decoration: none;
    color: var(--meko-text-on-dark);
    font-weight: 500;
    transition: color 0.3s;
    line-height: 1.3;
}
.header-contact-info a:hover {
    color: var(--meko-yellow);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
}

.lang-option {
    font-family: var(--font-family-main);
    font-size: 0.95em;
    font-weight: 500;
    color: var(--meko-text-on-dark);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: var(--border-radius-sm);
    transition: color 0.3s, background-color 0.3s, opacity 0.3s;
    opacity: 1;
    user-select: none;
}

.lang-option:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
}

.lang-option:focus-visible {
    /* Добавляем обводку для доступности (a11y) - Рек. 3.2 */
    outline: 2px solid var(--meko-yellow);
    outline-offset: 2px;
    opacity: 1;
}

.lang-option.active {
    color: var(--meko-yellow);
    font-weight: 700;
    opacity: 1;
}
.lang-option.active:hover {
    background-color: transparent;
}

.lang-separator {
    color: var(--meko-text-on-dark);
    opacity: 0.5;
    margin: 0 2px;
    font-weight: 400;
    user-select: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
/* Сброс стилей для кнопок (Рек. 3.1 и 3.2) */
.category,
.lang-option {
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    text-align: inherit;
    color: inherit;
    /* Сбрасываем вид курсора для <button>, чтобы CSS-правило .category[cursor: pointer] сработало */
    cursor: inherit;
}
/* Восстанавливаем паддинг для .lang-option, который был сброшен */
.lang-option {
    font-weight: 500;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: var(--border-radius-sm);
    transition: color 0.3s, background-color 0.3s, opacity 0.3s;
    opacity: 1;
    user-select: none;
}
/* Восстанавливаем стили для .category, который был сброшен */
.category {
    background: var(--background-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 260px;
}
/* Добавляем обводку :focus-visible для .category (a11y) - Рек. 3.1 */
.category:focus-visible {
    outline: 3px solid var(--meko-blue);
    outline-offset: 2px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--meko-text-on-dark);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
    transform-origin: center;
}
.burger-menu.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === Секция "Hero" === */
.hero {
    min-height: 60vh;
    max-height: 700px;
    color: var(--meko-text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    display: block;
}

.hero .container.hero-content-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
    padding: 60px 15px;
}

.hero-text {
    max-width: 800px;
}

.hero .hero-brand-name,
.hero h1,
.hero .hero-description {
    color: var(--meko-text-on-dark);
}

.hero .hero-brand-name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}
.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}
.hero .hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0.9;
}
.hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-actions .btn-primary {
    background-color: var(--meko-yellow);
    color: var(--meko-text-on-light);
    border-color: var(--meko-yellow);
}
.hero-actions .btn-primary:hover {
    background-color: #e6cf00;
    border-color: #e6cf00;
    color: var(--meko-text-on-light);
}
.hero-actions .btn-secondary {
    background-color: transparent;
    color: var(--meko-yellow);
    border: 2px solid var(--meko-yellow);
}
.hero-actions .btn-secondary:hover {
    background-color: var(--meko-yellow);
    color: var(--meko-text-on-light);
    border-color: var(--meko-yellow);
}

/* === Секция "О компании" === */
.about-us-intro-section {
    padding: 70px 0;
    background-color: var(--background-white);
}
.about-us-intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.about-us-intro-text {
    width: 100%;
    max-width: 800px;
}
.about-us-intro-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
    color: var(--text-color);
}
.about-us-intro-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-color-secondary);
}
.about-us-intro-text p:last-child {
    margin-bottom: 0;
}

.about-us-intro-section .about-us-intro-text {
    text-align: left;
}

.about-us-intro-section .about-us-intro-text p {
    margin-bottom: 18px;
}

.about-us-wholesale-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--meko-blue);
    margin-top: 35px;
    margin-bottom: 20px;
    text-align: left;
}

.about-us-wholesale-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.about-us-wholesale-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color-secondary);
}

.about-us-wholesale-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--meko-yellow);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 1.1em;
}

.about-us-wholesale-list li strong {
    font-weight: 700;
    color: var(--text-color);
    display: block;
    margin-bottom: 3px;
}

.about-us-wholesale-cta {
    font-weight: 500;
    font-size: 1.05em !important;
    color: var(--text-color) !important;
    margin-top: 30px;
    text-align: left;
}

/* === Секция "Преимущества" === */
.advantages-section {
    padding: 80px 0;
    background-color: var(--meko-section-bg);
}
.advantages-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--meko-text-on-light);
    text-transform: uppercase;
    font-weight: 700;
}
.advantages-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--meko-yellow);
    margin: 15px auto 50px;
}
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 0;
}
.advantage {
    text-align: center;
    padding: 30px 25px;
    background: var(--background-white);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.advantage:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.advantage-icon-wrapper {
    width: 50px;
    height: 50px;
    color: var(--meko-advantage-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}
.advantage h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--meko-advantage-title-color);
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.advantage p {
    font-size: 14px;
    color: var(--meko-advantage-text-color);
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* === Секция "Каталог" === */
.catalog { padding: 80px 0 60px; background-color: var(--background-main-light); }
.catalog h2 { text-align: center; margin-bottom: 30px; font-size: 36px; color: var(--text-color); }
.catalog .catalog-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-color-secondary);
}
.categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.category {
    background: var(--background-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 260px;
}
.category:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);  }
.category img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--border-radius-sm); margin-bottom: 15px; }
.category h3 { font-size: 20px; margin-bottom: 0; color: var(--meko-blue); font-weight: 700;}

/* === Секция "Контакты" === */
.contacts {
    padding: 80px 0;
    background-image: linear-gradient(to bottom, var(--background-main-light) 0%, #eef0e9 100%);
    background-color: var(--background-main-light);
}

.contacts-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 70px;
}

.contact-text-info {
    padding-right: 20px;
}

.contact-text-info h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 30px;
    color: var(--text-color);
    line-height: 1.3;
}
.contact-text-info > p {
    text-align: left;
    margin-bottom: 0;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-color-secondary);
}

.contact-form-wrapper {
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.form-group {
    margin-bottom: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    background-color: var(--background-white);
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--meko-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 101, 179, 0.2);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* === Динамическая лента товаров === */
.dynamic-products-strip-container {
    margin-top: 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.dynamic-products-strip-container h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: var(--text-color);
    font-weight: 700;
}
.strip-navigation-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.dynamic-products-strip-outer {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.dynamic-products-strip {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    min-height: 280px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch; /* iOS */
    will-change: scroll-position;
}
.dynamic-products-strip::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.strip-product { border: 2px solid #e5e7eb;
    flex: 0 0 240px;
    width: 240px;
    min-height: 270px;
    background: var(--background-white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-right: 25px;
}
.strip-product:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.strip-product img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin: 0 auto 15px auto;
    display: block;
}
.strip-product h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--text-color) !important;
    font-weight: 600;
    min-height: 2.8em;
    line-height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.strip-product .price {
    font-size: 1.05em;
    font-weight: 700;
    margin-top: 12px;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 8px;
    font-weight: 500;
}

/* Price Classes */
.price {
    font-weight: 700;
    transition: color 0.3s;
}

.price.price-standard,
.price-standard {
    color: var(--meko-blue);
    font-size: 1.2em;
}

.price.price-sale,
.price-sale {
    color: #ef4444; /* Red for new price */
    font-size: 1.4em;
    font-weight: 800;
}

/* Ensure detail modal matches */
.product-detail-price .price-standard, .product-detail-price span.price-standard {
    color: var(--meko-blue);
    font-size: 24px;
}
.product-detail-price .price-sale, .product-detail-price span.price-sale {
    color: #ef4444;
    font-size: 28px;
    font-weight: 800;
}

/* Badge Styles */
.badge-hit {
    background-color: #f59e0b; /* Amber/Orange */
    color: white;
}
.badge-sale {
    background-color: #ef4444; /* Red */
    color: white;
}

/* Distinction for Hit and Sale products */
.product.is-hit,
.strip-product.is-hit {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2) !important;
}

.product.is-sale,
.strip-product.is-sale {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
}
.strip-nav-btn {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 22px;
    line-height: 43px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.strip-nav-btn:hover:not(:disabled) {
    background-color: var(--meko-blue);
    color: var(--meko-text-on-dark);
    border-color: var(--meko-blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.strip-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #e9ecef;
    box-shadow: none;
    border-color: var(--border-color);
    color: #adb5bd;
}

/* === Подвал === */
footer {
    background: var(--meko-dark-bg);
    color: var(--footer-text-color);
    padding: 60px 0 30px;
    font-family: var(--font-family-main);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info, .footer-contacts-block {
    flex-basis: auto;
    text-align: center;
    max-width: 500px;
}

.logo-image-footer {
    height: 60px;
    width: auto;
    display: block;
}

.footer-info p[data-lang-key="footer_description"] {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--footer-text-color);
}

.footer-contacts-block h4 {
    color: var(--meko-white);
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-contacts-block p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    line-height: 1.5;
}
.footer-contacts-block p a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}
.footer-contacts-block p a:hover {
    color: var(--meko-light-blue);
}
.footer-contacts-block i {
    margin-right: 10px;
    color: var(--meko-light-blue);
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 0.9em;
    color: #aaa;
    line-height: 1.6;
}

.copyright p {
    margin-bottom: 10px;
}

footer .logo-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

footer .logo-text-addon {
    color: var(--meko-white);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: lowercase;
    align-self: center;
    opacity: 0.9;
}

footer .logo-image-footer {
    margin-bottom: 0;
    height: 55px;
}

.creator-credit {
    margin-top: 15px;
    font-size: 0.9em;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.creator-credit .creator-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    transition: color 0.3s, background-color 0.3s, text-decoration 0.3s;
}

.creator-credit .creator-link:hover {
    color: var(--meko-yellow);
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.creator-credit .creator-link i {
    margin-right: 0;
    color: var(--meko-light-blue);
    transition: color 0.3s, transform 0.3s;
}

.creator-credit .creator-link:hover i {
    color: var(--meko-yellow);
    transform: rotate(-15deg);
}


/* === Модальные окна === */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
    padding: 20px;
}
#quiz-modal { z-index: 21000; } /* Quiz Modal */

/* ИЗМЕНЕНИЕ: Увеличен z-index для модальных окон успеха/ошибки, чтобы они были поверх модала заказа (z-index: 2030) */
#success-modal, #error-modal { z-index: 22100; }

#order-modal { z-index: 21000; } /* Добавлено модальное окно заказа */

.modal-content {
    background-color: var(--background-white);
    margin: 20px auto;
    padding: 30px 25px 25px 25px;
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: var(--text-color); 
    font-size: 28px;
    font-weight: normal;
    position: absolute;
    right: 15px; 
    top: 15px;   
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, background-color 0.3s, transform 0.2s;
    width: 36px; 
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    z-index: 20;
    background-color: rgba(235, 235, 235, 0.8); 
    box-shadow: 0 1px 2px rgba(0,0,0,0.15); 
}
.close:hover {
    color: var(--meko-blue); 
    background-color: rgba(220, 220, 220, 0.9); 
    transform: scale(1.1); 
}

#image-viewer-modal { z-index: 2050; }
#image-viewer-modal .close.image-viewer-close {
    position: absolute; 
    top: 20px;
    right: 20px;
    font-size: 40px; 
    color: var(--meko-white); 
    background-color: rgba(0,0,0,0.3); 
    width: 40px; 
    height: 40px;
    box-shadow: none; 
}
#image-viewer-modal .close.image-viewer-close:hover {
    color: var(--meko-yellow);
    background-color: rgba(0,0,0,0.6);
    transform: none; 
}

.modal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: sticky;
    top: -15px;
    left: 15px;         
    z-index: 15;
    background-color: var(--meko-light-blue);
    color: var(--meko-white);
    border: 2px solid var(--meko-light-blue);
    padding: 6px 12px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    line-height: 1.2;
    opacity: 0; 
    visibility: hidden;
    transform: translateY(-20px); 
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out,
                background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
    margin-bottom: -36px;
}

.modal-back-btn.visible { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modal-back-btn:hover {
    background-color: var(--meko-blue);
    border-color: var(--meko-blue);
    color: var(--meko-white);
    box-shadow: 0 2px 8px rgba(0, 101, 179, 0.3);
}
.modal-back-btn.visible:hover { 
     transform: translateY(-1px);
}

.modal-title { 
    margin-top: 5px; 
    margin-bottom: 25px;
    text-align: center;
    font-size: 22px;
    color: var(--text-color);
    font-weight: 700;
}

.modal-content div.products.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; 
    gap: 15px;
    padding: 15px 5px;
    width: 100%;
    grid-template-columns: none; 
}

.modal-content div.products:not(.subcategories-list) {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px);
    gap: 30px;
    align-items: stretch;
    justify-content: center;
}

.modal-content .subcategories-list .category-item {
    background: var(--background-white);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: row; 
    align-items: center;
    text-align: left;
    padding: 10px 12px;
    width: 100%; 
    max-width: 480px; 
    min-height: 64px; 
}

.modal-content .subcategories-list .category-item:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.1);
}

.modal-content .subcategories-list .category-item img { 
    width: 40px;
    height: 40px;
    object-fit: contain; 
    margin-right: 12px;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0; 
    aspect-ratio: unset;
    margin-bottom: 0;
    flex-grow: 0;
    min-height: auto;
    max-height: none;
}

.modal-content .subcategories-list .category-item h3 { 
    font-size: 15px;
    color: var(--meko-blue);
    font-weight: 700;
    line-height: 1.3;
    flex-grow: 1; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
    padding: 0;
    margin-top: 0;
}

/* === СТИЛИ ДЛЯ КВИЗА и ФОРМЫ ЗАКАЗА (FAB Replacement) === */
.quiz-modal-content, #order-modal .modal-content {
    max-width: 480px !important; /* Ограничим ширину для формы заказа */
    text-align: center;
    padding: 30px; /* Увеличим паддинг для лучшего вида */
}

#quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

#quiz-progress {
    height: 100%;
    width: 0%;
    background-color: var(--meko-yellow);
    transition: width 0.3s ease-in-out;
}

.quiz-title {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--meko-blue);
}

.quiz-subtitle {
     font-size: 16px;
     color: var(--text-color-secondary);
     margin-bottom: 25px;
}

.quiz-options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--background-main-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--meko-light-blue);
    background-color: #f0f8ff;
}

.quiz-option input[type="radio"] {
    margin-right: 15px;
    flex-shrink: 0;
    accent-color: var(--meko-blue); /* Цвет выбранной радиокнопки */
    width: 18px;
    height: 18px;
}

.quiz-option input[type="radio"]:checked + span {
    color: var(--meko-blue);
    font-weight: 700;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quiz-nav-btn {
    min-width: 120px;
    font-size: 14px;
    padding: 10px 15px;
}
/* Скрываем кнопку "Назад" на первом шаге */
#quiz-prev-btn:disabled {
    visibility: hidden;
}

/* Финальная форма квиза */
#quiz-contact-form {
    margin-top: 25px;
}

/* Стили для формы в модальном окне заказа */
.compact-contact-form {
    margin-top: 15px;
    text-align: left;
}
.compact-contact-form .form-group {
    margin-bottom: 15px;
}
.compact-contact-form .form-group input {
    padding: 10px 12px;
    font-size: 0.95em;
}
.compact-contact-form .btn-block { 
    display: block; 
    width: 100%; 
    padding: 10px 20px; 
    font-size: 1em; 
    margin-top: 15px; 
}
/* === КОНЕЦ СТИЛЕЙ КВИЗА и ФОРМЫ ЗАКАЗА === */


.modal-content div.products .product.product-in-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--background-white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e5e7eb;
}

.modal-content div.products .product.product-in-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-content div.products .product.product-in-list .product-info-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modal-content div.products .product.product-in-list .order-btn {
    margin-top: auto;
    width: 100%;
}

.modal-content div.products .product.product-in-list h3 { 
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--text-color);
    font-weight: 700;
    min-height: 2.6em; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-content div.products .product.product-in-list .product-short-description {
    font-size: 0.9em;
    color: var(--text-color-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 2.8em; /* Force roughly 2 lines height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.modal-content div.products .product.product-in-list .price { 
    font-weight: 700;
    margin-bottom: 15px;
}
/* Ensure inner classes override logic */
.modal-content div.products .product.product-in-list .price.price-standard {
    color: var(--meko-blue);
    font-size: 20px;
}
.modal-content div.products .product.product-in-list .price.price-sale {
    color: #ef4444;
    font-size: 22px;
}
.product-image-container { width: 100%; margin-bottom: 15px; position: relative; }
.product-image-container .image-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 2px 7px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75em;
    pointer-events: none; 
}
.product-image-container .product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-image-container .product-badges .badge-hit,
.product-image-container .product-badges .badge-sale {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 700;
}


.fab-modal .modal-content { max-width: 420px; padding: 30px; }
.fab-modal-content-wrapper { display: flex; flex-direction: column; gap: 25px; }
.fab-modal-section { text-align: left; }
.fab-modal-section .fab-section-title {
    font-weight: 500; color: var(--text-color-secondary); margin-bottom: 12px;
    font-size: 1em; border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px; text-align: left;
}
.fab-contact-link {
    display: inline-flex; align-items: center; color: var(--text-color);
    text-decoration: none; margin-bottom: 10px; font-size: 1.05em;
    transition: color 0.3s; padding: 5px 0;
}
.fab-contact-link:hover { color: var(--meko-blue); }
.fab-contact-link i { 
    margin-right: 12px; color: var(--meko-blue);
    font-size: 1.2em; width: 22px; text-align: center;
}
.fab-modal-messengers { 
    display: flex; justify-content: center; gap: 25px; margin-top: 10px; margin-bottom: 10px;
}
.fab-modal-messengers .messenger-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--background-main-light); color: var(--meko-blue);
    font-size: 26px; text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, border-color 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.fab-modal-messengers .messenger-icon:hover {
    color: var(--meko-white); transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.fab-modal-messengers .viber-icon:hover { background-color: #675DA9; border-color: #524494; }
.fab-modal-messengers .telegram-icon:hover { background-color: #2AABEE; border-color: #1F8ACB; }
.fab-modal-messengers .whatsapp-icon:hover { background-color: #25D366; border-color: #1DAF54; }

.compact-contact-form { margin-top: 15px; }
.compact-contact-form .form-group { margin-bottom: 15px; }
.compact-contact-form .form-group input,
.compact-contact-form .form-group textarea { padding: 10px 12px; font-size: 0.95em; }
.compact-contact-form .form-group textarea { min-height: 80px; resize: none; }
.compact-contact-form .btn-block { display: block; width: 100%; padding: 10px 20px; font-size: 1em; margin-top: 15px; }

.floating-action-button-single {
    position: fixed; bottom: 20px; right: 20px; z-index: 990; 
    width: 60px; height: 60px; background-color: var(--meko-blue);
    color: var(--meko-text-on-dark); border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.floating-action-button-single:hover {
    background-color: #00528f; 
    transform: scale(1.08) translateY(-3px); 
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.product-image-container { width: 100%; margin-bottom: 15px; position: relative; }
.product-image-gallery {
    position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: var(--border-radius-sm);
}
.main-product-image { 
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3; 
    object-fit: cover;   
    cursor: pointer; 
    transition: opacity 0.3s ease-in-out;
    border-radius: var(--border-radius-sm);
}
.gallery-nav { 
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5); color: white; border: none;
    padding: 8px 12px; cursor: pointer; z-index: 10; font-size: 18px;
    border-radius: var(--border-radius-sm); transition: background-color 0.3s;
}
.gallery-nav:hover { background-color: rgba(0, 0, 0, 0.8); }
.gallery-nav.prev-image { left: 10px; }
.gallery-nav.next-image { right: 10px; }
.gallery-nav:disabled { opacity: 0.3; cursor: not-allowed; }

#image-viewer-modal .modal-content {
    background-color: transparent; padding: 0; box-shadow: none;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; max-width: none; margin: 0;
}
#image-viewer-modal .image-viewer-content {
    position: relative; width: 90vw; height: 90vh;
    display: flex; align-items: center; justify-content: center; pointer-events: auto;
}
#viewer-image-element {
    display: block; max-width: 100%; max-height: 100%; object-fit: contain;
    border-radius: var(--border-radius-md); box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
.viewer-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); color: white; border: none;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 1400; font-size: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.viewer-nav:hover { background-color: rgba(0, 0, 0, 0.7); transform: translateY(-50%) scale(1.1); }
.viewer-nav.prev { left: 20px; }
.viewer-nav.next { right: 20px; }
.viewer-nav:disabled { opacity: 0.2; cursor: not-allowed; }
#viewer-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7); color: white; padding: 5px 15px;
    border-radius: var(--border-radius-sm); font-size: 0.9em; z-index: 1400; pointer-events: none;
}
.viewer-nav[style*="display: none"],
#viewer-counter[style*="display: none"] { display: none !important; }
.gallery-nav[style*="display: none"] { display: none !important; }


.product-detail-modal-container .modal-content {
    max-width: 950px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.product-detail-gallery-container {
    position: relative;
}

.product-detail-gallery-container .main-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    cursor: zoom-in;
}
.product-detail-gallery-container .product-image-gallery {
    position: relative;
    background-color: transparent;
}

.product-detail-gallery-container .gallery-nav {
    background-color: rgba(0, 0, 0, 0.4);
}
.product-detail-gallery-container .gallery-nav:hover{
    background-color: rgba(0, 0, 0, 0.7);
}

.product-detail-gallery-container .product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-start;
}

.product-detail-gallery-container .thumbnail-image {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: border-color 0.3s, opacity 0.3s;
}
.product-detail-gallery-container .thumbnail-image:hover {
    opacity: 0.8;
    border-color: var(--meko-light-blue);
}

.product-detail-gallery-container .thumbnail-image.active {
    border-color: var(--meko-blue);
    opacity: 1;
}

.product-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-detail-description {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-secondary);
    margin-bottom: 20px;
}
.product-detail-description p {
    margin-bottom: 10px;
}
.product-detail-description p:last-child {
    margin-bottom: 0;
}

.product-detail-price {
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
}

.product-detail-order-btn {
    padding: 12px 25px;
    font-size: 1.05em;
}

.success-message-modal,
.error-message-modal {
    text-align: center;
    padding: 40px 30px !important;
    max-width: 450px;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.success-icon { color: #28a745; }
.error-icon { color: #dc3545; }

.success-message-modal h2,
.error-message-modal h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.success-message-modal p,
.error-message-modal p {
    font-size: 16px;
    color: var(--text-color-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-ok-button {
    padding: 10px 30px;
    font-size: 1em;
}

/* === Cookie Consent Banner === */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 34, 32, 0.95); /* var(--meko-dark-bg) with opacity */
    color: var(--meko-text-on-dark);
    padding: 20px 0;
    z-index: 1100;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    display: none; /* Initially hidden, shown by JS */
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner .cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent-banner .cookie-text {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    flex-grow: 1;
}

.cookie-consent-banner .btn {
    padding: 8px 20px;
    font-size: 0.9em;
    flex-shrink: 0;
}

/* === Медиа-запросы (Адаптивность) === */

@media (min-width: 769px) {
    .modal-content div.products.subcategories-list {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 25px;
        padding: 25px;
    }
    .modal-content .subcategories-list .category-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        width: calc(33.333% - 17px);
        max-width: 260px;
        aspect-ratio: 1 / 1;
        justify-content: flex-start;
        overflow: hidden;
    }
    .modal-content .subcategories-list .category-item:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    .modal-content .subcategories-list .category-item img {
        width: 100%;
        flex-grow: 1;
        object-fit: cover;
        margin-right: 0;
        margin-bottom: 15px;
        min-height: 0;
        max-height: calc(100% - 3em - 15px - 5px);
        aspect-ratio: unset;
    }
    .modal-content .subcategories-list .category-item h3 {
        font-size: 16px;
        line-height: 1.4;
        max-height: calc(1.4em * 2);
        min-height: calc(1.4em * 2);
        padding-top: 5px;
        flex-grow: 0;
        margin-top: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
        padding: 0 40px;
    }
    .footer-info, .footer-contacts-block {
        text-align: left;
    }
    .footer-contacts-block {
        text-align: right;
    }
    footer .logo-link {
        justify-content: flex-start;
        margin-bottom: 0;
    }
    .footer-contacts-block p {
        justify-content: flex-end;
    }
}

@media (min-width: 521px) and (max-width: 768px) {
    .modal-content div.products.subcategories-list {
        flex-direction: row;
        gap: 20px;
    }
    .modal-content .subcategories-list .category-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        width: calc(50% - 10px);
        max-width: 240px;
        aspect-ratio: 1 / 1;
        justify-content: flex-start;
        overflow: hidden;
    }
     .modal-content .subcategories-list .category-item:hover {
        transform: translateY(-5px) scale(1.02);
    }
    .modal-content .subcategories-list .category-item img {
        margin-right: 0;
        margin-bottom: 10px;
        max-height: calc(100% - 2.8em - 10px - 5px);
        flex-grow: 1;
        min-height: 0;
        object-fit: cover;
        aspect-ratio: unset;
    }
    .modal-content .subcategories-list .category-item h3 {
        font-size: 15px;
        max-height: 2.6em;
        min-height: 2.6em;
        padding-top: 5px;
        flex-grow: 0;
        margin-top: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 1024px) {
    .header-contact-info, .logo-text-addon { display: none; } 
    nav#main-nav { margin-right: 15px; }
    .dynamic-products-strip-container h3 { font-size: 22px; margin-bottom: 25px;}
    .strip-product { border: 2px solid #e5e7eb; flex-basis: 200px; width: 200px; margin-right: 20px; }
    .strip-product h3 { font-size: 1em; }
    .product-detail-title { font-size: 20px; }
}

@media (max-width: 992px) { 
    h1 { font-size: 38px; }
    h2 { font-size: 32px; margin-bottom: 30px; }
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 17px; }
    nav#main-nav { margin: 0 10px; }
    nav#main-nav ul { gap: 15px; }
    .header-right { gap: 15px; }

    .contacts-layout-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .contact-text-info { padding-right: 0; text-align: center; }
    .contact-text-info h2,
    .contact-text-info > p { text-align: center; }
    .contact-form-container { max-width: 600px; width: 100%; margin: 0 auto; }
    .contact-form-wrapper { background: var(--background-white); padding: 25px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); }

    .category { width: calc(33.333% - 20px); } 
}

@media (max-width: 800px) {
    .category { width: calc(50% - 15px); } 
    .product-detail-modal-container .modal-content { max-width: 650px; }
    .quiz-modal-content, #order-modal .modal-content { max-width: 420px !important; }
}

@media (max-width: 768px) { 
    body { padding-top: var(--header-height); } 
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    .advantages-section h2::after { margin: 10px auto 30px; }
    .header-right { gap: 10px; margin-left: auto; }
    .language-switcher { order: 1; }
    .burger-menu { display: flex; order: 2; }
    .logo-text-addon { display: block; font-size: 18px; }

    nav#main-nav {
        flex-grow: 0; margin: 0; position: fixed; top: var(--header-height); left: -100%;
        width: 80%; max-width: 300px; height: calc(100vh - var(--header-height));
        background-color: var(--meko-white); box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: left 0.3s ease-in-out; z-index: 1000;
        overflow-y: auto; padding-top: 20px;
    }
    nav#main-nav.open { left: 0; }
    nav#main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
    nav#main-nav ul li { margin-left: 0; width: 100%; }
    nav#main-nav ul li a {
        display: block; padding: 15px 20px; width: 100%;
        border-bottom: 1px solid var(--border-color); font-size: 1.05em; color: var(--meko-text-on-light);
    }
    nav#main-nav ul li:last-child a { border-bottom: none; }
    nav#main-nav ul li a:hover,
    nav#main-nav ul li a.active { color: var(--meko-blue); }
    nav#main-nav ul li.mobile-only-contact { display: list-item; border-top: 1px solid var(--border-color); }
    nav#main-nav ul li.mobile-only-contact a { padding: 15px 20px; width: 100%; font-size: 1.05em; color: var(--meko-text-on-light); }
    nav#main-nav ul li.mobile-only-contact a:hover { color: var(--meko-blue); background-color: #f0f0f0; }

    .hero { min-height: 50vh; }
    .hero .container.hero-content-container { padding: 40px 15px; }
    .hero h1 { font-size: 36px; }
    .hero .hero-brand-name { font-size: 18px; }
    .hero .hero-description { font-size: 16px; max-width: 90%;}
    .hero-actions .btn { width: 100%; max-width: 280px; margin-bottom: 10px; font-size: 0.95em;}
    .hero-actions .btn:last-child { margin-bottom: 0; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { padding: 10px 20px; font-size: 0.9em; }

    .advantages { grid-template-columns: 1fr; gap: 20px; }
    .advantage { padding: 20px; }
    .advantage-icon-wrapper { width: 45px; height: 45px; font-size: 24px; margin-bottom: 15px; }
    .advantage h3 { font-size: 14px; }
    .advantage p { font-size: 13px; }

    .about-us-intro-section h2 { font-size: 20px; }
    .about-us-intro-text p { font-size: 0.9em; }
    .category, .advantage { padding: 15px; }
    .modal-content div.products:not(.subcategories-list) .product.product-in-list { padding: 10px; }

    .floating-action-button-single { width: 50px; height: 50px; font-size: 22px; }

    .lang-option { padding: 4px 6px; font-size: 0.9em; }
    .lang-separator { margin: 0 1px; }
    .header-right { gap: 8px; }

    .contact-text-info h2 { font-size: 26px; }
    .contact-text-info > p { font-size: 0.95em; }
    .contacts-layout-wrapper { gap: 20px; }
    .contact-form-wrapper { padding: 15px; }
    #contact-form .btn-primary { display: block; margin-left: auto; margin-right: auto; max-width: 280px; width: auto; }

    .fab-modal .modal-content { padding: 20px; }
    .fab-modal-content-wrapper { gap: 15px; }
    .fab-modal-section .fab-section-title { margin-bottom: 8px; font-size: 0.95em; padding-bottom: 6px; }
    .fab-contact-link { margin-bottom: 6px; font-size: 0.9em; padding: 3px 0; }
    .fab-contact-link i { margin-right: 8px; font-size: 1.1em; width: 20px; }
    .fab-modal-messengers { gap: 15px; margin-top: 8px; margin-bottom: 8px; }
    .fab-modal-messengers .messenger-icon { width: 40px; height: 40px; font-size: 20px; }
    .compact-contact-form { margin-top: 10px; }
    .compact-contact-form .form-group { margin-bottom: 10px; }
    .compact-contact-form .form-group input,
    .compact-contact-form .form-group textarea { padding: 8px 10px; font-size: 0.9em; }
    .compact-contact-form .form-group textarea { min-height: 60px; }
    .compact-contact-form .btn-block { padding: 8px 15px; font-size: 0.95em; margin-top: 10px; }

    .product-detail-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-detail-modal-container .modal-content {
        padding: 15px;
    }
    .product-detail-title {
        font-size: 18px;
    }
    .product-detail-description {
        font-size: 0.95em;
    }
    .product-detail-price {
        font-size: 20px;
    }
    .product-detail-gallery-container .thumbnail-image {
        width: 60px;
        height: 50px;
        gap: 5px;
    }
    .product-detail-order-btn { font-size: 0.95em; padding: 10px 20px;}

    .success-message-modal h2, .error-message-modal h2 { font-size: 18px; }
    .success-message-modal p, .error-message-modal p { font-size: 13px; }

    .cookie-consent-banner {
        padding: 15px 0;
    }
    .cookie-consent-banner .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .cookie-consent-banner .cookie-text {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) { 
    .container { width: 95%; padding: 0 10px; }
    h1 { font-size: 26px; }
    h2 { font-size: 24px; margin-bottom: 25px; }
    .hero h1 { font-size: 24px; }
    .hero .hero-brand-name { font-size: 14px; }
    .hero .hero-description { font-size: 14px; }
    .hero-actions .btn { width: 100%; max-width: 280px; margin-bottom: 10px; font-size: 0.95em;}
    .hero-actions .btn:last-child { margin-bottom: 0; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { padding: 10px 20px; font-size: 0.9em; }

    .advantages { grid-template-columns: 1fr; gap: 20px; }
    .advantage { padding: 20px; }
    .advantage-icon-wrapper { width: 45px; height: 45px; font-size: 24px; margin-bottom: 15px; }
    .advantage h3 { font-size: 14px; }
    .advantage p { font-size: 13px; }

    .about-us-intro-section h2 { font-size: 20px; }
    .about-us-intro-text p { font-size: 0.9em; }
    .category, .advantage { padding: 15px; }
    .modal-content div.products:not(.subcategories-list) .product.product-in-list { padding: 10px; }

    .floating-action-button-single { width: 50px; height: 50px; font-size: 22px; }

    .lang-option { padding: 4px 6px; font-size: 0.9em; }
    .lang-separator { margin: 0 1px; }
    .header-right { gap: 8px; }

    .contact-text-info h2 { font-size: 22px; }
    .contact-text-info > p { font-size: 0.95em; }
    .contacts-layout-wrapper { gap: 20px; }
    .contact-form-wrapper { padding: 15px; }
    #contact-form .btn-primary { display: block; margin-left: auto; margin-right: auto; max-width: 280px; width: auto; }

    .fab-modal .modal-content { padding: 20px; }
    .fab-modal-content-wrapper { gap: 15px; }
    .fab-modal-section .fab-section-title { margin-bottom: 8px; font-size: 0.95em; padding-bottom: 6px; }
    .fab-contact-link { margin-bottom: 6px; font-size: 0.9em; padding: 3px 0; }
    .fab-contact-link i { margin-right: 8px; font-size: 1.1em; width: 20px; }
    .fab-modal-messengers { gap: 15px; margin-top: 8px; margin-bottom: 8px; }
    .fab-modal-messengers .messenger-icon { width: 40px; height: 40px; font-size: 20px; }
    .compact-contact-form { margin-top: 10px; }
    .compact-contact-form .form-group { margin-bottom: 10px; }
    .compact-contact-form .form-group input,
    .compact-contact-form .form-group textarea { padding: 8px 10px; font-size: 0.9em; }
    .compact-contact-form .form-group textarea { min-height: 60px; }
    .compact-contact-form .btn-block { padding: 8px 15px; font-size: 0.95em; margin-top: 10px; }

    .product-detail-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-detail-modal-container .modal-content {
        padding: 15px;
    }
    .product-detail-title {
        font-size: 18px;
    }
    .product-detail-description {
        font-size: 0.95em;
    }
    .product-detail-price {
        font-size: 20px;
    }
    .product-detail-gallery-container .thumbnail-image {
        width: 60px;
        height: 50px;
        gap: 5px;
    }
    .product-detail-order-btn { font-size: 0.95em; padding: 10px 20px;}

    .success-message-modal h2, .error-message-modal h2 { font-size: 18px; }
    .success-message-modal p, .error-message-modal p { font-size: 13px; }

    .cookie-consent-banner {
        padding: 15px 0;
    }
    .cookie-consent-banner .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .cookie-consent-banner .cookie-text {
        font-size: 0.85em;
    }
}

/* Стили для индикатора загрузки AJAX */
.loader {
    display: none; /* по умолчанию скрыт */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 6px solid #f3f3f3; /* Светлый фон */
    border-top: 6px solid var(--meko-blue); /* Синий цвет */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 2100; /* Выше, чем модальное окно */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* === Mobile Product List Optimization (2 Columns) === */
@media (max-width: 650px) {
    .modal-content {
        padding: 20px 15px;
    }

    .modal-content div.products:not(.subcategories-list) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .modal-content div.products:not(.subcategories-list) .product.product-in-list {
        padding: 10px;
    }

    .modal-content div.products .product.product-in-list h3 {
        font-size: 13px;
        min-height: 2.6em;
        margin-bottom: 5px;
    }

    .modal-content div.products .product.product-in-list .product-short-description {
        display: none;
    }

    .modal-content div.products .product.product-in-list .price.price-standard {
        font-size: 16px;
    }

    .modal-content div.products .product.product-in-list .price.price-sale {
        font-size: 18px;
    }

    .modal-content div.products .product.product-in-list .order-btn {
        padding: 8px 0;
        font-size: 13px;
    }
}

/* === Strip Product Alignment & Description === */
.strip-product .product-info-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.strip-product .product-short-description {
    font-size: 0.85em;
    color: var(--text-color-secondary);
    margin-bottom: 8px;
    line-height: 1.3;
    height: 2.6em; /* Fixed height for alignment (~2 lines) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.strip-product h3 {
    margin-bottom: 5px;
    /* Ensure title height consistency */
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.strip-product .price-container {
    margin-top: auto; /* Push price to bottom if wrapper is flex column */
}

/* === Scroll Indicator for Catalog Modal === */
.scroll-indicator-arrow {
    position: sticky;
    bottom: 20px;
    margin-left: auto; /* Push to the right */
    margin-right: -10px; /* Compensate for padding/scrollbar to align with close button */
    right: 15px; /* Aligned under the close button */
    transform: none;
    width: 36px; /* Matching close button size */
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    animation: bounce 2s infinite;
    pointer-events: none; /* Let clicks pass through if just visual, but usually we want it to scroll */
    transition: opacity 0.3s ease;
    opacity: 0; /* Hidden by default, shown via JS */
}

.scroll-indicator-arrow i {
    color: var(--meko-blue);
    font-size: 20px;
}

.scroll-indicator-arrow.visible {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* === NEW FAB STYLES === */
.fab-container-right {
    position: fixed; bottom: 20px; right: 20px; z-index: 20000;
    display: flex; flex-direction: column; align-items: flex-end;
}

.fab-wrapper {
    position: relative; z-index: 20000;
    display: flex; align-items: center; justify-content: flex-end;
}

.fab-tooltip-bubble {
    background-color: white; color: var(--meko-text-on-light); padding: 10px 15px;
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-right: 15px; font-size: 14px; font-weight: 500;
    position: relative; max-width: 200px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
    transform: translateX(-10px);
    white-space: nowrap;
}
.fab-wrapper:hover .fab-tooltip-bubble,
.fab-wrapper .fab-tooltip-bubble.show {
    opacity: 1; visibility: visible; transform: translateX(0);
}
/* Arrow for tooltip */
.fab-tooltip-bubble::after {
    content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
    border-width: 6px 0 6px 6px; border-style: solid;
    border-color: transparent transparent transparent white;
}

.floating-action-button-single {
    width: 60px !important; height: 60px !important; padding: 0 !important;
    background-color: var(--meko-blue);
    color: var(--meko-text-on-dark); border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px !important; transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    font-weight: normal !important;
}

.floating-action-button-single i {
    font-size: 26px;
}

.floating-action-button-single:hover {
    background-color: #00528f;
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
  20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.shake-animation.shaking {
    animation: shake 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* === SPOILER STYLES FOR PRODUCT DETAILS === */
.product-detail-delivery-spoiler {
    margin-top: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.spoiler-trigger {
    padding: 15px;
    cursor: pointer;
    font-weight: 700;
    color: var(--meko-text-on-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
    user-select: none;
}

.spoiler-trigger:hover {
    background-color: #e9ecef;
}

.spoiler-trigger i {
    transition: transform 0.3s;
    color: var(--meko-blue);
}

.spoiler-trigger.active i {
    transform: rotate(180deg);
}

.spoiler-content {
    display: none;
    padding: 0 15px 15px 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color-secondary);
    border-top: 1px solid transparent;
}

.spoiler-trigger.active + .spoiler-content {
    display: block;
    border-top-color: #e9ecef;
    padding-top: 15px;
}
/* FAB Popover Menu Styles */
.fab-popover-menu {
    position: absolute;
    bottom: 70px; /* Above the button */
    right: 0;
    background-color: white;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 20010;
    pointer-events: none; /* Prevent clicks when hidden */
}

.fab-popover-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--meko-text-on-light);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 15px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.fab-menu-item:hover {
    background-color: #f5f5f5;
    color: var(--meko-blue);
}

.fab-menu-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
    text-align: center;
}

.fab-menu-item.telegram i { color: #2AABEE; }
.fab-menu-item.viber i { color: #675DA9; }
.fab-menu-item.phone i { color: var(--meko-text-secondary-on-light); }
.fab-menu-item.callback-btn i { color: var(--meko-blue); }

/* Ensure Image Viewer is on top of everything including FAB if desired,
   BUT user asked FAB to be on top.
   However, usually Image Viewer > FAB.
   I will set Image Viewer to 21000 to be safe, just in case.
*/
#image-viewer-modal {
    z-index: 21000 !important;
}
/* Quiz FAB Button - Round & Pulsating */
.fab-btn-large-pulsating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--meko-yellow);
    border: none;
    color: var(--meko-text-on-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-yellow 2s infinite;
    position: relative;
    z-index: 20002;
}

.fab-btn-large-pulsating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 230, 0, 0.6);
}

.fab-btn-large-pulsating .fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 230, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 230, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 230, 0, 0);
    }
}

/* Quiz Modal Improvements */
.quiz-modal-content {
    width: 95%; /* Prevent overflowing on small screens */
    max-width: 500px !important; /* Slightly wider for comfort */
    padding: 40px 30px; /* More padding for "clear" look */
    border-radius: 16px; /* Smoother corners */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin: 20px auto;
    background-color: #fff;
    position: relative;
    overflow: hidden; /* Contain children */
    max-height: 90vh; /* Ensure it fits on mobile screens vertically */
    overflow-y: auto; /* Enable scrolling if content is too long */
}

/* Ensure inputs don't overflow */
.quiz-modal-content input[type="text"],
.quiz-modal-content input[type="tel"],
.quiz-modal-content textarea {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.quiz-option {
    white-space: normal; /* Allow text wrapping */
    height: auto;
    min-height: 50px;
}

.quiz-option span {
    line-height: 1.4;
    display: block; /* Ensure it takes width */
}

/* Fix close button position in this cleaner modal */
.quiz-modal-content .close {
    top: 15px;
    right: 15px;
    background-color: transparent;
    box-shadow: none;
    font-size: 32px;
    color: #999;
}
.quiz-modal-content .close:hover {
    color: var(--meko-text-on-light);
    background-color: transparent;
}

/* === Hits & Deals Nav Button === */
.nav-hot-btn {
    background-color: #e74c3c; /* Red */
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    transform: rotate(-3deg); /* Tilted */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: heartBeat 3s infinite; /* Pulsate every 3s */
}

.nav-hot-btn i {
    color: #ffeb3b; /* Yellow fire icon */
}

.nav-hot-btn:hover {
    background-color: #c0392b;
    transform: rotate(0deg) scale(1.05);
    text-decoration: none;
}

@keyframes heartBeat {
    0% { transform: rotate(-3deg) scale(1); }
    5% { transform: rotate(-3deg) scale(1.1); }
    10% { transform: rotate(-3deg) scale(1); }
    15% { transform: rotate(-3deg) scale(1.1); }
    20% { transform: rotate(-3deg) scale(1); }
    100% { transform: rotate(-3deg) scale(1); }
}

/* Ensure header nav handles the button nicely */
#main-nav ul li {
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .nav-hot-btn {
        transform: none;
        background: transparent;
        color: inherit !important;
        padding: 0;
        box-shadow: none;
        animation: none;
    }
    .nav-hot-btn i {
        color: #e74c3c;
    }
    .nav-hot-btn:hover {
        background: transparent;
        color: var(--meko-blue) !important;
    }
}

/* Button Danger (Red) for Sales */
.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover:not(:disabled) {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: white;
}

/* === Creator Signature === */
.creator-signature {
    width: 100%;
    padding: 0.75rem 0;
    text-align: center;
}

.creator-signature p {
    font-family: sans-serif;
    line-height: 1.25;
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.9;
    margin: 0;
}

.creator-signature b {
    font-weight: bold;
    transition: opacity 0.2s;
}

.creator-signature b:hover {
    opacity: 0.75;
}

.creator-signature a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.creator-signature .divider {
    margin: 0 0.5rem;
    opacity: 0.3;
    user-select: none;
}

.creator-signature .subtitle {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.5;
    letter-spacing: 0.025em;
    font-size: 11px;
}

.creator-signature .sub-divider {
    margin: 0 0.25rem;
    opacity: 0.3;
}

.creator-signature .subtitle a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Tighten signature spacing */
.creator-signature .names-row {
    display: block;
    margin-bottom: 0px;
}

.creator-signature .subtitle {
    display: block;
    margin-top: 2px;
}

/* ==========================================
   Product Detail SKU & Related Links
   ========================================== */
.product-sku-links {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.primary-sku {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 8px;
}

.primary-sku strong {
    color: #111827;
}

.related-skus-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.related-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-sku-item {
    padding: 6px 14px;
    background: white;
    color: #0065b3;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.related-sku-item:hover {
    background: #0065b3;
    color: white;
    border-color: #0065b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 101, 179, 0.2);
}
