/* ================================================================
   FLIPCLO — MONOLITHIC STYLESHEET
   Все стили сайта в одном файле
   ================================================================ */

/* ===== 1. LOCAL FONTS (Inter) ===== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; src: url('/fonts/Inter-Light.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; src: url('/fonts/Inter-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; src: url('/fonts/Inter-Medium.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; src: url('/fonts/Inter-SemiBold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; src: url('/fonts/Inter-Bold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; src: url('/fonts/Inter-ExtraBold.woff2') format('woff2'); font-display: swap; }

/* ===== 2. CSS VARIABLES ===== */
:root {
    --bg-color: #FAFAFA;
    --surface-color: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent-color: #111111;
    --accent-hover: #333333;
    --border-color: #E5E5E5;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --whatsapp-color: #25D366;
    --telegram-color: #0088cc;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 3. RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* ===== 4. LINKS ===== */
a { color: inherit; }
.logo { color: var(--text-primary) !important; text-decoration: none !important; border-bottom: none !important; cursor: pointer; }
.logo:hover { color: var(--text-primary) !important; text-decoration: none !important; }
.header a, .footer-links a, .nav-link { text-decoration: none; }
a.nav-link { text-decoration: none; border-bottom: 2px solid transparent; }
a.nav-link:hover, a.nav-link.active { border-bottom-color: var(--text-primary); }

/* ===== 5. HEADER ===== */
.header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 100;
    gap: 1rem; flex-wrap: wrap;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; cursor: pointer; }

/* Search */
.header-search {
    display: flex; align-items: center;
    border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 0.4rem 0.8rem; background: var(--bg-color);
    flex: 1; max-width: 320px; gap: 0.5rem; position: relative;
}
.header-search input {
    border: none; background: transparent; outline: none;
    font-family: inherit; width: 100%; font-size: 0.9rem; padding: 0.2rem 0;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="text"]::-webkit-search-cancel-button {
    -webkit-appearance: none; appearance: none; display: none;
}
.search-clear-btn, .search-icon-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.search-clear-btn { display: none; }
.search-clear-btn svg, .search-icon-btn svg { width: 18px; height: 18px; stroke: var(--text-primary); }
.search-clear-btn:hover, .search-icon-btn:hover { opacity: 0.6; transform: scale(1.05); }

/* Search dropdown */
.search-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    max-height: 320px; overflow-y: auto; z-index: 1000; display: none;
}
.search-dropdown.active { display: block; }
.search-dropdown-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.8rem 1rem; cursor: pointer; transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color); text-decoration: none; color: inherit;
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: var(--bg-color); }
.search-dropdown-img {
    width: 40px; height: 40px; object-fit: contain;
    background: #f4f4f4; border-radius: 4px; flex-shrink: 0;
}
.search-dropdown-info { flex: 1; min-width: 0; }
.search-dropdown-brand {
    font-size: 0.75rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.search-dropdown-title {
    font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-dropdown-price {
    font-size: 0.9rem; font-weight: 700; color: var(--text-primary); flex-shrink: 0;
}
.search-no-results { padding: 1rem; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

/* Navigation */
.header-actions button {
    background: none; border: none; cursor: pointer;
    color: var(--text-primary); display: flex; align-items: center; justify-content: center;
}
.header-actions button svg { width: 20px; height: 20px; stroke: var(--text-primary); }
.nav-menu { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-link {
    background: none; border: none; font-family: inherit;
    font-size: 0.9rem; color: var(--text-secondary);
    cursor: pointer; transition: var(--transition);
    padding-bottom: 4px; border-bottom: 2px solid transparent;
    font-weight: 500; text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary); border-bottom-color: var(--text-primary);
}

/* ===== 6. PAGE SECTIONS ===== */
.page-section { display: none; animation: fadeIn 0.4s ease; flex: 1; }
.page-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== 7. HERO ===== */
.hero-section {
    text-align: center; padding: 5rem 5% 4rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}
.hero-section h1 { font-size: 4rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 1rem; }
.slogan {
    font-size: 1.25rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.5;
}

/* ===== 8. EDITORIAL BLOCK ===== */
.editorial-block {
    background: var(--text-primary); color: var(--surface-color);
    padding: 6rem 5%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; position: relative; overflow: hidden;
}
.editorial-block::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.editorial-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2); padding: 0.4rem 1rem;
    border-radius: 50px;
}
.editorial-content h2 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 1.5rem;
}
.editorial-content p {
    font-size: 1.1rem; line-height: 1.7;
    color: rgba(255,255,255,0.8); max-width: 500px;
}
.editorial-visual {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; height: 400px;
}
.visual-grid { display: contents; }
.grid-item {
    background-size: cover; background-position: center;
    border-radius: var(--radius); transition: transform 0.5s ease;
}
.grid-item:hover { transform: scale(1.02); }
.item-1 { background-image: url(pics/woman-fashion.jpg); grid-row: span 2; }
.item-2 { background-image: url(pics/stoneisland.jpg); }
.item-3 { background-image: url(pics/flipcloru.png); background-size: contain; background-repeat: no-repeat; }

/* ===== 9. HOMEPAGE SECTIONS ===== */
.homepage-section { padding: 4rem 5%; max-width: 1400px; margin: 0 auto; }
.section-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;
}
.section-header h2 { font-size: 1.75rem; font-weight: 300; margin: 0; letter-spacing: -0.5px; }
.view-all-link {
    font-size: 0.9rem; color: var(--text-secondary); cursor: pointer;
    text-decoration: none; border-bottom: 1px solid transparent;
    transition: all 0.2s; font-weight: 500;
}
.view-all-link:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }

/* ===== 10. CAROUSEL ===== */
.arrivals-carousel {
    position: relative; padding: 1rem 0;
    overflow-x: auto; scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.3) transparent;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.arrivals-carousel::-webkit-scrollbar { height: 6px; }
.arrivals-carousel::-webkit-scrollbar-track { background: transparent; }
.arrivals-carousel::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); border-radius: 3px; }
.arrivals-carousel::-webkit-scrollbar-thumb:hover { background-color: rgba(0,0,0,0.5); }
.arrivals-carousel:hover { cursor: grab; }
.arrivals-carousel:active { cursor: grabbing; }
.arrivals-track {
    display: flex; gap: 1rem; width: max-content;
}
.arrival-card {
    min-width: 200px; max-width: 200px; flex-shrink: 0;
    background: var(--surface-color); border-radius: var(--radius);
    border: 1px solid var(--border-color); overflow: hidden;
    display: flex; flex-direction: column; position: relative;
    transition: var(--transition); height: 100%;
}
.arrival-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--text-primary); }
.arrival-header {
    position: absolute; top: 12px; left: 12px;
    display: flex; align-items: center; gap: 8px; z-index: 5;
}
.new-badge {
    background: var(--text-primary); color: white;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 8px; border-radius: 4px; letter-spacing: 0.5px;
}
.arrival-date {
    background: rgba(255,255,255,0.9); color: var(--text-primary);
    font-size: 0.7rem; font-weight: 500; padding: 4px 8px;
    border-radius: 4px; backdrop-filter: blur(4px); white-space: nowrap;
}
.arrival-card .image-container {
    aspect-ratio: 3/4; background: #f4f4f4; overflow: hidden;
    cursor: pointer; flex-shrink: 0;
}
.arrival-card .product-image {
    width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease;
}
.arrival-card .image-container:hover .product-image { transform: scale(1.05); }
.arrival-details { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.card-brand {
    font-size: 0.7rem; text-transform: uppercase; color: var(--text-secondary);
    letter-spacing: 0.5px; margin-bottom: 0.25rem; min-height: 0.85rem;
}
.card-title {
    font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.card-price {
    font-size: 1rem; font-weight: 700; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.price-regular { color: var(--text-primary); }
.price-discounted { color: var(--danger-color); }
.old-price { text-decoration: line-through; color: var(--text-secondary); font-size: 0.8rem; font-weight: 400; }
.arrival-actions { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: auto; }
.arrival-actions .btn {
    flex: 1; min-width: 0; padding: 0.5rem 0.5rem;
    font-size: 0.75rem; margin-bottom: 0; white-space: nowrap;
}

/* ===== 11. SHOWCASE GRID ===== */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.showcase-card {
    background-size: cover; background-position: center;
    border-radius: var(--radius); height: 240px;
    position: relative; overflow: hidden; cursor: pointer;
    transition: var(--transition); text-decoration: none;
}
.showcase-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex; align-items: flex-end; padding: 1.5rem;
    color: white; transition: var(--transition);
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.showcase-card:hover .showcase-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}
.showcase-overlay h3 { font-size: 1.5rem; font-weight: 700; margin: 0; }

/* ===== 12. CONTENT PAGES (About, Delivery, Payment, Reviews) ===== */
.content-page { max-width: 800px; margin: 3rem auto; padding: 0 5%; flex: 1; }
.content-page h1 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: -1px; }
.content-page h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.5px; }
.content-page .lead { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.info-card { background: var(--surface-color); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border-color); }
.info-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.payment-list { list-style: none; margin-top: 1.5rem; }
.payment-list li { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.payment-list li:last-child { border-bottom: none; }

/* ===== 13. CATALOG ===== */
.main-container {
    display: grid; grid-template-columns: 250px 1fr;
    gap: 2rem; padding: 2rem 5%; max-width: 1400px; margin: 0 auto; flex: 1;
}
.sidebar {
    background: var(--surface-color); padding: 1.5rem;
    border-radius: var(--radius); border: 1px solid var(--border-color);
    height: fit-content;
}
.sidebar h2 {
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 1rem; color: var(--text-secondary);
}
.filter-group { margin-bottom: 2rem; }
.filter-group label {
    display: block; font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 500;
}
.filter-group select {
    width: 100%; padding: 0.6rem;
    border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--surface-color); font-family: inherit;
}
.size-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem; max-height: 300px; overflow-y: auto; padding-right: 5px;
}
.size-btn {
    padding: 0.5rem;
    border: 1px solid var(--border-color); background: var(--surface-color);
    border-radius: var(--radius); cursor: pointer;
    transition: var(--transition); font-size: 0.85rem;
}
.size-btn:hover, .size-btn.active {
    background: var(--accent-color); color: white; border-color: var(--accent-color);
}

/* Catalog / Archive switcher */
.switcher-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border-color); background: var(--surface-color);
    border-radius: var(--radius); cursor: pointer;
    font-family: inherit; font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); transition: var(--transition);
    text-decoration: none;
}
.switcher-btn:hover { background: var(--bg-color); color: var(--text-primary); }
.switcher-btn.active {
    background: var(--accent-color); color: white; border-color: var(--accent-color);
}

/* Product grid */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--surface-color); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
    border: 1px solid var(--border-color); position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.image-container {
    position: relative; width: 100%; aspect-ratio: 3/4;
    background: #f4f4f4; overflow: hidden; cursor: pointer;
}
.product-image {
    width: 100%; height: 100%;
    object-fit: contain; transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.2s ease;
    display: block;
}
.no-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background-color: #f0f0f0; color: #999;
    font-size: 0.9rem; font-weight: 500; text-align: center; padding: 1rem;
}

/* Image navigation arrows */
.image-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1); color: #111;
    font-size: 1rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transition: all 0.3s ease;
    z-index: 10; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.image-nav:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.image-nav.prev { left: 12px; }
.image-nav.next { right: 12px; }

/* Badges on cards */
.sale-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--danger-color); color: white;
    font-size: 0.75rem; font-weight: 700;
    padding: 4px 8px; border-radius: 4px; z-index: 5;
}
.sold-text-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) rotate(-15deg);
    font-size: 2rem; font-weight: 800; color: var(--danger-color);
    letter-spacing: 2px; text-transform: uppercase;
    pointer-events: none; z-index: 5;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    white-space: nowrap;
}
.sold-overlay { display: none !important; }

/* Card details */
.card-details { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.condition-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 600;
}
.condition-badge.new { background: #D1FAE5; color: #065F46; }
.condition-badge.excellent { background: #FEF3C7; color: #92400E; }
.condition-badge.good { background: #E0E7FF; color: #3730A3; }
.condition-badge.fair { background: #FEE2E2; color: #991B1B; }

/* Archived cards */
.product-card.archived { opacity: 0.85; }
.product-card.archived .btn-primary { background: #999; cursor: not-allowed; }

/* ===== 14. BUTTONS ===== */
.btn {
    display: block; width: 100%; padding: 0.8rem;
    border: none; border-radius: var(--radius);
    font-family: inherit; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    text-align: center; text-decoration: none;
    margin-bottom: 0.5rem;
}
.btn-primary { background: var(--accent-color); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-color); border-color: var(--text-secondary); }
.btn:disabled { background: #ccc; cursor: not-allowed; }

/* ===== 15. PRODUCT PAGE (from MVC product/show.php) ===== */
.product-page { max-width: 1200px; margin: 0 auto; padding: 2rem 5%; }
.product-breadcrumb { margin-bottom: 1.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.product-breadcrumb a { color: inherit; text-decoration: none; transition: color 0.2s; }
.product-breadcrumb a:hover { color: var(--text-primary); }
.product-breadcrumb .separator { margin: 0 0.5rem; color: var(--text-secondary); }
.product-title {
    font-size: 1.8rem; font-weight: 700;
    margin: 0 0 2rem 0; letter-spacing: -0.5px;
    line-height: 1.3; color: var(--text-primary);
}
.product-main-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem; align-items: start; margin-bottom: 3rem;
}
.product-gallery { position: sticky; top: 100px; }
.product-main-img-wrap {
    aspect-ratio: 4/5; background: #f4f4f4;
    border-radius: 12px; overflow: hidden;
    margin-bottom: 1rem; position: relative; cursor: zoom-in;
}
.product-main-img-wrap img {
    width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease;
}
.product-main-img-wrap:hover img { transform: scale(1.02); }
.sold-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) rotate(-15deg);
    font-size: 3rem; font-weight: 800; color: #EF4444;
    letter-spacing: 2px; text-transform: uppercase;
    pointer-events: none; z-index: 5;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8); white-space: nowrap;
}
.img-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08); cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: all 0.2s; color: #111;
}
.img-nav:hover {
    background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-50%) scale(1.05);
}
.img-nav.prev { left: 12px; }
.img-nav.next { right: 12px; }
.thumbs-desktop {
    display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem;
}
.thumbs-desktop img {
    width: 72px; height: 72px; object-fit: cover;
    cursor: pointer; border-radius: 8px;
    border: 2px solid transparent; transition: all 0.2s; flex-shrink: 0;
}
.thumbs-desktop img:hover { border-color: var(--text-primary); }
.thumbs-mobile { display: none; }

.product-info { display: flex; flex-direction: column; gap: 1.5rem; }
.price-block { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.price-current {
    font-size: 2.2rem; font-weight: 800; color: var(--text-primary); letter-spacing: -1px;
}
.price-current.sale { color: var(--danger-color); }
.price-old {
    text-decoration: line-through; color: var(--text-secondary);
    font-size: 1.3rem; font-weight: 400;
}
.price-discount {
    background: var(--danger-color); color: white;
    font-size: 0.85rem; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
}

/* Size selector */
.size-selector-block {
    margin: 0.5rem 0; padding: 0.8rem 1rem;
    background: transparent; border-radius: 8px; border: none;
}
.size-selector-label {
    display: block; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 0.6rem; color: var(--text-secondary);
}
.size-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.size-btn {
    min-width: 70px; height: 70px; padding: 0 1rem;
    border: 2px solid var(--border-color); background: white;
    border-radius: 10px; cursor: pointer;
    font-weight: 600; font-size: 1rem;
    transition: all 0.2s ease; font-family: inherit;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.size-btn:hover:not(.out-of-stock):not(.active) {
    border-color: var(--text-primary); transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.size-btn.active {
    border-color: #000 !important;
    background: #000 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
.size-btn.out-of-stock {
    opacity: 0.4; cursor: not-allowed; text-decoration: line-through;
    background: #f5f5f5; border-color: #ddd;
}
.size-btn.out-of-stock::after {
    content: '';
    position: absolute; top: 50%; left: 10%; right: 10%;
    height: 2px; background: rgba(0,0,0,0.3); transform: rotate(-15deg);
}
.size-btn:disabled { cursor: not-allowed; }

/* Meta info */
.meta-info {
    display: flex; flex-direction: column; gap: 0.8rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.meta-row { display: flex; align-items: baseline; gap: 1rem; font-size: 0.95rem; }
.meta-label { color: var(--text-secondary); font-weight: 400; min-width: 110px; }
.meta-value { color: var(--text-primary); font-weight: 600; }
.sku-row .meta-label, .sku-row .sku-value {
    color: #999 !important; font-weight: 400 !important; font-size: 0.85rem;
}
.btn-order {
    background: var(--accent-color); color: white;
    width: 100%; padding: 1.1rem; font-size: 1.05rem;
    border: none; border-radius: 10px;
    font-family: inherit; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    letter-spacing: 0.3px; display: block;
}
.btn-order:hover {
    background: var(--accent-hover); transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-measurements {
    background: transparent; color: var(--text-primary);
    width: 100%; padding: 1rem; font-size: 1rem;
    border: 2px solid var(--border-color); border-radius: 10px;
    font-family: inherit; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    letter-spacing: 0.3px; display: block;
}
.btn-measurements:hover { background: var(--surface-color); border-color: var(--text-primary); }
.btn-sold {
    background: #e5e5e5; color: #999; cursor: not-allowed;
    width: 100%; padding: 1.1rem; font-size: 1.05rem;
    border: none; border-radius: 10px;
    font-family: inherit; font-weight: 700; display: block;
}

/* Description & Related */
.desc-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border-color); }
.desc-section h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: -0.5px; }
.desc-text { white-space: pre-line; line-height: 1.8; color: var(--text-secondary); font-size: 1rem; max-width: 800px; }
.related-section { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--border-color); }
.related-section h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.5px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.related-card { text-decoration: none; color: inherit; display: block; transition: transform 0.2s; }
.related-card:hover { transform: translateY(-4px); }
.related-card-img {
    aspect-ratio: 3/4; background: #f4f4f4;
    border-radius: 10px; overflow: hidden; margin-bottom: 0.8rem;
}
.related-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-title {
    font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem;
    line-height: 1.3; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-card-price { font-size: 1rem; font-weight: 700; }

/* ===== 16. LIGHTBOX ===== */
.lightbox-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 10000;
    justify-content: center; align-items: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-wrapper {
    position: relative; display: flex;
    align-items: center; justify-content: center;
    gap: 20px; max-width: 95%; max-height: 95%;
}
.lightbox-content {
    position: relative; max-width: 90%; max-height: 90%;
    display: flex; justify-content: center; align-items: center;
}
.lightbox-image-container {
    position: relative; max-width: 60vw; max-height: 85vh;
    display: flex; justify-content: center; align-items: center;
    cursor: crosshair;
}
.lightbox-image-container img, .lightbox-content img {
    max-width: 100%; max-height: 85vh; object-fit: contain;
    border-radius: 8px; display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: fixed; top: 20px; right: 20px;
    background: rgba(255,255,255,0.15); color: white;
    width: 44px; height: 44px; border-radius: 50%;
    border: none; cursor: pointer; z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); color: white;
    width: 52px; height: 52px; border-radius: 50%;
    border: none; cursor: pointer;
    display: none; z-index: 10001;
    align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-nav.visible { display: flex; }
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lb-prev { left: 30px; }
.lb-next { right: 30px; }
.lightbox-caption {
    position: fixed; bottom: 20px; left: 0; right: 0;
    text-align: center; color: rgba(255,255,255,0.7);
    font-size: 0.9rem; z-index: 10001;
}

/* Zoom */
.zoom-lens {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    pointer-events: none; display: none; z-index: 10002;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}
.zoom-result {
    width: 500px; height: 625px; background: white;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden; display: none; flex-shrink: 0;
    background-repeat: no-repeat;
}

/* ===== 17. MEASUREMENTS MODAL ===== */
.measurements-backdrop {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 10000;
}
.measurements-modal {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: calc(100% - 32px); max-width: 750px;
    max-height: 90vh; background: #fff;
    border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10001; overflow: hidden; box-sizing: border-box;
}
.measurements-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.measurements-title { margin: 0; font-size: 18px; font-weight: 600; color: #111; }
.measurements-close {
    background: #f5f5f5; border: none; font-size: 24px;
    cursor: pointer; color: #666;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.measurements-close:hover { background: #e5e5e5; }
.measurements-content {
    overflow-y: auto; max-height: calc(90vh - 70px); padding: 20px;
}
.measurements-image-section { text-align: center; margin-bottom: 20px; }
.measurements-image {
    max-width: 280px; width: 100%; height: auto;
    max-height: 320px; border-radius: 8px; display: inline-block;
}
.measurements-table { display: flex; flex-direction: column; }
.measurement-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 8px; border-bottom: 1px solid #f0f0f0;
}
.measurement-row:last-child { border-bottom: none; }
.measurement-label { font-weight: 600; color: #333; font-size: 14px; flex: 1; }
.measurement-value {
    font-weight: 700; color: #111; font-size: 16px;
    white-space: nowrap; margin-left: 16px;
}
.measurements-footer {
    margin-top: 16px; padding: 12px; background: #f8f8f8;
    border-radius: 6px; font-size: 12px;
    color: #888; text-align: center;
}

/* ===== 18. NEWS (from MVC news/index.php & news/show.php) ===== */
.news-page {
    max-width: 1200px; margin: 0 auto; padding: 2rem 5%; min-height: 60vh;
}
.news-header { margin-bottom: 3rem; text-align: center; }
.news-header h1 {
    font-size: 2.5rem; font-weight: 800;
    margin-bottom: 1rem; letter-spacing: -1px;
}
.news-header p {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto; line-height: 1.6;
}
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}
.news-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; color: inherit; display: block;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.news-card-image {
    aspect-ratio: 16/9; background: #f4f4f4; overflow: hidden;
}
.news-card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-content { padding: 1.5rem; }
.news-card-date {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem;
}
.news-card-title {
    font-size: 1.3rem; font-weight: 700;
    margin-bottom: 0.75rem; line-height: 1.3;
}
.news-card-excerpt {
    font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.no-news { text-align: center; padding: 4rem 2rem; color: var(--text-secondary); }
.no-news h2 { font-size: 1.5rem; margin-bottom: 1rem; }

/* News single */
.news-single-page { max-width: 800px; margin: 0 auto; padding: 2rem 5%; min-height: 60vh; }
.back-to-news {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 2rem; color: var(--text-secondary);
    text-decoration: none; transition: color 0.2s;
}
.back-to-news:hover { color: var(--text-primary); }
.news-single-header { margin-bottom: 2rem; }
.news-single-date {
    font-size: 0.9rem; color: var(--text-secondary);
    margin-bottom: 1rem; display: flex;
    align-items: center; gap: 1rem;
}
.news-single-title {
    font-size: 2.5rem; font-weight: 800; line-height: 1.2;
    margin-bottom: 1.5rem; letter-spacing: -1px;
}
.news-single-image {
    width: 100%; border-radius: 12px; margin-bottom: 2rem; overflow: hidden;
}
.news-single-image img { width: 100%; height: auto; display: block; }
.news-single-content { font-size: 1.1rem; line-height: 1.8; color: var(--text-primary); }
.news-single-content h2 { font-size: 1.8rem; font-weight: 700; margin: 2rem 0 1rem; }
.news-single-content h3 { font-size: 1.4rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.news-single-content p { margin-bottom: 1.5rem; }
.news-single-content img {
    max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0;
}
.news-single-content ul, .news-single-content ol {
    margin: 1rem 0; padding-left: 2rem;
}
.news-single-content li { margin-bottom: 0.5rem; }
.news-single-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem; margin: 1.5rem 0;
    font-style: italic; color: var(--text-secondary);
}
.news-single-content a { color: var(--accent-color); text-decoration: underline; }
.news-single-footer {
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 0.9rem;
}

/* ===== 19. REVIEWS ===== */
.reviews-carousel {
    display: flex; overflow-x: auto; gap: 1.5rem;
    padding: 1rem 0.5rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; margin-bottom: 2rem;
}
.reviews-carousel::-webkit-scrollbar { height: 6px; }
.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--border-color); border-radius: 3px;
}
.review-card {
    min-width: 300px; max-width: 350px; scroll-snap-align: start;
    background: var(--surface-color); padding: 1.5rem;
    border-radius: var(--radius); border: 1px solid var(--border-color);
    display: flex; flex-direction: column;
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.review-name { font-weight: 600; }
.review-rating { color: #F59E0B; letter-spacing: 2px; }
.review-text { color: var(--text-secondary); font-size: 0.95rem; flex: 1; }
.review-photo {
    width: 100%; height: 150px; object-fit: cover;
    border-radius: 4px; margin-top: 0.75rem;
}
.review-date {
    font-size: 0.8rem; color: var(--text-secondary);
    margin-top: 0.75rem; text-align: right;
}
.review-form-container {
    background: var(--surface-color); padding: 2rem;
    border-radius: var(--radius); border: 1px solid var(--border-color);
}
.form-field { margin-bottom: 1rem; }
.form-field label {
    display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem;
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius); font-family: inherit;
}

/* Scrollbar for review cards */
.review-card::-webkit-scrollbar,
.review-card div::-webkit-scrollbar { width: 6px; }
.review-card::-webkit-scrollbar-track,
.review-card div::-webkit-scrollbar-track { background: transparent; }
.review-card::-webkit-scrollbar-thumb,
.review-card div::-webkit-scrollbar-thumb {
    background-color: #CBD5E1; border-radius: 3px;
}
.review-card::-webkit-scrollbar-thumb:hover,
.review-card div::-webkit-scrollbar-thumb:hover { background-color: #94A3B8; }

/* ===== 20. PAGINATION ===== */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 0.5rem; margin: 3rem 0; flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border-color); border-radius: 8px;
    text-decoration: none; color: var(--text-primary);
    font-weight: 500; transition: all 0.2s;
}
.pagination a:hover { background: var(--surface-color); border-color: var(--text-primary); }
.pagination .current {
    background: var(--text-primary); color: white;
    border-color: var(--text-primary);
}
.pagination .disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ===== 21. FOOTER ===== */
.footer-socials {
    display: flex; gap: 0.5rem; margin-top: 1rem;
    justify-content: center; flex-wrap: wrap;
}
.footer-socials .social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; overflow: hidden;
    text-decoration: none;
}
.footer-socials .social-link:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.footer-socials .social-icon { width: 28px; height: 28px; object-fit: contain; }

/* ===== 22. MODALS ===== */
.modal {
    margin: auto; max-width: 500px; width: 90%;
    max-height: 90vh; overflow-y: auto; padding: 0;
    border: none; border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}
.modal::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content { padding: 2rem; position: relative; }
.small-modal { max-width: 400px; }
.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--text-secondary); z-index: 10;
}
.modal-product-title { font-size: 1.2rem; font-weight: 600; margin: 1rem 0; }
.contact-buttons {
    display: flex; flex-direction: column; gap: 0.8rem; margin: 1.5rem 0;
}
.btn-whatsapp { background: var(--whatsapp-color); color: white; }
.btn-telegram { background: var(--telegram-color); color: white; }

/* Checkout modal responsive */
@media (max-width: 480px) {
    #checkout-modal { width: 95% !important; max-width: 95% !important; }
    #checkout-modal > div { padding: 1.5rem !important; }
    #checkout-modal button { font-size: 0.95rem !important; }
}

/* ===== 23. ADMIN — стили перенесены в /admin/assets/css/admin.css ===== */

/* ===== 24. RESPONSIVE ===== */

/* Image nav responsive */
@media (min-width: 769px) {
    .image-container:hover .product-image { transform: scale(1.05); }
    .product-card:hover .image-nav,
    .arrival-card:hover .image-nav { opacity: 1; }
}
@media (max-width: 768px) {
    .image-nav { opacity: 0.75; width: 32px; height: 32px; font-size: 1.2rem; }
    .arrivals-carousel .arrival-card .image-nav { opacity: 0.7; }
    .arrivals-carousel .arrival-card .image-nav:active {
        opacity: 1; background: rgba(255,255,255,1);
    }
}

/* Lightbox mobile */
@media (max-width: 768px) {
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-nav {
        width: 40px; height: 40px; font-size: 1.2rem;
        background: rgba(0,0,0,0.5);
    }
}

/* Header mobile */
@media (max-width: 768px) {
    .header {
        flex-direction: column; align-items: stretch;
        gap: 1rem; padding: 1rem 4%; position: relative !important; top: auto !important;
    }
    .header-search { max-width: 100%; order: 3; }
    .nav-menu {
        gap: 1rem; overflow-x: auto; padding-bottom: 4px;
        justify-content: flex-start; order: 2;
    }
    .nav-link { white-space: nowrap; font-size: 0.85rem; }
    .hero-section h1 { font-size: 2.5rem; }
    .editorial-block {
        grid-template-columns: 1fr; padding: 4rem 5%;
        gap: 2rem; text-align: center;
    }
    .editorial-content h2 { font-size: 2.5rem; }
    .editorial-content p { margin: 0 auto; }
    .editorial-visual { height: 300px; }
    .homepage-section { padding: 3rem 4%; }
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem 4%; gap: 1.5rem;
    }
    .sidebar { padding: 1rem; }
    .size-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-layout { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 0.8rem; }
    .details-content { grid-template-columns: 1fr; }
    .details-image-container { aspect-ratio: 4/3; }
    .details-info { padding: 1.5rem; }

    /* Product page mobile */
    .product-page { padding: 0 1rem !important; margin: 1rem auto !important; }
    .product-breadcrumb { font-size: 0.8rem !important; margin-bottom: 1rem !important; }
    .product-title { font-size: 1.3rem !important; margin: 0 0 0.5rem 0 !important; }
    .product-main-grid {
        display: flex !important; flex-direction: column !important;
        gap: 1.2rem !important; margin-bottom: 2rem !important;
    }
    .product-gallery { position: static !important; width: 100% !important; order: 1 !important; }
    .product-main-img-wrap {
        aspect-ratio: 4/5 !important; border-radius: 10px !important; margin-bottom: 0.8rem !important;
    }
    .img-nav { width: 38px !important; height: 38px !important; }
    .thumbs-desktop { display: none !important; }
    .thumbs-mobile {
        display: flex !important; gap: 0.4rem !important;
        overflow-x: auto !important; padding: 0.3rem 0 !important;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .thumbs-mobile::-webkit-scrollbar { display: none; }
    .thumbs-mobile img {
        min-width: 60px !important; width: 60px !important; height: 60px !important;
        border-radius: 8px !important; object-fit: cover !important;
        border: 2px solid transparent !important; cursor: pointer; flex-shrink: 0;
    }
    .thumbs-mobile img.active { border-color: var(--accent-color) !important; }
    .product-info { width: 100% !important; order: 2 !important; gap: 1rem !important; }
    .price-block { margin: 0.5rem 0 !important; }
    .price-current { font-size: 1.8rem !important; }
    .size-selector-block { padding: 1rem !important; margin: 0.5rem 0 !important; }
    .size-btn {
        min-width: 50px !important; height: 50px !important;
        font-size: 0.9rem !important; padding: 0 0.8rem !important;
    }
    .meta-info { padding: 0.8rem 0 !important; gap: 0.5rem !important; }
    .meta-row { font-size: 0.9rem !important; }
    .meta-label { min-width: 100px !important; }
    .desc-section { margin-top: 2rem !important; padding-top: 1.5rem !important; }
    .desc-section h3 { font-size: 1.2rem !important; }
    .desc-text { font-size: 0.95rem !important; }
    .related-section { margin-top: 2rem !important; padding-top: 1.5rem !important; }
    .related-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
    .lightbox-wrapper { flex-direction: column; max-width: 100%; }
    .lightbox-image-container { max-width: 95vw; max-height: 75vh; }
    .lightbox-nav {
        width: 44px !important; height: 44px !important;
        font-size: 1.2rem !important; background: rgba(0,0,0,0.5) !important;
    }
    .lb-prev { left: 12px !important; }
    .lb-next { right: 12px !important; }
    .lightbox-close {
        top: 12px !important; right: 12px !important;
        width: 40px !important; height: 40px !important;
    }
    .zoom-lens, .zoom-result { display: none !important; }

    /* News mobile */
    .news-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .news-header h1 { font-size: 2rem; }
    .news-single-title { font-size: 1.8rem; }
    .news-single-content { font-size: 1rem; }

    /* Global mobile scroll fix */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important; position: relative !important;
    }
    .product-page { max-width: 100% !important; overflow-x: hidden !important; box-sizing: border-box !important; }
}

/* Measurements modal mobile */
@media (max-width: 768px) {
    .measurements-modal { width: calc(100% - 32px); max-width: none; }
    .measurements-content { padding: 16px; }
    .measurements-image { max-width: 200px; max-height: 240px; }
}
@media (max-width: 380px) {
    .measurements-modal { width: calc(100% - 24px); }
    .measurements-content { padding: 12px; }
    .measurements-image { max-width: 140px; max-height: 160px; }
    .measurement-label { font-size: 12px; }
    .measurement-value { font-size: 13px; }
}

/* Search dropdown mobile */
@media (max-width: 768px) {
    .search-dropdown { max-height: 400px; }
    .search-dropdown-img { width: 50px; height: 50px; }
    .search-dropdown-title { font-size: 0.85rem; }
    .search-dropdown-price { font-size: 0.9rem; }
}

/* Footer social mobile */
@media (max-width: 768px) {
    .footer-socials { gap: 1rem; margin-top: 0.8rem; }
    .footer-socials .social-link { width: 44px; height: 44px; }
    .footer-socials .social-icon { width: 24px; height: 24px; }
}
@media (max-width: 480px) {
    .footer-socials { gap: 0.8rem; }
    .footer-socials .social-link { width: 40px; height: 40px; }
    .footer-socials .social-icon { width: 22px; height: 22px; }
}

/* Very small screens */
@media (max-width: 480px) {
    .product-title { font-size: 1.3rem !important; }
}

/* Thumbs-mobile fix */
.thumbs-mobile img {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-touch-callout: none; user-select: none;
}
.thumbs-mobile img:active { opacity: 0.7; }

/* Photo zoom */
.photo-zoom { cursor: zoom-in; transition: opacity 0.2s; }
.photo-zoom:hover { opacity: 0.9; }

/* Details modal */
.details-modal { max-width: 900px; }
.details-content { display: grid; grid-template-columns: 1fr 1fr; }
.details-image-container {
    position: relative; background: #f4f4f4; aspect-ratio: 1; overflow: hidden;
}
.details-image { width: 100%; height: 100%; object-fit: contain; }
.details-image-container .image-nav { opacity: 1; width: 40px; height: 40px; font-size: 1.5rem; }
.details-info { padding: 2.5rem; display: flex; flex-direction: column; }
.details-meta {
    margin: 1.5rem 0; padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.details-meta p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.details-description h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.details-description p {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.6; white-space: pre-wrap;
}

.checkout-form-fields {
    margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem;
}
.checkout-disclaimer {
    font-size: 0.85rem; color: var(--text-secondary);
    background: #f9f9f9; padding: 0.8rem 1rem;
    border-radius: var(--radius); border-left: 3px solid var(--accent-color);
    margin-bottom: 1.5rem; line-height: 1.4;
}

 