/* CSS Variables */
:root {
  --primary-color: #2c1810;
  --secondary-color: #8b4513;
  --accent-color: #d4af37;
  --text-primary: #2c1810;
  --text-secondary: #6b5b73;
  --text-muted: #8a8a8a;
  --background-primary: #fefefe;
  --background-secondary: #f8f6f3;
  --background-accent: #fff8e7;
  --border-color: #e8e3dd;
  --border-light: #f0ebe5;
  --success-color: #2d5a27;
  --error-color: #c41e3a;
  --warning-color: #b8860b;
  --shadow-light: 0 2px 8px rgba(44, 24, 16, 0.08);
  --shadow-medium: 0 4px 16px rgba(44, 24, 16, 0.12);
  --shadow-heavy: 0 8px 32px rgba(44, 24, 16, 0.16);
  --border-radius: 8px;
  --border-radius-large: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fefefe 0%, #f8f6f3 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Styles */
.navbar {
  background: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
}

.nav-more {
  position: relative;
}

.more-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.more-btn:hover {
  background: var(--background-accent);
  border-color: var(--accent-color);
}

.more-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}

.more-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.more-dropdown a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.more-dropdown a:hover,
.more-dropdown a.active {
  background: var(--background-accent);
  color: var(--accent-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  width: 240px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--accent-color);
}

.cart-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Source Code Pro', monospace;
}

.cart-amount {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 16px;
}

.cart-count {
  font-size: 12px;
  color: var(--text-muted);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--background-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-nav a:hover {
  color: var(--accent-color);
}

.separator {
  color: var(--text-muted);
}

.current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Checkout Main */
.checkout-main {
  padding: 40px 0 80px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 40px;
}

.checkout-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.checkout-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Coupon Section */
.coupon-section {
  margin-bottom: 32px;
}

.coupon-toggle {
  background: var(--background-accent);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 16px 20px;
}

.coupon-info {
  margin: 0;
  color: var(--text-primary);
}

.show-coupon-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.show-coupon-btn:hover {
  color: var(--secondary-color);
}

.coupon-form {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-top: 16px;
  box-shadow: var(--shadow-light);
}

.coupon-description {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.coupon-input-group {
  display: flex;
  gap: 12px;
}

.coupon-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

.coupon-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.coupon-apply-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.coupon-apply-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

/* Checkout Content */
.checkout-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* Form Styles */
.checkout-form-section {
  background: white;
  border-radius: var(--border-radius-large);
  padding: 32px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
}

.form-columns {
  display: grid;
  gap: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--background-accent);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.required {
  color: var(--error-color);
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Order Review */
.order-review {
  position: sticky;
  top: 100px;
}

.order-card {
  background: white;
  border-radius: var(--border-radius-large);
  padding: 32px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
}

.order-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-align: center;
}

.order-table-wrapper {
  margin-bottom: 24px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 16px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.order-table th {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  width: 60%;
}

.product-total {
  width: 40%;
  text-align: right;
}

.product-quantity {
  color: var(--text-muted);
  font-weight: 400;
}

.price {
  font-family: 'Source Code Pro', monospace;
  font-weight: 600;
  color: var(--accent-color);
}

.subtotal-row th,
.subtotal-row td {
  padding-top: 20px;
  font-weight: 600;
}

.total-row {
  border-top: 2px solid var(--accent-color);
}

.total-row th,
.total-row td {
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.total-amount {
  font-family: 'Source Code Pro', monospace;
  color: var(--accent-color);
}

/* Payment Methods */
.payment-methods {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--background-secondary);
  border-radius: var(--border-radius);
}

.payment-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.payment-option {
  margin-bottom: 16px;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.payment-label:hover {
  background: rgba(212, 175, 55, 0.1);
}

.payment-name {
  font-weight: 500;
}

.payment-description {
  margin-top: 12px;
  padding-left: 32px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Privacy Policy */
.privacy-policy {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--background-accent);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* Place Order Button */
.place-order-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: var(--border-radius);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.place-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.place-order-btn:active {
  transform: translateY(0);
}

/* Security Badges */
.security-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.badge svg {
  color: var(--success-color);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: white;
  padding: 16px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .checkout-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .order-review {
    position: static;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .search-input {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-actions {
    gap: 12px;
  }
  
  .search-input {
    width: 160px;
  }
  
  .checkout-title {
    font-size: 32px;
  }
  
  .checkout-form-section,
  .order-card {
    padding: 24px;
  }
  
  .coupon-input-group {
    flex-direction: column;
  }
  
  .security-badges {
    flex-direction: column;
    gap: 12px;
  }
  
  .whatsapp-btn span {
    display: none;
  }
  
  .whatsapp-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .checkout-main {
    padding: 24px 0 60px;
  }
  
  .checkout-form-section,
  .order-card {
    padding: 20px;
  }
  
  .checkout-title {
    font-size: 28px;
  }
  
  .order-table th,
  .order-table td {
    padding: 12px 0;
    font-size: 14px;
  }
  
  .place-order-btn {
    font-size: 16px;
    padding: 14px 20px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success {
  border-color: var(--success-color) !important;
  background-color: rgba(45, 90, 39, 0.05);
}

.error {
  border-color: var(--error-color) !important;
  background-color: rgba(196, 30, 58, 0.05);
}

.success-message,
.error-message {
  padding: 12px 16px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  font-weight: 500;
}

.success-message {
  background: rgba(45, 90, 39, 0.1);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.error-message {
  background: rgba(196, 30, 58, 0.1);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}
