/* ========== BASE STYLES ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --primary-green: #2d8659;
  --secondary-green: #5eb075;
  --sky-blue: #87ceeb;
  --accent-blue: #4a9fd8;
  --light-bg: #f5faf8;
  --white-bg: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --border-color: #d9e8e3;
  --success: #4ade80;
  --error: #ef4444;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #e8f5f0 0%, #f5faf8 100%);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER / NAVBAR ========== */
.navbar {
  background: var(--white-bg);
  padding: 20px 32px;
  border-bottom: 3px solid var(--primary-green);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-transform: capitalize;
}

.navbar-brand h1 a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
}

.navbar-brand h1 a:hover {
  color: var(--secondary-green);
}

.navbar-menu ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--primary-green);
}

.navbar-menu .social-item {
  display: flex;
  align-items: center;
}

.navbar-menu .social-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.navbar-menu .social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.navbar-menu .social-link:hover {
  color: var(--primary-green);
  border-color: var(--primary-green);
  background-color: rgba(45, 134, 89, 0.08);
}

.badge {
  background: var(--accent-blue);
  color: var(--white-bg);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* ========== MAIN CONTENT ========== */
main {
  min-height: calc(100vh - 200px);
}

section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 2rem;
  color: var(--primary-green);
  margin: 0 0 40px 0;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--secondary-green);
  font-weight: 600;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin: 0 0 16px 0;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  font-weight: 600;
}

/* ========== HERO SECTION ========== */
.hero {
  background: radial-gradient(circle at 8% 16%, rgba(180, 222, 201, 0.65) 0%, rgba(180, 222, 201, 0) 42%),
              radial-gradient(circle at 88% 82%, rgba(148, 196, 230, 0.38) 0%, rgba(148, 196, 230, 0) 36%),
              linear-gradient(135deg, #eff8f3 0%, #f7fbf9 48%, #e9f2ee 100%);
  padding: 72px 0 78px;
  color: var(--white-bg);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(340px, 1fr);
  gap: 34px;
  align-items: stretch;
}

.hero-content {
  background: linear-gradient(160deg, #1f3f31 0%, #2d5e45 70%, #2e6d4c 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 42px 34px;
  box-shadow: 0 14px 36px rgba(23, 57, 40, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  margin: 0 0 12px 0;
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #e8f5ee;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 16px;
  border: none;
  color: var(--white-bg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-music {
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 1rem;
}

.hero-music a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: minmax(240px, 1fr) minmax(150px, 0.72fr);
  gap: 12px;
}

.hero-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #dcefe2;
  border: 1px solid rgba(36, 81, 58, 0.2);
  box-shadow: 0 10px 22px rgba(32, 72, 52, 0.2);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-shot-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.hero-shot-main img {
  object-position: center 46%;
}

.hero-shot-side {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.hero-shot-side img {
  object-position: center 45%;
}

.hero-shot-view {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.hero-shot-view img {
  object-position: center 56%;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white-bg);
}

.btn-primary:hover {
  background: var(--secondary-green);
}

.btn-secondary {
  background: var(--accent-blue);
  color: var(--white-bg);
}

.btn-secondary:hover {
  background: #3a8cc4;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.product-card {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(45, 134, 89, 0.15);
}

.product-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #e8f5f0 0%, #f0faf7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.product-category {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.product-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.product-price {
  font-size: 1.3rem;
  color: var(--primary-green);
  font-weight: bold;
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  gap: 12px;
}

.product-actions .btn {
  flex: 1;
}

/* ========== PROMOTIONS ========== */
.promotions {
  background-image: linear-gradient(rgba(45, 134, 89, 0.85), rgba(94, 176, 117, 0.85)), url('../images/wine-grapes.svg');
  background-size: cover;
  background-position: center;
}

.promo-banner {
  padding: 60px 40px;
  text-align: center;
  color: var(--white-bg);
}

.promo-banner h3 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--white-bg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.promo-banner p {
  font-size: 1.2rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========== EVENTS ========== */
.event-item {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.event-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 16px rgba(43, 138, 138, 0.2);
}

.event-date {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 0.95rem;
}

.event-title {
  font-size: 1.3rem;
  color: var(--text-light);
  margin: 8px 0;
  font-weight: 600;
}

.event-description {
  color: var(--text-muted);
  margin: 12px 0;
}

.event-location {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: linear-gradient(135deg, rgba(45, 134, 89, 0.05) 0%, rgba(132, 206, 235, 0.05) 100%);
  text-align: center;
}

.newsletter h2 {
  border-bottom: 3px solid var(--secondary-green);
}

.newsletter p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--white-bg);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-dark);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

/* ========== FOOTER ========== */
footer {
  background: var(--white-bg);
  border-top: 3px solid var(--primary-green);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--primary-green);
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0;
}

.footer-section a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== CART PAGE ========== */
.cart-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
  margin-top: 32px;
}

.cart-items {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.cart-item-price {
  color: var(--primary-green);
  margin-bottom: 12px;
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.cart-item-quantity button {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.cart-item-quantity button:hover {
  background: var(--primary-green);
  color: var(--white-bg);
  border-color: var(--primary-green);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
  margin-top: 12px;
}

.cart-item-remove:hover {
  color: var(--primary-color);
}

.cart-summary {
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cart-summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-green);
}

/* ========== FORM STYLES ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background: var(--white-bg);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

/* ========== LOADING & STATES ========== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* ========== ALERT MESSAGES ========== */
.alert {
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}

.alert.show {
  display: block;
}

.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 16px;
  }

  .navbar-menu ul {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .navbar-menu .social-link {
    width: 34px;
    height: 34px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .hero {
    padding: 54px 0 58px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-content {
    padding: 30px 22px;
  }

  .hero h2 {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 130px;
  }

  .hero-shot-main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .hero-shot-side {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .hero-shot-view {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .newsletter-form {
    flex-direction: column;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 12px 16px;
  }

  .navbar-brand h1 {
    font-size: 1.3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }
}
