/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1f36;
  --accent: #c9a961;
  --secondary: #2d3748;
  --light-bg: #f7f9fc;
  --white: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --border-light: #e2e8f0;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f7f9fc 0%, #f0f4f8 100%);
  letter-spacing: 0.3px;
}

/* Header Styles */
.main-header {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3748 100%);
  color: white;
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo i {
  font-size: 1.8rem;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(201, 169, 97, 0.3));
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transition: left 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a:hover::before {
  left: 0;
}

.admin-link {
  background: rgba(201, 169, 97, 0.15);
  border: 1.5px solid rgba(201, 169, 97, 0.3);
  color: var(--accent);
}

.admin-link:hover {
  background: rgba(201, 169, 97, 0.25);
  border-color: var(--accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3748 50%, #1a1f36 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  min-height: 5vh;
  padding: 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 0%, #c9a961 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  width: min(100%, 1100px);
  margin-left: auto;
  margin-right: auto;
}

.hero-gallery-item {
  flex: 1 1 240px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.22);
}

.hero-gallery-item img {
  width: 100%;
  display: block;
  height: 220px;
  object-fit: cover;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 97, 0.2);
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature i {
  font-size: 1.5rem;
  color: var(--accent);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.feature span {
  font-weight: 600;
  font-size: 0.85rem;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Products Section */
.products-section {
  padding: 6rem 0;
  background: var(--light-bg);
}

.products-section h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.products-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 1.5rem auto 0;
}

.category-group {
  margin-top: 3.5rem;
}

.category-group:first-child {
  margin-top: 2rem;
}

.category-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  margin-bottom: 2rem;
  letter-spacing: -0.2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.5s ease;
  z-index: 10;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-info {
  padding: 2rem;
}

.product-category {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.product-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.product-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #b8936b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}

.selected-product img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1rem;
  object-fit: cover;
  max-height: 180px;
}

.cart-note {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.cart-item-details h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.cart-item-details p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-action-btn,
.clear-cart-btn,
.cart-remove-btn {
  border: 1px solid var(--border-light);
  background: white;
  color: var(--primary);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cart-action-btn:hover,
.clear-cart-btn:hover,
.cart-remove-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.cart-total {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-link {
  position: relative;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.45rem;
}

.cart-item-subtotal {
  margin-top: 0.35rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.info-section {
  padding: 5rem 0;
  background: #ffffff;
}

.info-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.info-section p {
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 900px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: #f8fafc;
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.contact-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.contact-card p {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.map-container {
  margin-top: 2.5rem;
}

.map-container h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.map-container iframe {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: block;
}

.map-link {
  margin-top: 0.75rem;
  text-align: right;
}

.map-link a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.map-link a:hover {
  text-decoration: underline;
}

.clear-cart-btn {
  display: none;
}

@media (max-width: 900px) {
  .hero-gallery-item img {
    height: 180px;
  }
}

.select-product-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.select-product-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.select-product-btn:hover::before {
  width: 300px;
  height: 300px;
}

.select-product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 169, 97, 0.25);
}

/* Checkout Section */
.checkout-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem;
  align-items: start;
}

.checkout-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.checkout-form h2 {
  color: var(--primary);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.checkout-form h2 i {
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.payment-method-group {
  margin-bottom: 1.5rem;
}

.payment-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-options input {
  accent-color: var(--accent);
}

.payment-options label:hover {
  border-color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
  background: rgba(201, 169, 97, 0.01);
}

.order-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  padding: 1.1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.order-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.order-btn:hover::before {
  width: 300px;
  height: 300px;
}

.order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(26, 31, 54, 0.25);
}

/* Order Summary */
.order-summary {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 100px;
}

.order-summary h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

#selected-product-info {
  margin-bottom: 2.5rem;
}

.no-selection {
  color: var(--text-light);
  font-style: italic;
}

.selected-product {
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.05), rgba(201, 169, 97, 0.02));
}

.selected-product h4 {
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.selected-product .price {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #b8936b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-methods {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.payment-methods h4 {
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-weight: 600;
}

.payment-icons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.payment-icons i {
  font-size: 2.2rem;
  color: var(--accent);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.payment-icons i:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Messages */
#message {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  border-left: 4px solid transparent;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#message.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  color: #047857;
  border-left-color: #10b981;
}

#message.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  color: #991b1b;
  border-left-color: #ef4444;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 0 1.5rem;
  margin-top: 6rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-section h3 i {
  color: var(--accent);
  font-size: 1.5rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-section ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .header-container {
    padding: 0 2rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 2.8rem;
  }

  .checkout-container {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .main-nav {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-features {
    gap: 1.5rem;
  }

  .feature {
    padding: 1rem 1.2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .products-section h2 {
    font-size: 2rem;
  }

  .checkout-form {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .footer-content {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.2rem;
  }

  .logo i {
    font-size: 1.8rem;
  }

  .main-nav {
    gap: 0.8rem;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }

  .feature {
    width: 100%;
  }

  .products-section h2 {
    font-size: 1.6rem;
  }

  .product-price {
    font-size: 1.4rem;
  }

  .checkout-form {
    padding: 1rem;
  }

  .order-summary {
    padding: 1.5rem;
  }
}
