/* // public/client/css/shopee-style.css */

/* Shopee Style Theme - Light & Modern */
:root {
  --shopee-primary: #ee4d2d;
  --shopee-primary-hover: #d73211;
  --shopee-secondary: #ff6533;
  --shopee-light: #fff5f1;
  --shopee-text: #222;
  --shopee-gray: #757575;
  --shopee-border: #e8e8e8;
  --shopee-background: #f5f5f5;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
}

/* Override màu chính */

/* .btn-success {
  background: var(--shopee-primary) !important;
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  border: none !important;
} */

.btn-success:hover {
  background: var(--shopee-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3) !important;
}

/* Success màu shopee */
/*.text-success {*/
/*    color: var(--shopee-primary) !important;*/
/*}*/

.bg-color-head {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.2) !important;
}

.bg-offer {
  background-color: var(--shopee-primary) !important;
}

/* Body và background */
body {
  background-color: var(--shopee-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Header styles */
.osahan-main-nav {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  border-bottom: none !important;
  padding: 8px 0;
}

.osahan-header {
  padding: 0 !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 30px;
}

.logo-img {
  height: 36px !important;
  width: 36px !important;
  object-fit: contain;
  border-radius: var(--border-radius-sm) !important;
  transition: transform 0.3s ease;
  box-shadow: none !important;
  border: none !important;
}

.logo-img:hover {
  transform: scale(1.05);
}

.text-logo {
  color: var(--shopee-primary) !important;
  font-weight: 700;
  font-size: 20px !important;
  margin-left: 10px;
}

/* Navigation Links */
.nav-link {
  color: var(--shopee-text) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  margin: 0 4px;
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--shopee-primary) !important;
  background: var(--shopee-light);
}

.nav-link.active {
  color: var(--shopee-primary) !important;
}

/* User Menu */
.btn-light {
  background: #f5f5f5 !important;
  border: none !important;
  color: var(--shopee-text) !important;
}

.btn-light:hover {
  background: #e8e8e8 !important;
}

.btn-primary {
  background: var(--shopee-primary) !important;
  border: none !important;
}

.btn-primary:hover {
  background: var(--shopee-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

/* Mobile Menu */
.navbar-toggler {
  border: none !important;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

#mobileMenu {
  background: #fff;
  border-top: 1px solid var(--shopee-border);
  margin-top: 8px;
}

#mobileMenu a {
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: var(--border-radius-sm);
}

#mobileMenu a:hover {
  background: var(--shopee-light);
  color: var(--shopee-primary) !important;
  padding-left: 20px;
}

/* Navigation */
.nav-mobile {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.2) !important;
}

.menu-bar {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
}

/* Buttons */
.button-login,
.button-search {
  border-radius: var(--border-radius-xl) !important;
  padding: 10px 20px !important;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none !important;
}

.button-login {
  background-color: #fff !important;
  color: var(--shopee-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.button-login:hover {
  background-color: var(--shopee-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-search {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
}

.button-search:hover {
  background: var(--shopee-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.4);
}

/* Input fields */
.form-control {
  border-radius: var(--border-radius-xl) !important;
  border: 2px solid var(--shopee-border) !important;
  font-size: 14px !important;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--shopee-primary) !important;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1) !important;
}

#txtLinkMobile {
  color: var(--shopee-text) !important;
  font-size: 16px;
  background-color: #fff;
}

#txtLinkMobile:focus {
  border-color: var(--shopee-primary) !important;
}

/* Cards */
.card {
  border-radius: var(--border-radius-md) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Badges */
.badge {
  border-radius: var(--border-radius-sm) !important;
  padding: 6px 12px !important;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
}

.badge-danger-shoppe {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  color: #fff !important;
}

.badge-success {
  background-color: rgba(238, 77, 45, 0.1) !important;
  color: var(--shopee-primary) !important;
}

/* Dropdown */
.dropdown-menu {
  border-radius: var(--border-radius-md) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  padding: 8px !important;
}

.dropdown-item {
  border-radius: var(--border-radius-sm) !important;
  padding: 10px 16px !important;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--shopee-light) !important;
  color: var(--shopee-primary) !important;
}

/* Icons */
.icofont-size {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  color: #fff !important;
  border-radius: 50% !important;
  padding: 10px !important;
  box-shadow: 0 2px 8px rgba(238, 77, 45, 0.3);
  transition: all 0.3s ease;
}

.icofont-size:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.4);
}

/* Modal */
.modal-content {
  border-radius: var(--border-radius-lg) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  color: #fff !important;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
  border: none !important;
}

.modal-header .close {
  color: #fff !important;
  opacity: 0.8;
}

.modal-header .close:hover {
  opacity: 1;
}

/* Footer */
.section-footer {
  background-color: #fff !important;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
  margin-top: 40px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Theme switch */
.theme-switch-wrapper {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  box-shadow: 0 4px 16px rgba(238, 77, 45, 0.3) !important;
  transition: all 0.3s ease;
}

.theme-switch-wrapper:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.4) !important;
}

.theme-switch {
  background: #fff !important;
  box-shadow: none !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.dropdown-menu {
  animation: fadeIn 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--shopee-background);
}

::-webkit-scrollbar-thumb {
  background: var(--shopee-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--shopee-primary-hover);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    border-radius: var(--border-radius-sm) !important;
  }

  .button-login,
  .button-search {
    border-radius: var(--border-radius-md) !important;
    padding: 8px 16px !important;
  }

  .form-control {
    border-radius: var(--border-radius-md) !important;
    /* padding: 10px 16px !important; */
  }
}

/* Home page styles */
.osahan-home-page {
  margin-top: 20px;
}

.osahan-promos h5 {
  color: var(--shopee-text);
  font-weight: 700;
  position: relative;
  padding-left: 20px;
}

.osahan-promos h5:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--shopee-primary);
  border-radius: 2px;
}

/* Category grid */
.col-6 img {
  border-radius: var(--border-radius-md) !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.col-6:hover img {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Info card */
.col-lg-12.card {
  border-radius: var(--border-radius-md) !important;
  border: none !important;
  background: #fff;
  padding: 20px !important;
}

.col-lg-12 ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--shopee-border);
  transition: all 0.3s ease;
}

.col-lg-12 ul li:last-child {
  border-bottom: none;
}

.col-lg-12 ul li:hover {
  background: var(--shopee-light);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.col-lg-12 ul li i {
  color: var(--shopee-primary) !important;
  margin-right: 10px;
}

.col-lg-12 ul li a span {
  color: var(--shopee-text) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease;
}

.col-lg-12 ul li a span:hover {
  color: var(--shopee-primary) !important;
  text-shadow: none !important;
}

/* Additional Shopee-specific styles */
.osahan-radio .btn {
  border-radius: var(--border-radius-xl) !important;
  border: 2px solid var(--shopee-primary) !important;
  color: var(--shopee-primary) !important;
  transition: all 0.3s ease;
}

.osahan-radio .btn.active {
  background: var(--shopee-primary) !important;
  border-color: var(--shopee-primary) !important;
  color: #fff !important;
}

.list-card-image a.btn {
  border-radius: 50% !important;
  background: #fff !important;
  border: 2px solid var(--shopee-border) !important;
  transition: all 0.3s ease;
}

.list-card-image a.btn:hover {
  background: var(--shopee-primary) !important;
  border-color: var(--shopee-primary) !important;
  transform: scale(1.1);
}

/* Cart items */
.cart-items .img-fluid {
  border-radius: var(--border-radius-sm) !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-items-number {
  border-radius: var(--border-radius-xl) !important;
  background: var(--shopee-light) !important;
}

.cart-items-number .btn {
  background: var(--shopee-primary) !important;
  color: #fff !important;
  border: none !important;
}

.cart-items-number .btn:hover {
  background: var(--shopee-primary-hover) !important;
}

/* Fixed bottom */
.fixed-bottom .btn {
  background: linear-gradient(
    135deg,
    var(--shopee-primary) 0%,
    var(--shopee-secondary) 100%
  ) !important;
  color: #fff !important;
  font-weight: 600;
  border: none !important;
}

.fixed-bottom .btn:hover {
  background: var(--shopee-primary-hover) !important;
}

/* Custom control */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--shopee-primary) !important;
  border-color: var(--shopee-primary) !important;
}

/* Links */
a {
  color: var(--shopee-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--shopee-primary-hover);
  text-decoration: none !important;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent !important;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--shopee-primary) !important;
}

/* Schedule tabs */
.schedule .nav-link.active:after,
.schedule .nav-link:focus:after,
.schedule .nav-link:hover:after {
  background: var(--shopee-primary) !important;
}

/* Notification badge */
.osahan-notifications {
  border-radius: var(--border-radius-md) !important;
  transition: all 0.3s ease;
}

.osahan-notifications:hover {
  background: var(--shopee-light) !important;
  transform: translateX(4px);
}

/* Alerts */
.alert {
  border-radius: var(--border-radius-md) !important;
  border: none !important;
  padding: 16px 20px !important;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success {
  background-color: #d4f4e2 !important;
  color: #0a7544 !important;
}

.alert-danger {
  background-color: #ffeaa7 !important;
  color: #d63031 !important;
}

.alert-warning {
  background-color: #fff3cd !important;
  color: #856404 !important;
}

.alert-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

/* Product cards */
.product-card {
  border-radius: var(--border-radius-md) !important;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.product-card .product-image img {
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Price styling */
.price {
  color: var(--shopee-primary) !important;
  font-weight: 700;
  font-size: 18px;
}

.price-old {
  color: var(--shopee-gray);
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 8px;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--shopee-primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 600;
}

/* Rating stars */
.rating-stars {
  color: #ffa500;
  font-size: 14px;
}

.rating-stars .icofont-star {
  background: transparent !important;
  color: #ffa500 !important;
  padding: 0 !important;
  font-size: 14px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.osahan-main-body .row.mt-3 {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

/* Mobile nav improvements */
@media (max-width: 992px) {
  .mobile-nav {
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg) !important;
  }

  .mobile-nav .button-login {
    padding: 6px 12px !important;
    font-size: 14px !important;
  }
}

/* Sidebar navigation */
#main-nav {
  background: #fff !important;
}

#main-nav ul li a {
  color: var(--shopee-text) !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid var(--shopee-border) !important;
  transition: all 0.3s ease;
}

#main-nav ul li a:hover {
  background: var(--shopee-light) !important;
  color: var(--shopee-primary) !important;
  padding-left: 25px !important;
}

#main-nav ul li a i {
  color: var(--shopee-primary) !important;
  margin-right: 10px !important;
}

/* Bottom navigation */
.bottom-nav {
  background: var(--shopee-background) !important;
  border-top: 2px solid var(--shopee-primary) !important;
}

.bottom-nav a {
  color: var(--shopee-primary) !important;
}

/* Loading animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading {
  animation: pulse 1.5s infinite;
}

/* Hover effects for interactive elements */
.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable:hover {
  transform: translateY(-2px);
}

/* Shadow utilities */
.shadow-sm-hover:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow-md-hover:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Text utilities */
.text-shopee {
  color: var(--shopee-primary) !important;
}

.text-shopee-hover:hover {
  color: var(--shopee-primary-hover) !important;
}

/* Background utilities */
.bg-shopee {
  background-color: var(--shopee-primary) !important;
}

.bg-shopee-light {
  background-color: var(--shopee-light) !important;
}

/* Border utilities */
.border-shopee {
  border-color: var(--shopee-primary) !important;
}

.border-shopee-light {
  border-color: var(--shopee-border) !important;
}
