/* 
 * Gramado Wine - Premium Styles
 * Design System: Marsala/Cabernet/Sand/Off-White
 * Fonts: Oranienbaum (Headings), Inter (Body)
 */

:root {
  /* Colors - Brand Identity */
  --color-marsala: #64242E;
  --color-cabernet: #742429;
  --color-sand: #F1CC98;
  --color-off-white: #F8F7F2;
  --color-black: #0f0f0f;
  --color-dark-grey: #1a1a1a;
  
  /* Semantic Mappings */
  --primary-color: var(--color-marsala);
  --accent-color: var(--color-sand);
  --bg-dark: var(--color-marsala);
  --bg-black: var(--color-black);
  --bg-light: #f0eee6; /* Slightly darker off-white for contrast against white elements if any */
  --bg-white: var(--color-off-white); /* No more pure white */
  
  --text-dark: #1a1a1a;
  --text-grey: #4a4a4a; /* Darker grey for better contrast */
  --text-light: var(--color-off-white);
  --text-white: #ffffff;
  --text-gold: var(--color-sand);

  /* Fonts */
  --font-heading: 'Inter', sans-serif; /* User preference: Inter as standard */
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Oranienbaum', serif; /* Kept for specific decorative uses if needed */

  /* Spacing */
  --navbar-height: 80px;
  --section-padding: 60px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400; /* Oranienbaum usually looks good at 400 */
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-sand) !important; }
.text-marsala { color: var(--color-marsala) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-white { color: var(--text-white) !important; }
.mt-2 { margin-top: 2rem; }

.section-padding {
  padding: var(--section-padding) 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-sand-light { background-color: rgba(241, 204, 152, 0.15); } /* Distinct background */
.bg-dark { background-color: var(--color-marsala); color: var(--text-white); } /* Brand change */
.bg-black { background-color: var(--color-black); color: var(--text-white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0; /* More classic/sharp for this brand */
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--color-sand) !important;
  color: var(--color-marsala) !important;
  border: 1px solid var(--color-sand) !important;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  background: var(--color-cabernet) !important;
  border-color: var(--color-cabernet) !important;
  color: var(--text-white) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(100, 36, 46, 0.3) !important;
}

.btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(100, 36, 46, 0.2) !important;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-off-white);
  border: 1px solid var(--color-off-white);
}

.btn-outline:hover {
  background-color: var(--color-off-white);
  color: var(--color-marsala);
}

.btn-outline-dark {
  border: 1px solid var(--color-marsala);
}

.btn-outline-dark:hover {
  background-color: var(--color-marsala);
  color: var(--text-white);
}

/* Buttons - Outline variant */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
  padding: 25px 0;
}

.navbar.scrolled {
  background: rgba(100, 36, 46, 0.95); /* Marsala transparent */
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  height: 45px;
  width: auto;
}

.navbar-menu {
  display: flex;
  gap: 35px;
}

.navbar-menu a {
  color: var(--color-off-white);
  font-size: 0.8rem;
  letter-spacing: 2px; /* Expanded spacing */
  text-transform: uppercase;
  position: relative;
  font-weight: 500;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-sand);
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar-actions .btn {
  padding: 10px 24px;
}

/* Cart Button */

.btn-cart {
    position: relative;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    color: var(--color-sand);
    transform: scale(1.1);
}

.cart-count {
  position: absolute !important;
  top: -8px !important;
  right: -10px !important;
  background: var(--color-sand) !important;
  color: var(--color-marsala) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  min-width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
  z-index: 1000 !important;
  line-height: 1 !important;
}

/* Only hide when explicitly set or empty */
.cart-count[style*="display: none"],
.cart-count:empty {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-off-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Menu - Hidden on Desktop */
.mobile-menu-sidebar,
.mobile-menu-backdrop {
  display: none;
}


/* Hero Carousel Section */
.hero-carousel {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-black);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomSlow 10s infinite alternate; /* Subtle breathing effect */
}

@keyframes zoomSlow {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.slide-bg .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(100, 36, 46, 0.5), rgba(10, 5, 5, 0.4), rgba(100, 36, 46, 0.6));
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    max-width: 800px;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
}

.slide.active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.7s;
}

.slide.active .slide-content p {
    opacity: 1;
    transform: translateY(0);
}

.slide-content .btn {
    opacity: 0;
    transition: all 1s ease 0.9s;
}
.slide.active .slide-content .btn { opacity: 1; }

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-dot.active {
    background-color: var(--color-sand);
    transform: scale(1.2);
}

/* Media Queries for Hero */
@media (max-width: 768px) {
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content p { font-size: 1rem; }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 0;
  box-shadow: 20px 20px 0 var(--color-marsala);
  border: 1px solid rgba(241, 204, 152, 0.3);
  transition: all 0.3s ease;
}

.about-image img:hover {
  box-shadow: 25px 25px 0 var(--color-marsala);
  border-color: var(--color-sand);
  transform: translate(-2px, -2px);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--color-marsala);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sand), transparent);
}

.about-grid .section-title {
    color: var(--color-marsala);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-sand);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 4px; /* Expanded spacing per manual */
  font-weight: 600;
  display: block;
}

.text-block p {
  margin-bottom: 20px;
  color: var(--text-grey);
  font-size: 1.05rem;
}

/* Shop Section */
.shop .section-header {
  margin-bottom: 70px;
}

.shop-grid {
  /* Grid controlled by JS for carousel - no CSS grid here */
  margin-bottom: 50px;
}

/* ===== ENHANCED LAYOUTS FOR FEWER PRODUCTS ===== */

/* 2 PRODUCTS - Premium Large Display */
.shop-grid.view-2 .shop-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 300px;
}

.shop-grid.view-2 .card-image {
  width: 45%; 
  /* Height is determined by aspect-ratio 2/3 on base class */
  height: auto !important; 
  flex-shrink: 0;
  align-self: flex-start; 
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.shop-grid.view-2 .card-info {
  width: 55%;
  padding: 2rem !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shop-grid.view-2 .card-info h3 {
  font-size: 1rem !important;
  min-height: auto !important;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.shop-grid.view-2 .product-code {
  font-size: 0.9rem !important;
  color: #999;
 /*  margin-bottom: 1rem; */
}

.shop-grid.view-2 .product-price {
  font-size: 2rem !important;
  font-weight: 700;
  color: var(--color-marsala);
  /* margin: 1.5rem 0; */
}

.shop-grid.view-2 .btn-add-to-cart {
  font-size: 1.1rem !important;
  padding: 18px 40px !important;
  margin-top: auto;
}

/* 4 PRODUCTS - Enhanced Display */
.shop-grid.view-4 .shop-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-grid.view-4 .card-image {
  height: 320px !important;
}

.shop-grid.view-4 .card-info {
  padding: 1.5rem !important;
}

.shop-grid.view-4 .card-info h3 {
  font-size: 1.1rem !important;
  min-height: 55px !important;
  line-height: 1.4;
}

.shop-grid.view-4 .product-price {
  font-size: 1.4rem !important;
  font-weight: 600;
  margin: 1rem 0;
}

.shop-grid.view-4 .btn-add-to-cart {
  font-size: 0.95rem !important;
  padding: 14px 30px !important;
}

.shop-grid.view-4 .shop-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(100, 36, 46, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  /* 2 products - stack on tablet */
  .shop-grid.view-2 .shop-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .shop-grid.view-2 .card-image {
    width: 100%;
    height: 300px;
    min-height: 300px;
  }
  
  .shop-grid.view-2 .card-info {
    width: 100%;
    padding: 1.5rem !important;
  }
  
  .shop-grid.view-2 .card-info h3 {
    font-size: 1.2rem !important;
  }
  
  .shop-grid.view-2 .product-price {
    font-size: 1.5rem !important;
  }
  
  /* 4 products - reduce to 2 columns on tablet */
  .shop-grid.view-4 .carousel-track {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  /* All views become single column on mobile */
  .shop-grid .carousel-track {
    grid-template-columns: 1fr !important;
  }
  
  /* 2 products mobile */
  .shop-grid.view-2 .shop-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .shop-grid.view-2 .card-image {
    width: 100%;
    height: 250px;
    min-height: 250px;
  }
  
  .shop-grid.view-2 .card-info {
    width: 100%;
    padding: 1.5rem !important;
    text-align: center;
  }
  
  .shop-grid.view-2 .card-info h3 {
    font-size: 1.1rem !important;
  }
  
  .shop-grid.view-2 .product-price {
    font-size: 1.3rem !important;
  }
  
  .shop-grid.view-2 .btn-add-to-cart {
    font-size: 1rem !important;
    padding: 14px 28px !important;
  }
  
  /* 4 products mobile - standard card */
  .shop-grid.view-4 .card-image {
    height: 220px !important;
  }
  
  .shop-grid.view-4 .card-info {
    padding: 1rem !important;
  }
  
  .shop-grid.view-4 .card-info h3 {
    font-size: 0.9rem !important;
    min-height: 45px !important;
  }
  
  .shop-grid.view-4 .product-price {
    font-size: 1.1rem !important;
  }
  
  .shop-grid.view-4 .btn-add-to-cart {
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
  }
}

.shop-card {
  background: linear-gradient(135deg, 
    rgba(248, 247, 242, 0.95) 0%, 
    rgba(255, 255, 255, 0.95) 100%);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(241, 204, 152, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sand), var(--color-marsala));
  transition: width 0.4s ease;
}

.shop-card:hover::before {
  width: 100%;
}

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(100, 36, 46, 0.15);
  border-color: var(--color-sand);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3; /* Strict 800x1200 proportion */
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* User removed padding, keeping it clean */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure entire bottle is visible */
  object-position: center center; /* Perfect vertical and horizontal centering */
  transition: transform 0.6s ease;
  mix-blend-mode: multiply; /* Helps blend whitespace if image has white bg */
}

.shop-card:hover .card-image img {
  transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(100, 36, 46, 0.85); /* Darker for better contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.shop-card:hover .card-overlay {
    opacity: 1;
}

/* Wishlist button in card */
.btn-wishlist-card {
    background: white;
    color: var(--color-marsala);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-wishlist-card:hover {
    background: var(--color-sand);
    transform: scale(1.15);
}

.btn-wishlist-card.active {
    background: var(--color-marsala);
    color: white;
}

.btn-wishlist-card.active i {
    animation: heartbeat 0.6s ease;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

.card-info {
  padding: 0.3rem 1rem;
  text-align: center;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
 /*  gap: 10px; */
  min-height: 180px;
}

.card-info h3 {
  font-size: 0.6rem;
  margin-bottom: 5px;
  font-family: var(--font-heading);
  color: var(--color-marsala);
  line-height: 1.3;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-info p {
  font-size: 0.80rem;
  color: var(--text-grey);
  font-weight: 300;
}

/* Club Section */
.club-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  background: var(--color-black); /* Keeping club very dark for contrast */
  border-radius: 0;
  overflow: hidden;
  padding: 80px 0;
}

.club-content {
    padding: 0 60px;
}

.club .section-title {
    color: var(--color-sand);
}

.club-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-body);
    margin-bottom: 25px;
    font-weight: 300;
    color: var(--color-off-white);
}

.club-benefits {
    margin: 40px 0;
}

.club-benefits li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--color-off-white);
}

.club-benefits i {
    color: var(--color-sand);
}

.club-image {
    position: relative;
    padding-right: 60px;
}

.club-image img {
    border-radius: 0;
    box-shadow: -30px 30px 0 rgba(241, 204, 152, 0.1);
}

.club-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--color-marsala);
    color: var(--color-sand);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 400;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transform: rotate(-10deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    line-height: 1.1;
    border: 1px solid var(--color-sand);
}

/* B2B Section - Robust & Prominent */
.b2b {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/business-wine.jpg');
    background-size: cover;
    background-attachment: fixed;
    border-top: 10px solid var(--color-sand);
    padding: 120px 0;
}

.b2b-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: rgba(15, 15, 15, 0.9);
    padding: 60px;
    border: 1px solid var(--color-sand);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.b2b-content {
    text-align: left;
}

.b2b-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.b2b-content .lead {
    font-size: 1.5rem;
    color: var(--color-sand);
    font-weight: 600;
    margin-bottom: 40px;
}

.b2b-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.03); /* Subtle glass effect */
    border: 1px solid rgba(241, 204, 152, 0.3); /* Low opacity Sand border */
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-sand);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature i {
    font-size: 2rem;
    color: var(--color-sand);
    margin-bottom: 10px;
    background: rgba(100, 36, 46, 0.3); /* Marsala Tint bg for icon */
    padding: 15px;
    border-radius: 4px; /* Slight roundness or keep 0 for sharp */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-text p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .b2b-features-list {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    padding-top: 100px;
    padding-bottom: 30px;
    border-top: 5px solid var(--color-marsala);
    background-color: var(--color-black);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-logo {
    width: 220px;
    height: auto;
    margin-bottom: 25px;
    filter: none;
}

.footer-brand p {
    color: var(--text-grey);
    margin-bottom: 25px;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--color-off-white);
    background: #2a2a2a;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--color-marsala);
    color: var(--color-off-white);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-sand);
    font-weight: 400;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-off-white);
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--color-sand);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 18px;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 300;
}

.footer-contact i {
    color: var(--color-marsala);
    width: 20px;
}

.newsletter-form {
    display: flex;
    border: 1px solid #333;
}

.newsletter-form input {
    padding: 15px;
    border: none;
    background: #111;
    color: white;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    background: var(--color-marsala);
    border: none;
    padding: 0 20px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--color-cabernet);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s ease;
}

/* Removed fade-up animation - was causing opacity:0 on carousel cards */
.fade-up,
.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.active {
    opacity: 1;
    transform: translate(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .shop-grid { gap: 20px; }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    .navbar-menu { display: none; }
    
    .nav-icons {
        display: none;
    }
    /* Keep cart visible, hide only "ASSINAR CLUB" button */
    .navbar-actions .btn { display: none; }
    .btn-cart { display: flex !important; font-size: 1.5rem; }
    
    /* ==========================================
       HAMBURGER BUTTON - Modern Animated Design
       ========================================== */
    .mobile-menu-btn { 
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        z-index: 3000;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 24px;
        padding: 0;
        transition: all 0.3s ease;
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn:hover {
        transform: scale(1.1);
    }
    
    .hamburger-line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-off-white);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
        opacity: 1;
    }
    
    /* Hamburger Animation to X */
    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
    
    /* ==========================================
       MOBILE MENU SIDEBAR - Premium Slide-in
       ========================================== */
    .mobile-menu-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(100, 36, 46, 0.98) 0%, 
            rgba(116, 36, 41, 0.98) 50%, 
            rgba(64, 24, 30, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 2500;
        transform: translateX(calc(100% + 10px));
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        border-left: 1px solid rgba(241, 204, 152, 0.1);
    }
    
    .mobile-menu-sidebar.active {
        transform: translateX(0);
    }
    
    /* Header with Logo */
    .mobile-menu-header {
        padding: 40px 30px 30px;
        border-bottom: 1px solid rgba(241, 204, 152, 0.15);
        background: rgba(0, 0, 0, 0.2);
        position: relative;
    }
    
    .mobile-logo {
        width: 140px;
        height: auto;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.5s ease 0.2s;
    }
    
    .mobile-menu-sidebar.active .mobile-logo {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-close-btn {
        background: transparent;
        border: 2px solid rgba(241, 204, 152, 0.3);
        color: var(--color-sand);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.3s ease;
        opacity: 0;
        transform: rotate(0deg) scale(0.8);
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
    }
    
    .mobile-menu-sidebar.active .mobile-close-btn {
        opacity: 1;
        transform: rotate(0deg) scale(1);
        transition: all 0.5s ease 0.3s;
    }
    
    .mobile-close-btn:hover {
        background: var(--color-sand);
        color: var(--color-marsala);
        border-color: var(--color-sand);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 20px rgba(241, 204, 152, 0.5);
    }
    
    .mobile-close-btn:active {
        transform: rotate(90deg) scale(0.95);
    }
    
    /* Navigation Links */
    .mobile-nav-links {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    
    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 20px 30px;
        color: var(--color-off-white);
        font-family: var(--font-heading);
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 500;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    /* Staggered entrance animation */
    .mobile-menu-sidebar.active .mobile-nav-item:nth-child(1) { 
        animation: slideInRight 0.4s ease 0.1s forwards; 
    }
    .mobile-menu-sidebar.active .mobile-nav-item:nth-child(2) { 
        animation: slideInRight 0.4s ease 0.15s forwards; 
    }
    .mobile-menu-sidebar.active .mobile-nav-item:nth-child(3) { 
        animation: slideInRight 0.4s ease 0.2s forwards; 
    }
    .mobile-menu-sidebar.active .mobile-nav-item:nth-child(4) { 
        animation: slideInRight 0.4s ease 0.25s forwards; 
    }
    .mobile-menu-sidebar.active .mobile-nav-item:nth-child(5) { 
        animation: slideInRight 0.4s ease 0.3s forwards; 
    }
    
    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-number {
        font-size: 0.75rem;
        color: var(--color-sand);
        font-weight: 600;
        opacity: 0.6;
        font-family: var(--font-body);
    }
    
    .nav-text {
        flex: 1;
        transition: transform 0.3s ease;
    }
    
    /* Hover effects */
    .mobile-nav-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, 
            rgba(241, 204, 152, 0.1) 0%, 
            transparent 100%);
        transition: width 0.3s ease;
    }
    
    .mobile-nav-item:hover {
        color: var(--color-sand);
        border-left-color: var(--color-sand);
    }
    
    .mobile-nav-item:hover::before {
        width: 100%;
    }
    
    .mobile-nav-item:hover .nav-text {
        transform: translateX(5px);
    }
    
    .mobile-nav-item:hover .nav-number {
        opacity: 1;
    }
    
    .mobile-nav-item:active {
        background: rgba(241, 204, 152, 0.05);
    }
    
    /* Footer Section */
    .mobile-menu-footer {
        padding: 30px;
        border-top: 1px solid rgba(241, 204, 152, 0.15);
        background: rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        gap: 20px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease 0.35s;
    }
    
    .mobile-menu-sidebar.active .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }
    
    .btn-mobile-cta {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .mobile-social-links {
        display: flex;
        gap: 15px;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-social-links a {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(241, 204, 152, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-sand);
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .mobile-social-links a:hover {
        background: var(--color-sand);
        color: var(--color-marsala);
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 5px 15px rgba(241, 204, 152, 0.4);
        border-color: var(--color-sand);
    }
    
    .mobile-contact {
        text-align: center;
        color: var(--color-off-white);
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0;
        opacity: 0.8;
    }
    
    .mobile-contact i {
        color: var(--color-sand);
        font-size: 0.9rem;
    }
    
    /* ==========================================
       BACKDROP OVERLAY
       ========================================== */
    .mobile-menu-backdrop {
        display: block; /* Enable on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* ==========================================
       OTHER MOBILE STYLES
       ========================================== */
    .hero-text h1 { font-size: 2.8rem; }
    
    .about-grid, .club-wrapper, .shop-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reduce box-shadow on mobile */
    .about-image img {
        box-shadow: 10px 10px 0 var(--color-marsala);
    }
    
    .about-image img:hover {
        box-shadow: 12px 12px 0 var(--color-marsala);
    }
    
    .about-image { margin-bottom: 40px; }
    .club-image { padding: 0; margin-top: 40px; }
    .club-content { padding: 0 30px; }
    
    .club-badge {
        width: 90px; height: 90px; font-size: 0.8rem;
        right: 20px; bottom: 20px;
    }

    /* B2B Mobile Fixes */
    .b2b { padding: 60px 0; }
    .b2b-grid { 
        grid-template-columns: 1fr; 
        padding: 30px 20px; 
        gap: 40px; 
    }
    
    .b2b-content h2 { font-size: 2.5rem; }
    .b2b-content .lead { font-size: 1.2rem; }
    
    .b2b-features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* General Mobile Spacing Fixes */
    .section-padding { padding: 60px 0; }
    .about-grid { gap: 40px; }
}

/* Utility to override list item colors in light sections */
.text-dark-override li {
    color: var(--text-dark) !important;
}
.text-dark-override i {
    color: var(--color-marsala) !important; /* Make icons Marsala for contrast on light bg */
}



/* Shared Item Styles */


/* Content Wrapper - Inner 2x2 Grid */
.item-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    align-items: center;
}

/* Item Details - Unwrap to grid children */
.item-details {
    display: contents; /* Allows h4 and p to be grid items directly */
}

/* Name - Col 1 Row 1 */
.item-details h4 {
    grid-row: 1;
    grid-column: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-marsala);
    margin: 0;
    line-height: 1.2;
    align-self: end;
}

/* Remove Button - Col 2 Row 1 */
.item-remove {
    grid-row: 1;
    grid-column: 2;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    justify-self: end;
}

.item-remove:hover {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
}

/* Price - Col 1 Row 2 (Requested) */
.item-price {
    grid-row: 2;
    grid-column: 1;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-marsala);
    margin: 0;
    align-self: start;
}

/* Quantity Controls - Col 2 Row 2 (Requested) */
.item-quantity {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

.item-quantity span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-marsala);
    min-width: 30px;
    text-align: center;
}



/* Footer */




/* ==========================================
   PRODUCT CAROUSEL (REFACTORED)
   ========================================== */
.carousel-wrapper {
    position: relative;
    max-width: 100%; /* Use full width logic but keep some margin */
    margin: 0 auto;
    padding: 0 60px; /* Space for arrows */
}

/* New container for safe rendering */
.carousel-track-container {
    overflow: hidden; /* Prevent spillover */
    width: 100%;
}

.carousel-track {
    display: grid;
    /* grid specific to be injected by JS */
    width: 100%;
    gap: 20px;
    /* min-height: 480px; */
    transition: all 0.3s ease;
}

/* User Icons Section */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.btn-cart {
    position: relative;
    background: none;
    border: none;
    color: var(--color-off-white);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
 
}

.btn-cart:hover {
    color: var(--color-sand);
    background: rgba(241, 204, 152, 0.1);
    transform: scale(1.1);
}

/* User icon when logged in - golden color */
.btn-user.logged-in {
    color: var(--color-sand);
}

.btn-user.logged-in i {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 2px var(--color-sand));
    }
    50% {
        filter: drop-shadow(0 0 6px var(--color-sand));
    }
}

.cart-count {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: var(--color-sand) !important;
    color: var(--color-marsala) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

/* Mobile Menu Button */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-marsala);
    color: var(--text-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 100; /* Ensure it is above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* Force pointer events */
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--color-cabernet);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #ccc; /* Visual feedback for disabled */
    pointer-events: none; /* Prevent click when disabled */
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(100, 36, 46, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-marsala);
    transform: scale(1.3);
}

/* Product Card Enhancements */
.product-code {
    font-size: 0.5rem;
    color: var(--text-grey);
    margin-bottom: 8px;
}

.product-price {
    margin: 2px 0;
}

.product-price .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-marsala);
}

.btn-add-to-cart {
    width: 100%;
    margin-top: 10px; /* Normal spacing from price */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 0.60rem;
}

.btn-view-details {
    background: var(--color-marsala);
    color: var(--text-white);
    border: none;
}

.btn-view-details:hover {
    background: var(--color-cabernet);
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-marsala);
    color: var(--color-sand);
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(100, 36, 46, 0.3);
}

/* Skeleton Loader */
.skeleton {
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    height: 280px;
}

.skeleton-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* ==========================================
   CART NOTIFICATION
   ========================================== */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-marsala);
    color: var(--text-white);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 5000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
   
/* Tablet landscape */
@media (max-width: 1200px) {
    .carousel-wrapper {
        max-width: 100%;
        padding: 0 50px;
    }
}

/* Tablet portrait */
@media (max-width: 1024px) {
    .carousel-track, .shop-grid {
        gap: 18px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 250px;
    }
    
    .carousel-wrapper {
        padding: 0 45px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-track, .shop-grid {
        gap: 15px;
    }
    
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
    
  
    
    .modal-content {
        width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-info h3 {
        font-size: 0.6rem;
        min-height: 35px;
    }
    
    .product-price .price {
        font-size: 1.2rem;
    }
}
