/* ==========================================================================
   Main Stylesheet - slitmedia.com
   ========================================================================== */

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */

:root {
  --accent:        #1ccdca;
  --accent-dark:   #14a8a5;
  --light-accent:  #e8f9f9;
  --dark:          #232323;
  --gray:          #6c757d;
  --danger:        #dd3333;
  --warning:       #fffc07;
  --light:         #ededed;
  --border:        #7b7b7b;
  --shadow-sm:     0 4px 15px rgba(10,10,10,0.06);
  --shadow-md:     0 12px 24px rgba(28,205,202,0.25);

  /* Breakpoints */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
}

/* ==========================================================================
   2. Base & Typography
   ========================================================================== */

body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

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

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

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

/* ==========================================================================
   4. Top Bar
   ========================================================================== */

.promo-bar {
  background: var(--danger);
  color: #fff;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.promo-bar strong {
  color: #fff;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */

.navbar-main {
  background: var(--dark);
  padding: 12px 0 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 1030;
}

.navbar-collapse {
  min-width: 0;
}

.slit-mobile-search {
  background: var(--dark);
  border-bottom: none;
  margin: 0;
  padding-bottom: 16px !important;
}
.slit-mobile-search .form-control {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.slit-mobile-search .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.navbar-main .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.navbar-main .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='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.slit-caret {
  font-size: 0.7rem;
  vertical-align: middle;
  margin-left: 2px;
}

.slit-shop-nav {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
}

.slit-shop-nav > .nav-link {
  flex: 0 0 auto;
  display: inline-block !important;
  width: auto !important;
}

.slit-dropdown-btn {
  background: none;
  border: none;
  color: white;
  padding: 0 6px;
  cursor: pointer;
  line-height: 1;
}

.slit-shop-nav:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}

.slit-navbar-title {
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.slit-navbar-title-link {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.slit-navbar-title-link:hover {
  color: #fff;
  text-decoration: none;
}

.slit-navbar-cats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.slit-navbar-cats a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.2s;
}

.slit-navbar-cats a:hover {
  color: #fff;
}

.navbar-brand {
  color: white !important;
  font-weight: bold;
  font-size: 2.25rem !important;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-nav {
  flex-wrap: wrap !important;
  gap: 6px 12px;
  row-gap: 8px;
}

@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%;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
  }
}

/* User icons & mini-cart trigger */
.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);
}

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

/* ==========================================================================
   6. Dropdown (All Categories)
   ========================================================================== */

.navbar-main .dropdown-menu {
  min-width: 220px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 6px;
  top: 100%;
  left: 0;
}

@media (max-width: 991.98px) {
  .slit-shop-nav .dropdown-menu {
    position: static;
    width: 100%;
    flex-basis: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #fff;
  }
  .slit-shop-nav .dropdown-item {
    color: #212529;
  }
  .slit-shop-nav .dropdown-item:hover {
    background-color: var(--accent);
    color: #fff;
  }
}

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

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

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

/* ==========================================================================
   8. Buttons
   ========================================================================== */

.slit-topbar {
  background: var(--danger);
  color: #fff;
  font-size: 0.85rem;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.slit-topbar-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 40px;
  align-items: center;
  min-width: 0;
}
@media (max-width: 768px) {
  .slit-topbar {
    justify-content: center;
    text-align: center;
  }
  .slit-topbar-contacts {
    justify-content: center;
  }
}
.slit-topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.slit-topbar-item i {
  font-size: 0.9rem;
  opacity: 0.9;
}
.slit-topbar-promo {
  font-size: 0.85rem;
  font-weight: 400;
  min-width: 0;
}
.slit-topbar strong,
.slit-topbar b {
  font-weight: 400;
}

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

.btn-primary:hover {
  background-color: #b52828;
  border-color: #b52828;
  color: #fff;
}

.slit-slide-content .btn-primary {
  --bs-btn-bg: rgba(221, 51, 51, 0.70);
  --bs-btn-border-color: rgba(221, 51, 51, 0.70);
  --bs-btn-hover-bg: rgba(181, 40, 40, 0.88);
  --bs-btn-hover-border-color: rgba(181, 40, 40, 0.88);
  background-color: rgba(221, 51, 51, 0.70) !important;
  border-color: rgba(221, 51, 51, 0.70) !important;
}

.slit-slide-content .btn-primary:hover {
  background-color: rgba(181, 40, 40, 0.88) !important;
  border-color: rgba(181, 40, 40, 0.88) !important;
}

.btn-modern {
  background: var(--danger);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background-color 0.2s ease, transform 0.12s ease;
}

.btn-modern:hover {
  background: #b52828;
  color: #fff;
  transform: translateY(-2px);
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-modern:focus,
.btn-modern:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(221, 51, 51, 0.35);
}

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

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

/* ==========================================================================
   9. Product Card
   ========================================================================== */

.product-card {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background: white;
}

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

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

.price {
  color: var(--danger);
  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;
}

/* Horizontal product card — used in 2-column catalog layout */
.product-card--h {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-align: left;
  height: 160px;
}

.product-card--h .product-img {
  width: 160px;
  min-width: 160px;
  max-height: none;
  aspect-ratio: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 8px 0 0 8px;
  flex-shrink: 0;
}

.product-card--h .product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 6px;
}

.product-card--h .product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  margin: 0;
}

.product-card--h .product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card--h .price {
  font-size: 1.15rem;
  margin: 0;
}

.product-card--h:hover {
  transform: translateY(-3px);
}

@media (max-width: 575px) {
  .product-card--h {
    flex-direction: row;
    height: 120px;
  }

  .product-card--h .product-img {
    width: 120px;
    min-width: 120px;
    height: 100%;
    border-radius: 8px 0 0 8px;
    aspect-ratio: auto;
    max-height: none;
  }

  .product-card--h .product-card__body {
    padding: 10px 12px;
    gap: 3px;
  }

  .product-card--h .product-card__title {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card--h .stars {
    font-size: 0.75rem;
  }

  .product-card--h .price {
    font-size: 1rem;
  }

  .product-card--h .product-card__footer {
    gap: 8px;
  }

  .product-card--h .product-card__footer .btn {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
}

/* ==========================================================================
   10. Product Catalog / Filters
   ========================================================================== */

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

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

/* Sidebar — original slitmedia style */
.slit-sidebar {
  padding-right: 10px;
  padding-left: 24px;
}

.slit-sidebar-block {
  margin-bottom: 2rem;
}

.slit-sidebar-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #333;
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 3px solid var(--danger);
  position: relative;
}

.slit-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slit-sidebar-item {
  border-bottom: 1px dotted #ccc;
}

.slit-sidebar-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: var(--danger);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}

.slit-sidebar-item a::before {
  content: '–';
  color: #aaa;
  flex-shrink: 0;
}

.slit-sidebar-item--child a {
  padding-left: 16px;
  font-size: 0.86rem;
  color: #c0392b;
}

.slit-sidebar-item a:hover,
.slit-sidebar-item.active a {
  color: var(--dark);
}

.slit-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
}

.slit-sidebar-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #aaa;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.slit-sidebar-tag:hover,
.slit-sidebar-tag.active {
  border-color: var(--danger);
  color: var(--danger);
}

/* ==========================================================================
   11. Product Page Gallery
   ========================================================================== */

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

.thumb {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(28, 205, 202, 0.3);
}

/* ==========================================================================
   12. Pagination
   ========================================================================== */

.pagination {
  --pg-color: #6c757d;
  --pg-bg: #ffffff;
  --pg-hover-bg: #f1f5f9;
  --pg-active-bg: var(--accent);
  --pg-active-color: #ffffff;
  --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(28, 205, 202, 0.18);
}

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

.page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #f8f9fa;
  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;
}

/* ==========================================================================
   13. Hero Section
   ========================================================================== */

.hero {
  background: var(--light-accent);
  padding: 40px 0;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 1920px) {
  .hero-img {
    max-height: 500px;
  }
}

/* ==========================================================================
   14. General Components
   ========================================================================== */

.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 {
  background: #2f2f2f;
  color: #ccc;
  padding: 60px 0 30px;
}

.footer a {
  color: #ccc;
}

.footer a:hover {
  color: white;
}

.footer h5 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-copy {
  color: #666;
  font-size: 0.85rem;
}

/* ==========================================================================
   15. Cart Page
   ========================================================================== */

.cart-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

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

.cart-item--bonus {
  background: #f0fdf4;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 4px;
}

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

.cart-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}

.cart-empty-message {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #777;
  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);
}

.cart-item .price { margin-bottom: 0; }
.cart-item h6 { margin-bottom: 0.6rem !important; }
.promo-coupon-widget { margin-top: 1.25rem; margin-bottom: 1.25rem; }

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

  .cart-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: start;
    position: static;
    padding-right: 0;
  }
  .cart-item > .me-3 { grid-column: 1; grid-row: 1; align-self: center; }
  .cart-item > .flex-grow-1 { grid-column: 2; grid-row: 1; min-width: 0; padding-right: 2rem; }
  .cart-item .flex-grow-1 .d-flex { flex-wrap: wrap; row-gap: 0.4rem; }
  .cart-item .js-remove-item {
    grid-column: 2; grid-row: 1;
    justify-self: end; align-self: start;
    position: static; transform: none;
    margin: 0 !important; padding: 0;
  }
}

/* ==========================================================================
   16. Checkout Page - Refinements
   ========================================================================== */

.checkout-page .form-control,
.checkout-page .form-select {
  border-color: #e9ecef;
  font-size: 1.1rem;
  padding: 0.65rem 1rem;
  transition: all 0.2s ease;
  background: #fff;
}

.checkout-page .form-control:focus,
.checkout-page .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 205, 202, 0.08);
}

.checkout-page .card-title {
  font-weight: 500 !important;
  font-size: 1.1rem;
  letter-spacing: -0.2px;
  color: #2c3e2f;
  margin-bottom: 1.25rem !important;
}

.checkout-page .form-check {
  padding-left: 1.8rem;
}

.checkout-page .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  margin-left: -1.8rem;
  border: 1.5px solid #d4d8dd;
  cursor: pointer;
}

.checkout-page .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkout-page .form-check-input:focus {
  box-shadow: 0 0 0 2px rgba(28, 205, 202, 0.2);
  border-color: var(--accent);
}

.checkout-page .form-check-label {
  font-weight: 400;
  color: #4a5b4d;
  font-size: 0.9rem;
}

#billingFields .form-control,
#billingFields .form-select {
  background: #fefefe;
}

.checkout-page .card.shadow-sm {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #f0f0f0 !important;
}

.checkout-page .alert-info {
  background: #f4f9f9;
  border: none;
  border-left: 3px solid var(--accent);
  color: #2c5f5e;
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.checkout-page .alert-info i {
  color: var(--accent);
}

.checkout-page .breadcrumb {
  font-size: 0.85rem;
}

.checkout-page .breadcrumb-item a {
  color: #8a9a8e;
  text-decoration: none;
}

.checkout-page .breadcrumb-item a:hover {
  color: var(--accent-dark);
}

.checkout-page .breadcrumb-item.active {
  color: #2c5f5e;
  font-weight: 500;
}

.checkout-page .form-label {
  font-weight: 450;
  color: #5a6e5e;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.2px;
}

.checkout-page .invalid-feedback {
  font-size: 0.7rem;
  color: #e06c4e;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .checkout-page .card-body {
    padding: 1.5rem !important;
  }
}

/* ==========================================================================
   17. Toast Notifications
   ========================================================================== */

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

.toast.bg-success {
  background-color: #198754 !important;
  color: #fff !important;
}

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

/* ==========================================================================
   18. Error Page
   ========================================================================== */

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

.error-code-wrap {
  margin-bottom: 1.5rem;
}

.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  display: block;
}

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

.error-message {
  font-size: 1.25rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.error-support {
  color: var(--gray);
  font-size: 0.9rem;
}

.error-support a {
  color: var(--accent);
}

/* ==========================================================================
   19. About Page
   ========================================================================== */

.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
              url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.about-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mission-card,
.value-card {
  transition: all 0.25s ease;
}

.mission-card:hover,
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(28, 205, 202, 0.22);
}

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

/* ==========================================================================
   20. 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: #f9f9f9;
}

.faq-search {
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   21. Profile & Account Pages
   ========================================================================== */

.profile-sidebar {
  background: white;
  border-right: 1px solid #eee;
  min-height: 500px;
}

.profile-sidebar .nav-link {
  color: #555;
  padding: 1rem 1.5rem;
  border-radius: 0;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.profile-sidebar .nav-link:hover,
.profile-sidebar .nav-link.active {
  background: var(--light-accent);
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

.profile-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.75rem;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--light-accent);
}

.avatar-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--light-accent);
}

.avatar-upload {
  position: relative;
  display: inline-block;
}

.avatar-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.avatar-upload .upload-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ==========================================================================
   22. Orders History Page
   ========================================================================== */

.order-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.order-card__header {
  background: var(--dark);
  color: #fff;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-left: 4px solid var(--accent);
}

.order-card__header--danger {
  border-left-color: var(--danger);
}

.order-card__body {
  padding: 1.5rem;
}

.order-meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 2px;
}

.order-meta-value {
  font-size: 0.95rem;
  color: #222;
  font-weight: 500;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.order-total-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.order-status-badge {
  display: inline-block;
  background: var(--light-accent);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.order-status-badge--warning {
  background: #fff8e1;
  color: #b07800;
  border-color: #ffc107;
}

.order-table-head th {
  background: var(--light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  border-bottom: 2px solid #eee;
  padding: 0.75rem 1rem;
}

.order-bonus-row {
  background: #f0fdf8;
}

.order-free-badge {
  display: inline-block;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 6px;
}

/* Order confirmation success icon */
.order-success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(28,205,202,0.15);
}

.order-success-icon i {
  color: #fff;
  font-size: 2.5rem;
}

/* Order failed icon */
.order-failed-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(221,51,51,0.12);
}

.order-failed-icon i {
  color: #fff;
  font-size: 2.5rem;
}

.order-header {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.order-body {
  padding: 1.5rem;
}

.order-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 6px;
}

.status-badge {
  font-size: 0.9rem;
  padding: 0.5em 1em;
}

/* ==========================================================================
   23. Notifications Page
   ========================================================================== */

.notification-item {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 0;
  transition: background 0.2s;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: var(--light-accent);
  border-left: 4px solid var(--accent);
}

.notification-time {
  font-size: 0.85rem;
  color: #777;
}

.notification-icon {
  width: 42px;
  height: 42px;
  background: var(--light-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-dark);
  flex-shrink: 0;
}

/* ==========================================================================
   24. Order Confirmation Page
   ========================================================================== */

.order-confirmation {
  background: #f8f9fa;
}

.order-confirmation .display-4 {
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #222;
}

.order-confirmation .card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.order-confirmation .card-header {
  font-weight: 600;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #eee;
}

.order-confirmation .table thead th {
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  background: #f8f9fa;
}

.order-confirmation .table td {
  padding: 1.1rem 0.75rem;
  vertical-align: middle;
}

.order-confirmation .badge {
  font-size: 0.95rem;
  padding: 0.55em 1.1em;
  font-weight: 500;
}

.order-confirmation .alert {
  border-radius: 10px;
  border: none;
}

.order-confirmation .success-icon {
  font-size: 5.5rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 10px rgba(28, 205, 202, 0.3));
}

.order-summary-header {
  background: linear-gradient(135deg, #1ccdca 0%, #14a8a5 100%);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 10px 10px 0 0;
}

/* ==========================================================================
   25. Focus & Accessibility
   ========================================================================== */

.page-link:focus,
.btn-primary:focus,
.nav-link:focus,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .product-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   26. Mobile Responsive Overrides
   ========================================================================== */

@media (max-width: 576px) {
  .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero {
    padding: 20px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .product-img {
    max-height: 180px;
  }

  .search-form {
    width: 100% !important;
    margin-bottom: 10px;
  }

  .user-icons {
    justify-content: center;
    width: 100%;
  }

  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: 2rem;
  }

  .faq-header {
    padding: 40px 0 30px;
  }

  .faq-header h1 {
    font-size: 2.2rem;
  }

  .order-confirmation .display-4 {
    font-size: 2.4rem;
  }

  .order-confirmation .card-header {
    padding: 1rem 1.25rem;
  }

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

@media (max-width: 768px) {
  .order-confirmation .display-4 {
    font-size: 2.4rem;
  }
}

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

  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    min-height: auto;
  }
}

/* ==========================================================================
   27. Product Tabs
   ========================================================================== */

#productTabs {
  border-bottom: 2px solid #dee2e6;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#productTabs .nav-link {
  color: var(--gray) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 20px;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  transition: color 0.15s, border-color 0.15s;
}

#productTabs .nav-link:hover {
  color: var(--dark) !important;
  border-bottom-color: #ccc;
}

#productTabs .nav-link.active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
  background: none;
}

.tab-content {
  padding-top: 1.75rem;
}

.tab-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #dee2e6;
  color: var(--dark);
}

/* Preserve navbar styles — must come after tab overrides */
.navbar-main .nav-link {
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 18px;
  transition: all 0.4s ease;
}

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

.navbar-main .nav-link--accent:hover {
  color: #fff !important;
}

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

.lead.mb-4 {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 1.5rem !important;
}

/* Warning bar */
#warningBar {
  background: #ffd700;
  color: #1a1a1a;
  font-size: 0.85rem;
  position: relative;
  text-align: center;
  padding: 0.6rem 3rem 0.6rem 1rem;
}
#warningBar strong { color: #000; }
#warningBar button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  background: none;
  border: 2px solid rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0;
}
#warningBar button:hover {
  background-color: rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.7);
}

/* ==========================================================================
   28. Slitmedia Slider
   ========================================================================== */

.slit-slider {
  width: 100%;
  overflow: hidden;
  background: #111;
  margin: 0;
  margin-top: -16px;
}

.slit-slide {
  display: none;
  width: 100%;
  height: 72vh;
  min-height: 400px;
  max-height: 800px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slit-slide.active {
  display: block;
}

.slit-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
}

.slit-slide-content {
  position: absolute;
  bottom: 15%;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
  text-align: left;
  padding-left: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.slit-title-row {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 1.1rem 2.5rem;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.slit-title-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transform: skewX(-10deg);
  z-index: -1;
}

.slit-slide-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0;
  text-align: left;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}
.slit-slide.active .slit-slide-title {
  opacity: 1;
}

.slit-slide-sub {
  font-size: 1.1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  display: inline-block;
  padding: 0.6rem 2.5rem;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}
.slit-slide-sub::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transform: skewX(-10deg);
  z-index: -1;
}

.slit-slide-content .btn-primary {
  position: relative;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  z-index: 1;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.4s,
              background 0.2s;
}
.slit-slide.active .slit-slide-content .btn-primary {
  opacity: 1;
}
.slit-slide-content .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--danger);
  transform: skewX(-10deg);
  z-index: -1;
  transition: background 0.2s;
}
.slit-slide-content .btn-primary:hover::before {
  background: #b52626;
}

.slit-prev,
.slit-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0 0.9rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.slit-prev { left: 1%; }
.slit-next { right: 1%; }
.slit-prev:hover,
.slit-next:hover { background: rgba(0,0,0,0.6); }

.slit-dots {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slit-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.slit-dot.active {
  background: var(--danger);
}

@media (max-width: 768px) {
  .slit-slide { height: 50vw; min-height: 220px; }
  .slit-slide-content { bottom: 10%; padding-left: 4%; }
  .slit-title-row { padding: 0.7rem 1rem; gap: 0.8rem; }
  .slit-slide-title { font-size: 1.3rem; }
  .slit-slide-content .btn-primary { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
  .slit-slide-sub { font-size: 0.85rem; padding: 0.4rem 1rem; }
  .slit-prev, .slit-next { font-size: 1.8rem; padding: 0 0.5rem; }
}

/* ==========================================================================
   29. Slitmedia Services
   ========================================================================== */

.slit-service-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.slit-service-box:hover {
  box-shadow: 0 8px 24px rgba(28,205,202,0.15);
  transform: translateY(-4px);
}

.slit-icon {
  color: var(--accent);
}

.slit-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ==========================================================================
   30. Slitmedia Brands
   ========================================================================== */

.slit-brand-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  background: #f8f9fa;
  border-color: #dee2e6 !important;
  transition: all 0.2s;
}

.slit-brand-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent) !important;
}

/* ==========================================================================
   31. Slitmedia CTA Callout
   ========================================================================== */

.slit-callout {
  background: var(--danger);
}
.slit-callout-text {
  color: rgba(255,255,255,0.88);
  max-width: 700px;
}
.slit-callout-btn {
  color: var(--danger);
}

/* Tab Products widget */
.bb-tabs-section {
  padding: 32px 0 40px;
}
.bb-tab-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.bb-tab-link {
  font-size: 13px;
  color: #2d2d2d;
  text-decoration: none;
  white-space: nowrap;
}
.bb-tab-link:hover { color: var(--accent); }
.bb-tab-link.active { color: var(--danger); font-weight: 600; }
.bb-tab-panel { display: none; }
.bb-tab-panel.active { display: block; }

/* Product page — mobile */
.product-price {
  font-size: 4rem;
  margin-top: 2rem !important;
}

@media (max-width: 991px) {
  .product-page-info {
    text-align: center;
  }

  .product-price {
    font-size: 3.6rem;
    margin-top: 0.5rem;
  }

  .product-page-info .d-flex.align-items-center {
    justify-content: center;
  }

  .product-page-info .btn-modern {
    width: 100%;
    justify-content: center;
  }

  .product-page-info .d-flex.gap-3.mb-4 {
    flex-direction: column;
    align-items: center;
  }
}
