
:root {
  --primary-red: #dc3545;
  --primary-blue: #4169e1;
  --dark-bg: #212529;
  --light-gray: #f8f9fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
}

.top-header {
  border-bottom: 1px solid #eee;
}

.logo h4 {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  display: inline-block;
}

.logo-japan {
  background-color: #fff;
  color: #d9534f;
  padding: 5px 8px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #d9534f;
}

.logo-cosmetica {
  background-color: #d9534f;
  color: #fff;
  padding: 5px 8px;
  font-weight: 700;
  font-size: 16px;
}

.logo-tagline {
  font-size: 11px;
  color: #666;
  margin-left: 10px;
}

.phone-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.header-icons a {
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.header-icons a:hover {
  color: var(--primary-red) !important;
}

.header-icon {
  color: #333;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.header-icon:hover {
  color: #d9534f;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.7rem;
  padding: 0.25rem 0.4rem;
}

/* Navigation */
.navbar {
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-nav {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-right: 5px;
}

.nav-item a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-item.catalog-btn a {
  background-color: #d9534f;
  color: #fff;
}

.nav-item.catalog-btn a i {
  margin-right: 8px;
}

.nav-item a:hover {
  background-color: #f5f5f5;
}

.nav-item.catalog-btn a:hover {
  background-color: #c9302c;
}

.catalog-btn {
  background-color: var(--primary-red);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.catalog-btn:hover {
  background-color: #c82333;
}

.nav-link {
  color: #333 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-red) !important;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 12px;
  padding: 10px 0;
}

.breadcrumb-item a {
  color: #999;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #d9534f;
}

.breadcrumb-item.active {
  color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  color: #ccc;
}

/* Hero Banner */
.hero-banner {
  padding: 2rem 0;
}

.banner-red {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 3rem 2rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.cherry-blossom {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  opacity: 0.3;
}

.cherry-blossom svg {
  width: 100%;
  height: 100%;
}

/* Category Cards */
.categories h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.category-card .card-body {
  padding: 1.25rem;
}

.category-card h6 {
  font-size: 1rem;
  color: #333;
  min-height: 2.5rem;
}

.category-card .btn-primary {
  background-color: var(--primary-blue);
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
}

.category-card .btn-primary:hover {
  background-color: #365ac1;
}

/* New Arrivals */
.new-arrivals {
  background-color: var(--light-gray);
}

.new-arrivals h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
}

.product-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background-color: #17a2b8;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  background-color: var(--primary-red) !important;
  color: white !important;
  transform: scale(1.1);
}

.wishlist-btn.active {
  background-color: var(--primary-red);
  color: white;
}

.rating {
  font-size: 0.75rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 3rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #333;
}

.price {
  font-size: 1.15rem;
}

.product-card .btn-primary {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  border: none;
}

.product-card .btn-primary:hover {
  background-color: #365ac1;
}

/* Product Image Container */
.product-image-container {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
}

.product-image-container img {
  max-width: 100%;
  height: auto;
}

/* Product Info */
.product-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.product-meta {
  font-size: 13px;
  color: #666;
}

.article-number {
  color: #999;
}

.stock-status {
  color: #27ae60;
  font-weight: 500;
}

.stock-status i {
  font-size: 8px;
  vertical-align: middle;
}

/* Pricing */
.product-price-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.current-price {
  font-size: 32px;
  font-weight: 700;
  color: #d9534f;
}

.old-price {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
}

/* Quantity Selector */
.quantity-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  background-color: #f8f8f8;
  border: none;
  /* padding: 10px 15px; */
  cursor: pointer;
  transition: background-color 0.3s;
  color: #666;
}

.qty-btn:hover {
  background-color: #e8e8e8;
}

.qty-input {
  border: none;
  width: 60px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 5px;
}

.qty-input:focus {
  outline: none;
}

.btn-add-to-cart {
  background-color: #5b6ed4;
  color: #fff;
  border: none;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.btn-add-to-cart:hover {
  background-color: #4a5dc4;
}

/* Product Specs */
.specs-table {
  font-size: 14px;
}

.specs-table td {
  padding: 8px 0;
}

.spec-label {
  color: #999;
  width: 150px;
}

.spec-value {
  color: #333;
  font-weight: 500;
}

/* Product Description */
.product-description-short {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}

.product-full-description {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.product-full-description h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.composition-list {
  list-style: none;
  padding-left: 0;
}

.composition-list li {
  margin-bottom: 10px;
  padding-left: 0;
}

/* Promo Banner */
.promo-item {
  padding: 20px;
}

.promo-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.promo-text {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

/* Footer */
.footer {
  background-color: var(--dark-bg) !important;
  color: #fff;
}

.footer h5,
.footer h6 {
  font-weight: 600;
  font-size: 1rem;
}

.footer a {
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer a:hover {
  color: #fff !important;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #5b6ed4;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: #4a5dc4;
}

.footer-contact {
  font-size: 16px;
  color: #fff;
  margin-bottom: 5px;
}

.footer-contact-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 0;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-red {
    padding: 2rem 1.5rem;
  }

  .banner-red h1 {
    font-size: 3rem;
  }

  .banner-red h3 {
    font-size: 1.5rem;
  }

  .category-card img {
    height: 200px;
  }

  .product-image img {
    height: 250px;
  }

  .phone-number {
    font-size: 1rem;
  }

  .catalog-btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .header-right {
    justify-content: center;
    margin-top: 10px;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-item {
    margin-right: 0;
  }

  .product-title {
    font-size: 22px;
  }

  .current-price {
    font-size: 24px;
  }

  .quantity-section {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-add-to-cart {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .categories h3,
  .new-arrivals h3 {
    font-size: 1.5rem;
  }

  .product-image img {
    height: 220px;
  }

  .card-title {
    font-size: 0.85rem;
    min-height: 2.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card,
.category-card {
  animation: fadeIn 0.5s ease;
}

/* Cart Item Card */
.cart-item-card {
  background-color: #fff;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item {
  display: flex;
  align-items: flex-start;
  position: relative;
}

item-image {
  flex-shrink: 0;
  margin-right: 20px;
}

.item-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.item-details {
  flex-grow: 1;
  margin-right: 20px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.item-article {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.stock-status {
  font-size: 13px;
  color: #28a745;
  font-weight: 500;
}

.item-price-info {
  text-align: right;
  flex-shrink: 0;
}

.item-price {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

quantity-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  background-color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: all 0.3s;
}

.qty-btn:hover {
  background-color: #f8f9fa;
}

.qty-input {
  width: 50px;
  height: 30px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
}

.qty-input:focus {
  outline: none;
}

.item-total {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.btn-remove {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
}

.btn-remove:hover {
  color: #d9534f;
}

/* Promo Section */
.promo-section .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 15px;
}

.btn-promo {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-promo:hover {
  background-color: #f8f9fa;
}

/* Cart Total */
.cart-total {
  text-align: right;
  font-size: 18px;
  font-weight: 600;
}

.cart-total h4 {
  font-size: 20px;
}

/* Checkout Form */
.checkout-form {
  background-color: #fff;
  border-radius: 4px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

/* Custom Radio */
.custom-radio {
  margin-bottom: 15px;
}

.custom-radio input[type="radio"] {
  display: none;
}

.custom-radio label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding-left: 30px;
  position: relative;
  font-size: 14px;
  color: #333;
}

.custom-radio label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background-color: #fff;
}

.custom-radio input[type="radio"]:checked + label::before {
  border-color: #5b6dcd;
}

.custom-radio input[type="radio"]:checked + label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #5b6dcd;
}

.radio-label {
  flex-grow: 1;
}

.delivery-price {
  color: #999;
  font-size: 13px;
}

/* Form Inputs */
.form-inputs .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 15px;
  font-size: 14px;
}

.form-inputs .form-control:focus {
  border-color: #5b6dcd;
  box-shadow: 0 0 0 0.2rem rgba(91, 109, 205, 0.15);
}

/* Order Summary */
.order-summary {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* Submit Button */
.btn-submit {
  background-color: #5b6dcd;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-submit:hover {
  background-color: #4a5ab8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(91, 109, 205, 0.3);
}

.dropdown-menu {
  min-width: 15rem;
}

.dropright:hover > .dropdown-menu {
  display: block;
}