:root {
  --primary-color: #a88544;         
  --secondary-color: #c6ad6e;       
  --light-bg: #fafafa;              
  --border-color: #e6e6e6;          
  --text-color: #1a1a1a;            
  --text-light: #6a6a6a;            
  --white: #ffffff;                 
  --success-color: #008060;         
  --warning-color: #ffb400;         
  --error-color: #d82c0d;           
  --hover-color: #404040;           
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary-color);
  color: var(--white);
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--white);
  text-shadow: none;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background-color: var(--light-bg);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border: 3px solid var(--light-bg);
  border-radius: The border-radius should be 6px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color);
}

::-webkit-scrollbar-corner {
  background-color: var(--light-bg);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-bg);
}

@media (max-width: 767.98px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    border: 2px solid var(--light-bg);
  }
}

.thin-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
  border: 2px solid var(--light-bg);
}

.thin-scrollbar {
  scrollbar-width: thin;
}

.hidden-scrollbar::-webkit-scrollbar {
  display: none;
}

.hidden-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ecommerce-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ecommerce-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 8px 0; 

  background-color: var(--white);
  box-shadow: var(--shadow-sm);

  transition: background-color 0.3s ease, 
              backdrop-filter 0.3s ease, 
              -webkit-backdrop-filter 0.3s ease,
              padding 0.3s ease;
}

html {
  scroll-padding-top: 0.1px; 
}

@media (hover: hover) {
  .ecommerce-header:has(~ main:hover) {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 0; 
  }
}

@supports selector(:has(*)) {
  body:not(:has(main:first-child:hover:first-child)) .ecommerce-header {
    background-color: var(--white);
  }

  body:has(main:not(:hover:first-child:first-child)) .ecommerce-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 0;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .ecommerce-header:has(~ main:hover) {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

.ecommerce-header .navbar-brand {
  font-size: 1.3rem; 
}

.ecommerce-header .icon-btn {
  width: 36px; 
  height: 36px;
}

.ecommerce-header .cart-count {
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
}

.nav-drawer-dropdown {
  position: relative;
}

.dropdown-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nav-drawer-dropdown-toggle {
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-icon {
  transition: transform 0.3s ease;
  margin-right: auto;
  margin-left: 0;
  font-size: 0.85rem;
}

.dropdown-toggle:checked + .nav-drawer-dropdown-toggle .dropdown-icon {
  transform: rotate(-180deg);
}

.nav-drawer-dropdown-content {
  max-height: 0;
  overflow-y: auto; 
  transition: max-height 0.3s ease;
  opacity: 0.8;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.nav-drawer-dropdown-content::-webkit-scrollbar {
  display: none;
}

.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content {
  max-height: 60vh; 
  opacity: 1;
}

.nav-drawer-sublink {
  padding-right: 2rem;
  font-size: 0.95rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
}

.nav-drawer-sublink:hover {
  opacity: 1;
}

.nav-drawer-sublink .category-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 30px); 
}

.categories-wrapper {
  padding-bottom: 0.5rem;
}

.dropdown-toggle:checked + .nav-drawer-dropdown-toggle {
  background-color: rgba(92, 106, 196, 0.08);
  color: var(--primary-color);
}

.offcanvas-body {
  padding-top: 0.5rem;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.offcanvas-body::-webkit-scrollbar {
  display: none;
}

.nav-drawer-link {
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.nav-drawer-link:hover {
  padding-right: 1.25rem;
}

.nav-drawer-link:active {
  background-color: rgba(92, 106, 196, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content .nav-drawer-sublink {
  animation: fadeIn 0.3s ease forwards;
}

.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content .nav-drawer-sublink:nth-child(1) {
  animation-delay: 0.05s;
}
.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content .nav-drawer-sublink:nth-child(2) {
  animation-delay: 0.1s;
}
.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content .nav-drawer-sublink:nth-child(3) {
  animation-delay: 0.15s;
}
.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content .nav-drawer-sublink:nth-child(4) {
  animation-delay: 0.2s;
}
.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content .nav-drawer-sublink:nth-child(5) {
  animation-delay: 0.25s;
}
.dropdown-toggle:checked + .nav-drawer-dropdown-toggle + .nav-drawer-dropdown-content .nav-drawer-sublink:nth-child(n+6) {
  animation-delay: 0.3s;
}

.nav-drawer-dropdown-content::-webkit-scrollbar {
  width: 4px;
}

.nav-drawer-dropdown-content::-webkit-scrollbar-track {
  background: var(--light-bg);
}

.nav-drawer-dropdown-content::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

.nav-drawer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nav-drawer-dropdown {
  margin-bottom: 0.5rem;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-brand:hover {
  opacity: 0.9;
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--primary-color);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.offcanvas {
  width: 300px !important;
}

.offcanvas-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

.offcanvas-title {
  font-weight: 600;
  color: var(--text-color);
}

.nav-drawer-link {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.nav-drawer-link:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.nav-drawer-link i {
  margin-left: 0.75rem;
  font-size: 1.1rem;
}

.section-title-container {
  margin-bottom: 1.75rem;
  padding-bottom: 0;
  position: relative;
  display: inline-block;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0;
  position: relative;
  padding-bottom: 0.5rem;
  font-size: 1.75rem;
  color: var(--text-color);
  display: inline-block;
}

.section-title::after {
  display: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-section {
  margin-bottom: 4rem;
}

.product-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.product-original-price {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-price {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.sale-indicator {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  animation: pulse-sale 2s infinite;
}

.sale-indicator .sale-dot {
  width: 8px;
  height: 8px;
  background-color: var(--error-color);
  border-radius: 50%;
  margin-left: 0.5rem;
}

.sale-indicator .sale-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--error-color);
  text-transform: uppercase;
}

@keyframes pulse-sale {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-original-price {
  font-size: 1.25rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-final-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-savings {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--success-color);
  display: flex;
  align-items: center;
}

.price-savings i {
  margin-left: 0.5rem;
}

@keyframes price-update {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.price-update {
  animation: price-update 0.5s ease;
}

@media (max-width: 767.98px) {
  .product-original-price {
    font-size: 1.1rem;
  }

  .product-final-price {
    font-size: 1.5rem;
  }

}

.product-card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  background-color: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card-link {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.product-img-container {
  width: 100%;
  position: relative;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;

  aspect-ratio: 4/3;
}

.discount-badge-corner {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--error-color);
  color: white;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0 0.5rem 0 0.5rem;
  z-index: 2;
}

.product-card:hover .discount-badge-corner {
  background-color: var(--primary-color);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--light-bg);
  padding: 0.5rem;

  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-body {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-weight: 500;
  margin-bottom: 8px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-color);
  transition: var(--transition);
}

.product-card:hover .product-title {
  color: var(--primary-color);
}

.product-desc {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: center; 
  align-items: center;
  margin-top: auto;
  border-top: none;
  padding-top: 0;
  width: 100%; 
  text-align: center; 
}

.product-btn {
  display: none;
}

.product-btn:hover {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.view-all {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.view-all i {
  margin-right: 0.5rem;
  transition: var(--transition);
}

.view-all:hover {
  color: var(--secondary-color);
  background-color: rgba(92, 106, 196, 0.1);
}

.view-all:hover i {
  transform: translateX(-5px);
}

@media (max-width: 767.98px) {

  .product-card {
    margin-bottom: 0;
  }

  .product-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-img-container {
    margin-bottom: 8px;
  }

  .col.mb-4 {
    margin-bottom: 1rem !important;
  }

  .product-body {
    padding: 0.5rem 0;
  }
}

@media (max-width: 400px) {
  .product-title {
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 0.8rem;
  }

  .row.g-4 {
    --bs-gutter-x: 0.75rem;
  }
}

.ecommerce-footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 0; 
  position: relative;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(-3px);
}

.footer-bottom {

  padding: 1rem 0; 
  margin-top: 1.5rem; 

  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0;
  font-weight: 500;
}

.footer-bottom .copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.footer-bottom .made-by {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom .heart {
  color: var(--error-color);
  font-size: 1rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  5% { transform: scale(1.1); }
  10% { transform: scale(1); }
  15% { transform: scale(1.2); }
  20% { transform: scale(1); }
  100% { transform: scale(1); }
}

@media (max-width: 767.98px) {
  .ecommerce-footer {
    padding: 2rem 0 0;
  }

  .footer-col {
    margin-bottom: 1.5rem; 
  }

  .footer-title {
    margin-bottom: 1rem; 
  }

  .footer-bottom {
    margin-top: 1.5rem; 
    padding: 0.75rem 0;
  }

  .footer-bottom .copyright,
  .footer-bottom .made-by {
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .ecommerce-footer {
    padding: 1.5rem 0 0;
  }

  .footer-bottom {
    margin-top: 1rem;
    padding: 0.5rem 0;
  }

  .footer-bottom .copyright,
  .footer-bottom .made-by {
    font-size: 0.75rem;
  }
}

.social-links {
  display: flex;
  gap: 1.25rem;
  font-size: 1.35rem;
}

.social-links a {
  color: var(--text-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.social-links a:hover {
  color: var(--primary-color);
  background-color: var(--light-bg);
}

@media (max-width: 991.98px) {

  .section-title-container {
    width: 100%;
    text-align: center;
  }

  .section-title::after {
    right: 50%;
    transform: translateX(50%);
  }

  .section-header {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 2.5rem;
  }

  .view-all {
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.5rem;
  }

  .product-card {
    margin-bottom: 1.5rem;
  }

  .product-img {
    height: 180px;
  }

  .product-body {
    padding: 1.25rem;
  }

  .footer-title {
    margin-bottom: 1.25rem;
  }

  .ecommerce-footer {
    padding: 3rem 0 1rem;
  }
}

@media (max-width: 575.98px) {

  .product-title {
    font-size: 1.05rem;
  }

  .product-price {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .product-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.product-gallery {
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.product-carousel {
  background-color: var(--light-bg);
}

.product-main-image {
  height: 400px;
  object-fit: contain;
  padding: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 1rem;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.thumbnail-gallery {
  padding: 0 0.5rem;
}

.thumbnail-wrapper {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: var(--transition);
  height: 80px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
}

.thumbnail-wrapper.active {
  border-color: var(--primary-color);
}

.thumbnail-wrapper img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}

.no-image-placeholder {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  color: var(--text-light);
  border-radius: 0.5rem;
}

.no-image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-details-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
}

.product-info {
  padding: 0 1rem;
}

.product-detail-title {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--text-color);
}

.product-category {
  margin-bottom: 1.5rem;
}

.product-detail-price-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
  margin-left: 1rem;
}

.product-description {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

.product-options {
  margin-bottom: 2rem;
}

.option-group {
  margin-bottom: 1.5rem;
}

.option-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-option {
  position: relative;
}

.color-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.color-text-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: var(--white);
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.color-option.active .color-text-btn {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
}

.size-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.size-option {
  position: relative;
}

.size-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.size-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: var(--white);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.size-option.active .size-label {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
}

.quantity-selector {
  display: flex;
  align-items: center;

  max-width: 140px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-color);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-btn.decrease {
  border-radius: 0 0.375rem 0.375rem 0; 
}

.quantity-btn.increase {
  border-radius: 0.375rem 0 0 0.375rem; 
}

.quantity-btn:hover {
  background-color: var(--light-bg);
}

.quantity-input {
  flex: 1;
  height: 40px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-left: none;
  text-align: center;
  font-weight: 500;
  color: var(--text-color);
  padding: 0;
}

.quantity-input:focus {
  outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type=number] {
  -moz-appearance: textfield;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-add-to-cart {
  flex: 1;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn-add-to-cart:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-share {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  color: var(--text-color);
  border: none;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-share:hover {
  background-color: #35b711aa;
  color: #ffffff;
}

.breadcrumb {
  background-color: transparent;
  padding: 0.75rem 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--text-light);
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

@media (max-width: 991.98px) {
  .product-details-card {
    padding: 1.5rem;
  }

  .product-detail-title {
    font-size: 1.75rem;
  }

  .product-detail-price {
    font-size: 1.75rem;
  }

  .product-main-image {
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  .product-detail-title {
    font-size: 1.5rem;
  }

  .product-main-image {
    height: 300px;
  }

  .product-info {
    padding: 0;
  }

  .product-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-share {
    width: 100%;
  }

  .thumbnail-wrapper {
    height: 60px;
  }
}

@media (max-width: 575.98px) {
  .product-details-card {
    padding: 1rem;
  }

  .product-gallery {
    margin-bottom: 1rem;
  }

  .product-detail-title {
    font-size: 1.25rem;
  }

  .product-detail-price {
    font-size: 1.5rem;
  }

  .product-main-image {
    height: 250px;
  }

  .thumbnail-wrapper {
    height: 50px;
  }

  .color-label {
    width: 28px;
    height: 28px;
  }

  .size-label {
    min-width: 40px;
    height: 36px;
    font-size: 0.9rem;
  }
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  margin: 2rem 0;
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.empty-state-text {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

    .page-title {
      font-weight: 700;
      margin-bottom: 1.75rem;
      font-size: 1.75rem;
      position: relative;
      padding-bottom: 0.5rem;
      display: inline-block;
    }

    .page-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 40px;
      height: 4px;
      background-color: var(--primary-color);
      border-radius: 2px;
      transition: var(--transition);
    }

    .page-title:hover::after {
      width: 100%;
    }

    .cart-container {
      margin-bottom: 3rem;
    }

.cart-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background-color: var(--light-bg);
}

.mobile-remove-btn {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 5;
}

.cart-item-image-container {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--light-bg);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.cart-item:hover .cart-item-image-container {
  border-color: var(--primary-color);
}

.cart-item-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 0.25rem;
  transition: var(--transition);
}

.cart-item:hover .cart-item-image {
  transform: scale(1.05);
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--text-color);
}

.cart-item-meta {
  margin-bottom: 0.5rem;
}

.cart-item-color, .cart-item-size {
  font-size: 0.85rem;
  color: var(--text-light);
  display: inline-block;
}

.mobile-price {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  max-width: 110px;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.quantity-btn {
  width: 32px;
  height: 32px;
  background-color: var(--white);
  border: none;
  color: var(--text-color);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.quantity-input {
  width: 40px;
  height: 32px;
  border: none;
  border-right: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  text-align: center;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.9rem;
  -moz-appearance: textfield; 
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-total {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.cart-item-original-price {
  font-size: 0.9rem;
}

.btn-remove-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.btn-remove-item:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border-color: var(--error-color);
}

@media (max-width: 767.98px) {
  .cart-item {
    padding: 1rem 0.75rem 0.75rem;
    margin-bottom: 0.5rem;
  }

  .cart-item-name {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    padding-left: 1.5rem; 
  }

  .cart-item-meta {
    margin-bottom: 0.5rem;
  }

  .mobile-price {
    margin-bottom: 0.75rem;
  }

  .quantity-control-container {
    margin-bottom: 0.75rem;
  }

  .quantity-control {
    max-width: 100px;
  }

  .quantity-btn {
    width: 30px;
    height: 30px;
  }

  .quantity-input {
    width: 36px;
    height: 30px;
    font-size: 0.85rem;
  }

  .cart-item-total {
    font-size: 0.95rem;
  }

  .cart-item-original-price {
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .cart-item {
    padding: 1rem 0.5rem 0.75rem;
  }

  .cart-item-image-container {
    max-width: 70px;
  }

  .cart-item-meta p {
    font-size: 0.75rem;
  }

  .btn-remove-item {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

    .cart-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn-continue-shopping, .btn-clear-cart {
      display: inline-flex;
      align-items: center;
      padding: 0.75rem 1.25rem;
      border-radius: 0.375rem;
      font-weight: 500;
      font-size: 0.95rem;
      transition: var(--transition);
      background-color: var(--white);
      border: 1px solid var(--border-color);
      color: var(--text-color);
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      text-decoration: none;
    }

    .btn-continue-shopping {
      color: var(--primary-color);
    }

    .btn-continue-shopping:hover {
      background-color: var(--primary-color);
      color: var(--white);
      border-color: var(--primary-color);
      transform: translateY(-2px);
    }

    .btn-clear-cart:hover {
      background-color: rgba(239, 68, 68, 0.1);
      color: var(--error-color);
      border-color: var(--error-color);
      transform: translateY(-2px);
    }

    .btn-continue-shopping i, .btn-clear-cart i {
      margin-left: 8px;
    }

    .cart-summary {
      background-color: var(--white);
      border-radius: 0.75rem;
      box-shadow: var(--shadow-sm);
      padding: 1.75rem;
      position: sticky;
      top: 90px;
    }

    .cart-summary-title {
      font-weight: 600;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border-color);
      font-size: 1.2rem;
    }

    .cart-summary-items {
      margin-bottom: 1.25rem;
    }

    .summary-line {
      display: flex;
      justify-content: space-between;
      margin-bottom: 1rem;
      color: var(--text-light);
      font-size: 0.95rem;
    }

    .summary-line.total {
      color: var(--text-color);
      font-weight: 700;
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
    }

    .cart-summary-total {
      padding: 1rem 0;
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 1.5rem;
    }

    .btn-checkout {
      background-color: var(--primary-color);
      color: var(--white);
      border: none;
      width: 100%;
      padding: 0.875rem;
      border-radius: 0.5rem;
      font-weight: 600;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
      text-decoration: none;
    }

    .btn-checkout:hover:not(.disabled) {
      background-color: var(--secondary-color);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .btn-checkout.disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }

    .empty-cart {
      background-color: var(--white);
      border-radius: 0.75rem;
      box-shadow: var(--shadow-sm);
      text-align: center;
      padding: 4rem 1rem;
      margin: 2rem 0;
    }

    .empty-cart-icon {
      font-size: 4.5rem;
      color: var(--text-light);
      margin-bottom: 1.5rem;
      opacity: 0.6;
    }

    .empty-cart h2 {
      font-weight: 700;
      margin-bottom: 1rem;
      color: var(--text-color);
    }

    .empty-cart p {
      color: var(--text-light);
      max-width: 500px;
      margin: 0 auto 2rem;
      font-size: 1.05rem;
    }

    @media (max-width: 991.98px) {
      .cart-summary {
        margin-top: 2rem;
        position: static;
      }
    }

    @media (max-width: 991.98px) {
      .cart-item {
        padding: 1.5rem;
      }

      .quantity-control-container {
        justify-content: flex-start;
        margin-top: 1rem;
      }

      .cart-item-total-container {
        justify-content: flex-start;
        margin-top: 1rem;
      }

      .remove-item-container {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
      }
    }

    @media (max-width: 767.98px) {
      .cart-item {
        padding: 1.25rem;
      }

      .cart-item-image-container {
        max-width: 120px;
        margin: 0 auto 1rem;
      }

      .cart-item-name {
        font-size: 1.05rem;
      }

      .cart-item-details {
        text-align: center;
        margin-bottom: 1rem;
      }

      .cart-item-meta {
        justify-content: right;
      }

      .cart-item-color, .cart-item-size {
        justify-content: center;
      }

      .quantity-control-container {
        justify-content: center;
      }

      .cart-item-total-container {
        justify-content: center;
        margin-top: 1.25rem;
      }

      .cart-actions {
        justify-content: center;
      }

      .remove-item-container {
        position: absolute;
        top: 1.25rem;
        left: 1.25rem;
      }
    }

    @media (max-width: 575.98px) {
      .page-title {
        font-size: 1.5rem;
      }

      .cart-summary {
        padding: 1.25rem;
      }

      .cart-item {
        padding: 1.25rem 1rem;
      }

      .cart-item-image-container {
        max-width: 100px;
      }

      .cart-item-name {
        font-size: 1rem;
      }

      .remove-item-container {
        top: 1rem;
        left: 1rem;
      }

      .quantity-control {
        max-width: 110px;
      }

      .quantity-btn {
        width: 32px;
        height: 32px;
      }

      .quantity-input {
        width: 36px;
        height: 32px;
      }
    }

@media (max-width: 767.98px) {

  .row-cols-1.row-cols-md-2.row-cols-lg-4 {
    display: flex;
    flex-wrap: wrap;
  }

  .row-cols-1.row-cols-md-2.row-cols-lg-4 > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .product-img-container {
    margin-bottom: 8px;
  }

  .product-title {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }

  .product-price {
    font-size: 0.85rem;
  }

  .col.mb-4 {
    margin-bottom: 0.75rem !important;
  }
}

.promo-banner {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20%, 100% {
    left: 100%;
  }
}

.promo-banner .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.promo-banner i {
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.promo-banner a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.2s ease;
}

.promo-banner a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.promo-highlight {
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  margin: 0 0.25rem;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .promo-banner {
    padding: 0.6rem 0;
    font-size: 0.85rem;
  }

  .promo-highlight {
    padding: 0.15rem 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .promo-banner {
    padding: 0.5rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .promo-banner .container {
    flex-direction: column;
    gap: 0.2rem;
  }

  .promo-highlight {
    padding: 0.1rem 0.4rem;
    margin: 0 0.15rem;
  }
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  padding: 0 0.5rem;
}

.checkout-step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(50% + 1.5rem);
  right: calc(50% - 1.5rem);
  height: 2px;
  background-color: #e9ecef;
  z-index: 1;
}

.checkout-step.active:not(:last-child):after,
.checkout-step.completed:not(:last-child):after {
  background-color: #28a745;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
  z-index: 2;
}

.checkout-step.active .step-number {
  background-color: #007bff;
  color: #fff;
}

.checkout-step.completed .step-number {
  background-color: #28a745;
  color: #fff;
}

.step-title {
  font-size: 0.9rem;
  text-align: center;
}

.checkout-section {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.section-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
  font-size: 1.5rem;
}

.existing-addresses {
  margin-bottom: 1.5rem;
}

.address-card {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.checkout-sidebar {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  position: sticky;
  top: 1rem;
}

.cart-summary {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.cart-items-summary {
  margin-top: 1.5rem;
}

.cart-mini-item {
  display: flex;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.cart-mini-item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: bold;
}

.item-meta {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.item-qty-price {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.coupon-section {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
}

.applied-coupon-info {
  display: flex;
  align-items: center;
  background-color: #d1e7dd;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.applied-coupon-info span {
  margin-left: 0.5rem;
}

.order-summary {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-row.total {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.summary-row.discount {
  color: #dc3545;
}

.confirmation-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.confirmation-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.confirmation-title i {
  margin-left: 0.5rem;
}

.confirmation-content {
  padding: 0 1rem;
}

.confirmation-detail {
  margin-bottom: 0.5rem;
}

.confirmation-items {
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
}

.confirmation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.confirmation-item:last-child {
  border-bottom: none;
}

.item-quantity {
  color: #6c757d;
  font-size: 0.9rem;
}

.item-total {
  font-weight: bold;
}

.order-success-container {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.order-success-icon {
  font-size: 4rem;
}

.order-number {
  font-family: monospace;
  font-size: 1.2rem;
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.order-info {
  max-width: 400px;
  margin: 0 auto;
}

.order-notes {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

@media (max-width: 768px) {
  .checkout-steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-step {
    width: 100%;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1rem;
  }

  .checkout-step:not(:last-child):after {
    display: none;
  }

  .step-number {
    margin-bottom: 0;
    margin-left: 1rem;
  }

  .step-title {
    text-align: right;
  }
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.checkout-step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(50% + 1.5rem);
  right: calc(50% - 1.5rem);
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
  border-radius: 1.5px;
  transition: background-color 0.3s ease;
}

.checkout-step.active:not(:last-child):after,
.checkout-step.completed:not(:last-child):after {
  background-color: var(--primary-color);
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--light-bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
  z-index: 2;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.checkout-step.active .step-number {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.checkout-step.completed .step-number {
  background-color: var(--success-color);
  color: var(--white);
  border-color: var(--success-color);
}

.step-title {
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.checkout-step.active .step-title {
  color: var(--primary-color);
  font-weight: 600;
}

.checkout-step.completed .step-title {
  color: var(--success-color);
}

.checkout-section {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.checkout-section:hover {
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
  transition: width 0.3s ease;
}

.checkout-section:hover .section-title::after {
  width: 100px;
}

.existing-addresses {
  margin-bottom: 2rem;
}

.existing-addresses h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.form-check {
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  cursor: pointer;
  position: relative;
  border: 2px solid var(--border-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  padding-right: 0.5rem;
  cursor: pointer;
  display: block;
  width: 100%;
}

.address-card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  background-color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
}

.form-check:hover .address-card {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-check-input:checked + .form-check-label .address-card {
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.address-details {
  line-height: 1.5;
}

.address-details strong {
  font-size: 1.05rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.25rem;
}

.address-details div {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.address-details .text-muted {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color) !important;
}

#newAddressForm, #addressForm {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

#newAddressForm:hover, #addressForm:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.form-label .text-danger {
  font-weight: 700;
}

.form-select, .form-control {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-select:focus, .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  outline: none;
}

.form-select option {
  padding: 0.5rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn {
  border-radius: 0.375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.btn-outline-secondary {
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-color);
}

.btn-outline-secondary:hover {
  background-color: var(--light-bg);
  border-color: var(--text-color);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.checkout-sidebar {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  transition: all 0.3s ease;
}

.checkout-sidebar:hover {
  box-shadow: var(--shadow-md);
}

.checkout-sidebar h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.cart-summary {
  margin-bottom: 1.5rem;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.cart-summary p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.cart-items-summary {
  margin-top: 1.5rem;
  position: relative;
}

.cart-items-summary h4 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.cart-mini-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-mini-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.item-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.item-meta span {
  display: inline-block;
  margin-left: 0.5rem;
}

.item-meta span:first-child {
  margin-left: 0;
}

.item-qty-price {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .checkout-sidebar {
    position: static;
    margin-top: 2rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .checkout-steps {
    flex-direction: column;
    gap: 1rem;
    margin-left: 1rem;
  }

  .checkout-step {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }

  .checkout-step:not(:last-child):after {
    display: none;
  }

  .step-number {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 1rem;
  }

  .step-title {
    text-align: right;
  }

  .checkout-section, .checkout-sidebar {
    padding: 1.5rem;
  }

  .section-title, .checkout-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  #newAddressForm, #addressForm {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .checkout-steps {
    margin-left: 0.5rem;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .checkout-section, .checkout-sidebar {
    padding: 1.25rem;
    border-radius: 0.5rem;
  }

  #newAddressForm, #addressForm {
    padding: 1rem;
  }

  .section-title, .checkout-sidebar h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .address-card {
    padding: 1rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
  }
}

.shipping-options {
  margin-top: 2rem;
}

.shipping-option {
  position: relative;
  margin-bottom: 1rem;
}

.shipping-option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shipping-option-label {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shipping-option-label:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.shipping-option-input:checked + .shipping-option-label {
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.shipping-option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipping-option-details {
  flex: 1;
}

.shipping-option-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.25rem;
}

.shipping-option-description {
  color: var(--text-light);
  font-size: 0.9rem;
}

.shipping-option-duration {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.shipping-option-duration i {
  margin-left: 0.5rem;
}

.shipping-option-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

@keyframes shakeField {
  0%, 100% {transform: translateX(0);}
  25% {transform: translateX(-5px);}
  75% {transform: translateX(5px);}
}

.form-field-error {
  animation: shakeField 0.4s ease;
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 3px rgba(216, 44, 13, 0.1) !important;
}

.field-error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.field-error-message i {
  margin-left: 0.5rem;
}

@keyframes successPulse {
  0% {transform: scale(1);}
  50% {transform: scale(1.05);}
  100% {transform: scale(1);}
}

.field-success {
  border-color: var(--success-color) !important;
  animation: successPulse 0.5s ease;
}

.saved-address-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 128, 96, 0.1);
  color: var(--success-color);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
}

.saved-address-badge i {
  margin-left: 0.5rem;
  font-size: 0.7rem;
}

.default-address-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(92, 106, 196, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
}

.default-address-badge i {
  margin-left: 0.5rem;
  font-size: 0.7rem;
}

.save-address-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.save-address-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
}

.save-address-checkbox {
  margin-left: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
}

.form-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {transform: rotate(360deg);}
}

.btn-submitting {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn-submitting .form-loader {
  display: inline-block;
}

.btn-submitting .btn-text {
  opacity: 0.8;
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.checkout-step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(50% + 1.5rem);
  right: calc(50% - 1.5rem);
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
  border-radius: 1.5px;
  transition: background-color 0.3s ease;
}

.checkout-step.active:not(:last-child):after,
.checkout-step.completed:not(:last-child):after {
  background-color: var(--primary-color);
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--light-bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
  z-index: 2;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.checkout-step.active .step-number {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.step-title {
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.checkout-step.active .step-title {
  color: var(--primary-color);
  font-weight: 600;
}

.checkout-section {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.checkout-section:hover {
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
  transition: width 0.3s ease;
}

.checkout-section:hover .section-title::after {
  width: 100px;
}

.existing-addresses {
  margin-bottom: 2rem;
}

.existing-addresses h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.form-check {
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  cursor: pointer;
  position: relative;
  border: 2px solid var(--border-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  padding-right: 0.5rem;
  cursor: pointer;
  display: block;
  width: 100%;
}

.address-card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  background-color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
}

.form-check:hover .address-card {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-check-input:checked + .form-check-label .address-card {
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.address-details {
  line-height: 1.5;
}

.address-details strong {
  font-size: 1.05rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.25rem;
}

.address-details div {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.address-details .text-muted {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color) !important;
}

#newAddressForm, #addressForm {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

#newAddressForm:hover, #addressForm:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.form-label .text-danger {
  font-weight: 700;
}

.form-select, .form-control {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-select:focus, .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  outline: none;
}

.form-select option {
  padding: 0.5rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn {
  border-radius: 0.375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.btn-outline-secondary {
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-color);
}

.btn-outline-secondary:hover {
  background-color: var(--light-bg);
  border-color: var(--text-color);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.checkout-sidebar {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  transition: all 0.3s ease;
}

.checkout-sidebar:hover {
  box-shadow: var(--shadow-md);
}

.checkout-sidebar h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.cart-summary {
  margin-bottom: 1.5rem;
}

.cart-summary p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.cart-summary p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.cart-items-summary {
  margin-top: 1.5rem;
  position: relative;
}

.cart-items-summary h4 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.cart-mini-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-mini-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.item-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.item-meta span {
  display: inline-block;
  margin-left: 0.5rem;
}

.item-meta span:first-child {
  margin-left: 0;
}

.item-qty-price {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.alert-danger {
  background-color: rgba(216, 44, 13, 0.1);
  border: 1px solid rgba(216, 44, 13, 0.2);
  color: var(--error-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .checkout-sidebar {
    position: static;
    margin-top: 2rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .checkout-steps {
    flex-direction: column;
    gap: 1rem;
    margin-left: 1rem;
  }

  .checkout-step {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }

  .checkout-step:not(:last-child):after {
    display: none;
  }

  .step-number {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 1rem;
  }

  .step-title {
    text-align: right;
  }

  .checkout-section, .checkout-sidebar {
    padding: 1.5rem;
  }

  .section-title, .checkout-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  #newAddressForm, #addressForm {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .checkout-steps {
    margin-left: 0.5rem;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .checkout-section, .checkout-sidebar {
    padding: 1.25rem;
    border-radius: 0.5rem;
  }

  #newAddressForm, #addressForm {
    padding: 1rem;
  }

  .section-title, .checkout-sidebar h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .address-card {
    padding: 1rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.95rem;
  }
}

.checkout-step.completed .step-number {
  background-color: var(--success-color);
  color: var(--white);
  border-color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-step.completed .step-number i {
  font-size: 1.2rem;
}

.checkout-step.completed .step-title {
  color: var(--success-color);
}

.form-text {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.coupon-section {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.coupon-section:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.coupon-section h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.input-group {
  position: relative;
}

.input-group .form-control {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.btn-outline-primary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: var(--white);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.applied-coupon-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 128, 96, 0.1);
  color: var(--success-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.btn-sm.btn-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--error-color);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm.btn-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.alert {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.alert-danger {
  background-color: rgba(216, 44, 13, 0.1);
  border: 1px solid rgba(216, 44, 13, 0.2);
  color: var(--error-color);
}

.alert-success {
  background-color: rgba(0, 128, 96, 0.1);
  border: 1px solid rgba(0, 128, 96, 0.2);
  color: var(--success-color);
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.address-summary {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.address-summary h4 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.address-summary p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.address-summary strong {
  color: var(--text-color);
  font-weight: 600;
}

.order-summary {
  background-color: var(--light-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.summary-row.discount {
  color: var(--error-color);
}

@keyframes pulse-price {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.price-update {
  animation: pulse-price 0.5s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05);
}

.form-control.is-valid {
  border-color: var(--success-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
  border-color: var(--error-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--error-color);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

@media (max-width: 991.98px) {
  .order-summary {
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .coupon-section {
    padding: 1.25rem;
  }

  .applied-coupon-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-sm.btn-link {
    align-self: flex-end;
  }
}

@media (max-width: 575.98px) {
  .coupon-section {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .coupon-section h3 {
    font-size: 1rem;
  }

  .btn-outline-primary {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .applied-coupon-info {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .order-summary {
    padding: 0.75rem;
  }

  .summary-row {
    font-size: 0.9rem;
  }

  .summary-row.total {
    font-size: 1rem;
  }
}

.confirmation-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.confirmation-section:last-of-type {
  border-bottom: none;
}

.confirmation-title {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  position: relative;
}

.confirmation-title i {
  margin-left: 0.75rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.confirmation-content {
  padding: 0 1rem;
}

.confirmation-detail {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
}

.confirmation-detail:last-child {
  margin-bottom: 0;
}

.confirmation-detail strong {
  font-weight: 600;
  color: var(--text-color);
  min-width: 120px;
  margin-left: 0.5rem;
}

.confirmation-items {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.confirmation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.confirmation-item:last-child {
  border-bottom: none;
}

.confirmation-item:hover {
  background-color: var(--light-bg);
}

.confirmation-item .item-info {
  flex: 1;
}

.confirmation-item .item-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.confirmation-item .item-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.confirmation-item .item-quantity {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 1.5rem;
  white-space: nowrap;
}

.confirmation-item .item-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
  white-space: nowrap;
}

.btn-success {
  background-color: var(--success-color);
  border: none;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-success:hover {
  background-color: #00694d; 
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-success i {
  font-size: 1.1rem;
}

.order-summary-total {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background-color: var(--light-bg);
  border-radius: 0.5rem;
}

.applied-coupon {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--success-color);
  font-weight: 500;
  border-top: 1px dashed rgba(0, 128, 96, 0.2);
  margin-top: 0.5rem;
}

.order-notes {
  background-color: rgba(255, 180, 0, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #856404; 
  border-right: 3px solid var(--warning-color);
}

.order-notes p {
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1rem;
}

.order-notes p:last-child {
  margin-bottom: 0;
}

.order-notes p::before {
  content: "*";
  position: absolute;
  right: 0;
  top: 0;
}

.checkout-section:hover .section-title::after {
  width: 100px;
}

.confirmation-section:hover .confirmation-title i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.confirmation-items:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .confirmation-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .confirmation-item .item-info {
    margin-bottom: 0.75rem;
    width: 100%;
  }

  .confirmation-item .item-meta {
    margin-bottom: 0.5rem;
  }

  .confirmation-item .item-quantity {
    margin: 0 0 0.5rem 0;
  }

  .confirmation-item .item-total {
    align-self: flex-end;
  }

  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .confirmation-title {
    font-size: 1.1rem;
  }

  .confirmation-detail strong {
    min-width: 100px;
  }

  .confirmation-item {
    padding: 1rem;
  }

  .order-summary-total {
    padding: 1rem;
  }

  .order-notes {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .confirmation-title {
    font-size: 1rem;
  }

  .confirmation-title i {
    font-size: 1.1rem;
    margin-left: 0.5rem;
  }

  .confirmation-content {
    padding: 0 0.5rem;
  }

  .confirmation-detail {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .confirmation-detail strong {
    min-width: 90px;
  }

  .confirmation-item .item-name {
    font-size: 0.95rem;
  }

  .confirmation-item .item-meta {
    font-size: 0.8rem;
  }

  .confirmation-item .item-quantity,
  .confirmation-item .item-total {
    font-size: 0.9rem;
  }

  .order-summary-total {
    padding: 0.75rem;
  }

  .summary-row {
    font-size: 0.9rem;
  }

  .summary-row.total {
    font-size: 1rem;
  }
}

.order-success-container {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0 4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.order-success-container:hover {
  box-shadow: var(--shadow-md);
}

.order-success-icon {
  font-size: 4.5rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.order-success-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 128, 96, 0.1) 0%, rgba(0, 128, 96, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

.order-success-container h1 {
  font-weight: 700;
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.order-success-container h1::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--success-color);
  border-radius: 1.5px;
}

.order-info {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0.75rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  border: 1px solid var(--border-color);
}

.order-info p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-light);
}

.order-info p:last-child {
  margin-bottom: 0;
}

.order-info strong {
  color: var(--text-color);
  font-weight: 600;
}

.order-number {
  font-family: monospace;
  font-size: 1.1rem;
  background-color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-color);
  letter-spacing: 1px;
}

.badge {
  padding: 0.4em 0.6em;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0.25rem;
  display: inline-block;
}

.bg-warning {
  background-color: var(--warning-color) !important;
  color: var(--white);
}

.order-next-steps {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--border-color);
  position: relative;
}

.order-next-steps::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 20px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.6);
  border-top: 1px dashed var(--border-color);
  border-right: 1px dashed var(--border-color);
  transform: rotate(-45deg);
}

.order-next-steps p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.order-next-steps p:last-child {
  margin-bottom: 0;
}

.actions {
  margin-top: 2rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--light-bg);
  border-color: var(--text-color);
  transform: translateY(-2px);
}

.order-success-container::before,
.order-success-container::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.1;
}

.order-success-container::before {
  top: -50px;
  right: -50px;
  background: radial-gradient(circle, var(--success-color) 0%, transparent 70%);
}

.order-success-container::after {
  bottom: -50px;
  left: -50px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

@media (max-width: 991.98px) {
  .order-success-container {
    padding: 2.5rem 1.5rem;
  }

  .order-success-icon {
    font-size: 4rem;
  }

  .order-success-container h1 {
    font-size: 1.75rem;
  }

  .order-info {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .order-success-container {
    padding: 2rem 1.25rem;
    margin: 1.5rem 0 3rem;
  }

  .order-success-icon {
    font-size: 3.5rem;
  }

  .order-success-container h1 {
    font-size: 1.5rem;
  }

  .order-info {
    padding: 1rem;
  }

  .order-info p {
    font-size: 1rem;
  }

  .order-next-steps {
    padding: 1.25rem;
  }

  .actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    margin-left: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .order-success-container {
    padding: 1.75rem 1rem;
    margin: 1rem 0 2.5rem;
  }

  .order-success-icon {
    font-size: 3rem;
  }

  .order-success-container h1 {
    font-size: 1.35rem;
  }

  .order-info {
    padding: 1rem;
  }

  .order-info p {
    font-size: 0.95rem;
  }

  .order-number {
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
  }

  .order-next-steps {
    padding: 1rem;
  }

  .order-next-steps p {
    font-size: 0.9rem;
  }
}

@media print {
  .breadcrumb {
    display: none !important;
  }

  .order-success-container {
    box-shadow: none !important;
    border: 1px solid #ddd;
    padding: 2rem 1rem;
  }

  .order-success-container::before,
  .order-success-container::after {
    display: none;
  }

  .order-success-icon::after {
    display: none;
  }

  .order-info {
    border: 1px solid #ddd;
    background-color: transparent;
  }

  .order-number {
    border: 1px solid #ddd;
    background-color: transparent;
  }

  .order-next-steps {
    border: 1px dashed #ddd;
    background-color: transparent;
  }

  .actions {
    display: none !important;
  }

  .order-success-container::after {
    content: "تاريخ الطباعة: " attr(data-print-date);
    display: block;
    position: static;
    background: none;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
    color: #666;
    opacity: 1;
  }
}

.btn-primary,
.btn.btn-primary {
  background-color: var(--primary-color) !important;
  border: none !important;
  color: var(--white) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.3s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:active,
.btn.btn-primary:active,
.btn-primary:focus,
.btn.btn-primary:focus {
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
  border: none !important;
}

.btn-outline-secondary,
.btn.btn-outline-secondary {
  border: 1px solid var(--border-color) !important;
  background-color: var(--white) !important;
  color: var(--text-color) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.3s ease !important;
}

.btn-outline-secondary:hover,
.btn.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn.btn-outline-secondary:active,
.btn-outline-secondary:focus,
.btn.btn-outline-secondary:focus {
  background-color: var(--light-bg) !important;
  border-color: var(--text-color) !important;
  transform: translateY(-2px) !important;
  color: var(--text-color) !important;
}

.btn:focus-visible,
.btn.btn-primary:focus-visible,
.btn.btn-outline-secondary:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25) !important;
}

.btn:focus,
.btn.btn-primary:focus,
.btn.btn-outline-secondary:focus {
  box-shadow: none !important;
}

.modal-header {
  border-bottom: 1px solid #f5f5f5;
}

.modal-title {
  font-weight: 700;
  color: #333;
}

.modal .form-control {
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  height: 45px;
}

.modal .btn-primary {
  border-radius: 0 20px 20px 0;
  padding: 10px 20px;
  height: 45px;
  font-weight: 600;
}

.icon-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 20px;
  padding: 5px;
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.pagination {
  margin-bottom: 2rem;
}

.pagination .page-link {
  color: #5C6BC0;
  border-color: #e0e0e0;
  font-size: 14px;
  padding: 0.5rem 0.75rem;
}

.pagination .page-item.active .page-link {
  background-color: #5C6BC0;
  border-color: #5C6BC0;
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: #c0c0c0;
}

.search-results-info {
  background-color: #f9f9f9;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.search-results-info p {
  margin-bottom: 0;
}

#cartOffcanvas {
  max-width: 350px;
}

.cart-offcanvas-items {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  margin-bottom: 1rem;
  scrollbar-width: thin;
  -ms-overflow-style: none;
}

.cart-offcanvas-items::-webkit-scrollbar {
  width: 4px;
}

.cart-offcanvas-items::-webkit-scrollbar-track {
  background: var(--light-bg);
}

.cart-offcanvas-items::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.cart-offcanvas-item {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.cart-offcanvas-item:hover {
  background-color: var(--light-bg);
}

.cart-offcanvas-item:last-child {
  border-bottom: none;
}

.cart-offcanvas-item .cart-item-image-container {
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 0.375rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
}

.cart-offcanvas-item .cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.cart-offcanvas-item .cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-offcanvas-item .cart-item-meta {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.cart-offcanvas-item .cart-item-quantity {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-offcanvas-item .cart-item-price {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.cart-offcanvas-summary {
  padding: 1rem;
  background-color: var(--light-bg);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.cart-offcanvas-summary .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-color);
}

.cart-offcanvas-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-view-cart {
  padding: 0.75rem 1rem;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-cart:hover {
  background-color: var(--light-bg);
  transform: translateY(-2px);
}

.btn-checkout-offcanvas {
  padding: 0.75rem 1rem;
  text-align: center;
  background-color: var(--primary-color);
  border-radius: 0.5rem;
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-checkout-offcanvas:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.empty-cart-offcanvas {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-cart-offcanvas .empty-cart-icon {
  font-size: 3rem;
  color: var(--text-light);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.empty-cart-offcanvas h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-cart-offcanvas p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.btn-continue-shopping-offcanvas {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  gap: 0.5rem;
}

.btn-continue-shopping-offcanvas:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  #cartOffcanvas {
    max-width: 300px;
  }

  .cart-offcanvas-item {
    padding: 0.5rem;
  }

  .cart-offcanvas-item .cart-item-name {
    font-size: 0.9rem;
  }

  .cart-offcanvas-actions {
    gap: 0.5rem;
  }

  .btn-view-cart,
  .btn-checkout-offcanvas {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

.product-badges {
  display: flex;
  align-items: right;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--error-color);
  color: var(--white);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.discount-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.discount-badge i {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stock-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stock-badge i {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.stock-badge.in-stock {
  background-color: var(--success-color);
  color: var(--white);
}

.stock-badge.out-of-stock {
  background-color: var(--error-color);
  color: var(--white);
}

.stock-badge.stock-in-sizes {
  background-color: var(--warning-color);
  color: var(--white);
}

.size-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 10px;
  margin-right: 0.5rem;
  padding: 0 0.4rem;
}

.size-stock-badge.in-stock {
  background-color: var(--success-color);
  color: var(--white);
}

.size-stock-badge.out-of-stock {
  background-color: var(--error-color);
  color: var(--white);
}

.product-title-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .product-badges {
    margin-bottom: 0.75rem;
  }

  .discount-badge, .stock-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
}

@media (max-width: 767.98px) {
  .product-badges {
    margin-bottom: 0.5rem;
  }

  .discount-badge, .stock-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }

  .discount-badge i, .stock-badge i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
  }

  .size-stock-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
}

@media (max-width: 575.98px) {
  .product-title-container {
    text-align: right;
  }

  .product-badges {
    justify-content: right;
  }
}

.toast-container {
  z-index: 1100;
}

.toast {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-body {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-add-to-cart:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.65;
}

.category-scroll-section {
  position: relative;
  margin-bottom: 3rem;
}

.category-scroll-container {
  display: flex;
  overflow-x: auto;
  padding: 0.75rem 0.25rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;  
  -ms-overflow-style: none;  
  gap: 1rem;
  margin: 0 -0.25rem;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;  
}

.category-card-wrapper {
  flex: 0 0 auto;
  width: 160px;
  transition: transform 0.3s ease;
}

.category-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-image {
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-title {
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.category-card-wrapper {
  flex: 0 0 auto;
  width: 120px; 
  transition: transform 0.3s ease;
}

.category-image {
  height: 120px; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  padding: 8px; 
  transition: transform 0.5s ease;
}

.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.no-image-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
  .category-card-wrapper {
    width: 110px; 
  }

  .category-image {
    height: 110px;
  }

  .category-title {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}

@media (max-width: 575.98px) {
  .category-card-wrapper {
    width: 100px; 
  }

  .category-image {
    height: 100px;
  }

  .category-title {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}

.allcategory-card {
  border: 1px solid var(--border-color);
  transition: var(--transition);
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.allcategory-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-image-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.category-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.allcategory-card:hover .category-image-container img {
  transform: scale(1.1);
}

.category-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.1rem;
  text-align: center;
  transition: var(--transition);
}

.allcategory-card:hover .category-title {
  color: var(--primary-color);
}

.allcategory-card .list-unstyled {
  margin-bottom: 0;
}

.allcategory-card .list-unstyled li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.allcategory-card .list-unstyled li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.allcategory-card .list-unstyled li a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  transition: var(--transition);
}

.allcategory-card .list-unstyled li a:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

.allcategory-card .list-unstyled li a .bi {
  color: var(--primary-color);
  margin-left: 0.5rem;
  transition: var(--transition);
}

.allcategory-card .list-unstyled li a:hover .bi {
  transform: translateX(-3px);
}

.subcategory-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
}

.subcategory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.allcategory-card .text-muted {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background-color: var(--light-bg);
  border-radius: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.allcategory-card .text-muted .bi {
  margin-left: 0.5rem;
  color: var(--text-light);
}

@media (max-width: 991.98px) {
  .category-image-container {
    width: 70px;
    height: 70px;
    padding: 0.5rem;
  }

  .category-title {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .allcategory-card {
    padding: 1.25rem;
  }

  .category-image-container {
    width: 60px;
    height: 60px;
  }

  .subcategory-image {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 575.98px) {
  .allcategory-card {
    padding: 1rem;
  }

  .category-image-container {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }

  .category-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .allcategory-card .list-unstyled li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
  }

  .subcategory-image {
    width: 18px;
    height: 18px;
    margin-left: 0.3rem;
  }
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-option {
  position: relative;
}

.payment-option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-option-label {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.payment-option-label:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.payment-option-input:checked + .payment-option-label {
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: rgba(92, 106, 196, 0.02);
}

.payment-option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-option-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.payment-option-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-option-name i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.payment-option-description {
  color: var(--text-light);
  font-size: 0.9rem;
}

.payment-option-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.2;
  transition: all 0.3s ease;
}

.payment-option-input:checked + .payment-option-label .payment-option-icon {
  opacity: 1;
  color: var(--primary-color);
  transform: scale(1.1);
}

@media (max-width: 767.98px) {
  .payment-option-label {
    padding: 1rem;
  }

  .payment-option-name {
    font-size: 1rem;
  }

  .payment-option-name i {
    font-size: 1.1rem;
  }

  .payment-option-description {
    font-size: 0.85rem;
  }

  .payment-option-icon {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .payment-option-label {
    padding: 0.875rem;
  }

  .payment-option-name {
    font-size: 0.95rem;
  }

  .payment-option-description {
    font-size: 0.8rem;
  }

  .payment-option-icon {
    font-size: 1.5rem;
  }
}

.payment-option-input:checked + .payment-option-label {
  animation: select-payment 0.3s ease;
}

@keyframes select-payment {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.modal-content {
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  background-color: var(--white);
}

.modal-title {
  font-weight: 700;
  color: var(--text-color);
  font-size: 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  background-color: var(--white);
}

.policy-tabs {
  padding: 0;
  margin: 0;
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
}

.policy-tabs .nav-item {
  margin: 0;
}

.policy-tabs .nav-link {
  border: none;
  border-radius: 0;
  padding: 1rem 1.5rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.policy-tabs .nav-link i {
  font-size: 1.1rem;
}

.policy-tabs .nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(92, 106, 196, 0.05);
}

.policy-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: var(--white);
  border-bottom: 3px solid var(--primary-color);
  font-weight: 600;
}

.policy-tab-content {
  max-height: 60vh;
  overflow-y: auto;
}

.policy-content-container {
  padding: 2rem;
}

.policy-content-container h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.policy-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--light-bg);
  border-radius: 0.375rem;
}

.policy-section {
  margin-bottom: 1.75rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  position: relative;
  padding-right: 1rem;
}

.policy-section h3::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 4px;
  height: 1rem;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.policy-section p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul, 
.policy-section ol {
  padding-right: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.policy-section li {
  margin-bottom: 0.5rem;
}

.policy-section li:last-child {
  margin-bottom: 0;
}

.policy-section strong {
  color: var(--text-color);
  font-weight: 600;
}

.policy-tab-content::-webkit-scrollbar {
  width: 6px;
}

.policy-tab-content::-webkit-scrollbar-track {
  background: var(--light-bg);
}

.policy-tab-content::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

.policy-tab-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-light);
}

@media (max-width: 767.98px) {
  .policy-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .policy-tabs::-webkit-scrollbar {
    display: none;
  }

  .policy-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .policy-tabs .nav-link i {
    font-size: 1rem;
  }

  .policy-content-container {
    padding: 1.5rem;
  }

  .policy-content-container h2 {
    font-size: 1.35rem;
  }

  .policy-section h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .policy-tabs .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }

  .policy-tabs .nav-link i {
    font-size: 0.9rem;
  }

  .policy-content-container {
    padding: 1.25rem;
  }

  .policy-content-container h2 {
    font-size: 1.25rem;
  }

  .policy-section h3 {
    font-size: 1rem;
  }

  .policy-section p,
  .policy-section ul,
  .policy-section ol {
    font-size: 0.9rem;
  }
}

.developer-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.developer-link:hover {
  color: var(--primary-color);

}

.developer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  transition: width 0.3s ease;
}

.developer-link:hover::after {
  width: 100%;
}

.developer-link:hover {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.image-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-modal-close {
  position: absolute;
  top: -50px;
  right: -10px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 2002;
  line-height: 1;
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: white;
  transform: scale(1.1);
}

.image-modal-close i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .image-modal-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
  }

  .image-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
}

body.modal-open {
  overflow: hidden;
}

.product-main-image {
  cursor: zoom-in;
}

.thumbnail-wrapper img {
  cursor: pointer;
}