/* ─────────────────────────────────────────
   CROSSBEATS – style.css
   ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #1a1a1a;
  --white:      #ffffff;
  --orange:     #e85d1a;
  --orange-lt:  #f07030;
  --gray-bg:    #f3f3f3;
  --gray-tag:   #e9e9e9;
  --gray-text:  #555555;
  --gray-border:#e0e0e0;
  --price-red:  #d0021b;
  --font-main:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--black);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-img {
  height: 100px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-item {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding: 0 20px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-item:hover { color: var(--orange); }
.nav-item.active {
  border-bottom-color: var(--orange);
  color: var(--orange);
}
.nav-item .fa { font-size: 9px; opacity: 0.7; }

/* Header icons */
.header-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--black);
  padding: 8px 10px;
  transition: color 0.2s;
}
.icon-btn:hover { color: var(--orange); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  order: -1;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE SIDEBAR ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: 4px 0 24px rgba(0,0,0,0.13);
  z-index: 1100;
  padding-top: 84px;
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  left: 0;
}

/* Overlay — only covers area RIGHT of the sidebar */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.15);
  z-index: 998;
}
.menu-overlay.open {
  display: block;
}

/* Mobile nav links */
.mobile-nav-item {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding: 16px 28px;
  letter-spacing: 0.04em;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--gray-border);
  transition: all 0.2s;
  display: block;
}
.mobile-nav-item:hover {
  color: var(--orange);
  background: var(--gray-bg);
  border-left-color: var(--orange);
}
.mobile-nav-item.active {
  color: var(--orange);
  border-left-color: var(--orange);
}

/* Sidebar close button */
.sidebar-close {
  position: absolute;
  top: 20px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--black);
  line-height: 1;
  z-index: 1101;
}
.sidebar-close:hover { color: var(--orange); }

/* Show hamburger on mobile + tablet, hide on desktop */
@media (max-width: 1280px) {
  .hamburger { display: flex; }
  .main-nav   { display: none; }
  .header-inner { height: 84px; }
  .logo-img { height: 66px; }
  .nav-item { height: 84px; }
}
@media (max-width: 768px) {
  .logo-img { height: 100px; }
  .header-inner { height: 76px; }
}

/* Desktop — always show nav, never show hamburger */
@media (min-width: 1281px) {
  .hamburger    { display: none !important; }
  .main-nav     { display: flex !important; }
  .menu-overlay { display: none !important; }
}

/* ── SIDE DISCOUNT WIDGET ── */
.side-discount {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  align-items: stretch;
  transition: opacity 0.3s;
}
/* Hide it when sidebar is open so it doesn't clash */
body.menu-open .side-discount {
  opacity: 0;
  pointer-events: none;
}
.side-close {
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
  line-height: 1;
}
.side-label {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 24px 10px;
  cursor: pointer;
  user-select: none;
}

/* ── HERO VIDEO ── */
.hero-section {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #2a2a2a;
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .hero-section { height: 320px; }
}

/* ── PRODUCTS SECTION ── */
.products-section {
  background: var(--gray-bg);
  padding: 32px 40px 60px;
  min-height: 400px;
}
.products-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 28px;
}
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.sort-select {
  border: 1px solid var(--gray-border);
  background: var(--white);
  padding: 6px 32px 6px 12px;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: auto;
  color: var(--black);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding-bottom: 20px;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

.product-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8f6f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }

.product-info { padding: 16px 16px 0; }
.product-name {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.price-current {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--price-red);
}
.price-original {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
}

.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--gray-tag);
  color: var(--gray-text);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-section { padding: 24px 16px 48px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ── BACK TO TOP ── */
.back-to-top {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 16px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.back-to-top:hover { background: #333; }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  border-top: 1px solid #333;
  padding: 56px 40px 0;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

/* LEFT col */
.footer-left {
  display: flex;
  flex-direction: column;
}
.footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

/* RIGHT col */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.footer-map {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
  display: block;
}
.footer-social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.footer-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-social-icons a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: #888;
  text-align: center;
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

/* ── FOOTER RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .site-footer { padding: 36px 20px 0; }
  .footer-links-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-col-further { display: none; }
  .footer-map { height: 180px; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 50px; height: 50px; font-size: 24px; }
}