/* Modern E-commerce Theme - Tokoku */

/* CSS Variables */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #6c757d;
  --accent-color: #ff6b6b;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  background-color: #f5f7fa;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover, a:focus, a:active {
  text-decoration: none;
  color: var(--primary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container .form-section{
  max-width: 500px;
  margin: 0 auto;
  padding: 0 15px;
}
/* Header & Navigation */
.site-header {
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slide-down 0.3s ease;
}

@keyframes slide-down {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.navbar-brand:hover {
  color: #3451b2;
}

.navbar-nav {
  display: flex;
  list-style: none;
  padding: 0;
  align-items: center;
  margin: 0;
  gap: 15px;
}

.nav-item {
  margin: 0;
  position: relative;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Search Form */
.search-form {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 20px;
}

.search-input {
  border: 1px solid #e1e5ee;
  border-radius: 50px;
  padding: 10px 20px;
  width: 250px;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
  width: 280px;
}

.search-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  margin-left: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: #3451b2;
}

.search-toggle,
.search-close {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #3451b2;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Login, Register Buttons */
.btn-login, .btn-register {
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  margin-left: 10px;
}

.btn-login {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-login:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-register {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(74, 108, 247, 0.2);
}

.btn-register:hover {
  background-color: #3451b2;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 81, 178, 0.3);
}

/* Dropdown Menu */
.dropdown-toggle {
  position: relative;
  padding-right: 20px;
  cursor: pointer;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-toggle:hover::after {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
}

/* Tambahkan hover untuk parent */
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
  transition-delay: 0.1s;
}

/* Tambahkan area hover yang lebih besar */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--dark-color);
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding-left: 25px;
}

/* Cart Dropdown */
.cart-dropdown {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-menu {
  width: 280px;
  padding: 15px;
  right: 0;
  left: auto;
}

.cart-item {
  display: flex;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-price {
  color: var(--primary-color);
}

.cart-more {
  text-align: center;
  color: #6c757d;
  margin-bottom: 15px;
}

.btn-view-cart {
  display: block;
  text-align: center;
  padding: 8px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.btn-view-cart:hover {
  background-color: #3451b2;
  text-decoration: none;
  color: white;
}

/* User Menu */
.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 250px;
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border: none;
  overflow: hidden;
}

.user-dropdown .username {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: var(--light-color);
}

.dropdown-user-avatar {
  color: var(--primary-color);
  margin-right: 15px;
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
}

.dropdown-user-name {
  font-weight: 600;
  color: var(--dark-color);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-user-email {
  color: var(--secondary-color);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-divider {
  margin: 0;
}

.user-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--dark-color);
  transition: var(--transition);
}

.user-menu li a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.user-menu li a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding-left: 25px;
}

/* Mobile Menu */
@media (max-width: 991px) {
  .navbar {
    padding: 15px 0;
    justify-content: space-between;
  }

  .search-form {
    margin: 0;
    flex: 1;
    margin: 0 15px;
  }

  .search-input {
    width: 100%;
  }

  .search-input:focus {
    width: 100%;
  }

  .search-btn {
    padding: 8px 15px;
  }

  .search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.2rem;
    cursor: pointer;
  }

  .search-toggle:hover {
    color: var(--primary-color);
  }

  .search-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 5px;
  }

  .search-close:hover {
    color: var(--primary-color);
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 9999;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    position: absolute;
    left: 8px;
    transition: all 0.3s ease;
  }

  .menu-toggle span:nth-child(1) { top: 12px; }
  .menu-toggle span:nth-child(2) { top: 19px; }
  .menu-toggle span:nth-child(3) { top: 26px; }

  .menu-toggle.active span {
    background-color: var(--primary-color);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 60px 15px 20px;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    margin: 0;
  }

  .navbar-nav.active {
    right: 0;
  }

  .nav-item {
    margin: 5px 0;
    width: 100%;
  }

  .nav-item.home-link { order: 1; }
  .nav-item.products-link { order: 2; }
  .nav-item.categories-link { order: 3; }
  .nav-item.cart-dropdown { order: 4; }
  .nav-item.user-dropdown { order: 5; }

  .nav-link,
  .dropdown-toggle {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .nav-link:hover,
  .dropdown-toggle:hover {
    background: var(--light-color);
    padding-left: 20px;
  }

  /* Login Register buttons mobile */
  .btn-login, 
  .btn-register {
    width: 100%;
    margin: 5px 0;
    text-align: center;
    padding: 12px 15px;
    border-radius: 8px;
  }

  .btn-login {
    order: 6;
  }

  .btn-register {
    order: 7;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(74, 108, 247, 0.2);
  }

  .btn-register:hover {
    background-color: #3451b2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 81, 178, 0.3);
  }

  /* Cart menu styling */
  .cart-menu {
    position: static;
    width: 100%;
    max-width: none;
    background: transparent;
    box-shadow: none;
    margin: 10px 0;
    padding: 0;
  }

  .cart-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
  }

  /* User menu styling */
  .user-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin: 10px 0;
    background: transparent;
  }

  .dropdown-user-info {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
  }

  .user-menu li a {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
  }

  .user-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
  }

  /* Badge styling */
  .cart-badge {
    position: relative;
    top: 0;
    right: 0;
    margin-left: 8px;
  }
}

/* Tambahan untuk responsivitas navbar */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.5rem;
  }

  .search-form {
    margin: 0 10px;
  }

  .search-btn {
    padding: 8px 12px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #6a11cb 100%);
  color: white;
  padding: 80px 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-text {
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Product Cards */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Aspect ratio 1:1 (square) */
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-quickview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-quickview {
  opacity: 1;
}

.quickview-btn {
  background-color: #fff;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.quickview-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.product-label {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 2;
}

.label-new {
  background-color: var(--accent-color);
  color: white;
}

.product-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 2rem;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: auto;
}

.product-card .product-actions {
  grid-template-columns: 1fr;
}

.product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
}

.product-btn i {
  margin-right: 6px;
}

/* Detail Page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

.product-detail-img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.product-detail-info h1 {
  margin-bottom: 15px;
  font-size: x-large;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.product-description {
  margin-bottom: 30px;
  color: var(--secondary-color);
  line-height: 1.7;
}

.product-detail-section {
  padding-bottom: 80px;
}

.product-meta {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #e1e5ee;
  border-bottom: 1px solid #e1e5ee;
}

.product-meta-item {
  display: flex;
  margin-bottom: 10px;
}

.meta-label {
  width: 120px;
  color: var(--secondary-color);
}

.meta-label i {
  margin-right: 5px;
  color: var(--primary-color);
}

.meta-value a {
  color: var(--primary-color);
  font-weight: 500;
}

.meta-value a:hover {
  text-decoration: underline !important;
}

/* Quantity Controls */
.quantity-control {
  margin-bottom: 25px;
}

.quantity-control label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  border: 1px solid #e1e5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: 1px solid #e1e5ee;
  text-align: center;
  font-family: var(--font-primary);
  margin: 0 5px;
}

.product-form .product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 30px;
}

.product-form .product-btn {
  width: 100%;
}

.product-share {
  margin-top: 30px;
  display: flex;
  align-items: center;
}

.product-share span {
  margin-right: 15px;
  color: var(--secondary-color);
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #f8f9fa;
  border-radius: 50%;
  margin-right: 10px;
  color: var(--secondary-color);
  transition: var(--transition);
}

.share-link:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive for Product Detail */
@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
  }
  
  .product-detail-price {
    font-size: 1.3rem;
  }
  
  .product-meta {
    margin: 15px 0;
  }
  
  .quantity-control {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .product-detail {
    gap: 20px;
    margin: 20px 0;
  }
  
  .product-detail-gallery {
    margin-bottom: 20px;
  }
  
  .product-detail-info h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .product-detail-price {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .product-description {
    margin-bottom: 20px;
  }
  
  .product-meta-item {
    margin-bottom: 8px;
  }
  
  .meta-label {
    width: 100px;
  }
  
  .product-share {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .product-detail {
    gap: 15px;
    margin: 15px 0;
  }
  
  .product-detail-price {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .product-description {
    margin-bottom: 15px;
  }
  
  .quantity-control label {
    font-size: 0.9rem;
  }
  
  .quantity-btn, .quantity-input {
    width: 35px;
    height: 35px;
  }
  
  .product-form .product-btn {
    padding: 10px 15px;
  }
  
  .product-meta {
    font-size: 1.2rem;
  }
  
  .product-share {
    margin-top: 15px;
  }
  
  .share-link {
    width: 30px;
    height: 30px;
  }
}

.btn-cart {
  background-color: var(--light-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-cart:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-buy {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid white;
}

.btn-buy:hover {
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/* Category List - Menggunakan definisi grid yang sudah ada */
.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 576px) {
  .category-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .category-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .category-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Products Section */
.products-section {
  background-color: #f8f9fa;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Product Detail Carousel */
.product-detail-gallery {
  position: relative;
  margin-bottom: 20px;
}

.carousel-item img.product-detail-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

.carousel-indicators {
  bottom: -40px;
}

.carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
}

.carousel-indicators li.active {
  background-color: #007bff;
}

/* Product Thumbnails */
.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail-item {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.thumbnail-item.active,
.thumbnail-item:hover {
  opacity: 1;
  border-color: #007bff;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .product-thumbnails {
    margin-top: 20px;
    gap: 8px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .product-thumbnails {
    margin-top: 15px;
    gap: 5px;
  }
  
  .thumbnail-item {
    width: 50px;
    height: 50px;
  }
}

/* Product Variations */
.product-variation {
  margin-bottom: 15px;
}

.product-variation label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-check-inline {
  margin-right: 0;
}

.form-check-input {
  margin-top: 0.15rem;
}

/* Variasi Produk Radio Styling */
.product-variation .form-check-input[type="radio"] {
  display: none;
}

.product-variation .form-check-label {
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 5px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
}

.product-variation .form-check-label:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.product-variation .form-check-input[type="radio"]:checked + .form-check-label {
  background-color: #4e73df;
  border-color: #4e73df;
  color: white;
}

@media (max-width: 768px) {
  .product-variation {
    margin-bottom: 12px;
  }
  
  .product-variation label {
    margin-bottom: 6px;
    font-size: 0.95rem;
  }
  
  .variation-options {
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .product-variation {
    margin-bottom: 10px;
  }
  
  .product-variation label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .product-variation .form-check-label {
    padding: 4px 10px;
    font-size: 0.85rem;
  }
  
  .variation-options {
    gap: 6px;
  }
}

/* Simple Carousel Styling */
.simple-carousel {
  position: relative;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background: #f8f9fa;
  height: 500px;
}

.main-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.main-image-container.active {
  display: flex;
}

.main-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.simple-carousel-prev,
.simple-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s;
}

.simple-carousel-prev:hover,
.simple-carousel-next:hover {
  background: rgba(0,0,0,0.5);
}

.simple-carousel-prev {
  left: 15px;
}

.simple-carousel-next {
  right: 15px;
}

@media (max-width: 768px) {
  /* Tidak perlu mengatur ulang tinggi karena sudah 500px seperti definisi awal */
}

@media (max-width: 576px) {
  .simple-carousel {
    margin-bottom: 10px;
  }
  
  .simple-carousel-prev,
  .simple-carousel-next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .simple-carousel-prev {
    left: 10px;
  }
  
  .simple-carousel-next {
    right: 10px;
  }
}

/* Description Content Styling */
.description-content {
  margin-top: 15px;
  line-height: 1.6;
}

.description-content p {
  margin-bottom: 15px;
}

.description-content ul, 
.description-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.description-content img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

.description-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.description-content table td,
.description-content table th {
  border: 1px solid #ddd;
  padding: 8px;
}

.description-content h1, 
.description-content h2, 
.description-content h3, 
.description-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .description-content {
    margin-top: 12px;
    font-size: 0.95rem;
  }
  
  .description-content p,
  .description-content ul,
  .description-content ol {
    margin-bottom: 12px;
  }
  
  .description-content h1, 
  .description-content h2, 
  .description-content h3, 
  .description-content h4 {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.1em;
  }
}

@media (max-width: 576px) {
  .description-content {
    margin-top: 10px;
    line-height: 1.5;
  }
  
  .description-content p,
  .description-content ul,
  .description-content ol {
    margin-bottom: 10px;
  }
  
  .description-content table td,
  .description-content table th {
    padding: 5px;
    font-size: 0.85rem;
  }
}

/* Cart Item Variants */
.cart-item-variants {
  margin: 8px 0;
}

.cart-item-variant {
  display: inline-block;
  background-color: #f8f9fa;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 5px;
  margin-bottom: 5px;
  color: #666;
}

/* Tambahkan CSS untuk memastikan ukuran card produk konsisten */
@media (min-width: 992px) {
  .product-img-wrapper {
    max-height: 500px;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 991px) {
  .product-img-wrapper {
    max-height: 400px;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .product-img-wrapper {
    max-height: 350px;
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .product-img-wrapper {
    max-height: 300px;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--border-radius);
  background-color: #fff;
  color: var(--dark-color);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.page-link:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.page-link.active {
  background-color: var(--primary-color);
  color: #fff;
}

.page-link.prev, .page-link.next {
  padding: 0 15px;
}

.page-link i {
  font-size: 12px;
}

.page-link.prev i {
  margin-right: 5px;
}

.page-link.next i {
  margin-left: 5px;
}

/* Cart Item dalam dropdown */
.cart-menu .cart-item {
  display: flex;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.cart-menu .cart-item:last-child {
  border-bottom: none;
}

.cart-menu .cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
}

/* Styling cart-item dalam mobile view */
@media (max-width: 991px) {
  .cart-menu .cart-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
  }
}

/* Footer Styles */
.footer {
  background-color: #f8f9fa;
  padding: 50px 0 20px;
  margin-top: 60px;
  border-top: 1px solid #eaeaea;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.footer-logo p {
  color: #6c757d;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #343a40;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #6c757d;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 8px;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  width: 20px;
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-social .social-icons {
  display: flex;
  gap: 10px;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #495057;
  transition: var(--transition);
}

.footer-social .social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
  color: #6c757d;
}

/* Section Styles */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 100px;
  margin-bottom: 25px;
  color: var(--dark-color);
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header .section-title {
  margin-bottom: 0;
  text-align: left;
}

.view-all {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
}

.view-all:hover {
  color: var(--accent-color);
}

.view-all i {
  font-size: 14px;
  margin-left: 5px;
  transition: var(--transition);
}

.view-all:hover i {
  transform: translateX(3px);
}

/* Features Section */
.features-section {
  background-color: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  background-color: white;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(74, 108, 247, 0.1);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.feature-item p {
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Featured Products */
.featured-products {
  background-color: white;
}

.product-card.featured {
  border: 2px solid rgba(74, 108, 247, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card.featured:hover {
  border-color: var(--primary-color);
}

.label-featured {
  background-color: var(--primary-color);
  color: white;
}

/* Category Item Styling */
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 15px;
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  color: white;
  transition: var(--transition);
}

.category-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-item i {
  font-size: 24px;
  margin-bottom: 10px;
}

.category-item span {
  font-size: 14px;
  font-weight: 500;
}

/* Promo Section */
.promo-section {
  background: linear-gradient(135deg, #4a6cf7 0%, #7389fd 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin: 60px 0;
  border-radius: var(--border-radius);
}

.promo-content {
  max-width: 700px;
  margin: 0 auto;
}

.promo-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.promo-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.promo-content .btn {
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Breadcrumb */
.breadcrumb-section {
  padding: 15px 0;
  background-color: var(--light-color);
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-size: 1.2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin: 0 10px;
  color: var(--secondary-color);
}

.breadcrumb-item a {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* User Dashboard */
.riwayat-section {
  padding: 60px 0;
}

.user-dashboard-menu {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  overflow: hidden;
}

.user-info {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3451b2 100%);
  color: white;
  padding: 25px 20px;
  text-align: center;
}

.user-avatar {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.user-info h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.user-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.dashboard-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-menu li {
  border-bottom: 1px solid #f1f1f1;
}

.dashboard-menu li:last-child {
  border-bottom: none;
}

.dashboard-menu li a {
  display: block;
  padding: 15px 20px;
  color: var(--dark-color);
  transition: var(--transition);
}

.dashboard-menu li a i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.dashboard-menu li a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.dashboard-menu li.active a {
  background-color: var(--light-color);
  color: var(--primary-color);
  font-weight: 500;
  border-left: 3px solid var(--primary-color);
}

.riwayat-content {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.section-heading {
  margin-bottom: 30px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 15px;
}

.section-heading h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.section-heading p {
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-state-icon {
  font-size: 4rem;
  color: #e1e5ee;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--secondary-color);
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-sudah.kirim.pembayaran {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-barang.dikirim {
  background-color: #d4edda;
  color: #155724;
}

.status-batal {
  background-color: #f8d7da;
  color: #721c24;
}

.status-selesai {
  background-color: #cce5ff;
  color: #004085;
}

.resi-info {
  margin-top: 5px;
  font-size: 0.8rem;
}

.action-buttons .btn {
  margin-bottom: 5px;
}

.action-buttons .btn i {
  margin-right: 5px;
}

/* Profile Forms */
.profile-form .form-group {
  margin-bottom: 25px;
}

.profile-form .form-label {
  font-weight: 500;
}

.profile-form .form-control {
  height: 45px;
}

.profile-form textarea.form-control {
  height: auto;
}

.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.profile-picture-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #adb5bd;
  margin-bottom: 15px;
}

/* Upload Button */
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.upload-btn {
  border: 1px solid #ccc;
  color: var(--dark-color);
  background-color: white;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  cursor: pointer;
}

.upload-btn-wrapper input[type=file] {
  font-size: 100px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

/* Address Cards */
.address-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #f1f1f1;
  position: relative;
}

.address-card.default {
  border-color: var(--primary-color);
}

.default-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
}

.address-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.address-card p {
  margin-bottom: 5px;
  color: var(--secondary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.address-card .address-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.add-address-card {
  background-color: var(--light-color);
  border: 1px dashed #dee2e6;
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.add-address-card:hover {
  background-color: #e9ecef;
}

.add-address-card i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* Password Form */
.password-form .form-group {
  margin-bottom: 25px;
}

.password-form .form-label {
  font-weight: 500;
}

.password-form .form-control {
  height: 45px;
}

.password-strength {
  height: 5px;
  margin-top: 10px;
  background-color: #f1f1f1;
  border-radius: 5px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: var(--transition);
}

.strength-weak {
  width: 25%;
  background-color: var(--danger-color);
}

.strength-medium {
  width: 50%;
  background-color: var(--warning-color);
}

.strength-strong {
  width: 75%;
  background-color: var(--info-color);
}

.strength-very-strong {
  width: 100%;
  background-color: var(--success-color);
}

.password-tips {
  margin-top: 20px;
  padding: 15px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

.password-tips h5 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.password-tips ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.password-tips li {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

/* Checkout Section */
.checkout-section {
  padding: 60px 0;
}

.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.order-summary {
  flex: 1;
  min-width: 320px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-form {
  flex: 2;
  min-width: 320px;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-header, .form-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.summary-header h3, .form-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
}

.summary-items {
  margin-bottom: 20px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.summary-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 5px 0;
  color: var(--dark-color);
}

.item-meta {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--secondary-color);
}

.item-price {
  font-weight: 500;
}

.item-subtotal {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  text-align: right;
}

.summary-totals {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
}

.summary-row.total {
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* Cart Section */
.cart-section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 30px;
  text-align: center;
}

.text-muted {
  color: var(--secondary-color);
}

/* Tampilan keranjang kosong */
.empty-cart {
  text-align: center;
  padding: 60px 0;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 40px auto;
  max-width: 600px;
}

.empty-cart-icon {
  font-size: 80px;
  color: #e9ecef;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.empty-cart p {
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.empty-cart .btn {
  padding: 12px 25px;
  font-size: 16px;
}

/* Tampilan item keranjang */
.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.cart-items {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Cart Item dalam halaman cart */
.cart-items .cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f1f1f1;
  position: relative;
}

.cart-items .cart-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.cart-items .cart-item-image {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.cart-items .cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-items .cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-items .cart-item-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-items .cart-item-price {
  font-size: 15px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.cart-items .cart-item-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.cart-items .cart-item-subtotal {
  text-align: right;
}

.subtotal-label {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.subtotal-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

/* quantity control dalam keranjang */
.cart-items .quantity-wrapper {
  display: flex;
  align-items: center;
  height: 38px;
}

.cart-items .quantity-btn {
  width: 30px;
  height: 30px;
  background-color: #f8f9fa;
  border: 1px solid #e1e5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-items .quantity-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.cart-items .quantity-input {
  width: 45px;
  height: 30px;
  border: 1px solid #e1e5ee;
  text-align: center;
  font-family: var(--font-primary);
  margin: 0 5px;
}
