/* =====================================================
   Sport Time — Main Stylesheet
   ===================================================== */
:root{
  --navy:#1a2744;
  --navy-dark:#12192e;
  --green:#7ac142;
  --green-dark:#5fa32b;
  --orange:#e8541e;
  --yellow:#f2c811;
  --blue:#2f6fb5;
  --gray-bg:#f5f7fa;
  --text:#232d3f;
  --radius:10px;
  --font-ka:'Noto Sans Georgian', sans-serif;
  --font-en:'Manrope', sans-serif;
  --font-heading-ka:'Noto Serif Georgian', serif;
  --font-heading-en:'Playfair Display', serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  font-family:var(--font-en), var(--font-ka);
  color:var(--text);
  background:#fff;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
html:lang(ka) body{ font-family:var(--font-ka), var(--font-en); }

h1, h2, h3, .logo-text, .brand-font{
  font-family:var(--font-heading-en), var(--font-heading-ka);
  font-weight:700;
  letter-spacing:.2px;
}
html:lang(ka) h1, html:lang(ka) h2, html:lang(ka) h3, html:lang(ka) .logo-text, html:lang(ka) .brand-font{
  font-family:var(--font-heading-ka), var(--font-heading-en);
}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
.container{max-width:1240px; margin:0 auto; padding:0 20px;}

/* ---------- Header ---------- */
.topbar{background:var(--navy-dark); color:#cfd6e4; font-size:13px;}
.topbar-inner{display:flex; justify-content:space-between; align-items:center; padding:6px 20px;}
.lang-switch a{margin-right:10px; opacity:.7;}
.lang-switch a.active{opacity:1; font-weight:700; color:var(--green);}
.topbar-phone{display:flex; align-items:center; gap:6px;}

.main-nav{display:flex; align-items:center; gap:24px; padding:14px 20px;}
.hamburger-btn{display:none; background:none; border:0; color:var(--navy); cursor:pointer; padding:4px;}
.logo img{width:60px; height:60px; border-radius:50%; object-fit:cover;}
.search-bar{flex:1; display:flex; max-width:520px; border:2px solid var(--navy); border-radius:6px; overflow:hidden;}
.search-bar input{flex:1; border:0; padding:10px 14px; font-size:14px; outline:none;}
.search-bar button{background:var(--navy); border:0; color:#fff; padding:0 16px; cursor:pointer;}
.nav-icons{display:flex; gap:22px; margin-left:auto;}
.nav-icon-link{display:flex; flex-direction:column; align-items:center; font-size:12px; color:var(--navy); position:relative; gap:2px;}
.nav-icon-link:hover{color:var(--green-dark);}
.cart-count{position:absolute; top:-6px; right:-10px; background:var(--green); color:#fff; font-size:10px; font-weight:700; border-radius:50%; width:16px; height:16px; display:flex; align-items:center; justify-content:center;}

.primary-nav{display:flex; gap:28px; padding:12px 20px; border-top:1px solid #eaecef;}
.primary-nav a{font-weight:600; font-size:14px; color:var(--navy); padding-bottom:4px; border-bottom:2px solid transparent;}
.primary-nav a.active, .primary-nav a:hover{color:var(--green-dark); border-color:var(--green);}
.mobile-overlay{display:none; position:fixed; inset:0; background:rgba(10,15,30,.5); z-index:90;}
.mobile-overlay.show{display:block;}

/* ---------- Hero ---------- */
.hero{
  position:relative; background:var(--navy); color:#fff; overflow:hidden;
  min-height:400px; display:flex; align-items:center;
}
.hero-bg{position:absolute; inset:0; object-fit:cover; opacity:.55;}
.hero-swoosh{position:absolute; inset:0; pointer-events:none;}
.hero-content{position:relative; z-index:2; max-width:560px; padding:60px 20px;}
.hero-content h1{font-size:44px; font-weight:800; letter-spacing:1px; line-height:1.1;}
.hero-content h1 span{color:var(--green);}
.hero-content .subtitle{font-size:20px; font-weight:600; margin-top:6px; color:var(--yellow);}
.hero-content p{margin:16px 0 26px; color:#dfe3ec; font-size:15px; max-width:440px;}
.btn-shop{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--green); color:#fff; font-weight:700;
  padding:12px 26px; border-radius:30px; border:0; font-size:15px; cursor:pointer;
  transition:background .2s;
}
.btn-shop:hover{background:var(--green-dark);}

/* ---------- Homepage slider ---------- */
.hero-slider{position:relative; min-height:400px; overflow:hidden;}
.hero-slides{position:relative; min-height:400px;}
.hero-slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  display:flex; align-items:center; opacity:0; transition:opacity .6s ease; pointer-events:none;
}
.hero-slide.active{opacity:1; pointer-events:auto;}
.hero-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.25);
  color:#fff; border:0; display:flex; align-items:center; justify-content:center; cursor:pointer;
  backdrop-filter:blur(2px);
}
.hero-arrow:hover{background:rgba(255,255,255,.4);}
.hero-prev{left:20px;}
.hero-next{right:20px;}
.hero-dots{position:absolute; bottom:18px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:5;}
.hero-dot{width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.5); border:0; cursor:pointer; padding:0;}
.hero-dot.active{background:#fff; width:22px; border-radius:5px;}

/* ---------- Section headers ---------- */
.section{padding:46px 0;}
.section-head{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:22px;}
.section-head h2{font-size:24px; font-weight:800; color:var(--navy); position:relative; padding-bottom:8px;}
.section-head h2:after{content:''; position:absolute; left:0; bottom:0; width:60px; height:4px; background:linear-gradient(90deg, var(--green), var(--blue), var(--yellow), var(--orange)); border-radius:2px;}
.section-head a{font-size:13px; font-weight:600; color:var(--blue);}

/* ---------- Category grid ---------- */
.cat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.cat-tile{
  border-radius:var(--radius); padding:22px 18px; color:#fff; position:relative;
  min-height:130px; display:flex; flex-direction:column; justify-content:space-between;
  overflow:hidden; transition:transform .15s;
}
.cat-tile:hover{transform:translateY(-3px);}
.cat-tile .cat-icon{width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center;}
.cat-tile .cat-name{font-weight:700; font-size:16px; display:flex; justify-content:space-between; align-items:center;}
.cat-football{background:var(--green);}
.cat-basketball{background:var(--blue);}
.cat-volleyball{background:var(--yellow); color:var(--navy);}
.cat-tennis{background:var(--orange);}
.cat-running{background:#1c1c1c;}
.cat-fitness{background:var(--blue);}
.cat-outdoor{background:var(--green);}
.cat-accessories{background:var(--yellow); color:var(--navy);}

/* ---------- Subcategories ---------- */
.subcat-row{display:flex; gap:26px; overflow-x:auto; padding-bottom:6px;}
.subcat-item{flex:0 0 auto; text-align:center; width:90px;}
.subcat-item .circle{width:70px; height:70px; border-radius:50%; background:var(--gray-bg); display:flex; align-items:center; justify-content:center; margin:0 auto 8px; overflow:hidden; border:1px solid #eaecef;}
.subcat-item span{font-size:12px; font-weight:600; color:var(--navy);}

/* ---------- Product grid ---------- */
.product-grid{display:grid; grid-template-columns:repeat(6,1fr); gap:16px;}
.product-card{border:1px solid #eaecef; border-radius:var(--radius); overflow:hidden; background:#fff; transition:box-shadow .15s;}
.product-card:hover{box-shadow:0 8px 24px rgba(26,39,68,.12);}
.product-card .thumb{aspect-ratio:1/1; background:var(--gray-bg); display:flex; align-items:center; justify-content:center; padding:14px;}
.product-card .info{padding:12px;}
.product-card .name{font-size:13px; font-weight:600; color:var(--navy); min-height:34px;}
.product-card .price-row{display:flex; justify-content:space-between; align-items:center; margin-top:8px;}
.product-card .price{font-weight:700; color:var(--navy); font-size:14px;}
.product-card .add-btn{background:var(--green); border:0; color:#fff; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer;}
.product-card .add-btn:hover{background:var(--green-dark);}

/* ---------- Brands strip ---------- */
.brands-strip{background:var(--navy); color:#fff; padding:36px 0; position:relative; overflow:hidden;}
.brands-strip .container{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;}
.brands-strip h3{font-size:22px; font-weight:800;}
.brands-strip h3 span{color:var(--green);}
.brand-logos{display:flex; gap:30px; align-items:center; flex-wrap:wrap; opacity:.9; font-weight:700; letter-spacing:.5px;}

/* ---------- Perks bar ---------- */
.perks-bar{border-top:1px solid #eaecef; padding:30px 0;}
.perks-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.perk{display:flex; align-items:center; gap:12px;}
.perk .icon{width:42px; height:42px; border-radius:50%; background:var(--gray-bg); display:flex; align-items:center; justify-content:center; color:var(--green-dark); flex-shrink:0;}
.perk strong{display:block; font-size:14px; color:var(--navy);}
.perk small{color:#7a8496; font-size:12px;}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy-dark); color:#cfd6e4; padding:36px 0 0;}
.footer-grid{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding-bottom:26px;}
.footer-brand{display:flex; align-items:center; gap:12px;}
.footer-logo{width:44px; height:44px; border-radius:50%;}
.footer-tagline{font-size:12px; color:#8b93a7;}
.footer-contact{font-size:13px; color:#aeb4c4; line-height:1.8;}
.footer-links{display:flex; gap:18px; flex-wrap:wrap;}
.footer-links a:hover{color:var(--green);}
.footer-social{display:flex; gap:12px;}
.footer-social a{width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08); padding:14px 0; font-size:12px; text-align:center; color:#7a8496;}

/* ---------- Shop page ---------- */
.shop-layout{display:grid; grid-template-columns:240px 1fr; gap:30px; align-items:start;}
.shop-filters{border:1px solid #eaecef; border-radius:var(--radius); padding:18px;}
.filter-block{margin-bottom:20px;}
.filter-block h4{font-size:13px; text-transform:uppercase; letter-spacing:.5px; color:var(--navy); margin-bottom:10px;}
.filter-list li{margin-bottom:6px;}
.filter-list a{font-size:14px; color:#5a6478;}
.filter-list a.active, .filter-list a:hover{color:var(--green-dark); font-weight:700;}
.filter-block select, .filter-block input{width:100%; padding:8px 10px; border:1px solid #dde1e8; border-radius:6px; font-size:13px;}
.price-range{display:flex; gap:8px;}
.sort-form select{padding:8px 12px; border:1px solid #dde1e8; border-radius:6px; font-size:13px;}
.product-grid-4{grid-template-columns:repeat(4,1fr);}

/* ---------- Product detail ---------- */
.product-detail{display:grid; grid-template-columns:1fr 1fr; gap:40px;}
.product-gallery .main-img{aspect-ratio:1/1; background:var(--gray-bg); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.product-gallery .main-img img{width:100%; height:100%; object-fit:cover;}
.gallery-thumbs{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap;}
.gallery-thumb-btn{width:64px; height:64px; border-radius:8px; overflow:hidden; border:2px solid transparent; padding:0; cursor:pointer; background:var(--gray-bg);}
.gallery-thumb-btn img{width:100%; height:100%; object-fit:cover; display:block;}
.gallery-thumb-btn.active{border-color:var(--green);}
.product-info h1{font-size:26px; font-weight:800; color:var(--navy); margin-bottom:8px;}
.product-info .price-block{font-size:26px; font-weight:800; color:var(--green-dark); margin:14px 0;}
.product-info .price-block .old{font-size:16px; color:#a3abbb; text-decoration:line-through; font-weight:500; margin-left:10px;}
.product-info .desc{color:#5a6478; margin-bottom:20px; line-height:1.7;}
.qty-row{display:flex; align-items:center; gap:14px; margin-bottom:20px;}
.qty-row input{width:60px; padding:8px; text-align:center; border:1px solid #dde1e8; border-radius:6px;}
.stock-badge{display:inline-block; font-size:12px; font-weight:700; padding:4px 10px; border-radius:20px; background:#e9f7e0; color:var(--green-dark); margin-bottom:14px;}
.stock-badge.out{background:#fde8e2; color:var(--orange);}

/* ---------- Forms (auth, checkout, contact) ---------- */
.form-card{max-width:480px; margin:0 auto; border:1px solid #eaecef; border-radius:var(--radius); padding:34px;}
.form-card h1{font-size:22px; font-weight:800; color:var(--navy); margin-bottom:22px; text-align:center;}
.form-group{margin-bottom:16px;}
.form-group label{display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:6px;}
.form-group input, .form-group select, .form-group textarea{width:100%; padding:11px 14px; border:1px solid #dde1e8; border-radius:6px; font-size:14px; font-family:inherit;}
.form-actions{margin-top:20px;}
.btn-primary{width:100%; background:var(--green); color:#fff; border:0; padding:13px; border-radius:6px; font-weight:700; font-size:15px; cursor:pointer;}
.btn-primary:hover{background:var(--green-dark);}
.form-alt-link{text-align:center; margin-top:16px; font-size:13px; color:#5a6478;}
.alert{padding:12px 16px; border-radius:6px; font-size:14px; margin-bottom:16px;}
.alert-error{background:#fde8e2; color:#c0391a;}
.alert-success{background:#e9f7e0; color:var(--green-dark);}

/* ---------- Cart (card-based, mobile-friendly) ---------- */
.cart-empty{text-align:center; padding:60px 0; color:#7a8496;}
.cart-empty svg{margin-bottom:16px;}
.cart-empty p{margin-bottom:20px; font-size:15px;}
.cart-list{border:1px solid #eaecef; border-radius:var(--radius); overflow:hidden;}
.cart-row{display:flex; align-items:center; gap:16px; padding:16px; border-bottom:1px solid #f0f2f5;}
.cart-row:last-child{border-bottom:0;}
.cart-row-img{flex-shrink:0; width:64px; height:64px; border-radius:8px; overflow:hidden; background:var(--gray-bg);}
.cart-row-img img{width:100%; height:100%; object-fit:cover;}
.cart-row-img .ph{width:100%; height:100%; background:var(--gray-bg);}
.cart-row-mid{flex:1; min-width:0;}
.cart-row-name{display:block; font-weight:600; color:var(--navy); font-size:14px; margin-bottom:4px;}
.cart-row-price{font-size:13px; color:#7a8496; margin-bottom:6px;}
.cart-row-remove{display:inline-flex; align-items:center; gap:4px; background:none; border:0; color:var(--orange); font-size:12px; font-weight:600; cursor:pointer; padding:0;}
.qty-stepper{display:flex; align-items:center; border:1px solid #dde1e8; border-radius:8px; overflow:hidden; flex-shrink:0;}
.qty-stepper .qty-btn{width:30px; height:32px; border:0; background:var(--gray-bg); color:var(--navy); font-size:16px; cursor:pointer; line-height:1;}
.qty-stepper input{width:40px; height:32px; border:0; border-left:1px solid #dde1e8; border-right:1px solid #dde1e8; text-align:center; font-size:14px; -moz-appearance:textfield;}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0;}
.cart-row-subtotal{width:90px; text-align:right; font-weight:700; color:var(--navy); font-size:14px; flex-shrink:0;}
.cart-update-btn{margin-top:18px; border-radius:6px;}
.cart-summary{max-width:340px; margin-left:auto; border:1px solid #eaecef; border-radius:var(--radius); padding:22px; margin-top:20px;}
.cart-summary .row{display:flex; justify-content:space-between; margin-bottom:10px; font-size:14px;}
.cart-summary .total-row{font-weight:800; font-size:18px; color:var(--navy); border-top:1px solid #eaecef; padding-top:12px; margin-top:12px;}
.checkout-grid{display:grid; grid-template-columns:1.3fr 1fr; gap:30px; align-items:start;}
.order-review{border:1px solid #eaecef; border-radius:var(--radius); padding:20px;}
.order-review .oi{display:flex; justify-content:space-between; font-size:14px; padding:8px 0; border-bottom:1px solid #f0f2f5;}

/* ---------- Account / Order history ---------- */
.account-grid{display:grid; grid-template-columns:220px 1fr; gap:30px;}
.account-nav a{display:block; padding:10px 14px; border-radius:6px; font-size:14px; font-weight:600; color:var(--navy); margin-bottom:6px;}
.account-nav a.active, .account-nav a:hover{background:var(--gray-bg); color:var(--green-dark);}
.order-row{border:1px solid #eaecef; border-radius:8px; padding:16px; margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;}
.status-pill{font-size:12px; font-weight:700; padding:4px 12px; border-radius:20px; text-transform:capitalize;}
.status-pending{background:#fdf3d6; color:#a1780a;}
.status-processing{background:#dbe9fb; color:var(--blue);}
.status-shipped{background:#e0e7ff; color:#4338ca;}
.status-delivered{background:#e9f7e0; color:var(--green-dark);}
.status-cancelled{background:#fde8e2; color:#c0391a;}

/* ---------- Responsive ---------- */
@media(max-width:960px){
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid{grid-template-columns:repeat(3,1fr);}
  .perks-grid{grid-template-columns:repeat(2,1fr);}
  .hero-content h1{font-size:32px;}
  .shop-layout{grid-template-columns:1fr;}
  .product-grid-4{grid-template-columns:repeat(3,1fr);}
  .product-detail{grid-template-columns:1fr;}
  .checkout-grid{grid-template-columns:1fr;}
  .account-grid{grid-template-columns:1fr;}
}
@media(max-width:760px){
  .topbar-phone{display:none;}
  .topbar-inner{justify-content:center;}
  .hamburger-btn{display:flex; order:0;}
  .main-nav{flex-wrap:nowrap; gap:12px; padding:12px 16px;}
  .logo{order:1;}
  .logo img{width:44px; height:44px;}
  .search-bar{display:none;}
  .nav-icons{order:2; margin-left:auto; gap:14px;}
  .nav-icon-link span{display:none;}
  .nav-icon-link{font-size:0;}

  .primary-nav{
    display:flex; flex-direction:column; gap:0;
    position:fixed; top:0; left:0; height:100vh; width:250px;
    background:#fff; z-index:100; padding:70px 20px 20px;
    transform:translateX(-100%); transition:transform .25s ease;
    border-top:0; box-shadow:2px 0 20px rgba(0,0,0,.1);
  }
  .primary-nav.open{transform:translateX(0);}
  .primary-nav a{padding:14px 4px; border-bottom:1px solid #f0f2f5; width:100%;}

  .hero{min-height:320px;}
  .hero-slider, .hero-slides{min-height:320px;}
  .hero-arrow{width:32px; height:32px;}
  .hero-content{padding:40px 20px;}
  .hero-content h1{font-size:26px;}
  .hero-content .subtitle{font-size:16px;}
  .hero-content p{font-size:13px;}
  .btn-shop{padding:10px 20px; font-size:14px;}

  .section{padding:30px 0;}
  .section-head h2{font-size:19px;}
  .cat-grid{grid-template-columns:repeat(2,1fr); gap:10px;}
  .cat-tile{min-height:100px; padding:14px;}
  .cat-tile .cat-name{font-size:13px;}

  .brands-strip .container{flex-direction:column; text-align:center;}
  .brand-logos{justify-content:center; gap:16px; font-size:12px;}
  .perks-grid{grid-template-columns:1fr; gap:14px;}
}
@media(max-width:600px){
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid-4{grid-template-columns:repeat(2,1fr);}
  .footer-grid{flex-direction:column; text-align:center;}
  .cart-row{flex-wrap:wrap;}
  .cart-row-mid{order:1; width:calc(100% - 80px);}
  .cart-row-img{order:0;}
  .qty-stepper{order:2; margin-left:80px;}
  .cart-row-subtotal{order:3; width:auto; margin-left:auto; text-align:right;}
  .cart-summary{max-width:none;}
}
