@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:       #f5c800;
  --yellow-d:     #e0b400;
  --yellow-light: #fff9d6;
  --dark:         #1a1a1a;
  --dark2:        #2c2c2c;
  --gray:         #555;
  --gray2:        #888;
  --border:       #e5e5e5;
  --bg:           #f7f7f7;
  --white:        #fff;
  --red:          #e53935;
  --green:        #43a047;
  --shadow:       0 4px 20px rgba(0,0,0,0.09);
  --shadow-hover: 0 10px 36px rgba(0,0,0,0.16);
  --tr:           0.22s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--dark); background: var(--bg); font-size: 14px; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 40px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.delivery-bar {
  background: var(--yellow);
  padding: 7px 16px; text-align: center;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.delivery-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg); border-radius: 16px; padding: 2px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 2px 7px; border-radius: 12px;
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700;
  color: var(--gray); transition: all 0.18s; letter-spacing: 0.3px;
  background: none; border: none; cursor: pointer;
}
.lang-btn.active { background: var(--yellow); color: #000; }
.lang-btn:hover:not(.active) { color: var(--dark); }

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--yellow);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 10px clamp(8px, 1.5vw, 32px);
  display: flex; align-items: center; gap: 8px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 46px; width: auto; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; align-items: center; }
.logo-sp { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 900; line-height: 1; color: var(--dark); }
.logo-sp em { color: var(--yellow); font-style: normal; }
.logo-sub { font-size: 9px; font-weight: 700; letter-spacing: 3px; color: var(--gray2); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 0; flex: 1; flex-wrap: nowrap; overflow: visible; }
.main-nav a { padding: 7px 5px; font-family: 'Montserrat', sans-serif; font-size: 10.5px; font-weight: 600; color: var(--dark); border-radius: 5px; white-space: nowrap; transition: background var(--tr), color var(--tr); }
.main-nav a:hover, .main-nav a.active { background: var(--yellow); color: #000; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item > a::after { content: '▾'; font-size: 10px; }
.nav-item > a:hover, .nav-item:hover > a { background: var(--yellow); color: #000; }
.nav-dropdown {
  display: none; position: absolute; top: 100%;
  left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  padding: 16px; min-width: 540px; z-index: 9999;
  margin-top: 0;
  /* Prevent overflow outside viewport */
  max-width: min(540px, calc(100vw - 32px));
}
/* Keep dropdown inside viewport using JS-free CSS clamp trick */
.nav-item:not(:first-child) .nav-dropdown {
  left: 50%; right: auto; transform: translateX(-50%);
}
/* Bridge чтобы дропдаун не пропадал */
.nav-item::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 10px;
  display: none;
}
.nav-item:hover::after { display: block; }
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.nav-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--dark);
  transition: background 0.15s; text-decoration: none;
  min-width: 0; white-space: nowrap;
  line-height: 1.3;
}
.nav-drop-item img {
  width: 56px; height: 42px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0; background: var(--bg);
  /* Prevent layout shift while loading */
  aspect-ratio: 4/3;
}
.nav-drop-item:hover { background: #fff8d6; }
.nav-drop-item.active { background: var(--yellow); color: #000; font-weight: 700; }
.nav-drop-item img {
  width: 56px; height: 40px; object-fit: cover; border-radius: 6px;
  background: #f5f5f5; flex-shrink: 0;
}

.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.header-phone { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--border); color: var(--gray); transition: all var(--tr); position: relative; }
.icon-btn:hover { border-color: var(--yellow); color: var(--dark); background: var(--yellow-light); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--yellow); color: #000; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; position: fixed; inset: 0; background: var(--white); z-index: 300; flex-direction: column; padding: 70px 28px 28px; gap: 4px; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-close { position: absolute; top: 16px; right: 16px; font-size: 24px; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); }
.mobile-nav a { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 700; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--dark); transition: color var(--tr); }
.mobile-nav a:hover { color: var(--yellow-d); }
/* Mobile nav accordion sections */
.mn-section { border-bottom: 1px solid var(--border); }
.mn-section-title { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 700; padding: 13px 0; color: var(--dark); }
.mn-section-title .mn-arrow { font-size: 14px; transition: transform 0.25s; }
.mn-section-title.open .mn-arrow { transform: rotate(180deg); }
.mn-section-body { display: none; flex-direction: column; padding-left: 12px; }
.mn-section-body.open { display: flex; }
.mn-section-body a { font-size: 15px; font-weight: 600; padding: 10px 0; border-bottom: none; border-top: 1px solid var(--border); color: var(--gray); }
.mn-section-body a:first-child { border-top: none; }
.mn-item-with-img { display: flex !important; align-items: center; gap: 12px; padding: 9px 0 !important; }
.mn-item-with-img img { width: 48px; height: 38px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--bg); }
.mn-item-with-img span { font-size: 14px; font-weight: 600; color: var(--dark); line-height: 1.3; }
.mobile-phone { margin-top: 24px; font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 900; }
.mobile-lang { margin-top: 16px; }

.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 12px 24px; font-size: 12px; color: var(--gray2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray2); }
.breadcrumb a:hover { color: var(--yellow-d); }

.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.title-bar {
  font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 900;
  background: linear-gradient(to right, var(--yellow) 0%, var(--yellow) 40%, rgba(245,200,0,0) 100%);
  padding: 10px 140px 10px 0; width: fit-content; max-width: 420px;
  border-radius: 0 8px 8px 0; white-space: nowrap;
  margin-left: -24px; padding-left: 24px;
}
.section-head-link { font-size: 13px; font-weight: 600; color: var(--gray); border-bottom: 1px dashed var(--gray2); white-space: nowrap; flex-shrink: 0; margin-left: auto; transition: color 0.2s; }
.section-head-link:hover { color: var(--dark); }

.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.section-wrap { padding: 36px 0 20px; }

.product-card {
  background: var(--white); border-radius: 12px; border: 1.5px solid #d0d0d0;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  min-height: 340px;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }

.card-badge { display: none; }

.card-img { height: 200px; overflow: hidden; background: #ffffff; position: relative; border-radius: 0; }
.card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 8px; box-sizing: border-box; transition: transform 0.4s ease; }
.product-card:hover .card-img img { transform: scale(1.06); }

.card-wishlist { display: none !important; }

.card-body { padding: 12px 13px 24px; flex: 1; display: flex; flex-direction: column; }
.card-name { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 4px; line-height: 1.4; flex: 1; }
.card-name:hover { color: var(--yellow-d); }
.card-size { font-size: 11px; color: var(--gray2); margin-bottom: 10px; }
.no-stock-label { font-size: 11px; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.card-price .current { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 900; color: var(--dark); }
.card-price .old { font-size: 11px; color: var(--gray2); text-decoration: line-through; display: block; }
.card-price .currency { font-size: 11px; font-weight: 500; }

.btn-yellow { background: var(--yellow); color: #000; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 6px; transition: background var(--tr), box-shadow var(--tr), transform 0.15s; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.btn-yellow:hover { background: var(--yellow-d); box-shadow: 0 4px 14px rgba(245,200,0,0.4); transform: translateY(-1px); }
.btn-yellow:active { transform: scale(0.97); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 6px; transition: all var(--tr); }
.btn-outline:hover { border-color: var(--yellow); background: var(--yellow-light); }
.btn-dark { background: var(--dark); color: #fff; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: 7px; transition: background var(--tr); }
.btn-dark:hover { background: var(--dark2); }

.hero { position: relative; overflow: hidden; }
.hero-slides { display: flex; transition: transform 0.65s cubic-bezier(.25,.8,.25,1); }
.hero-slide { min-width: 100%; height: clamp(320px, 38vw, 580px); position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-slide img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,233,200,0.72) 0%, rgba(245,233,200,0.35) 42%, transparent 72%); }
.hero-content { position: relative; z-index: 2; padding: 0 clamp(32px, 6vw, 120px); }
.hero-title { font-family: 'Montserrat', sans-serif; font-size: clamp(28px, 4vw, 64px); font-weight: 900; line-height: 1.05; color: var(--dark); text-transform: uppercase; margin-bottom: 14px; white-space: pre-line; }
.hero-sub { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-sub::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero-btn { margin-top: 24px; padding: 14px 34px; font-size: 15px; font-weight: 800; border-radius: 8px; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.2); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.hero-dot.active { background: var(--yellow); transform: scale(1.4); }

.cat-section { padding: 32px 0 48px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-card { background: var(--yellow); border-radius: 14px; overflow: hidden; position: relative; height: 260px; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: transform 0.3s, box-shadow 0.3s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 44px rgba(0,0,0,0.14); }
.cat-card-label { position: relative; z-index: 2; font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 800; color: #1a1a1a; padding: 20px 24px 0; text-align: center; width: 100%; }
.cat-card-img { position: absolute; bottom: 0; left: 0; right: 0; height: 80%; display: flex; align-items: flex-end; justify-content: center; }
.cat-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; transition: transform 0.4s; }
.cat-card:hover .cat-card-img img { transform: scale(1.05) translateY(-4px); }

.about-section { background: var(--white); padding: 52px 0; border-top: 1px solid var(--border); }
.about-inner-single { max-width: 700px; margin: 0 auto; text-align: center; }
.about-inner-single h2 { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.about-inner-single p { font-size: 14px; color: var(--gray); line-height: 1.8; margin-bottom: 10px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(calc(100% + 60px)); background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 10px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; z-index: 9999; transition: transform 0.4s cubic-bezier(.34,1.56,.64,1); display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.hide { transform: translateX(-50%) translateY(calc(100% + 60px)); }
.toast.yellow { background: var(--yellow); color: #000; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

.site-footer { background: var(--dark); color: #bbb; padding: 44px 24px 20px; margin-top: 60px; }
.footer-inner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 28px; }
.footer-logo-sp { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 900; color: #fff; }
.footer-logo-sp em { color: var(--yellow); font-style: normal; }
.footer-logo-sub { font-size: 9px; letter-spacing: 3px; color: #666; text-transform: uppercase; margin-bottom: 14px; }
.footer-logo-img { height: 38px; width: auto; object-fit: contain; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-col h4 { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 13px; color: #999; transition: color var(--tr); }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-contact { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.footer-contact svg { width: 14px; height: 14px; fill: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.footer-contact a, .footer-contact span { font-size: 13px; color: #999; }
.footer-contact a:hover { color: var(--yellow); }
.footer-bottom { max-width: 1440px; margin: 0 auto; border-top: 1px solid #333; padding-top: 14px; display: flex; justify-content: space-between; font-size: 12px; color: #555; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; padding: 16px; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: 14px; width: 100%; max-width: 500px; padding: 28px 24px; position: relative; transform: scale(0.92) translateY(20px); transition: transform 0.3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gray); }
.modal h2 { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.modal p { color: var(--gray); font-size: 13px; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--gray); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 14px; color: var(--dark); transition: border-color var(--tr); background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,200,0,0.15); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { width: 60px; height: 60px; fill: #ddd; margin: 0 auto 16px; }
.empty-state h3 { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 36px 0 20px; flex-wrap: wrap; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 40px; width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: var(--dark); cursor: pointer; transition: all 0.15s; line-height: 1; }
.pg-btn:hover:not(:disabled) { border-color: var(--yellow); background: var(--yellow-light); }
.pg-btn.pg-active { background: var(--yellow); border-color: var(--yellow); color: #000; }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pg-prev, .pg-next { width: auto; padding: 0 16px; }
.pg-ellipsis { color: var(--gray); font-size: 16px; padding: 0 4px; line-height: 40px; }
.section-title { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 900; display: inline-block; background: var(--yellow); padding: 10px 24px; border-radius: 6px; margin-bottom: 24px; }

.gallery-main {
  border-radius: 12px; overflow: hidden; background: #f0f0f0;
  height: 420px; margin-bottom: 10px; position: relative;
  cursor: crosshair;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.1s ease; transform-origin: 0 0; }
.gallery-main.zoomed img { transition: none; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumb { width: 80px; height: 70px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s; flex-shrink: 0; background: #f0f0f0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--yellow); }
.gallery-badge { position: absolute; top: 14px; left: 14px; background: var(--yellow); color: #000; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 5px; text-transform: uppercase; }

@media(max-width:1024px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .title-bar { max-width: 360px; }
}

@media(max-width:768px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .burger { display: flex; }
  .lang-switcher { display: none; }
  .mobile-lang .lang-switcher { display: flex; width: fit-content; padding: 4px; border-radius: 20px; }
  .mobile-lang .lang-btn { font-size: 15px; padding: 8px 22px; border-radius: 14px; min-width: 60px; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  #relatedGrid { grid-template-columns: repeat(2,1fr) !important; gap: 12px !important; }
  .hero-slides { will-change: transform; }
  .hero { max-width: 100vw; overflow: hidden; }

  
  .cat-section { overflow: hidden; max-width: 100vw; }
  .cat-section .container { overflow-x: auto; overflow-y: visible; padding-bottom: 8px; scrollbar-width: none; }
  .cat-section .container::-webkit-scrollbar { display: none; }
  .cat-grid {
    display: flex; gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; width: max-content;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-card {
    min-width: 200px; flex-shrink: 0;
    scroll-snap-align: start; height: 180px;
  }
  .cat-card-label { font-size: 14px; padding: 14px 12px 0; }

  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .title-bar { font-size: 18px; max-width: 300px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-slide { height: 340px; }
  .hero-title { font-size: 38px; }
  .hero-content { padding: 0 32px; }
  .product-card { min-height: 300px; }
  .card-img { height: 175px; }
}

@media(max-width:480px) {
  .container { padding: 0 14px; }
  .header-inner { padding: 10px 14px; }
  .delivery-bar { font-size: 11px; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .card-img { height: 155px; }
  .card-name { font-size: 12px; }
  .card-price .current { font-size: 15px; }
  .btn-yellow { font-size: 12px; padding: 8px 12px; }
  .cat-card { min-width: 170px; height: 160px; }
  .footer-inner { grid-template-columns: 1fr; }
  .title-bar { font-size: 16px; max-width: 260px; padding: 9px 80px 9px 14px; margin-left: -14px; }
  .hero-slide { height: 280px; overflow: hidden; }
  .hero-title { font-size: 28px; }
  .hero-content { padding: 0 20px; max-width: 60%; }
  .hero-sub { font-size: 13px; }
  .hero-btn { padding: 11px 22px; font-size: 13px; }
  .hero-bg { object-position: right center; }
  .product-card { min-height: 270px; }
  .section-wrap { padding: 24px 0 14px; }
  .gallery-main { height: 260px; }
}

@media(max-width:360px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-card { min-width: 150px; height: 145px; }
  .hero-title { font-size: 24px; }
}

.header-lang-mobile { display: none; }

@media(max-width:768px) {
  .header-lang-mobile { display: flex; align-items: center; }
  .header-lang-mobile .lang-switcher { display: flex; background: transparent; border: 1.5px solid var(--border); padding: 2px; border-radius: 16px; width: fit-content; align-self: flex-start; }
  .header-lang-mobile .lang-btn { font-size: 11px; padding: 5px 12px; min-width: 36px; }
}

@media(min-width:1400px) {
  .products-grid { grid-template-columns: repeat(5,1fr); }
  .cat-grid { grid-template-columns: repeat(4,1fr); }
  .hero-sub { font-size: 20px; }
  .hero-btn { padding: 16px 40px; font-size: 16px; }
  .main-nav a { font-size: 13px; padding: 7px 14px; }
}

@media(min-width:1600px) {
  .products-grid { grid-template-columns: repeat(5,1fr); }
}

@media(max-width:768px) {
  .hero-slide { height: 340px; }
  .hero-title { font-size: 38px; }
  .hero-content { padding: 0 32px; }
}

@media(max-width:480px) {
  .hero-slide { height: 280px; }
  .hero-title { font-size: 28px; }
  .hero-content { padding: 0 20px; max-width: 60%; }
}
