@font-face{
  font-family: "bpg";
  src: url("assets/font/bpgcaps.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

:root{
  --blue:#0b63e5;
  --text:#0b0f16;
  --muted:#6b7280;
  --max: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "bpg", Arial, Helvetica, sans-serif;
  color:var(--text);
  background:#fff;
}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

/* =======================
   TOP BLUE STRIP
======================= */
.topstrip{
  background:var(--blue);
  height:47px;
  display:flex;
  align-items:center;
}
.topstrip__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.topstrip__left{display:flex; gap:10px; align-items:center}

.sbtn{
  width:31px; height:31px;
  border:1px solid rgba(255,255,255,.85);
  border-radius:3px;
  display:grid;
  place-items:center;
  text-decoration:none;
}
.sbtn svg{width:16px; height:16px; fill:#fff}

.phone{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  letter-spacing:.2px;
}
.phone svg{width:16px;height:16px;fill:#fff}

.phone,
.phone:link,
.phone:visited,
.phone:hover,
.phone:active{
  color:#fff !important;
  text-decoration:none !important;
}

/* =======================
   WHITE HEADER
======================= */
.mainhead{
  background:#fff;
  padding:30px 0 26px;
  border-bottom:1px solid #e5e7eb;
}
.mainhead__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

/* Logo */
.brand{
  text-decoration:none;
  color:inherit;
  display:inline-block;
}
.brand__logo{
  font-size:40px;
  line-height:1;
  letter-spacing:-1px;
}
.brand__aut{color:var(--blue)}
.brand__opia{color:var(--blue)}
.brand__reg{
  font-size:16px;
  vertical-align:top;
  margin-left:4px;
  color:#ff4a00;
}
.brand__sub{
  margin-top:4px;
  font-size:13px;
  color:var(--blue);
}

/* Search */
.search{
  display:flex;
  align-items:stretch;
  width:min(640px, 100%);
}
.search__input{
  flex:1;
  height:44px;
  border:1px solid #d1d5db;
  border-right:0;
  border-radius:4px 0 0 4px;
  padding:0 16px;
  outline:none;
  font-family: "bpg", Arial, Helvetica, sans-serif;
}
.search__input::placeholder{color:#9ca3af}
.search__btn{
  width:54px;
  border:1px solid var(--blue);
  background:var(--blue);
  border-radius:0 4px 4px 0;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.search__btn svg{width:18px;height:18px;fill:#fff}

/* =======================
   NAV BLUE
======================= */
.navblue{
  background:var(--blue);
  height:47px;
  display:flex;
  align-items:center;
}
.navblue__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:44px;
}
.navblue__link{
  color:#fff;
  text-decoration:none;
  font-size:14px;
  letter-spacing:.4px;
}
.navblue__link.is-active{opacity:1}
.navblue__link:not(.is-active){opacity:.95}
.navblue__link:hover{opacity:1}

/* =======================
   HERO
======================= */
.hero{width:100%; background:#000}
.hero__img{
  width:100%;
  height:310px;
  object-fit:cover;
  display:block;
}

/* =======================
   BRANDS
======================= */
.brands{background:#fff}
.brands__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:80px;
  padding:60px 0 40px;
  justify-items:center;
}
.brandCard{
  height:190px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:transparent;
}
.brandCard__img{
  width:auto;
  height:100px;
  object-fit:contain;
  display:block;
  margin-bottom:10px;
}
.brandCard__name{
  font-size:14px;
  color:#6b7280;
  letter-spacing:.6px;
  text-transform:uppercase;
}

/* titles */
.homeTitle{
  margin:52px 0 0;
  text-align:center;
  font-size:38px;
  color:#1f2937;
  letter-spacing:.4px;
}
.homeTitle--next{ margin-top:0px; }
.homeTitle--news{ margin-top:62px; }

/* =======================
   PRODUCTS GRID  ✅ FIXED
======================= */
.pgrid{
  padding:18px 0 54px;
  background:#fff;
}

/* desktop: horizontal 1 row */
.pgrid__cards{
  display:flex;
  flex-wrap:nowrap;
  gap:34px;
  margin-top:22px;

  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;

  /* optional nice feel */
  scroll-behavior:smooth;
  padding-bottom:6px;
}

/* card fixed width (desktop) */
.pgrid__cards .pitem{
  flex:0 0 auto;
  width:260px;           /* ← თუ გინდა, შეცვალე */
}

/* hide scrollbar (visual) */
.pgrid__cards::-webkit-scrollbar{height:0}
.pgrid__cards{ scrollbar-width: none; }

.pitem{
  border:1px solid #e5e7eb;
  background:#fff;
}
.pitem__img{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:150px;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  text-decoration:none;
  overflow:hidden;
}
.pitem__img img{
  max-width:92%;
  max-height:92%;
  object-fit:contain;
  display:block;
}
.pitem__info{
  background:#f7f7f7;
  padding:25px 16px;
  text-align:center;
}
.pitem__name{
  display:block;
  text-decoration:none;
  color:#1f2937;
  font-size:13px;
  line-height:1.25;
  letter-spacing:.2px;
  margin-bottom:8px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pitem__price{
  font-size:16px;
  color:#111;
}

/* =======================
   QUICK LINKS
======================= */
.quick{
  padding:24px 0 64px;
  background:#fff;
}
.quick__wrap{
  max-width:980px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:18px 22px;
}
.qbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 16px;
  border:1px solid var(--blue);
  color:#111;
  text-decoration:none;
  font-size:13px;
  border-radius:3px;
  background:#fff;
  white-space:nowrap;
}

/* =======================
   NEWS GRID
======================= */
.nsec{
  padding:24px 0 80px;
  background:#fff;
}
.nsec__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:42px;
  margin-top:34px;
}
.ncard2{ background:#fff; }
.ncard2__img{
  display:block;
  height:210px;
  overflow:hidden;
  text-decoration:none;
}
.ncard2__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ncard2__body{ padding-top:14px; }
.ncard2__date{
  font-size:12px;
  color:#9ca3af;
  margin-bottom:10px;
}
.ncard2__title{
  display:block;
  text-decoration:none;
  color:#111;
  font-size:14px;
  line-height:1.35;
  margin-bottom:18px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ncard2__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 20px;
  background:var(--blue);
  color:#fff;
  text-decoration:none;
  border-radius:4px;
  font-size:13px;
}

/* =======================
   FOOTER (FULL WIDTH BLUE)
======================= */
.footer{
  width:100%;
  background:var(--blue);
  color:#fff;
  padding:60px 0 0;
  display:block;
  margin:0;
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap:80px;
  padding-bottom:42px;
}
.footer__title{
  font-size:18px;
  margin-bottom:22px;
}
.frow{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:18px 0;
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.95);
}
.fico{
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 22px;
  margin-top:2px;
}
.fico svg{width:22px;height:22px;fill:#fff}
.footer__col--center,
.footer__col--right{ padding-top:2px; }
.flink{
  display:block;
  text-decoration:none;
  color:rgba(255,255,255,.95);
  font-size:14px;
  margin:14px 0;
}
.footer__bottom{
  padding:18px 0;
  background: rgba(0,0,0,.08);
}
.footer__bottomInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  color:rgba(255,255,255,.95);
}

/* =======================
   RESPONSIVE
======================= */

/* <=1100px */
@media (max-width: 1100px){
  .nsec__grid{ gap:28px; }
}

/* <=980px */
@media (max-width: 980px){
  .footer__inner{
    grid-template-columns: 1fr;
    gap:34px;
  }
}

/* <=900px */
@media (max-width: 900px){
  .mainhead__inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .brand__logo{font-size:44px}
  .search{width:100%}

  /* nav -> 1 row scroll */
  .navblue{ height:auto; padding:10px 0; }
  .navblue__inner{
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 2px;
  }
  .navblue__link{
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .navblue__inner::-webkit-scrollbar{height:0}

  .hero__img{height:280px}

  .brands__grid{ grid-template-columns: repeat(3, 1fr); gap:28px; }

  /* products -> keep horizontal, but bigger cards */
  .pgrid__cards{
    gap:16px;
    margin-top:22px;
  }
  .pgrid__cards .pitem{
    width:auto;
    flex: 0 0 85%;
    max-width:85%;
  }

  /* news -> 1 card horizontal scroll */
  .nsec__grid{
    display:flex;
    overflow-x:auto;
    gap:16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom:6px;
    margin-top:34px;
  }
  .ncard2{
    flex: 0 0 85%;
    max-width:85%;
    scroll-snap-align: start;
  }
  .nsec__grid::-webkit-scrollbar{height:0}
}

/* <=520px */
@media (max-width: 520px){
  .container{ width:calc(100% - 28px); }

  /* topstrip stays one line */
  .topstrip{ height:auto; padding:8px 0; }
  .topstrip__inner{
    flex-direction: row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .topstrip__left{gap:8px}
  .sbtn{width:28px;height:28px}
  .sbtn svg{width:15px;height:15px}
  .phone{font-size:13px; gap:6px; white-space:nowrap;}

  .brands__grid{
    grid-template-columns: repeat(2, 1fr);
    gap:18px;
    padding:40px 0 30px;
  }
  .brandCard{ height:120px; }

  .homeTitle{ font-size:28px; }

  /* bigger single cards */
  .pgrid__cards .pitem{ flex-basis: 92%; max-width:92%; }
  .ncard2{ flex-basis: 92%; max-width:92%; }

  .pitem__img{ height:170px; }
  .ncard2__img{ height:220px; }
}

/* drag scroll feel */
.dragScroll{
  cursor: grab;
  user-select: none;
}
.dragScroll.is-dragging{
  cursor: grabbing;
}

/* ===== ORDER MODAL ===== */
.modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
}
.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.modal__panel{
  position:relative;
  width:min(560px, calc(100% - 28px));
  margin: 10vh auto 0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.modal__close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:10px;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}

.modal__title{
  margin:0 0 10px;
  font-size:18px;
  color:#111;
  font-weight:900;
}
.modal__title2{
  margin:14px 0 10px;
  font-size:16px;
  color:#111;
  font-weight:900;
}

.modal__block{
  border:1px solid #eef2f7;
  background:#f9fafb;
  border-radius:10px;
  padding:12px;
}

.modal__line{
  font-size:14px;
  color:#111;
  padding:6px 0;
  border-bottom:1px dashed rgba(0,0,0,.08);
}
.modal__line:last-child{ border-bottom:0; }