/* ===========================
   NAIJA WINE STORE - style.css
   =========================== */

/* --- CSS Variables (our color palette) --- */
:root {
  --wine-red:    #8B1A2F;
  --wine-dark:   #1a0a0f;
  --wine-gold:   #C9A84C;
  --wine-cream:  #FDF6EC;
  --wine-soft:   #f5e6e8;
  --text-dark:   #1a0a0f;
  --text-mid:    #5a3a42;
  --text-light:  #9a7a82;
  --card-bg:     #ffffff;
  --shadow:      0 4px 24px rgba(139,26,47,0.10);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  min-height: 100vh;
  padding-top: 88px;
}

/* --- VUE APP CONTAINER --- */
#app {
  width: 100%;
  min-height: 100vh;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  border-bottom: 1px solid rgba(110, 19, 19, 0.904);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 65px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
}

.cart-icon {
  font-size: 1.4rem;
  color: white;
  cursor: pointer;
  position: relative;
}

.cart-count {
  background: var(--wine-red);
  color: white;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: bold;
  margin-left: 4px;
}

/* --- HERO WITH VIDEO --- */
.hero {
  position: relative;
  width: 100%;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* The background img*/
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Text content sits on top of everything */
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.hero-tag {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-content h1 span {
  color: white;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

/* --- SEARCH BAR --- */
.search-bar input {
  width: 100%;
  max-width: 480px;
  padding: 14px 22px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  box-shadow: rgba(0,0,0,0.25);
}

/* --- FILTERS --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 28px 20px 10px;
  background: #ffffff;
}

.filter-btn {
  padding: 10px 26px;
  border-radius: 50px;
  border: 2px solid var(--wine-red);
  background: transparent;
  color: var(--wine-red);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--wine-red);
  color: white;
}

/* --- WINE GRID --- */
.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  padding: 30px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-mid);
  padding: 40px;
}

/* --- WINE CARD --- */
.wine-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.wine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(139,26,470.18,);
}

/* --- WINE CARD IMAGE --- */
.wine-img-wrap {
  background: white;
  height: 220px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.wine-img {
  height: 200px;
  width: 180px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.wine-card:hover .wine-img {
  transform: scale(1.06);
}

.wine-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.wine-origin {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wine-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--wine-dark);
  line-height: 1.3;
}

.wine-type {
  font-size: 0.82rem;
  color: var(--wine-red);
  font-weight: 500;
}

.wine-rating {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.wine-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.wine-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wine-dark);
}

/* --- BUTTONS --- */
.add-btn {
  background: var(--wine-red);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.add-btn:hover {
  background: var(--wine-dark);
}

.add-btn.big {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 16px;
  border-radius: 12px;
  display: block;
}

/* --- CART SIDEBAR --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: white;
  z-index: 10000;
  padding: 28px 24px;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: 'Playfair Display', serif;
  color: var(--wine-dark);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-mid);
}

.empty-cart {
  text-align: center;
  color: var(--text-light);
  margin-top: 40px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--wine-cream);
  border-radius: 12px;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--wine-cream);
  padding: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wine-dark);
}

.cart-item-size {
  font-size: 0.75rem;
  color: var(--wine-red);
  font-weight: 600;
  margin: 1px 0;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--text-mid);
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cart-total {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid var(--wine-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-total strong {
  font-size: 1.2rem;
  color: var(--wine-dark);
}

.checkout-btn {
  background: var(--wine-red);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.checkout-btn:hover {
  background: var(--wine-dark);
}

/* --- WINE DETAIL MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  z-index: 10001;
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal .close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
}

.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--wine-dark);
  margin-bottom: 10px;
}

.modal-origin,
.modal-type,
.modal-rating {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 4px 0;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 14px 0;
  line-height: 1.6;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wine-red);
}

.modal-size-tag {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

/* --- MODAL IMAGE --- */
.modal-img-wrap {
  background: linear-gradient(135deg, var(--wine-soft), var(--wine-cream));
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.modal-img {
  height: 160px;
  width: auto;
  object-fit: contain;
}

/* --- SIZE SELECTOR --- */
.size-section {
  margin: 14px 0 6px;
  text-align: left;
}

.size-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.size-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid var(--wine-soft);
  background: var(--wine-cream);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s;
  min-width: 70px;
}

.size-btn:hover {
  border-color: var(--wine-red);
  color: var(--wine-red);
}

.size-btn.active {
  background: var(--wine-red);
  border-color: var(--wine-red);
  color: white;
}

.size-btn.active .size-price {
  color: rgba(255,255,255,0.85);
}

.size-price {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}

.size-price.coming {
  color: var(--wine-gold);
  font-style: italic;
}

/* --- RELATED PRODUCTS --- */
.related-section {
  margin-top: 24px;
  border-top: 1px solid var(--wine-soft);
  padding-top: 18px;
  text-align: left;
}

.related-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--wine-dark);
  margin-bottom: 14px;
}

.related-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.related-card {
  min-width: 100px;
  background: var(--wine-cream);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-img {
  width: 60px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 6px;
}

.related-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wine-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.related-price {
  font-size: 0.75rem;
  color: var(--wine-red);
  font-weight: 700;
}