body {
  margin: 0px;
  padding: 0px;
  font-family: SanomatGrabApp, -apple-system, BlinkMacSystemFont, Segoe UI,
    PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica,
    Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}

#wrapper {
  width: 100%;
  margin: 0 auto;
}

#wrapper header {
  width: 100%;
  margin: 0px auto;
  /* background-color: rgb(170, 255, 227); */
  padding: 10px 0;
}

#wrapper header .container-top {
  width: 90%;
  margin: 0px auto;
  /* display: flex; */
  /* justify-content: space-between;
    align-items: center; */

  display: grid;
  grid-template-columns: 20% auto auto;
}

header section.logo {
  display: flex;
  align-items: center;
}

header section.logo a img {
  width: 60%;
}

#wrapper header .container-top nav {
  text-align: left;
  padding-top: 10px;
}

#wrapper header .container-top nav ul {
  display: flex;
}

#wrapper header .container-top nav ul li {
  padding: 10px;
  list-style: none;
}

#wrapper header .container-top nav ul li a {
  text-decoration: none;
  color: rgb(43, 38, 38);
  padding: 10px;
  /* background-color: #f7f7f7; */
  text-transform: uppercase;
  font-weight: 700;
  font-family: Muli, Futura, Helvetica, Arial, sans-serif;
  position: relative;
}

#wrapper header .container-top nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0px;
  height: 3px;
  width: 100%;
  background-color: rgb(122, 33, 6);
  display: none;
}

#wrapper header .container-top nav ul li a:hover:after {
  display: block;
}

#wrapper header .container-top section.menu-right {
  display: flex;
  align-items: center;
}

#wrapper header .container-top section.menu-right .cart {
  padding: 5px;
  border: 1px solid rgb(196, 196, 196);
  border-radius: 3px;
  margin: 0 10px;
  position: relative;
}

#wrapper header .container-top section.menu-right .cart span {
  position: absolute;
  top: 0px;
  right: 0;
  font-weight: 500;
  color: rgb(122, 115, 115);
}

#wrapper header .container-top section.menu-right .cart:hover {
  box-shadow: 0px 0px 3px 0px grey;
  cursor: pointer;
}

#wrapper header .container-top section.menu-right .cart a {
  padding: 5px;
  text-decoration: none;
}

#wrapper header .container-top section.menu-right .login {
  padding: 7px;
  border: 1px solid rgb(196, 196, 196);
  border-radius: 3px;
  margin: 0 10px;
}

#wrapper header .container-top section.menu-right .login:hover {
  box-shadow: 0px 0px 3px 0px grey;
  cursor: pointer;
}

#wrapper header .container-top section.menu-right .login a {
  padding: 5px;
  text-decoration: none;
  color: #676767;
  font-weight: 500;
}

#wrapper header div.container {
  padding: 10px 0;
}

/* END HEADER  */
main .container {
  padding: 2rem 0;
}

.panel.panel-primary {
  width: 90%;
  margin: 0px auto;
}

/* ===== MODERN SHOPPING CART STYLES ===== */

/* Cart Layout */
.cart-modern {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  padding: 80px 0;
}

.cart-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.cart-header {
  text-align: center;
  margin-bottom: 50px;
}

.cart-header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-header .breadcrumb {
  display: inline-flex;
  align-items: center;
  color: #7f8c8d;
  font-size: 14px;
}

.cart-header .breadcrumb a {
  color: #3498db;
  text-decoration: none;
  margin-right: 8px;
  transition: color 0.3s ease;
}

.cart-header .breadcrumb a:hover {
  color: #2980b9;
}

/* Main Cart Layout */
.cart-main {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* Cart Items Section */
.cart-items-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #ecf0f1;
}

.cart-items-header h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.items-count {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Cart Item Styles */
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 25px;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.cart-item:hover {
  border-color: #3498db;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.cart-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.cart-item.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Product Image */
.item-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.item-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.item-image:hover img {
  transform: scale(1.05);
}

.stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #27ae60;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stock-badge.low {
  background: #f39c12;
}

.stock-badge.out {
  background: #e74c3c;
}

/* Item Details */
.item-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.4;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: #7f8c8d;
}

.item-meta span {
  display: flex;
  align-items: center;
}

.item-meta i {
  margin-right: 5px;
  color: #3498db;
}

.item-description {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.5;
  max-height: 40px;
  overflow: hidden;
}

/* Item Actions */
.item-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-action {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-wishlist {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.btn-wishlist:hover {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
  transform: translateY(-1px);
}

.btn-remove {
  background: #dc3545;
  color: white;
}

.btn-remove:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Item Controls */
.item-controls {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 15px;
}

.quantity-control {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qty-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.qty-btn:hover {
  background: #5a6268;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-input {
  border: none;
  background: white;
  text-align: center;
  width: 60px;
  padding: 8px 5px;
  font-weight: 600;
  outline: none;
}

/* Size Selector */
.size-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.size-option {
  padding: 6px 10px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.size-option:hover {
  border-color: #3498db;
  background: #f8f9fa;
}

.size-option.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Item Pricing */
.item-pricing {
  text-align: right;
}

.item-price {
  font-size: 16px;
  font-weight: 600;
  color: #27ae60;
  margin-bottom: 5px;
}

.item-total {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

/* Cart Summary */
.cart-summary {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
  height: fit-content;
  backdrop-filter: blur(10px);
}

.summary-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #ecf0f1;
}

.summary-header h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  padding-top: 15px;
  border-top: 2px solid #ecf0f1;
  margin-top: 20px;
}

/* Promo Section */
.promo-section {
  margin: 25px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.promo-input {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.promo-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.promo-input input:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.promo-input button {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-input button:hover {
  background: linear-gradient(45deg, #20c997, #28a745);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Buttons */
.checkout-btn {
  width: 100%;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover {
  background: linear-gradient(45deg, #2980b9, #3498db);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.continue-shopping {
  width: 100%;
  background: transparent;
  color: #6c757d;
  border: 2px solid #dee2e6;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.continue-shopping:hover {
  border-color: #3498db;
  color: #3498db;
  background: rgba(52, 152, 219, 0.05);
}

/* Empty States */
.empty-state,
.login-required {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-state i,
.login-required i {
  font-size: 4rem;
  color: #bdc3c7;
  margin-bottom: 20px;
}

.login-required i {
  color: #e74c3c;
}

.empty-state h3,
.login-required h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.empty-state p,
.login-required p {
  color: #7f8c8d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.empty-state .btn,
.login-required .btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empty-state .btn:hover,
.login-required .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.login-required .btn {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.login-required .btn:hover {
  box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Related Products */
.related-products {
  margin-top: 50px;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-products h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-item {
  border: 1px solid #ecf0f1;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
}

.related-item:hover {
  border-color: #3498db;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.related-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.related-item:hover img {
  transform: scale(1.05);
}

.related-item h5 {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-item .price {
  font-size: 16px;
  font-weight: 700;
  color: #27ae60;
  margin-bottom: 10px;
}

.add-to-cart-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.add-to-cart-btn:hover {
  background: linear-gradient(45deg, #2980b9, #3498db);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #27ae60;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: #e74c3c;
}

.notification.info {
  background: #3498db;
}

.notification.success {
  background: #27ae60;
}

.notification i {
  margin-right: 8px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Security Badges */
.security-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.security-badge {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #7f8c8d;
}

.security-badge i {
  margin-right: 5px;
  color: #27ae60;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cart-main {
    grid-template-columns: 1fr 350px;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .cart-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-container {
    padding: 0 15px;
  }

  .cart-header h1 {
    font-size: 2rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 20px;
  }

  .item-image img {
    width: 80px;
    height: 80px;
  }

  .item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
  }

  .size-selector {
    order: 1;
  }

  .quantity-control {
    order: 2;
  }

  .item-pricing {
    order: 3;
    text-align: left;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .cart-items-section,
  .cart-summary,
  .related-products {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .cart-header h1 {
    font-size: 1.75rem;
  }

  .item-actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
  }

  .promo-input {
    flex-direction: column;
  }

  .promo-input button {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .cart-modern {
    background: white;
    padding: 20px 0;
  }

  .cart-items-section,
  .cart-summary {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  .btn-action,
  .checkout-btn,
  .continue-shopping {
    display: none;
  }

  .related-products {
    display: none;
  }
}