/*
Theme Name: EdonUA
Theme URI: https://edonua.com.ua
Author: EdonUA
Author URI: https://edonua.com.ua
Description: Офіційний дистриб'ютор EDON та REDBO в Україні. Зварювальне обладнання, генератори, електроінструмент.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edonua
Tags: e-commerce, woocommerce, custom-logo
WooCommerce tested up to: 8.9
*/

:root {
  --red: #E31E24;
  --rl: #FF4B4B;
  --blue: #1A6FD4;
  --blk: #0d0d0d;
  --card: #1a0e0e;
  --card-b: #2e1a1a;
  --tx: #e8e8e8;
  --tx2: #888;
  --bg: linear-gradient(160deg,#0d0d0d 0%,#1a0a0a 50%,#0d0d0d 100%);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Manrope',sans-serif; background:var(--bg); background-attachment:fixed; color:var(--tx); overflow-x:hidden; }

/* NAV */
.site-header { position:sticky; top:0; z-index:200; background:rgba(13,13,13,.97); backdrop-filter:blur(12px); border-bottom:1px solid rgba(227,30,36,.15); box-shadow:0 2px 20px rgba(0,0,0,.5); }
.nav-inner { max-width:1320px; margin:0 auto; display:flex; align-items:center; padding:0 16px; height:56px; gap:6px; }
.site-logo { display:flex; align-items:center; gap:8px; margin-right:16px; flex-shrink:0; text-decoration:none; }
.logo-icon { width:24px; height:28px; background:var(--red); clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%); }
.logo-text { font-family:'Bebas Neue',sans-serif; font-size:20px; letter-spacing:1px; }
.logo-r { color:var(--red); }
.logo-b { color:#333; }
.nav-link { background:none; border:none; color:#888; font-size:11px; font-weight:700; padding:6px 10px; border-radius:7px; cursor:pointer; white-space:nowrap; font-family:'Manrope',sans-serif; transition:all .2s; text-decoration:none; }
.nav-link:hover { background:rgba(255,255,255,.07); color:#eee; }
.nav-phone { margin-left:auto; background:rgba(227,30,36,.15); border:1.5px solid rgba(227,30,36,.4); color:#eee; font-size:12px; font-weight:800; padding:6px 13px; border-radius:8px; text-decoration:none; white-space:nowrap; flex-shrink:0; }

/* PRODUCTS */
.products-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; padding:24px 0; }
.product-card { background:var(--card); border:1px solid var(--card-b); border-top:3px solid var(--red); border-radius:12px; overflow:hidden; transition:all .22s; }
.product-card:hover { box-shadow:0 8px 28px rgba(227,30,36,.15); transform:translateY(-3px); }
.product-card.brand-redbo { border-top-color:var(--blue); }
.product-img { background:#221010; height:180px; display:flex; align-items:center; justify-content:center; }
.product-img img { max-height:160px; max-width:90%; object-fit:contain; }
.product-info { padding:14px; }
.product-brand { font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:1.5px; color:var(--red); margin-bottom:4px; }
.product-brand.redbo { color:var(--blue); }
.product-title { font-weight:700; font-size:13px; color:#f0f0f0; margin-bottom:6px; line-height:1.3; }
.product-title a { color:#f0f0f0; text-decoration:none; }
.product-desc { font-size:11px; color:#777; margin-bottom:10px; line-height:1.5; }
.product-footer { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.product-price { font-family:'Bebas Neue',sans-serif; font-size:20px; color:#fff; }
.product-price .currency { font-size:12px; color:#666; font-family:'Manrope',sans-serif; font-weight:600; }
.btn-cart { background:var(--red); color:white; border:none; padding:8px 14px; border-radius:7px; font-size:11px; font-weight:800; cursor:pointer; transition:all .2s; font-family:'Manrope',sans-serif; }
.btn-cart:hover { background:var(--rl); transform:translateY(-1px); }

/* HERO */
.hero-section { background:var(--blk); min-height:480px; display:flex; align-items:center; position:relative; overflow:hidden; padding:60px 24px; }
.hero-section::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 55% 75% at 72% 50%,rgba(227,30,36,.18) 0%,transparent 70%); }
.hero-inner { max-width:1320px; margin:0 auto; width:100%; position:relative; z-index:2; }
.hero-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(48px,6vw,90px); color:white; line-height:.92; margin-bottom:18px; }
.hero-desc { color:rgba(255,255,255,.5); font-size:14px; line-height:1.7; max-width:420px; margin-bottom:28px; }
.btn-primary { background:var(--red); color:white; border:none; padding:14px 28px; border-radius:9px; font-family:'Manrope',sans-serif; font-size:14px; font-weight:800; cursor:pointer; text-decoration:none; display:inline-block; transition:all .22s; }
.btn-primary:hover { background:var(--rl); transform:translateY(-2px); }
.btn-outline { background:transparent; color:white; border:2px solid rgba(255,255,255,.2); padding:14px 28px; border-radius:9px; font-family:'Manrope',sans-serif; font-size:14px; font-weight:800; cursor:pointer; text-decoration:none; display:inline-block; }

/* SECTIONS */
.section { max-width:1320px; margin:0 auto; padding:48px 24px; }
.section-tag { display:inline-block; background:var(--red); color:white; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:2px; padding:3px 10px; border-radius:4px; margin-bottom:9px; }
.section-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(28px,4vw,46px); color:#f0f0f0; letter-spacing:.5px; line-height:1; margin-bottom:8px; }

/* PAGE HERO */
.page-hero { background:var(--blk); padding:48px 24px; position:relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,transparent 40%,rgba(227,30,36,.15)); }
.page-hero-inner { max-width:1320px; margin:0 auto; position:relative; z-index:2; }
.page-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(36px,5vw,64px); color:white; letter-spacing:1px; line-height:.95; margin-bottom:12px; }
.page-title em { color:var(--red); font-style:normal; }

/* FILTERS */
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.filter-btn { padding:8px 16px; border-radius:8px; border:1.5px solid var(--card-b); background:var(--card); cursor:pointer; font-family:'Manrope',sans-serif; font-size:12px; font-weight:700; color:var(--tx2); transition:all .2s; }
.filter-btn.active { border-color:var(--red); color:#eee; }
.filter-btn:hover { border-color:#444; }

/* SEARCH */
.search-input { width:100%; max-width:400px; border:1.5px solid var(--card-b); border-radius:9px; padding:11px 16px; font-family:'Manrope',sans-serif; font-size:13px; background:var(--card); color:#eee; margin-bottom:18px; }
.search-input:focus { outline:none; border-color:var(--red); }

/* FOOTER */
.site-footer { background:var(--blk); padding:48px 24px 24px; margin-top:60px; }
.footer-inner { max-width:1320px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; margin-bottom:32px; }
.footer-title { font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:2px; color:rgba(255,255,255,.28); margin-bottom:12px; }
.footer-link { font-size:12px; color:rgba(255,255,255,.45); text-decoration:none; display:block; margin-bottom:8px; transition:color .18s; }
.footer-link:hover { color:white; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.07); padding-top:18px; font-size:10px; color:rgba(255,255,255,.22); }

/* WOOCOMMERCE OVERRIDES */
.woocommerce .price { font-family:'Bebas Neue',sans-serif; font-size:20px; color:#fff !important; }
.woocommerce .price del { color:#666 !important; font-size:14px; }
.woocommerce .price ins { text-decoration:none; color:var(--red) !important; }
.woocommerce .button, .woocommerce button.button { background:var(--red) !important; color:white !important; border:none !important; border-radius:8px !important; font-family:'Manrope',sans-serif !important; font-weight:700 !important; }
.woocommerce .button:hover { background:var(--rl) !important; }
.woocommerce-message { background:var(--card) !important; border-top-color:var(--red) !important; color:var(--tx) !important; }
.woocommerce-info { background:var(--card) !important; border-top-color:var(--blue) !important; color:var(--tx) !important; }

/* MESSENGER BUTTONS */
.msg-float { position:fixed; bottom:100px; right:24px; z-index:290; display:flex; flex-direction:column; gap:10px; }
.msg-btn { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:20px; box-shadow:0 4px 16px rgba(0,0,0,.3); transition:transform .2s; }
.msg-btn:hover { transform:scale(1.1); }
.phone-fab { position:fixed; bottom:40px; right:24px; z-index:300; background:var(--red); color:white; border:none; width:50px; height:50px; border-radius:50%; font-size:20px; cursor:pointer; box-shadow:0 4px 20px rgba(227,30,36,.5); display:flex; align-items:center; justify-content:center; text-decoration:none; }

/* RESPONSIVE */
@media(max-width:900px) {
  .nav-link, .nav-phone { display:none !important; }
  .hamburger { display:flex !important; }
  .footer-grid { grid-template-columns:1fr 1fr !important; }
  .products-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)) !important; }
}
@media(max-width:480px) {
  .products-grid { grid-template-columns:1fr 1fr !important; }
  .footer-grid { grid-template-columns:1fr !important; }
  .section { padding:32px 16px !important; }
}

/* HAMBURGER */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; border:none; background:none; }
.hamburger span { display:block; width:22px; height:2px; background:#ccc; border-radius:2px; transition:all .3s; }
