/* ==========================================================================
   Main
   ========================================================================== */

:root {
  --accent:        #3bb54a;
  --accent-dark:   #009245;
  --light-accent:  #f0f9e8;
  --dark:          #000000;
  --gray:          #6c757d;
  --danger:        #dc3545;
  --warning:       #ffc107;
  --light:         #f8f9fa;
  --border:        #ddd;
  --shadow-sm:     0 4px 15px rgba(0,0,0,0.06);
  --shadow-md:     0 12px 24px rgba(113,209,23,0.25);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
  font-family: system-ui, -apple-system, 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);
}

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

/* ==========================================================================
   Dropdown (All Categories)
   ========================================================================== */
.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);
}

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

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

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

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

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

/* ==========================================================================
   Product Card (index, catalog)
   ========================================================================== */
.product-card {
  text-align: center;
  border: 1px solid #eee;
  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 #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 LinkPager
─────────────────────────────────────────────── */

.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(113,209,23,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(113,209,23,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;
}

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

/* ==========================================================================
   Hero (index page)
   ========================================================================== */
.hero {
  background: var(--light-accent);
  padding: 40px 0;
}

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

@media (max-width: 576px) {
  .hero {
    padding: 20px 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

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

/* ==========================================================================
   GENERAL
   ========================================================================== */
.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: #111;
  color: #ccc;
  padding: 60px 0 30px;
}

.footer a {
  color: #ccc;
}
.footer a:hover {
  color: white;
}





.cart-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width:  80px;
  height: 80px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}
.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: #000;
  border-color: var(--accent);
}
.promo-input-group .btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

@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-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}
.form-section {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.billing-section {
  display: none;
}
.billing-section.show {
  display: block;
}
.order-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 4px;
}
.order-item {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.order-item:last-child {
  border-bottom: none;
}


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

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

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



.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: #555;
  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;
  }
}





.about-hero {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
              url('https://images.pexels.com/photos/4167542/pexels-photo-4167542.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
  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(113,209,23,0.22);
}

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




.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;
}
@media (max-width: 576px) {
  .faq-header {
    padding: 40px 0 30px;
  }
  .faq-header h1 {
    font-size: 2.2rem;
  }
}




.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;
}
.order-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.order-item:last-child {
  border-bottom: none;
}
.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--light-accent);
}
@media (max-width: 991px) {
  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    min-height: auto;
  }
}



.form-section {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
}
.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: #000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}
@media (max-width: 991px) {
  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    min-height: auto;
  }
}



/* ==========================================================================
   Orders History Page
   ========================================================================== */

.order-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

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




/* ==========================================================================
   Profile Edit Page
   ========================================================================== */

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

.form-section {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem;
}

.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: #000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 991px) {
  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    min-height: auto;
  }
}



/* ==========================================================================
   Notifications Page (Account section)
   ========================================================================== */

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



/* ==========================================================================
   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(113, 209, 23, 0.3));
}

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

.order-summary-header {
  background: linear-gradient(135deg, #71d117 0%, #5eb010 100%);
  color: #000 !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;
}




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

.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-form input.form-control {
  min-width: 200px !important;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 576px) {
  .search-form {
    width: 100% !important;
    margin-bottom: 10px;
  }
  .user-icons {
    justify-content: center;
    width: 100%;
  }
  .product-img {
    max-height: 180px;
  }
}

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

