/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Verified luxury black and gold color scheme */
  --primary-color: #1a1a1a;
  --secondary-color: #ffffff;
  --accent-gold: #d4af37;
  --accent-dark: #2d2d2d;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --border-color: #e8e8e8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}
h2 {
  font-size: 2.5rem;
  font-weight: 700;
}
h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 14px 32px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  padding: 14px 32px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Admin Button Styles */
.admin-btn {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 1rem;
}

.admin-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: scale(1.05);
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.cart-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
}

.cart-count {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
  position: absolute;
  top: -8px;
  right: -8px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px 20px 60px;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  text-align: center;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--secondary-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-gold);
}

.product-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: var(--transition);
  background-color: #f8f8f8;
}

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

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.product-description {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.product-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.product-stock {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Product Card Admin Controls */
.product-admin-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.product-card:hover .product-admin-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.admin-control-btn {
  background-color: var(--secondary-color);
  border: 2px solid transparent;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  padding: 0;
}

.admin-control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-control-btn.edit-btn {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.admin-control-btn.edit-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.admin-control-btn.delete-btn {
  color: #dc3545;
  border-color: #dc3545;
}

.admin-control-btn.delete-btn:hover {
  background-color: #dc3545;
  color: var(--secondary-color);
}

.admin-control-btn svg {
  pointer-events: none;
}

.image-preview {
  margin-top: 0.5rem;
  text-align: center;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
}

.product-actions .btn-primary {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--accent-gold);
  color: var(--primary-color);
  font-weight: 700;
  transition: var(--transition);
}

.product-actions .btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Product detail page styles */
.product-detail-section {
  padding: 140px 20px 60px;
  min-height: 80vh;
}

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--accent-gold);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-images {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

.thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.product-detail-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: "Playfair Display", serif;
}

.product-detail-description {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.1rem;
}

.product-detail-meta {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.product-sizes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-sizes h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.size-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.size-option {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.size-option:hover,
.size-option.selected {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold);
  color: var(--primary-color);
}

.product-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.product-detail-actions .btn-primary,
.product-detail-actions .btn-secondary {
  flex: 1;
  padding: 1.25rem 2rem;
  font-size: 1rem;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-dark);
  font-size: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.featured-products,
.catalog-products {
  padding: 6rem 0;
}

.no-products,
.error-message {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.error-message {
  color: #dc3545;
}

/* Features */
.features {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--secondary-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-gold);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Catalog Specific */
.catalog-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
  color: var(--secondary-color);
  text-align: center;
  padding: 140px 20px 80px;
  position: relative;
  overflow: hidden;
}

.catalog-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 Q 25 25, 50 50 T 100 50" stroke="rgba(212,175,55,0.1)" fill="none" stroke-width="2"/></svg>');
  opacity: 0.3;
}

.catalog-header h1 {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.catalog-header p {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.filters {
  background-color: var(--accent-color);
  padding: 2rem 0;
}

.filter-bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-select,
.search-input {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

/* Contact */
.contact-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
  color: var(--secondary-color);
  text-align: center;
  padding: 140px 20px 80px;
  position: relative;
  overflow: hidden;
}

.contact-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-header h1,
.contact-header p {
  position: relative;
  z-index: 1;
}

.contact-content {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 51, 204, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.social-media {
  margin-top: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.social-link:hover {
  color: #002299;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
  color: var(--secondary-color);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--accent-gold);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cccccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
  color: #cccccc;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-large {
  max-width: 700px;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  color: var(--primary-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text-dark);
  transform: rotate(90deg);
}

.admin-login-form,
.product-form {
  padding: 2rem;
}

.form-error {
  color: #dc3545;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #f8d7da;
  border-radius: 4px;
  display: none;
}

.form-error.active {
  display: block;
}

.btn-full {
  width: 100%;
}

/* Admin Status Styles */
.admin-status {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.admin-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-status .btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.admin-status .btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.admin-status .btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-color);
  border: 2px solid var(--accent-gold);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.admin-status .btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Cart Page Styles */
.cart-section {
  padding: 140px 20px 60px;
  min-height: 80vh;
}

.page-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-size: 2.5rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.cart-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.cart-items {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-gold);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f8f8f8;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.cart-item-price {
  color: var(--accent-gold);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f8f8f8;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.quantity-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-color);
  transform: scale(1.1);
}

.quantity-value {
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
}

.cart-item-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 120px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: 2px solid #dc3545;
  color: #dc3545;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background-color: #dc3545;
  color: var(--secondary-color);
  transform: scale(1.1);
}

.cart-summary {
  flex: 1;
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--accent-gold);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 1rem;
}

.summary-row span:first-child {
  color: var(--text-light);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

.summary-total {
  border-bottom: none;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 2px solid var(--primary-color);
}

.summary-total span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.summary-total span:last-child {
  color: var(--accent-gold);
  font-family: "Playfair Display", serif;
}

.cart-summary .btn-primary,
.cart-summary .btn-secondary {
  margin-top: 1rem;
}

/* Checkout Page Styles */
.checkout-section {
  padding: 140px 20px 60px;
  min-height: 80vh;
}

.checkout-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.checkout-form-container {
  flex: 2;
  background: var(--secondary-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.checkout-form-container h2 {
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-size: 1.8rem;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 1rem;
}

.checkout-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.checkout-summary {
  flex: 1;
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--accent-gold);
  position: sticky;
  top: 100px;
}

.checkout-summary h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.checkout-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #f8f8f8;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.checkout-item-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.checkout-item-price {
  color: var(--accent-gold);
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.summary-totals {
  border-top: 2px solid var(--border-color);
  padding-top: 1rem;
}

/* Payment Result Pages */
.payment-result {
  padding: 140px 20px 60px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card {
  background: var(--secondary-color);
  padding: 4rem 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  text-align: center;
  max-width: 600px;
  border: 3px solid;
}

.result-card.success {
  border-color: #28a745;
}

.result-card.failure {
  border-color: #dc3545;
}

.result-card.pending {
  border-color: #ffc107;
}

.result-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.result-card.success .result-icon {
  background-color: #d4edda;
  color: #28a745;
}

.result-card.failure .result-icon {
  background-color: #f8d7da;
  color: #dc3545;
}

.result-card.pending .result-icon {
  background-color: #fff3cd;
  color: #ffc107;
}

.result-card h1 {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 2.5rem;
}

.result-card p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Responsive Cart & Checkout */
@media (max-width: 968px) {
  .cart-content,
  .checkout-content,
  .product-detail-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
    width: 100%;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-image {
    width: 100px;
    height: 100px;
  }

  .main-image-container {
    height: 400px;
  }

  .product-detail-title {
    font-size: 2rem;
  }

  .product-detail-price {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .cart-item,
  .product-detail-actions {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .cart-item-quantity {
    justify-content: center;
  }

  .cart-item-total {
    text-align: center;
  }

  .result-card {
    padding: 3rem 2rem;
  }

  .result-card h1 {
    font-size: 2rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn-primary,
  .result-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .catalog-header h1 {
    font-size: 2.5rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn-primary,
  .product-actions .btn-secondary {
    width: 100%;
  }

  .main-image-container {
    height: 300px;
  }
}
