:root {
  --color-primary: #34495e;
  --color-primary-dark: #2c3e50;
  --color-accent: #395066;
  --color-background-light: #eef0f1;
  --color-background-dark: #1e1e1e;
  --color-text-dark: #2c2c2c;
  --color-hover-shadow: rgba(0, 0, 0, 0.2);
}

/* ===========================
   Global & Utility Classes
=========================== */
body {
  transition: background-color 0.4s, color 0.4s;
}

a {
    color: rgb(58 81 103);
    text-decoration: none;
}

.pt-6 {
  padding-top: 5.25rem !important;
}
.pt-7 {
  padding-top: 6rem !important;
}

.py-25 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.my-44 {
  margin-bottom: 4.4rem !important;
}

.w-90 {
  width: 91% !important;
}

.extra-small {
  font-size: 0.7em;
}

.rounded-bottom-10 {
    border-radius: 0 0 10px 10px;
}

/* ===========================
   Layout Containers
=========================== */
.container-box {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.navbar {
  background-color: var(--color-primary-dark) !important;
  position: fixed;
  width: 100%;
  z-index: 10000;
  top: 0;
}

.hero-section {
  background: linear-gradient(to right, #3a5167, #152331);
  padding: 4rem 0;
  margin-top: 70px;
}

.hero-section h1 {
  font-size: 2.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

footer {
  background-color: var(--color-primary-dark);
}

/* ===========================
   Base Button Styles
=========================== */
.btn-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary-dark);
}

.btn-primary:hover {
  border-color: var(--color-primary);
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: white;
}

/* ===========================
   Product Cards
=========================== */
.product-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 160px;
  background: #3a5167;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.discount-badge {
  font-size: 0.75rem;
  padding: 5px 8px;
}

.price-now {
  font-size: 1.5rem;
}

.red-price {
  color: red;
}

.black-price {
  color: black;
}

.card-body {
  padding: 15px;
}

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   🏬 Store Logos
=========================== */
.store-logo {
  max-height: 20px;
  width: auto;
  object-fit: contain;
  margin-right: 10px;
  filter: grayscale(1);
  transition: filter 0.3s ease-in-out;
}

.container-box:hover .store-logo {
  filter: grayscale(0);
}

/* ===========================
   Forms: Inputs & Labels
=========================== */
.form-check-input {
  border: 2px solid var(--color-accent);
  cursor: pointer;
  margin-top: 0.3rem;
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.form-check-input:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.form-check-input:hover,
.form-check-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.1rem rgba(52, 73, 94, 0.25);
}

.form-check-label {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #2c3e5075;
}

.form-check-label b {
  color: var(--color-accent);
  font-weight: 600;
}

form h6.fw-bold {
  font-size: 1rem;
  color: var(--color-accent);
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.3rem;
  margin-top: 1.5rem;
}

select.form-control {
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  color: var(--color-accent);
}

label.d-block input[type="radio"],
label.d-block input[type="checkbox"] {
  margin-right: 6px;
}

label.d-block {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

#sort-options {
  background-color: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 5px;
  padding: 8px;
  font-size: 1rem;
}

#sort-options:focus {
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 5px rgba(52, 73, 94, 0.4);
}

#sort-options option:checked {
  background-color: var(--color-primary);
  color: white;
}

/* ===========================
   Carousel
=========================== */
#recallCarousel {
  height: 320px;
}

@media (min-width: 768px) {
  #recallCarousel {
    height: 200px;
  }
}

.carousel-inner {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* ===========================
   Backgrounds
=========================== */
.bg-light {
  background-color: var(--color-background-light) !important;
}

/* ===========================
   Cart Button Styles
=========================== */
.add-to-cart-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.add-to-cart-btn.feedback {
  width: auto;
  height: auto;
  padding: 6px 14px;
  border-radius: 50px !important;
  opacity: 1;
  font-size: 13px;
  font-weight: 600;
}

.add-to-cart-btn.feedback i {
  margin-right: 6px;
}

.add-to-cart-btn.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

.cart-float-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  color: #3a5167;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 24px;
  border: none;
  transition: box-shadow 0.3s ease;
}

.cart-float-button:hover {
  box-shadow: 0 6px 18px var(--color-hover-shadow) !important;
  color: #3a5167 !important;
  background-color: #fff !important;
}

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background-color: #3a5167;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Offcanvas Sidebar Logic
=========================== */
.offcanvas {
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
}

.offcanvas.show {
  opacity: 1;
}

.offcanvas.offcanvas-end {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.offcanvas.offcanvas-end.show {
  transform: translateX(0);
  opacity: 1;
}

.offcanvas.offcanvas-end.hiding {
  transform: translateX(100%) !important;
  opacity: 0 !important;
}

.custom-offcanvas {
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  visibility: hidden;
}

.custom-offcanvas.showing,
.custom-offcanvas.show {
  transform: translateX(0);
  visibility: visible;
}

.custom-offcanvas.hiding {
  transform: translateX(100%);
}

.offcanvas-offset-top {
  margin-top: 70px;
  height: calc(100% - 70px);
}

#cartSidebar {
  top: 70px;
  height: calc(100% - 70px);
  border-left: 1px solid #ddd;
  z-index: 1055;
}

@media (max-width: 767px) {
  #cartSidebar {
    top: 100px;
    height: 86.5%;
  }
}

/* ===========================
   Contact Page
=========================== */
.icon-style {
  color: #2c3e50;
}

.text-header {
  color: #2c3e50 !important;
}

.card-body {
    background: #fff;
}