/* --- ЗАГАЛЬНІ СТИЛІ І ФОН --- */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #0d1117; 
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(241, 196, 15, 0.15) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg stroke='rgba(255,255,255,0.08)' stroke-width='1.5' fill='none' font-family='monospace' font-size='14'%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='150' stroke-dasharray='10,5'/%3E%3Ccircle cx='400' cy='400' r='20'/%3E%3Cline x1='100' y1='400' x2='700' y2='400' stroke-dasharray='20,10,5,10'/%3E%3Cline x1='400' y1='100' x2='400' y2='700' stroke-dasharray='20,10,5,10'/%3E%3Cpath d='M 400 200 L 600 200'/%3E%3Cline x1='600' y1='190' x2='600' y2='210'/%3E%3Ctext x='450' y='190' fill='rgba(255,255,255,0.08)' stroke='none'%3EØ 300.00%3C/text%3E%3Crect x='150' y='150' width='120' height='80'/%3E%3Ccircle cx='210' cy='190' r='25'/%3E%3Ctext x='150' y='135' fill='rgba(241,196,15,0.15)' font-weight='bold' stroke='none'%3EITEM: BRACKET-X%3C/text%3E%3Ctext x='150' y='255' fill='rgba(255,255,255,0.08)' stroke='none'%3EMAT: CARBON STEEL%3C/text%3E%3Ctext x='150' y='275' fill='rgba(255,255,255,0.08)' stroke='none'%3ETHK: 2.0 MM%3C/text%3E%3Ctext x='150' y='295' fill='rgba(255,255,255,0.08)' stroke='none'%3ETOLERANCE: +/- 0.1%3C/text%3E%3Cpath d='M 450 400 A 50 50 0 0 0 435 365'/%3E%3Ctext x='460' y='380' fill='rgba(255,255,255,0.08)' stroke='none'%3E45°%3C/text%3E%3Cline x1='210' y1='190' x2='280' y2='130'/%3E%3Ctext x='290' y='125' fill='rgba(255,255,255,0.08)' stroke='none'%3ER 12.5%3C/text%3E%3Cg transform='translate(600,600)'%3E%3Ccircle cx='0' cy='0' r='50'/%3E%3Cline x1='-70' y1='0' x2='70' y2='0'/%3E%3Cline x1='0' y1='-70' x2='0' y2='70'/%3E%3Ctext x='-40' y='-60' fill='rgba(241,196,15,0.15)' font-weight='bold' stroke='none'%3EDETAIL B%3C/text%3E%3Ctext x='-40' y='-45' fill='rgba(255,255,255,0.08)' stroke='none'%3ESCALE 2:1%3C/text%3E%3C/g%3E%3Cg transform='translate(650,150)'%3E%3Crect x='0' y='0' width='90' height='50' stroke='rgba(241,196,15,0.15)'/%3E%3Ctext x='10' y='20' fill='rgba(241,196,15,0.15)' stroke='none'%3EQA PASSED%3C/text%3E%3Ctext x='10' y='40' fill='rgba(255,255,255,0.08)' stroke='none'%3EDATE: ___%3C/text%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100vw 100vh, 800px 800px, 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: center top, center top, center center, center center, center center, center center;
    background-attachment: fixed, scroll, scroll, scroll, scroll, scroll;
    color: #eee; 
    margin: 0; 
    scroll-behavior: smooth; 
}

/* Утиліти */
.hidden { display: none !important; }

/* --- ГОЛОВНА ШАПКА --- */
.main-header { 
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(10px); 
    padding: 0 40px; 
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
    border-bottom: 2px solid #333; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1000; 
    height: 100px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.6); 
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* На ПК шапка не уїжджає */
.main-header.hidden-header {
    top: 0; 
}

.header-left { justify-self: start; display: flex; align-items: center; gap: 30px; }

/* Строга кнопка меню для ПК */
.burger-btn-desktop {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.burger-btn-desktop:hover {
    color: #f1c40f;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(241, 196, 15, 0.5));
}

/* НОВИЙ ЦЕНТРАЛЬНИЙ БЛОК: Metal [Лого] Art Lab */
.header-center { 
    justify-self: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    cursor: pointer;
}

.logo-img { 
    height: 110px; 
    width: auto; 
    object-fit: contain; 
    filter: drop-shadow(0 0 10px rgba(241, 196, 15, 0.3)); 
    margin-bottom: -20px; 
    transition: all 0.3s ease; 
    position: relative; 
    z-index: 10;
}

.logo-text { 
    margin: 0; 
    font-size: 42px; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-family: 'Anton', sans-serif; 
    background: linear-gradient(45deg, #f1c40f 0%, #fff7d6 40%, #f1c40f 60%, #e67e22 100%); 
    background-size: 200% auto; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0px 0px 5px rgba(241, 196, 15, 0.3)); 
    transition: all 0.3s ease; 
}

/* Спільний hover-ефект для всього блоку */
.header-center:hover .logo-text { 
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0px 0px 15px rgba(241, 196, 15, 0.8)); 
    background-position: right center; 
}
.header-center:hover .logo-img { 
    filter: drop-shadow(0 0 20px rgba(241, 196, 15, 0.8)); 
    transform: scale(1.05); 
}

.header-right { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.header-contacts-rich { display: flex; align-items: center; gap: 15px; font-size: 14px; color: #ccc; }
.work-time { display: flex; align-items: center; gap: 6px; padding-right: 15px; border-right: 1px solid #333; }
.work-time svg { width: 14px; height: 14px; stroke: #f1c40f; } 
.phone-link { color: #fff; text-decoration: none; font-weight: bold; transition: 0.3s ease; display: flex; align-items: center; gap: 6px; }
.phone-link:hover { color: #f1c40f; }
.phone-icon { fill: #f1c40f; width: 15px; height: 15px; transition: 0.3s ease; } 

.header-actions { display: flex; align-items: center; gap: 10px; }

/* МАГІЯ ПОШУКУ (Expandable) */
.header-search-expandable {
    display: flex; align-items: center; background: #111; border: 2px solid #333; border-radius: 8px;
    width: 42px; height: 42px; transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden; justify-content: flex-end; box-sizing: border-box;
}
.header-search-expandable:focus-within, .header-search-expandable:hover, .header-search-expandable.active {
    width: 250px; border-color: #f1c40f; box-shadow: 0 0 15px rgba(241, 196, 15, 0.2);
}
.search-input-exp {
    background: transparent; border: none; color: #fff; padding: 0; width: 0; outline: none; font-size: 14px;
    font-family: inherit; transition: width 0.4s ease, padding 0.4s ease;
}
.header-search-expandable:focus-within .search-input-exp, .header-search-expandable:hover .search-input-exp, .header-search-expandable.active .search-input-exp {
    width: 208px; padding: 0 15px;
}
.search-btn-exp {
    background: transparent; border: none; border-left: 1px solid transparent; width: 42px; height: 42px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: 0.3s; padding: 0;
}
.header-search-expandable:focus-within .search-btn-exp, .header-search-expandable:hover .search-btn-exp, .header-search-expandable.active .search-btn-exp {
    border-left-color: #333; background: #1a1a1a;
}
.search-icon-svg { fill: #888; width: 18px; height: 18px; transition: 0.2s; }
.header-search-expandable:focus-within .search-icon-svg, .header-search-expandable:hover .search-icon-svg, .header-search-expandable.active .search-icon-svg { fill: #f1c40f; }

/* Ховаємо новий мобільний пошук на ПК */
.mobile-header-search { display: none; }

/* ЗОЛОТИЙ КОШИК */
.cart-btn-header { 
    font-size: 14px; background-color: #f1c40f; color: #000; padding: 0 15px; border-radius: 8px; border: none; 
    font-weight: bold; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; 
    gap: 8px; white-space: nowrap; height: 42px; box-sizing: border-box; width: 200px; 
}
.cart-btn-header:hover { background-color: #fff; transform: scale(1.02); }
.cart-btn-header.has-items { background-color: #2ecc71; color: #000; } 
.cart-btn-header .cart-icon-svg { stroke: currentColor; transition: 0.3s; }

/* --- БОКОВЕ МЕНЮ --- */
.site-menu-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); z-index: 5000; opacity: 0; visibility: hidden; 
    transition: 0.3s; backdrop-filter: blur(5px); 
}
.site-menu-overlay.active { opacity: 1; visibility: visible; }
.site-menu { 
    position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; 
    background: #111; z-index: 5001; transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 5px 0 20px rgba(0,0,0,0.8); overflow-y: auto; 
    display: flex; flex-direction: column; border-right: 1px solid #333; 
}
.site-menu.active { left: 0; }
.close-menu-btn { 
    position: absolute; top: 15px; right: 20px; font-size: 35px; color: #888; 
    cursor: pointer; line-height: 1; transition: 0.2s; 
}
.close-menu-btn:hover { color: #f1c40f; }
.site-menu-header { padding: 30px 20px; text-align: center; border-bottom: 1px solid #222; }
.site-menu-header img { height: 60px; margin-bottom: 10px; filter: drop-shadow(0 0 5px rgba(241, 196, 15, 0.3)); }
.site-menu-header h2 { color: #f1c40f; font-family: 'Anton', sans-serif; letter-spacing: 2px; text-transform: uppercase; margin: 0; font-size: 22px; }
.site-menu-links { display: flex; flex-direction: column; padding: 20px 0; }
.site-menu-links a { 
    padding: 15px 30px; color: #ccc; text-decoration: none; font-size: 16px; 
    font-weight: bold; border-left: 3px solid transparent; cursor: pointer; 
    transition: 0.2s; display: flex; align-items: center; gap: 12px; 
}
.site-menu-links a:hover { background: rgba(241, 196, 15, 0.1); color: #f1c40f; border-left-color: #f1c40f; }
.menu-icon { width: 20px; height: 20px; flex-shrink: 0; transition: 0.2s; }
.menu-divider { height: 1px; background: #222; margin: 15px 20px; }
.menu-contact { font-size: 14px !important; color: #888 !important; padding: 10px 30px !important; font-weight: normal !important; }
.menu-contact:hover { color: #fff !important; }

/* --- ПЛАВАЮЧІ ІКОНКИ (МОБІЛКА) --- */
.floating-top-right {
    position: fixed;
    top: 15px;
    right: 15px;
    display: none;
    gap: 10px;
    z-index: 2000;
}

.float-btn {
    width: 45px;
    height: 45px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: relative;
}
.float-cart-btn {
    border-color: #f1c40f;
    color: #f1c40f;
}
.cart-badge-float {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 14px;
    text-align: center;
}

/* --- КАТАЛОГ І ФІЛЬТРИ --- */
#mainView { padding-top: 100px; } /* Компенсація fixed шапки */

.catalog-header { text-align: center; padding: 40px 20px 10px; }
.catalog-header h1 { color: #f1c40f; margin: 0; text-transform: uppercase; font-size: 32px; letter-spacing: 2px;}

.filter-container { display: flex; justify-content: center; gap: 15px; margin: 20px 0 10px; padding: 0 20px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 2px solid #333; color: #aaa; padding: 10px 25px; border-radius: 30px; cursor: pointer; font-weight: bold; transition: 0.3s; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;}
.filter-btn:hover { border-color: #f1c40f; color: #fff; }
.filter-btn.active { background: #f1c40f; color: #000; border-color: #f1c40f; box-shadow: 0 0 15px rgba(241, 196, 15, 0.3); }

/* ПЕРЕМИКАЧ ВИДУ */
.view-toggle-wrapper { display: flex; justify-content: center; margin-bottom: 30px; }
.mobile-view-toggle { display: flex; align-items: center; gap: 10px; background: #1a1a1a; border: 1px solid #333; color: #888; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: bold; text-transform: uppercase; transition: 0.3s; }
.mobile-view-toggle:hover { border-color: #f1c40f; color: #f1c40f; }

.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, 280px); 
    gap: 30px; 
    justify-content: center; 
    padding: 0 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding-bottom: 50px;
    transition: all 0.3s ease;
}

.products-grid.list-view { grid-template-columns: 1fr; max-width: 800px; }
.products-grid.list-view .product-card { flex-direction: row; height: 180px; }
.products-grid.list-view .product-image { width: 180px; height: 180px; border-bottom: none; border-right: 1px solid #333; }
.products-grid.list-view .product-details { padding: 15px; }

.product-card { background-color: rgba(26, 26, 26, 0.85); backdrop-filter: blur(5px); border: 1px solid #333; border-radius: 10px; overflow: hidden; transition: 0.2s; display: flex; flex-direction: column; cursor: pointer; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(241, 196, 15, 0.15); border-color: #444; background-color: rgba(26, 26, 26, 1); }
.product-image { width: 100%; height: 280px; object-fit: cover; background-color: transparent; padding: 0; box-sizing: border-box; border-bottom: 1px solid #333; transition: 0.3s; border-radius: 10px 10px 0 0; }
.product-card:hover .product-image { opacity: 0.85; }

.product-details { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { margin: 0 0 10px 0; font-size: 18px; color: #fff; transition: 0.2s; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 22px; font-weight: bold; color: #f1c40f; }
.btn-buy { background-color: transparent; color: #f1c40f; border: 2px solid #f1c40f; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-buy:hover { background: #f1c40f; color: #000; }

/* --- СВІЙ ДИЗАЙН --- */
.custom-design-card { background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(0,0,0,0.8)); border: 2px dashed #e67e22; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; }
.custom-design-card:hover { border-style: solid; box-shadow: 0 0 25px rgba(230, 126, 34, 0.3); background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(0,0,0,0.9)); }
.custom-design-icon { font-size: 50px; margin-bottom: 15px; filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.5)); }
.custom-design-card h3 { color: #e67e22; font-family: 'Anton', sans-serif; font-size: 24px; letter-spacing: 1px; margin: 0 0 10px 0; text-transform: uppercase; }
.custom-design-card p { color: #ccc; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.custom-design-btn { background: transparent; color: #e67e22; border: 2px solid #e67e22; padding: 10px 20px; border-radius: 6px; font-weight: bold; font-size: 15px; cursor: pointer; transition: 0.2s; text-transform: uppercase;}
.custom-design-card:hover .custom-design-btn { background: #e67e22; color: #000; }

/* --- СТОРІНКА ТОВАРУ --- */
#productView { display: none; padding: 40px 20px; min-height: 80vh; max-width: 1200px; margin: 0 auto; padding-top: 120px; }
.pv-back-btn { display: inline-flex; align-items: center; gap: 8px; color: #aaa; text-decoration: none; font-size: 18px; margin-bottom: 30px; cursor: pointer; transition: 0.2s; }
.pv-back-btn:hover { color: #f1c40f; }

.pv-layout { display: flex; gap: 50px; }
.pv-gallery-col { flex: 1; display: flex; flex-direction: row; gap: 15px; align-self: flex-start; position: sticky; top: 120px; }
.pv-thumbnails { display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; max-height: 450px; overflow-y: auto; padding-right: 5px; }
.pv-thumbnails::-webkit-scrollbar { width: 4px; }
.pv-thumbnails::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
.pv-thumbnail { width: 65px; height: 65px; background: transparent; border-radius: 8px; padding: 0; cursor: pointer; border: 2px solid #333; transition: 0.2s; object-fit: cover; box-sizing: border-box; flex-shrink: 0; }
.pv-thumbnail:hover { border-color: #888; }
.pv-thumbnail.active { border-color: #e67e22; transform: scale(1.1); }
.pv-main-image-box { flex: 1; background: transparent; border-radius: 12px; padding: 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: zoom-in; transition: transform 0.2s; box-sizing: border-box; border: none; }
.pv-main-image-box img { width: 100%; height: auto; max-height: 450px; object-fit: contain; border-radius: 12px; }
.pv-main-image-box:hover { transform: scale(1.02); }
.expand-hint { position: absolute; bottom: 15px; right: 15px; background: rgba(255, 255, 255, 0.9); color: #000; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.pv-main-image-box:hover .expand-hint { opacity: 1; }

.pv-info-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.pv-title { color: #fff; font-size: 40px; margin-top: 0; margin-bottom: 10px; font-family: 'Anton', sans-serif; letter-spacing: 1px; text-transform: uppercase; }

.pv-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; font-size: 18px; background: rgba(34,34,34,0.8); display: inline-flex; padding: 8px 15px; border-radius: 8px; border: 1px solid #333; width: fit-content;}
.pv-rating-stars { color: #f1c40f; letter-spacing: 2px; }
.pv-rating-score { color: #fff; font-weight: bold; }
.pv-rating-count { color: #aaa; font-size: 15px; }
.pv-desc { color: #ccc; font-size: 18px; line-height: 1.6; margin-bottom: 30px; }
.pv-price { color: #f1c40f; font-size: 40px; font-weight: bold; margin-bottom: 25px; }

.pv-buy-btn { background: #f1c40f; color: #000; font-size: 20px; font-weight: bold; padding: 20px 40px; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s; text-transform: uppercase; width: 100%; max-width: 400px; margin-bottom: 15px;}
.pv-buy-btn:hover { background: #fff; transform: scale(1.02); }
.pv-custom-btn { background: transparent; color: #e67e22; font-size: 16px; font-weight: bold; padding: 15px 40px; border: 2px dashed #e67e22; border-radius: 8px; cursor: pointer; transition: 0.2s; width: 100%; max-width: 400px; margin-bottom: 40px;}
.pv-custom-btn:hover { background: rgba(230, 126, 34, 0.1); border-style: solid; }

.pv-reviews-section { border-top: 2px solid #333; padding-top: 20px; }
.pv-reviews-title { color: #fff; font-size: 24px; margin-bottom: 0; font-family: 'Anton', sans-serif; letter-spacing: 1px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; transition: color 0.2s;}
.pv-reviews-title:hover { color: #f1c40f; }
.pv-review-card { background: rgba(17,17,17,0.8); border: 1px solid #333; padding: 20px; border-radius: 8px; margin-bottom: 15px; border-left: 3px solid #f1c40f; }
.pv-review-card b { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.pv-review-card p { color: #aaa; margin: 0; font-size: 15px; line-height: 1.5; }
.pv-review-reply { margin-top: 15px; margin-left: 20px; padding: 15px; background: rgba(241, 196, 15, 0.05); border-left: 3px solid #e67e22; border-radius: 0 8px 8px 0; font-size: 14px; }
.pv-review-reply b { color: #e67e22; font-size: 14px; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.reply-action-btn { background: none; border: none; color: #888; font-size: 13px; cursor: pointer; padding: 0; margin-top: 10px; transition: color 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.reply-action-btn:hover { color: #f1c40f; }
.pv-leave-review-btn { background: transparent; color: #aaa; border: 1px solid #555; padding: 12px 24px; border-radius: 6px; cursor: pointer; transition: 0.2s; font-size: 15px; margin-top: 10px; }
.pv-leave-review-btn:hover { border-color: #f1c40f; color: #fff; }

/* --- КРОС-СЕЙЛ --- */
.cross-sell-section { margin-top: 60px; border-top: 2px solid #333; padding-top: 40px; }
.cross-sell-title { color: #f1c40f; font-family: 'Anton', sans-serif; font-size: 28px; text-transform: uppercase; text-align: center; margin-bottom: 30px; }

/* --- ПРЕМІУМ ПІДВАЛ --- */
.site-footer { 
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    color: #aaa; 
    padding: 80px 20px 30px; 
    margin-top: 80px; 
    border-top: 1px solid #222; 
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f1c40f, transparent);
    opacity: 0.5;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; max-width: 1200px; margin: 0 auto 50px; }
.footer-logo { color: #fff; font-size: 28px; font-family: 'Anton', sans-serif; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px;}
.footer-column h3 { color: #f1c40f; text-transform: uppercase; font-size: 18px; margin-bottom: 15px; letter-spacing: 1px; font-weight: bold;}
.footer-bio { font-size: 15px; line-height: 1.6; margin-bottom: 25px; color: #888; }
.footer-subtext { font-size: 13px; color: #666; margin-bottom: 20px; line-height: 1.5; }

.social-links-minimal { display: flex; gap: 15px; }
.social-btn-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111;
    border: 1px solid #333;
    color: #888;
    transition: all 0.3s ease;
}
.social-btn-minimal:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.footer-rich-link { 
    display: flex; 
    align-items: center;
    gap: 10px;
    color: #aaa; 
    text-decoration: none; 
    margin-bottom: 16px; 
    font-size: 15px; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    width: fit-content;
}
.footer-rich-link svg { color: #555; transition: 0.3s ease; }
.footer-rich-link:hover { color: #fff; transform: translateX(5px); }
.footer-rich-link:hover svg { color: #f1c40f; }

.footer-contacts-list { list-style: none; padding: 0; margin: 0; }
.footer-contacts-list li { margin-bottom: 16px; }
.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
}
.footer-contact-link svg { color: #555; transition: 0.3s ease; }
.footer-contact-link:hover { color: #fff; transform: translateX(5px); }
.footer-contact-link:hover svg { color: #f1c40f; }

.footer-bottom { text-align: center; font-size: 13px; border-top: 1px solid #222; padding-top: 30px; color: #555; line-height: 1.8;}

#scrollToTopBtn { position: fixed; bottom: 30px; right: 30px; background-color: #f1c40f; color: #000; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 24px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 99; display: flex; align-items: center; justify-content: center;}
#scrollToTopBtn.visible { opacity: 1; pointer-events: auto; }
#scrollToTopBtn:hover { transform: translateY(-5px); background-color: #fff; }

/* --- МОДАЛЬНІ ВІКНА --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 3000; display: none; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-box { background-color: #1a1a1a; width: 95%; max-width: 750px; border-radius: 12px; border: 2px solid #333; padding: 30px; box-sizing: border-box; position: relative; max-height: 95vh; overflow-y: auto; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 32px; color: #aaa; cursor: pointer; line-height: 1; z-index: 1001; }
.close-btn:hover { color: #fff; }

/* --- КОШИК --- */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 4000;
    visibility: hidden; 
    opacity: 0; 
    transition: 0.3s ease;
}
.cart-overlay.active { 
    visibility: visible; 
    opacity: 1; 
}

.cart-popup {
    position: absolute; 
    top: 90px; 
    right: 40px; 
    width: 420px; 
    max-height: calc(100vh - 120px);
    background: #1a1a1a; 
    border: 1px solid #333; 
    border-radius: 12px;
    padding: 25px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    display: flex; 
    flex-direction: column;
    transform: translateY(-15px); 
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    box-sizing: border-box;
}
.cart-overlay.active .cart-popup { 
    transform: translateY(0); 
}

/* ОБМЕЖУЄМО ВИСОТУ СПИСКУ ТОВАРІВ */
.cart-items-list { 
    flex: 1 1 auto; 
    overflow-y: auto; 
    padding-right: 5px; 
    margin-bottom: 20px; 
}
/* Акуратний скролбар для кошика */
.cart-items-list::-webkit-scrollbar { width: 6px; }
.cart-items-list::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
.cart-items-list::-webkit-scrollbar-track { background: transparent; }

.cart-item { display: flex; gap: 12px; align-items: center; background-color: #222; padding: 10px; margin-bottom: 10px; border-radius: 8px; border-left: 3px solid #f1c40f; }
.cart-item-img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; border: 1px solid #444; flex-shrink: 0; }
.cart-item-info { flex-grow: 1; }
.cart-item-name { display: block; font-weight: bold; color: #fff; font-size: 13px; line-height: 1.2; margin-bottom: 4px; }
.cart-item-price { color: #f1c40f; font-size: 13px; font-weight: bold; }
.qty-controls { display: flex; align-items: center; gap: 8px; background: #111; padding: 4px 8px; border-radius: 4px; }
.qty-btn { background: none; border: none; color: #f1c40f; font-size: 18px; font-weight: bold; cursor: pointer; }
.qty-val { color: #fff; min-width: 15px; text-align: center; font-size: 13px; }
.btn-remove { background: #e74c3c; color: white; border: none; border-radius: 4px; width: 22px; height: 22px; cursor: pointer; font-size: 14px; flex-shrink: 0; }

.form-input { width: 100%; padding: 12px 14px; margin-bottom: 12px; border-radius: 6px; border: 1px solid #444; background: #000; color: #fff; box-sizing: border-box; font-size: 15px; font-family: inherit; }
.form-input:focus { outline: none; border-color: #f1c40f; }
.btn-submit { width: 100%; background: #f1c40f; color: #000; border: none; padding: 16px; font-weight: bold; font-size: 18px; cursor: pointer; border-radius: 6px; transition: 0.2s; margin-top: 5px; }
.btn-submit:hover { background: #fff; }

.cart-total-display { font-size: 22px; font-weight: bold; text-align: right; margin-bottom: 20px; color: #fff; padding-top: 15px; border-top: 1px solid #333; }

/* --- TOASTS --- */
#toastContainer { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.custom-toast { background-color: #1a1a1a; color: #fff; padding: 15px 20px; border-radius: 8px; border-left: 4px solid #f1c40f; box-shadow: 0 5px 15px rgba(0,0,0,0.6); display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: bold; transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); max-width: 350px; pointer-events: auto; }
.custom-toast.show { transform: translateX(0); opacity: 1; }
.custom-toast.toast-success { border-left-color: #2ecc71; }

/* --- ШКАЛА БЕЗКОШТОВНОЇ ДОСТАВКИ --- */
.free-shipping-container {
    background: rgba(17, 17, 17, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.fs-text {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    transition: color 0.3s ease;
}

.fs-bar-bg {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.fs-bar-fill {
    height: 100%;
    width: 0%; 
    border-radius: 4px;
    transition: width 0.4s ease-in-out, background 0.4s ease-in-out;
}

/* --- ВІДНОВЛЕНІ СТИЛІ ДЛЯ ПАЛІТРИ RAL ТА ЇЇ ФОНУ --- */
#ralOverlay { 
    z-index: 3500 !important;
}

.texture-selector {
    text-align: center;
    margin-bottom: 20px;
}
.texture-selector select {
    background: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 6px;
    margin-left: 10px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}
.texture-selector select:focus {
    border-color: #f1c40f;
}

.ral-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.ral-tab-btn {
    background: #111;
    color: #aaa;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}
.ral-tab-btn:hover, .ral-tab-btn.active {
    background: #f1c40f;
    color: #000;
    border-color: #f1c40f;
    font-weight: bold;
}

.color-grid-ral {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
}
.color-grid-ral::-webkit-scrollbar { width: 6px; }
.color-grid-ral::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

.color-item {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}
.color-item:hover {
    border-color: #f1c40f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.2);
}
.color-swatch-ral {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #000;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
.color-item strong {
    color: #fff;
    font-size: 14px;
}
.color-name {
    color: #aaa;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.2;
}

/* --- СТИЛІ ДЛЯ НОВОГО ПОПЕРЕДЖЕННЯ ПРО КІЛЬКІСТЬ --- */
.qty-error-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background-color: #1a1a1a;
    color: #f1c40f;
    border: 2px solid #f1c40f;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    display: none; 
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    z-index: 10;
    white-space: nowrap;
}

.qty-error-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 32px;
    border-width: 8px;
    border-style: solid;
    border-color: #f1c40f transparent transparent transparent;
}

input#customQty.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3) !important;
}

/* --- ВІДНОВЛЕНІ КРУЖЕЧКИ КОЛЬОРІВ ДЛЯ ТОВАРУ --- */
.pv-color-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pv-color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #444;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}
.pv-color-swatch:hover {
    transform: scale(1.15);
    border-color: #aaa;
}
.pv-color-swatch.active {
    border-color: #f1c40f;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}
.color-error {
    border: 2px solid #e74c3c !important;
    padding: 10px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.05);
}

/* --- КОЛЬОРИ СТАТУСІВ НАЯВНОСТІ --- */
.status-instock, .product-status.status-instock { 
    color: #2ecc71 !important; 
}
.status-preorder, .product-status.status-preorder { 
    color: #95a5a6 !important; 
}
.status-outofstock, .product-status.status-outofstock { 
    color: #e74c3c !important; 
}

/* --- ЗІРКИ У ФОРМІ ВІДГУКІВ (ХОВАЄМО КРАПКИ) --- */
.review-stars-select {
    display: flex;
    flex-direction: row-reverse; 
    justify-content: center;
    margin-bottom: 20px;
}
.review-stars-select input[type="radio"] {
    display: none; 
}
.review-stars-select label {
    font-size: 35px;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0 5px;
}
.review-stars-select label:hover,
.review-stars-select label:hover ~ label,
.review-stars-select input[type="radio"]:checked ~ label {
    color: #f1c40f; 
}

/* --- ЗЕЛЕНИЙ СПАЛАХ КОШИКА ПРИ ДОДАВАННІ ТОВАРУ --- */
.cart-btn-header.cart-flash-green {
    background-color: #2ecc71 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5) !important;
    transform: scale(1.05) !important;
}

/* =========================================
   НОВІ ПРАВКИ: МОБІЛКА, ШИЛЬДИКИ, ПРОМОКОД
   ========================================= */

/* 1. Фікс картки "Свій дизайн" у режимі списку на мобілці */
.products-grid.list-view .custom-design-card {
    flex-direction: column !important;
    height: auto !important;
    padding: 20px !important;
}

/* 2. Акуратні шильдики (замість inline-стилів у JS) */
.badge-container { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 5; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.badge-new { background: #2ecc71; color: #000; }
.badge-sale { background: #e74c3c; color: #fff; }

/* 3. Стилі для промокоду всередині кошика */
.cart-promo-container { display: flex; gap: 8px; margin-bottom: 15px; border-top: 1px solid #333; padding-top: 15px; }
.cart-promo-input { flex-grow: 1; padding: 10px 12px; border-radius: 6px; border: 1px solid #444; background: #000; color: #fff; font-size: 14px; outline: none; text-transform: uppercase; }
.cart-promo-input:focus { border-color: #f1c40f; }
.cart-promo-btn { background: #333; color: #fff; border: none; padding: 0 15px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; font-size: 13px; }
.cart-promo-btn:hover { background: #f1c40f; color: #000; }
.old-price { text-decoration: line-through; color: #888; font-size: 16px; margin-right: 10px; }
.cart-discount-info { color: #2ecc71; font-size: 13px; font-weight: bold; text-align: right; margin-bottom: 5px; }

/* --- НАВІГАЦІЯ ПОВНОЕКРАННОГО ФОТО (НОВІ ЗОНИ КЛІКУ) --- */
.nav-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%; /* Гігантська зона кліку (35% екрану зліва і 35% справа) */
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* ВБИВАЄМО СИНІЙ КОЛІР ПРИ ТАПІ */
    outline: none;
    user-select: none; /* Забороняємо виділення */
}
.nav-arrow:hover { 
    color: #fff; 
}
.nav-arrow svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8));
    transition: transform 0.2s ease;
}
.left-arrow { left: 0; justify-content: flex-start; padding-left: 30px; }
.left-arrow:hover svg { transform: translateX(-5px); }
.right-arrow { right: 0; justify-content: flex-end; padding-right: 30px; }
.right-arrow:hover svg { transform: translateX(5px); }

/* Глобально вбиваємо підсвітку кліку для оверлею і картинки */
#fullscreenImageOverlay {
    -webkit-tap-highlight-color: transparent;
}
#fullscreenImg {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}


/* --- МОБІЛЬНА ВЕРСІЯ (МЕДІА-ЗАПИТИ) --- */
@media (max-width: 768px) {
    header.main-header { 
        display: flex; 
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: 120px; 
        padding: 10px 15px;
    }
    
    header.main-header.hidden-header {
        top: -140px; 
    }

    .header-left {
        width: auto;
        position: static;
        display: block;
    }
    .header-left .burger-btn-desktop { 
        display: flex; 
        position: absolute; 
        left: 15px; 
        top: 32px; 
        transform: translateY(-50%);
    } 
    .header-left .burger-btn-desktop svg {
        stroke: #fff; 
    }
    .header-left .burger-btn-desktop:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .header-right { display: none; }
    
    .header-center { 
        display: flex; 
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 45px;
        margin-bottom: 10px; 
    }
    .header-center .logo-text {
        font-size: 20px; 
        letter-spacing: 1px;
    }
    .logo-img { 
        height: 48px; 
        margin: 0; 
        transform: none; 
        filter: drop-shadow(0 0 5px rgba(241, 196, 15, 0.3)); 
    }
    .header-center:hover .logo-img {
        transform: none; 
    }

    .mobile-header-search {
        display: flex;
        align-items: center;
        background: #111;
        border: 1px solid #333;
        border-radius: 8px;
        width: 100%;
        height: 45px;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .mobile-header-search input {
        background: transparent;
        border: none;
        color: #fff;
        width: 100%;
        height: 100%;
        padding-left: 10px;
        font-family: inherit;
        font-size: 15px;
        outline: none;
    }
    .mobile-header-search input:focus {
        border: none;
    }
    .mobile-header-search svg {
        flex-shrink: 0;
    }

    .floating-top-right { display: flex; z-index: 2000; top: 12px; right: 15px; gap: 10px; } 
    
    #mainView { padding-top: 130px; }
    #productView { padding-top: 130px; }

    /* МАГІЯ З ПЕРЕСТАНОВКОЮ БЛОКІВ НА МОБІЛЦІ */
    .pv-info-col {
        display: flex;
        flex-direction: column;
    }
    .pv-info-col > * {
        order: 1; /* Всі блоки йдуть за замовчуванням */
    }
    #pvDesc {
        order: 10; /* Опис стрибає ВНИЗ */
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #333;
        font-size: 16px;
    }
    .pv-reviews-section {
        order: 11; /* Відгуки залишаються в самому низу під описом */
    }

    .pv-layout { flex-direction: column; }
    .pv-gallery-col { position: static; width: 100%; flex-direction: column-reverse; }
    .pv-thumbnails { flex-direction: row; overflow-x: auto; width: 100%; max-height: none; padding: 5px 0;}
    .pv-thumbnail { width: 60px; height: 60px; }
    .pv-main-image-box { width: 100%; height: auto; }
    .pv-main-image-box img { max-height: 400px; object-fit: contain; }

    .catalog-header h1 { font-size: 24px; }
    
    .filter-container { 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        justify-content: flex-start; 
        padding: 0 15px 10px; 
        margin: 0 0 15px; 
        gap: 8px; 
        -webkit-overflow-scrolling: touch; 
    }
    .filter-btn { white-space: nowrap; padding: 8px 16px; font-size: 13px; flex-shrink: 0; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    .product-image { height: 160px; }
    .product-title { font-size: 14px; height: 34px; overflow: hidden; }
    .price { font-size: 16px; }
    .btn-buy { padding: 5px 10px; font-size: 12px; }

    .products-grid.list-view {
        grid-template-columns: 1fr;
    }
    .products-grid.list-view .product-card {
        flex-direction: row;
        height: 130px;
    }
    .products-grid.list-view .product-image {
        width: 130px;
        height: 130px;
        border-right: 1px solid #333;
    }
    .products-grid.list-view .product-details { padding: 10px; }
    
    .products-grid.list-view .custom-design-card {
        padding: 15px !important;
    }
    .custom-design-icon { font-size: 35px; margin-bottom: 10px; }
    .custom-design-card h3 { font-size: 18px; }
    .custom-design-card p { font-size: 12px; margin-bottom: 15px; line-height: 1.3; }
    .custom-design-btn { padding: 8px 15px; font-size: 12px; }

    .badge-container { top: 6px; left: 6px; gap: 4px; }
    .badge { padding: 3px 6px; font-size: 9px; }

    .cart-popup { 
        top: 75px; 
        right: 15px; 
        left: 15px; 
        bottom: auto;
        width: auto; 
        max-height: 85vh; 
        border-radius: 12px; 
    }

    .footer-grid { grid-template-columns: 1fr; }
    #scrollToTopBtn { bottom: 80px; right: 20px; width: 40px; height: 40px; } 

    /* СТРІЛКИ НА МОБІЛЦІ (Невидимі зони) */
    .nav-arrow { 
        background: transparent;
        width: 35%; 
    }
    .nav-arrow svg {
        width: 35px;
        height: 35px;
    }
    .left-arrow { padding-left: 15px; }
    .right-arrow { padding-right: 15px; }
}