/* ==========================================================================
   Main - Premium 2026 Edition (Apple/Nike style)
   ========================================================================== */

:root {
  --accent:        #28a745;     /* main green */
  --accent-dark:   #1e7e34;
  --light-accent:  #f0f9e8;
  --dark:          #111111;
  --gray:          #6c757d;
  --danger:        #dc3545;
  --warning:       #ffc107;
  --light:         #f8f9fa;
  --border:        #e9ecef;
  --red:           #dc3545;     /* red for cycling text and prices */
  --shadow-sm:     0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:     0 20px 40px rgba(40,167,69,0.15);
  --shadow-lg:     0 30px 60px rgba(0,0,0,0.12);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-dark);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
  max-width: 1400px;
  padding-right: 15px;
  padding-left:  15px;
  margin-right: auto;
  margin-left:  auto;
}

@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
}

/* ==========================================================================
   Top Bar / Navbar
   ========================================================================== */
.top-bar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  padding: 8px 0;
}

.top-bar a {
  color: #333;
}
.top-bar a:hover {
  text-decoration: underline;
}

.navbar-main {
  background: var(--dark);
  padding: 12px 0;
}

.navbar-main .navbar-brand {
  color: white !important;
  font-weight: bold;
}

.navbar-main .nav-link {
  color: white !important;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--accent) !important;
}

.navbar-main .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.navbar-main .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.user-icons a {
  color: white;
  transition: all 0.2s;
  padding: 8px 12px;
  border-radius: 6px;
}

.user-icons a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

/* ==========================================================================
   Dropdown, Mini-cart, Buttons
   ========================================================================== */
.custom-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  padding: 10px 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.custom-dropdown.show {
  display: block;
}

.custom-dropdown .dropdown-item {
  padding: 8px 20px;
  color: #212529;
}

.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
  color: #fff;
  background-color: var(--accent);
}

@media (max-width: 991px) {
  .custom-dropdown {
    position: static;
    width: 100%;
    margin: 10px 0;
    box-shadow: none;
    border: none;
    background: var(--accent);
  }
  .custom-dropdown .dropdown-item {
    padding: 12px 20px;
    color: white;
  }
}

.mini-cart {
  display: none;
  position: absolute;
  top: 130%;
  right: 0;
  z-index: 1050;
  width: 320px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 15px;
}

.mini-cart.show {
  display: block;
}

.mini-cart .cart-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.mini-cart .cart-total {
  font-weight: bold;
}

.mini-cart .empty-cart {
  color: #777;
}

@media (max-width: 576px) {
  .mini-cart {
    width: 90vw;
    right: 5vw;
    left: auto;
  }
}

.btn-primary {
  background-color: var(--accent);
  border: none;
  border-radius: 50px;
  padding: 14px 42px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(40,167,69,0.3);
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-primary:hover {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ==========================================================================
   HERO 2026 (Apple/Nike style) — NEW BLOCK
   ========================================================================== */
.hero-modern {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transition: transform 12s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-modern:hover .hero-bg {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(17,17,17,0.75) 0%,
    rgba(17,17,17,0.45) 45%,
    rgba(17,17,17,0.55) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-text {
  max-width: 620px;
}

.licensed {
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.build-your {
  margin-bottom: 30px;
}

.build-your .build {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  display: block;
}

#cycling-phrase {
  font-size: clamp(3rem, 9vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--red);
  min-height: 1.15em;
  transition: opacity 0.7s ease-in-out;
  display: block;
}

.hero-png {
  max-height: 82%;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.35));
  transition: transform 0.6s ease;
}

.hero-modern:hover .hero-png {
  transform: translateY(-15px) rotate(2deg);
}

/* ==========================================================================
   Product Card — UPDATED (large images)
   ========================================================================== */
.product-card {
  text-align: center;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-16px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  width: 100%;
  height: 340px !important;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  background: var(--light);
  padding: 20px;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.price {
  color: var(--red);
  font-weight: 700;
  font-size: 1.55rem;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  margin-left: 8px;
}

.stars {
  color: var(--warning);
  font-size: 1rem;
}

.sale-badge {
  background: var(--danger);
  color: white;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

/* ==========================================================================
   Category Titles (New Style)
   ========================================================================== */
.category-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   PRODUCT CATALOG, PRODUCT PAGE, Pagination, Old Hero, Benefits etc.
   (left unchanged, only product-img redefined above)
   ========================================================================== */
.filter-card {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  background: white;
}

.filter-title {
  background: var(--light-accent);
  padding: 12px 18px;
  margin: 0;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-content {
  padding: 15px 18px;
}

.form-check-label {
  font-size: 0.95rem;
  cursor: pointer;
}

.offcanvas-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-link-item {
    padding: 6px 0;
    font-size: 0.95rem;
}

.filter-link-item.parent {
    font-weight: 600;
    margin-bottom: 4px;
}

.filter-link-item.child {
    font-weight: normal;
    color: #555;
}

.filter-link-item a {
    color: inherit;
    display: block;
    transition: color 0.2s;
}

.filter-link-item a:hover,
.filter-link-item a.active {
    color: #0d6efd;
    text-decoration: underline;
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.product-gallery .main-image {
    height: 450px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-gallery .main-image img#mainProductImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-gallery .thumbs .col-3 {
    height: 100px;
    padding: 0;
}

.product-gallery .thumbs img.thumb {
    width: 100px;
    height: 100px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 5px;
    box-sizing: border-box;
}

.product-gallery .thumb {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
}

.product-gallery .thumb.active,
.product-gallery .thumb:hover {
    opacity: 1;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(113, 209, 23, 0.3);
}

/* pagination */
.pagination {
  --pg-color: #6c757d;
  --pg-bg: #ffffff;
  --pg-hover-bg: #f1f5f9;
  --pg-active-bg: var(--accent);
  --pg-active-color: #000000;
  --pg-border: #dee2e6;
  --pg-radius: 10px;
  --pg-gap: 6px;
  margin: 2.5rem 0 1.5rem !important;
  flex-wrap: wrap;
  gap: var(--pg-gap);
  justify-content: center;
}

/* ...  ... */

@media (max-width: 576px) {
  .search-form {
    width: 100% !important;
    margin-bottom: 10px;
  }
  .user-icons {
    justify-content: center;
    width: 100%;
  }
  .product-img {
    max-height: 340px;
  }
  .hero-modern { 
    height: 85vh; 
    min-height: 620px; 
  }
  .hero-png { 
    max-height: 55%; 
  }
  #cycling-phrase { 
    font-size: 2.4rem; 
  }
}

@media (max-width: 991px) {
  .sidebar {
    margin-bottom: 2rem;
  }
}


/* ==========================================================================
   WHITE HEADER 2026 
   ========================================================================== */

/* Top green bar  */
.top-green-bar {
  background: #e8f5e8;
  color: #1e7e34;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Delivery bar */
.delivery-bar {
  background: #e8f5e8;
  color: #1e7e34;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ==================== WHITE NAVBAR ==================== */
.navbar-main {
  background: #ffffff !important;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  padding: 16px 0;
}



/*  */
.navbar-main .nav-link {
  color: #111111 !important;
  font-weight: 500;
  font-size: 1.02rem;
  padding: 10px 18px !important;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: #28a745 !important;
  background: rgba(40, 167, 69, 0.08);
}

/* Dropdown */
.custom-dropdown {
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  padding: 12px 0;
  min-width: 260px;
  border: 1px solid #e9ecef;
  background: #fff;
}

.custom-dropdown .dropdown-item {
  padding: 11px 22px;
  font-size: 1rem;
  color: #222;
}

.custom-dropdown .dropdown-item:hover {
  background: #28a745;
  color: #fff;
}

/* Search form */
.search-form .form-control {
  background: #f8f9fa;
  border: 1px solid #ddd;
}

.search-form .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40,167,69,0.15);
}

/* Cart icon */
.navbar-main .fs-4.text-dark {
  color: #111 !important;
}

/* Mobile Toggler */
.navbar-toggler {
  border: none;
  padding: 8px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23111111' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile search bar  */
.d-lg-none .search-form .form-control {
  border-radius: 50px;
  padding-left: 20px;
  height: 48px;
  font-size: 1rem;
  border: 1px solid #ddd;
}

.d-lg-none .search-form .btn {
  border-radius: 50px;
  width: 48px;
  height: 48px;
}

/* Footer  */
.footer {
  background: #111111;
  color: #ccc;
}

.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer a:hover {
  color: #28a745;
}

/* Small screens */
@media (max-width: 576px) {
  .top-green-bar,
  .delivery-bar {
    font-size: 0.95rem;
    padding: 10px 0;
  }
  
  .navbar-main .navbar-brand img {
    height: 42px;
  }
}


/* ==================== BIG LOGO ==================== */
.navbar-main .logo-img {
    height: 82px;           
    width: auto;
    max-width: 280px;       
    object-fit: contain;
    transition: height 0.3s ease;
}


@media (max-width: 991px) {
    .navbar-main .logo-img {
        height: 64px;
    }
}


@media (max-width: 576px) {
    .navbar-main .logo-img {
        height: 52px;
    }
}


.navbar-main .navbar-brand {
    padding: 0 !important;
    line-height: 1;
}
