/* public/css/home.css - storefront homepage */
.home {
  --navy: #062557;
  --navy-2: #0a3473;
  --blue: #0d4fae;
  --blue-bright: #1d6fe0;
  --gold: #ffb020;
  --ink: #0f1b33;
  --slate: #5b6b85;
  --line: #e6ebf3;
  background: #f4f7fb;
}

.home a { text-decoration: none; }

/* ---------- Header ---------- */
.home .site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(4, 20, 48, .35);
}
.home .header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.home .brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.home .brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1d6fe0, #38bdf8);
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(29, 111, 224, .45);
}
.home .brand-text { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }

.home .main-nav { display: flex; align-items: center; justify-content: flex-start; gap: 4px; flex: 1; margin: 0; padding: 0; max-width: none; }
.home .main-nav > a, .home .nav-drop > a {
  color: #c9d7ef;
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .15s, color .15s;
}
.home .main-nav > a:hover, .home .nav-drop > a:hover,
.home .main-nav > a.active { background: rgba(255,255,255,.09); color: #fff; }
.home .nav-drop { position: relative; }
.home .drop-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 230px; padding: 8px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(6, 37, 87, .25);
  display: none; flex-direction: column; gap: 2px;
}
.home .nav-drop:hover .drop-panel { display: flex; }
.home .drop-panel a { color: var(--ink); font-size: .9rem; padding: 8px 10px; border-radius: 8px; }
.home .drop-panel a:hover { background: #eef4fd; color: var(--blue); }

.home .header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.home .currency-chip {
  color: #dbe6f7; font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
  padding: 5px 10px;
}
.home .btn-login {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-bright); color: #fff !important;
  font-size: .85rem; font-weight: 600;
  padding: 9px 15px; border-radius: 9px;
  box-shadow: 0 4px 14px rgba(29, 111, 224, .4);
}
.home .btn-login:hover { background: #2a7dee; }
.home .btn-ghost { color: #c9d7ef; font-size: .8rem; padding: 6px 8px; }
.home .nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.home main { display: block; }
.home .hero-wrap { max-width: 1240px; margin: 22px auto 0; padding: 0 16px; }
.home .hero-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(56, 189, 248, .35), transparent 60%),
    linear-gradient(120deg, #062557 0%, #0a3473 55%, #0d4fae 100%);
  border-radius: 18px;
  padding: 40px 44px;
  color: #fff;
  min-height: 300px;
  box-shadow: 0 18px 40px rgba(6, 37, 87, .28);
}
.home .hero-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60% 90% at 100% 0%, #000, transparent 75%);
  pointer-events: none;
}
.home .hero-copy { position: relative; z-index: 2; flex: 1; max-width: 640px; }
.home .hero-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1.4px;
  color: #7fd0ff; background: rgba(56, 189, 248, .14);
  border: 1px solid rgba(56, 189, 248, .35);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.home .hero-copy h1 { font-size: 2.1rem; line-height: 1.28; margin: 0 0 12px; font-weight: 800; }
.home .hero-copy p { color: #c6d6ef; font-size: .98rem; line-height: 1.65; margin: 0 0 22px; }
.home .hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.home .btn-main {
  background: var(--gold); color: #3b2500 !important;
  font-weight: 700; font-size: .95rem;
  padding: 12px 24px; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(255, 176, 32, .35);
}
.home .btn-main:hover { background: #ffc14d; }
.home .btn-surface {
  background: rgba(255,255,255,.1); color: #fff !important;
  border: 1px solid rgba(255,255,255,.3);
  font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 10px;
}
.home .btn-surface:hover { background: rgba(255,255,255,.18); }
.home .hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #9fb5d6; font-size: .8rem; }

.home .hero-art { position: relative; z-index: 2; flex: 0 0 300px; height: 220px; display: none; }
.home .art-tile {
  position: absolute; width: 88px; height: 88px; border-radius: 20px;
  display: grid; place-items: center; font-size: 2.1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(3px);
  box-shadow: 0 12px 28px rgba(0, 10, 30, .35);
  animation: floaty 5s ease-in-out infinite;
}
.home .t1 { top: 0; left: 40px; }
.home .t2 { top: 96px; left: 0; animation-delay: .4s; }
.home .t3 { top: 40px; right: 0; animation-delay: .9s; }
.home .t4 { bottom: 0; right: 60px; animation-delay: 1.3s; }
.home .t5 { bottom: 24px; left: 96px; animation-delay: .7s; width: 72px; height: 72px; font-size: 1.7rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Layout ---------- */
.home .page-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 16px 8px; }
.home .panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(15, 27, 51, .05);
}
.home .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.home .panel-head h2 {
  margin: 0; font-size: 1.02rem; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase;
  border-left: 4px solid var(--blue); padding-left: 10px;
  color: var(--blue);
}
.home .section-title { text-transform: none; font-size: 1.2rem; letter-spacing: 0; }
.home .see-all { color: var(--blue); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.home .see-all:hover { color: var(--blue-bright); }

/* Seller rail */
.home .seller-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.home .seller-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f4f8fd);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home .seller-card:hover {
  transform: translateY(-3px);
  border-color: #bcd6f7;
  box-shadow: 0 12px 24px rgba(13, 79, 174, .13);
}
.home .seller-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: #e7f0fd; margin-bottom: 7px;
}
.home .seller-name { font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.home .seller-count { font-size: .75rem; color: var(--slate); }

/* Services */
.home .section-block { margin-top: 26px; }
.home .section-block .panel-head { margin-bottom: 14px; }
.home .service-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.home .service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(15, 27, 51, .04);
  transition: transform .15s, box-shadow .15s;
}
.home .service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 27, 51, .1); }
.home .card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.home .card-badge {
  font-size: .64rem; font-weight: 800; letter-spacing: .8px;
  color: var(--blue); background: #e7f0fd;
  padding: 3px 8px; border-radius: 6px;
}
.home .card-stock { font-size: .72rem; color: #0f9d58; font-weight: 600; }
.home .card-stock.out { color: #dc2626; }
.home .service-card h3 { margin: 0 0 6px; font-size: .98rem; line-height: 1.4; color: var(--ink); }
.home .service-card .desc {
  margin: 0 0 14px; font-size: .8rem; line-height: 1.55; color: var(--slate);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em;
}
.home .card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home .card-bottom .price { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.home .btn-buy {
  background: var(--blue); color: #fff !important;
  font-size: .82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 8px; white-space: nowrap;
}
.home .btn-buy:hover { background: var(--blue-bright); }

/* Features */
.home .feature-band {
  margin-top: 26px;
  background: linear-gradient(120deg, #08306b, #0d4fae);
  border-radius: 16px;
  padding: 22px 26px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  box-shadow: 0 16px 34px rgba(6, 37, 87, .25);
}
.home .feature { display: flex; align-items: center; gap: 12px; }
.home .f-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: rgba(255,255,255,.12);
}
.home .feature strong { display: block; color: #fff; font-size: .9rem; }
.home .feature small { display: block; color: #acc3e2; font-size: .72rem; line-height: 1.4; }

/* Footer */
.home .site-footer {
  margin-top: 40px;
  padding: 0;
  text-align: left;
  background: #041d45;
  color: #a9bcd8;
  border: 0;
}
.home .footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 40px 16px 26px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.home .foot-col h4 {
  color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px;
}
.home .foot-col a, .home .foot-col p {
  display: block; color: #a9bcd8; font-size: .84rem; line-height: 1.9; margin: 0;
}
.home .foot-col a:hover { color: #fff; text-decoration: none; }
.home .footer-bottom {
  max-width: 1240px; margin: 0 auto;
  padding: 16px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; color: #8298b8;
}
.home .foot-pay { color: #b9cbe2; }

/* ---------- Responsive ---------- */
@media (min-width: 981px) {
  .home .hero-art { display: block; }
}
@media (max-width: 1024px) {
  .home .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .seller-rail { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 860px) {
  .home .main-nav { display: none; }
  .home .nav-toggle { display: block; }
  .home .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--navy); padding: 10px 16px 16px;
    box-shadow: 0 20px 30px rgba(4,20,48,.4); z-index: 250;
  }
  .home .main-nav.open .nav-drop { width: 100%; }
  .home .main-nav.open .drop-panel {
    position: static; display: flex; box-shadow: none;
    background: rgba(255,255,255,.06); margin: 4px 0 8px;
  }
  .home .main-nav.open .drop-panel a { color: #d6e2f5; }
  .home .main-nav.open .drop-panel a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .home .header-actions .currency-chip { display: none; }
  .home .hero-banner { padding: 30px 24px; min-height: 0; }
  .home .hero-copy h1 { font-size: 1.55rem; }
  .home .footer-inner { grid-template-columns: 1fr 1fr; }
  .home .feature-band { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .home .header-inner { gap: 10px; }
  .home .brand-text { display: none; }
  .home .btn-login { padding: 8px 11px; font-size: .76rem; }
  .home .hero-wrap { margin-top: 12px; }
  .home .hero-banner { padding: 26px 20px; border-radius: 14px; }
  .home .hero-copy h1 { font-size: 1.28rem; }
  .home .hero-copy p { font-size: .86rem; }
  .home .hero-points { font-size: .72rem; gap: 6px 12px; }
  .home .btn-main, .home .btn-surface { padding: 10px 16px; font-size: .85rem; }
  .home .page-wrap { padding: 18px 12px 6px; }
  .home .panel { padding: 16px 14px; border-radius: 14px; }
  .home .seller-rail {
    display: flex; overflow-x: auto; gap: 10px;
    margin: 0 -14px; padding: 0 14px 6px;
    scroll-snap-type: x mandatory;
  }
  .home .seller-card { flex: 0 0 138px; scroll-snap-align: start; }
  .home .service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home .service-card { padding: 12px; }
  .home .service-card h3 { font-size: .86rem; }
  .home .service-card .desc { font-size: .74rem; }
  .home .card-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .home .btn-buy { width: 100%; text-align: center; }
  .home .feature-band { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; border-radius: 14px; }
  .home .f-icon { width: 34px; height: 34px; font-size: .95rem; }
  .home .feature strong { font-size: .8rem; }
  .home .footer-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .home .footer-bottom { flex-direction: column; gap: 6px; }
}

/* i18n + currency */
.home .header-actions .locale-tools { gap: 5px; }
.home .header-actions .locale-group { background: transparent; border-color: rgba(255,255,255,.25); }
.home .header-actions .locale-link { color: #dbe6f7; font-size: .72rem; padding: 5px 7px; }
.home .header-actions .locale-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.home .header-actions .locale-link.on { background: var(--blue-bright); color: #fff; }
.home .card-bottom .price-alt { display: block; font-size: .68rem; font-weight: 500; color: #94a3b8; letter-spacing: 0; }
@media (max-width: 640px) {
  .home .header-actions .locale-link { padding: 4px 6px; font-size: .66rem; }
}

/* dropdown on dark header */
.home .header-actions .locale-dropdown { display: inline-block; }
.home .header-actions .locale-drop-btn { background: transparent; border-color: rgba(255,255,255,.25); color: #dbe6f7; }
.home .header-actions .locale-drop-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.home .header-actions .locale-drop-panel { background: #fff; }
@media (max-width: 640px) {
  .home .header-actions .locale-drop-btn { font-size: .66rem; padding: 4px 7px; }
}
