/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bs-primary:    #2a2a2a;
  --bs-link-color: #2a2a2a;
  --accent:        #2a2a2a;
  --accent-dark:   #000;
  --light-accent:  #f0f0f0;
  --dark:          #000;
  --gray:          #6c757d;
  --danger:        #f35b20;
  --warning:       #fffc07;
  --light:         #ebebeb;
  --border:        #7b7b7b;
  --shadow-sm:     0 4px 15px rgba(10,10,10,0.06);
  --shadow-md:     0 12px 24px rgba(0,0,0,0.12);

  --body-bg:       #fff;
  --body-color:    #7b7b7b;
  --bg-dark:       #000;
  --bg-light:      #f8f9fa;
  --border-light:  #eee;
  --text-muted:    #7b7b7b;
  --text-subtle:   #555;
  --footer-color:  #aaa;
  --bonus-bg:      #f5f5f5;
  --text-dark:     #2a2a2a;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  background: var(--body-bg);
  color: var(--body-color);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

button, input, select, textarea, .btn, .form-control, .form-select {
  font-family: 'Poppins', sans-serif;
}

input, select, textarea,
.form-control, .form-select,
.input-group > *, .input-group .form-control, .input-group .btn {
  border-radius: 0 !important;
}

.form-control:focus, .form-select:focus {
  border-color: #aaa;
  box-shadow: none;
  outline: none;
}

.form-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

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

html { overflow-x: clip; }

/* ==========================================================================
   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; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header-wrap {
  background: var(--dark);
  position: relative;
  z-index: 1030;
  padding-bottom: 6px;
  margin-bottom: -6px;
}

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

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

.navbar-main .navbar-brand img {
  max-height: 50px;
}

@media (max-width: 991.98px) {
  .navbar-main .navbar-brand img { max-height: 36px; }
}

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

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: rgba(255,255,255,0.65) !important;
}

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

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

.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: rgba(255,255,255,0.65);
}

/* Navbar nav */
.navbar-nav {
  flex-wrap: wrap !important;
  gap: 8px 12px;
}

.navbar-nav .nav-link {
  padding: 10px 16px;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.2s;
}

.navbar-nav .nav-link:hover {
  background: rgba(255,255,255,0.1);
}

@media (min-width: 1200px) {
  .navbar-nav { flex-wrap: nowrap !important; }
}

@media (max-width: 1199px) {
  .navbar-nav { justify-content: center; }
}

@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
  }
}

/* Search */
.search-form input.form-control {
  min-width: 200px !important;
}

.mobile-search {
  padding: 0 16px 12px;
}

@media (max-width: 576px) {
  .search-form {
    width: 100% !important;
    margin-bottom: 10px;
  }
  .user-icons {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   Dropdown (All Categories)
   ========================================================================== */
.navbar-main .dropdown-menu {
  min-width: 220px;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.navbar-main .dropdown-menu .dropdown-item {
  padding: 8px 20px;
  color: #212529;
}

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

/* ==========================================================================
   Mini-cart
   ========================================================================== */
.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 var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.mini-cart .cart-total { font-weight: bold; }
.mini-cart .empty-cart { color: var(--text-muted); }

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

/* Bootstrap color overrides */
.text-primary { color: var(--text-dark) !important; }
a { color: var(--accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

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

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

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-card {
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s;
  background: white;
}

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

.product-img {
  width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
  background: var(--light);
  padding: 15px;
}

.price {
  color: #d00;
  font-weight: 700;
  font-size: 1.25rem;
}

.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;
}

/* ==========================================================================
   Product Catalog
   ========================================================================== */
.filter-card {
  border: 1px solid var(--border-light);
  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: var(--text-subtle);
}

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

.filter-link-item a:hover,
.filter-link-item a.active {
  color: var(--accent);
  text-decoration: underline;
}

.sidebar-product-item {
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}
.sidebar-product-item:last-of-type {
  border-bottom: none;
}
.sidebar-product-item:hover .sidebar-product-title {
  color: var(--accent);
}
.sidebar-product-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.sidebar-product-title {
  font-size: 0.82rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
  transition: color 0.2s;
}
.sidebar-product-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}

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

/* ==========================================================================
   Product Page
   ========================================================================== */

.product-price { line-height: 1.2; }
.product-price__current { font-size: 2rem; font-weight: 800; color: var(--accent); font-family: 'Montserrat', sans-serif; }
.product-price__old { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.5rem; }
.product-price__discount { font-size: 0.9rem; font-weight: 700; color: #28a745; margin-left: 0.4rem; }

.product-meta { border-top: 1px solid var(--border-light); }
.product-meta__item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.product-meta__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 130px;
  flex-shrink: 0;
}
.product-meta__value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-transform: uppercase;
}
.product-meta__value a { color: var(--text-dark); text-decoration: none; }
.product-meta__value a:hover { color: var(--accent); }

.product-qty { width: 130px; flex-shrink: 0; }

#productTabsContent .tab-pane { background: #fff; padding: 1.5rem; border: 1px solid #dee2e6; border-top: none; }

.product-taxonomy a { color: var(--text-muted); text-decoration: none; }
.product-taxonomy a:hover { color: var(--accent); }

.product-gallery .main-image {
  height: 450px;
  overflow: hidden;
  background: var(--bg-light);
  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: var(--bg-light);
  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(0,0,0,0.15);
}

/* ==========================================================================
   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;
}

.page-item { margin: 0 !important; }

.page-link,
.page-item.disabled .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: var(--pg-color);
  background-color: var(--pg-bg);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  transition: all 0.18s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.page-link:hover {
  background-color: var(--pg-hover-bg);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.page-item.active .page-link {
  background-color: var(--pg-active-bg);
  border-color: var(--pg-active-bg);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.page-item.disabled .page-link {
  color: #adb5bd;
  background-color: var(--bg-light);
  border-color: #dee2e6;
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}

.page-item.prev .page-link,
.page-item.next .page-link {
  min-width: 46px;
  font-size: 1.1rem;
  padding: 0 10px;
}

@media (max-width: 576px) {
  .pagination {
    --pg-gap: 4px;
    margin: 1.5rem 0 1rem !important;
  }
  .page-link,
  .page-item.disabled .page-link {
    min-width: 34px;
    height: 34px;
    font-size: 0.9rem;
    padding: 0 8px;
  }
  .page-item.prev .page-link,
  .page-item.next .page-link { min-width: 40px; }
  .page-item:not(.prev):not(.next):not(.active):not(:nth-child(-n+3)):not(:nth-last-child(-n+3)) {
    display: none;
  }
  .pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    font-size: 0.9rem;
    color: var(--pg-color);
    pointer-events: none;
  }
}

/* ==========================================================================
   General Blocks
   ========================================================================== */
.benefit-card {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.benefit-card i { color: var(--accent); }

.category-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.newsletter {
  background: var(--light-accent);
  padding: 60px 0;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--footer-color);
  padding: 60px 0 30px;
}

.footer a { color: var(--footer-color); }
.footer a:hover { color: white; }

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--bg-light);
  border-radius: 6px;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

.cart-item--bonus { background: var(--bonus-bg); }

.qty-input { max-width: 180px; }

.cart-empty-message {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-muted);
  font-size: 1.3rem;
}

.promo-input-group .btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.promo-input-group .btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Promo widget scroll anchor fix */
.promo-widget { overflow-anchor: none; }


@media (max-width: 576px) {
  .qty-input { width: 120px !important; }
  .qty-input input[type="number"] {
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
  }
  .qty-input .btn { width: 35px; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-summary,
.cart-summary {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 24px;
}

.form-section {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 24px;
}

.billing-section { display: none; }
.billing-section.show { display: block; }

.order-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.order-item:last-child { border-bottom: none; }

.order-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--bg-light);
  border-radius: 6px;
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  min-width: 280px;
  max-width: 400px;
  z-index: 1055;
  border-radius: 8px;
}

.toast.bg-success {
  background-color: var(--accent) !important;
  color: #fff !important;
}

.toast.bg-danger {
  background-color: var(--danger) !important;
}

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  margin: 0;
}

.error-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 1rem 0 1.5rem;
}

.error-message {
  font-size: 1.25rem;
  color: var(--text-subtle);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.error-icon {
  font-size: 6rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
  .error-code { font-size: 6rem; }
  .error-title { font-size: 2rem; }
}

/* ==========================================================================
   FAQ Page
   ========================================================================== */
.faq-header {
  background: var(--light-accent);
  padding: 60px 0 40px;
  text-align: center;
}

.faq-item .accordion-button {
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  background: white;
}

.faq-item .accordion-button:not(.collapsed) {
  background: var(--light-accent);
  color: var(--accent-dark);
}

.faq-item .accordion-body {
  padding: 1.5rem;
  background: var(--bg-light);
}


@media (max-width: 576px) {
  .faq-header { padding: 40px 0 30px; }
  .faq-header h1 { font-size: 2.2rem; }
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.info-hero {
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%),
              url('../images/slide2-1024x576.jpg') var(--bg-dark);
  background-size: cover;
  background-position: center 30%;
  color: white;
  padding: 5rem 0;
  margin-top: 0;
  margin-bottom: 3rem;
  border-bottom: 4px solid var(--accent);
}

.info-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.info-hero .lead {
  font-size: 1.35rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.95);
}

@media (max-width: 576px) {
  .info-hero { padding: 3rem 0; }
  .info-hero h1 { font-size: 2rem; }
  .info-hero .lead { font-size: 1rem; }
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin: 3rem 0;
}

.usp-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.25s ease;
  border: 1px solid var(--border-light);
}

.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.usp-icon {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.usp-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-dark); }
.usp-card p  { color: var(--text-subtle); font-size: 0.95rem; margin-bottom: 0; }

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--bg-dark);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.text-center .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

.faq-item-modern {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.03);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.faq-item-modern:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.faq-item-modern h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item-modern h4 i { color: var(--accent); }
