/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
  --primary-color: #af6900; /* Updated Primary */
  --primary-hover: #945805;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #cccccc;
  --bg-color: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-section: #fffdf8; /* Updated Secondary/Section BG */
  --error-color: #d32f2f;
  --link-color: #af6900;
  --nav-color: #482817; /* New Nav Color */
  --section-title-color: #6d0e0b; /* New Section Title Color */

  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Montserrat', sans-serif;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

/* Utilities */
.hidden {
  display: none !important;
}
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary-color);
}
.white {
  color: #fff !important;
}
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Text */
.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
}

/* Container */
.container {
  width: 100%;
  max-width: 1246px; /* User preference UPDATE */
  /* max-width: 1400px; User preference STRICT (Overridden) */
  margin: 0 auto;
  padding: 0 20px;
}

.container2 {
  width: 100%;
  /* max-width: 1246px; User preference STRICT (Overridden) */
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  width: auto;
}

.btn:hover {
  background-color: var(--primary-hover);
}

/* Button Variants */
.btn-fill {
  background-color: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}

.btn-fill:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-white {
  background-color: #fff;
  color: #000;
}
.btn-white:hover {
  background-color: #eee;
}

/* Section Common */
.section {
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: #6d0e0b !important; /* Burgundy color */
  text-align: center;
  margin-bottom: 50px;
}

/* ================= HEADER ================= */
/* ================= HEADER ================= */
header {
  background-color: #fff;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
  .top-bar {
    display: none;
  }
}

.top-bar {
  background-color: #f8f8f8; 
  padding: 8px 0;
  font-size: 0.8rem;
  color: #555;
  border-bottom: 1px solid #eee;
  overflow: hidden; 
}

.top-bar .container {
  display: block; 
  white-space: nowrap;
  position: relative;
}

.ticker-content-ops {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-ops 50s linear infinite;
}

.ticker-content-ops span {
  text-transform: uppercase;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* Stile per l'icona calice */
.ticker-content-ops .sep {
  color: #a61d24; 
  margin: 0 40px;
  font-size: 0.6rem;
  vertical-align: middle;
}

@keyframes ticker-ops {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Responsive: manteniamo lo scorrimento anche su mobile */
@media (max-width: 768px) {
  .top-bar .container {
    justify-content: flex-start; /* Evita che il flex interferisca */
  }
}

.contact-info {
  color: #888;
  font-size: 0.85rem;
}

.language-selector {
  color: #888;
  font-size: 0.85rem;
}

.nav-main {
  padding: 15px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.nav-logo img {
  height: 35px; /* Adjust height matches OPS.WINE text size roughly */
}

/* Menu */
.nav-menu {
  display: flex;
  gap: 30px;
}

/* Bootstrap (caricato solo in home) aggiunge un padding indesiderato di default
   a .nav-link, disallineando visivamente il menu rispetto alle altre pagine del sito. */
.nav-menu .nav-link {
  padding: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--nav-color); /* Updated */
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Right Side (Search + Icons) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Search Bar Pill */
.search-bar {
  position: relative;
  width: 250px;
}

.search-bar input {
  width: 100%;
  padding: 10px 40px 10px 20px;
  border-radius: 50px; /* Pill shape */
  border: 1px solid #ddd;
  outline: none;
  font-size: 0.9rem;
  color: #666;
}

.search-bar i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.9rem;
}

/* Search Autocomplete Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 200;
  max-height: 420px;
  overflow-y: auto;
  width: 380px;
}

.search-suggestions.hidden {
  display: none;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.search-suggestion-item:hover {
  background: #faf6ef;
}

.search-suggestion-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
}

.search-suggestion-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.search-suggestion-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-winery {
  font-size: 0.78rem;
  color: #888;
}

.search-suggestion-category {
  font-size: 0.78rem;
  color: #999;
}

.search-suggestion-empty {
  padding: 16px 14px;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

.search-suggestion-viewall {
  display: block;
  text-align: center;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  background: #faf6ef;
}

.search-suggestion-viewall:hover {
  background: #f2e9d8;
}

/* Su mobile il dropdown deve stare dentro il container del search dropdown,
   non sforare a filo schermo */
.mobile-search-dropdown .search-suggestions {
  left: 0;
  width: 100%;
}

/* Icons */
.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icons i {
  font-size: 1.2rem;
  cursor: pointer;
  color: var(
    --nav-color
  ); /* Use nav color for icons too? or dark? Keeping darkish nav color */
}

/* Badge */
.icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #c25e00; /* Dark Orange/Brown badge */
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Header Auth Area */
.auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-login {
  padding: 6px 18px;
  border: 1.5px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-header-login:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

.btn-header-signup {
  padding: 6px 18px;
  background-color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  border-radius: 50px;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-header-signup:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.header-auth-icon {
  font-size: 1.2rem;
  color: var(--nav-color);
  transition: color 0.2s;
}

.header-auth-icon:hover {
  color: var(--primary-color) !important;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-toggle:hover {
  color: var(--primary-color);
}

/* Mobile Menu Header - hidden on desktop */
.mobile-menu-header {
  display: none;
}

/* Mobile User Link - hidden on desktop */
.mobile-user-link {
  display: none !important;
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
  display: none;
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mobile-search-dropdown.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .mobile-search-dropdown:not(.hidden) {
    display: block;
  }
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  /* Mobile Menu Header with Logo & Close */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
  }

  .mobile-logo img {
    height: 30px;
  }

  .mobile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--nav-color);
    padding: 10px;
    transition: all 0.3s ease;
  }

  .mobile-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
  }

  /* Nav Links in Mobile Menu */
  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--nav-color);
    border-bottom: 1px solid #f5f5f5;
    text-align: left;
    transition: all 0.2s ease;
  }

  .nav-menu .nav-link:hover {
    background: #fffdf8;
    color: var(--primary-color);
    padding-left: 35px;
  }

  /* Mobile User Link */
  .mobile-user-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    background: var(--primary-color);
    color: #fff !important;
  }

  .mobile-user-link:hover {
    background: var(--primary-hover);
    color: #fff !important;
    padding-left: 35px;
  }

  .mobile-toggle {
    display: block;
    margin-left: 15px;
    position: relative;
    z-index: 1001;
  }

  .mobile-only-icon {
    display: block;
  }

  /* Nav container responsive */
  .nav-container {
    padding: 0 10px;
  }

  .nav-right {
    gap: 15px;
  }

  .nav-icons {
    gap: 12px;
  }
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  .nav-logo img {
    height: 28px;
  }

  .nav-icons i {
    font-size: 1.1rem;
  }
}

/* Small Mobile breakpoint */
@media (max-width: 480px) {
  .nav-menu .nav-link {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .mobile-menu-header {
    padding: 15px 20px;
  }

  .nav-logo img {
    height: 25px;
  }

  .mobile-logo img {
    height: 25px;
  }

  .badge {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    top: -6px;
    right: -6px;
  }
}

/* Visibility Utilities */
.mobile-only-icon {
  display: none; /* Hidden on desktop */
  font-size: 1.2rem;
  color: var(--nav-color);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  color: #fff;
  /* Placeholder fallback */
  display: flex;
  align-items: center;
  text-align: center;
}

.herohome {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: 5vh;
}

#header-placeholder {
  width: 100%;
}

.hero-content {
  margin: 0 auto;
}

.hero h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= OUR STORY ================= */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: #6d0e0b; /* Burgundy - matching section titles */
  margin-bottom: 20px;
}

.story-content p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.story-image img {
  width: 100%;
  border-radius: 8px; /* Slight round */
}

/* ================= PRODUCT GRID / SWIPER ================= */
.swiper {
  width: 100%;
  padding-bottom: 50px; /* Space for pagination if needed */
}

/* Custom Nav Arrows */
.swiper-button-next.custom-nav,
.swiper-button-prev.custom-nav {
  color: #333;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next.custom-nav::after,
.swiper-button-prev.custom-nav::after {
  font-size: 1.2rem;
  font-weight: bold;
}

/* ================= CATEGORY TABS ================= */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 0 10px;
}

.tab-link {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Category tabs responsive - flex wrap on mobile */
@media (max-width: 768px) {
  .category-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    margin-bottom: 30px;
  }

  .tab-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    gap: 6px;
  }

  .tab-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Related Products Section styling */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Product grid responsive */
@media (max-width: 1024px) {
  .product-grid,
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .product-grid,
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  #category-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    padding: 10px;
  }

  .product-card .product-image {
    height: 200px;
    padding: 15px;
  }
}

.product-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-image img {
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

/* ================= GLOBAL PRODUCT CARDS ================= */
.product-card {
  text-align: center;
  transition: all 0.3s;
  background: #fff;
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .product-image {
  position: relative;
  background: #fff;
  height: 447px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.product-card .product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-actions {
  display: none; /* Hidden - using new design */
}

.product-card .product-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  height: 100%; /* Fixed height for 3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  text-decoration: none;
  line-height: 1.4;
}

.product-card .product-rating {
  margin-bottom: 10px;
  color: #f1c40f;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.product-card .product-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.product-card .product-price .old-price {
  text-decoration: line-through;
  color: #bbb;
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}

.product-card .product-cta {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* ================= SHOP BY CATEGORY ================= */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.tab-link {
  cursor: pointer;
  font-family: var(--font-serif);
  color: #999;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.tab-link.active,
.tab-link:hover {
  color: #000;
  border-color: var(--primary-color);
}

/* ================= EVENTS BANNER ================= */
.events-section {
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  overflow: hidden;
  padding: 0;
}

.events-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.events-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.events-image {
  flex: 1;
  min-height: 400px;
}

/* ================= BLOG ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.blog-date {
  display: inline-block;
  padding: 5px 10px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* ================= TESTIMONIALS ================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}

.testimonial-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-light);
}

.client-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
}

.client-info h4 {
  font-family: var(--font-serif);
}

/* ================= BRANDS & NEWSLETTER ================= */
.brands-row {
  display: flex;
  background: #fff;
  margin-bottom: 60px;
  border: 1px solid #eee; /* Optional outer border */
}

.brand-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border-right: 1px solid #eee;
}

.brand-item:last-child {
  border-right: none;
}

.brand-item img {
  max-height: 60px;
  max-width: 80%;
  filter: none; /* Show colors */
  opacity: 1;
  object-fit: contain;
}

.newsletter-box {
  display: flex;
  background: #fff;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.newsletter-h {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 15px;
}

/* ================= FOOTER ================= */
footer {
  background-color: #fffdf8; /* Off-white background */
  padding-top: 40px;
  padding-bottom: 15px;
  color: #666;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 25px;
}

.footer-title {
  font-family: var(--font-sans);
  color: #8b572a; /* Brownish-gold heading */
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.contact-item {
  margin-bottom: 15px;
}

.contact-label {
  display: block;
  color: #8b572a; /* Brownish-gold labels */
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-col p {
  line-height: 1.5;
  color: #666;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #777;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.social-icons a {
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-box {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .events-section {
    flex-direction: column;
  }
  .events-image {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* --- Auth Pages Specific --- */
.auth-page {
  background-color: #fff;
  min-height: 100vh;
}

.auth-page .logo {
  display: flex;
  justify-content: center;
  padding: 60px 0 40px;
  width: 100%;
}

.auth-page .logo img {
  height: 40px;
}

.auth-page .container {
  display: flex;
  min-height: auto;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  gap: 40px;
  align-items: center;
}

.auth-page .left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px;
  max-width: 520px;
}

.auth-page .right-panel {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-page .right-panel .illustration-container {
  box-shadow: 0 20px 50px rgba(109, 14, 11, 0.12);
  border: 1px solid rgba(175, 105, 0, 0.15);
}

/* Signup: layout centrato a colonna unica, niente illustrazione */
.signup-page .logo {
  padding: 30px 0 10px;
}

.signup-page .container {
  justify-content: center;
}

.signup-page .left-panel {
  max-width: 1100px;
  width: 80%;
  margin: 0 auto;
  flex: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .signup-page .left-panel {
    width: 95%;
  }
}

.auth-kicker {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--section-title-color);
  line-height: 1;
  margin-bottom: 2px;
  display: block;
}

.auth-page h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}

.auth-page h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-color);
}

.auth-page .subtitle {
  color: #666;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

/* Selettore tipo account */
.account-type-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.account-type-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.account-type-card i {
  font-size: 1.3rem;
  color: #999;
  transition: color 0.2s ease;
}

.account-type-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
  text-align: center;
  line-height: 1.2;
}

.account-type-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.account-type-card.active {
  border-color: var(--primary-color);
  background: rgba(175, 105, 0, 0.06);
}

.account-type-card.active i,
.account-type-card.active span {
  color: var(--primary-color);
}

.auth-page .input-group {
  margin-bottom: 16px;
  position: relative;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 20px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-page .input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(175, 105, 0, 0.1);
}

.auth-page .input-label {
  position: absolute;
  top: -10px;
  left: 15px;
  background-color: #fff;
  padding: 0 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
}

.auth-page .input-field {
  width: 100%;
  border: none;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #333;
  outline: none !important;
  background: transparent;
}

select.input-field {
  cursor: pointer;
}

.auth-page .input-field::placeholder {
  color: #bbb;
}

.auth-page .input-field:focus {
  outline: none;
}

.auth-page .password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

.auth-page .checkbox-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #666;
}

.checkbox-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.checkbox-row .checkbox-age {
  flex: 2;
}

.checkbox-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 700px) {
  .checkbox-row {
    flex-direction: column;
    gap: 12px;
  }
  .checkbox-stack {
    gap: 12px;
  }
}

.checkbox-group input[type='checkbox'] {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.auth-page .forgot-password {
  color: var(--primary-color);
  font-weight: 500;
}

.auth-page .btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 16px;
}

.auth-page .secondary-action {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
}

.auth-page .secondary-action a {
  color: var(--primary-color);
  font-weight: 600;
}

.auth-page .divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
  margin: 30px 0;
  font-size: 0.85rem;
}

.auth-page .divider::before,
.auth-page .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eee;
}

.auth-page .divider:not(:empty)::before {
  margin-right: 15px;
}

.auth-page .divider:not(:empty)::after {
  margin-left: 15px;
}

.auth-page .social-login {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.auth-page .social-btn {
  width: 60px;
  height: 60px;
  border: 1px solid #eee;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-page .social-btn:hover {
  border-color: var(--primary-color);
  background-color: #fffdf8;
}

.auth-page .back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  margin-bottom: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s;
}

.auth-page .back-link:hover {
  color: var(--primary-color);
}

.auth-page .illustration-container {
  border-radius: 40px !important;
  overflow: hidden;
  height: 600px !important;
  width: 100%;
}

/* Auth Responsive */
@media (max-width: 1024px) {
  .auth-page .left-panel {
    padding: 0 50px;
  }
}

@media (max-width: 900px) {
  .auth-page .right-panel {
    display: none;
  }

  .auth-page .logo {
    position: static;
    padding: 30px 40px 0;
  }

  .auth-page .container {
    display: block;
    min-height: auto;
  }

  .auth-page .left-panel {
    padding: 60px 40px;
    max-width: 500px;
  }
}
/* --- Hero Styles --- */
.page-hero {
  height: 300px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.shop-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../assets/images/hero.png') center/cover;
  height: 250px;
}

.blog-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../assets/images/hero.png') center/cover;
}

.shop-container {
  display: flex;
  gap: 50px;
  padding-bottom: 80px;
  max-width: 1750px;
  padding-left: 40px;
  padding-right: 40px;
}

/* Sidebar */
.shop-sidebar {
  width: 250px;
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
  padding: 25px;
  background: #fff;
  border-radius: 4px;
}

.filter-group {
  margin-bottom: 40px;
}

.filter-group h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #482817; /* Nav color / Brown */
  font-weight: 600;
}

.filter-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.filter-list li:hover {
  color: var(--primary-color);
}

/* Category Dropdown Styles */
.category-list {
  list-style: none;
  padding: 0;
}

.filter-list .category-item {
  margin-bottom: 0;
  border-bottom: 1px solid #f0f0f0;
  display: block !important; /* Force block layout to override .filter-list li flex */
  width: 100%;
}

.category-item:last-child {
  border-bottom: none;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  transition: color 0.2s;
  gap: 10px;
  width: 100%;
}

.category-header:hover {
  color: var(--primary-color);
}

.category-header > span:first-child {
  flex: 1;
}

.category-header .count {
  background: #f5f5f5;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #999;
  margin-right: 8px;
}

.category-header i {
  font-size: 0.75rem;
  transition: transform 0.3s;
  color: #999;
}

.category-item.active .category-header i {
  transform: rotate(180deg);
}

.category-item.active .category-header {
  color: var(--primary-color);
  font-weight: 500;
}

.category-item.active {
  background-color: rgba(175, 105, 0, 0.05);
  border-left: 3px solid var(--primary-color);
  margin-left: -15px;
  padding-left: 15px;
}

.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
  width: 100%; /* Full width */
  display: block; /* Block element */
}

.category-item.active .subcategory-list {
  max-height: 500px;
  padding: 2px 15px 15px 15px;
  margin-top: 0;
}

.subcategory-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.2s;
}

.subcategory-list li:hover {
  color: var(--primary-color);
}

.subcategory-list .count {
  background: #fff;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #999;
}

/* Size & Brand Boxes */
.size-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.size-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid #eee;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.size-pill:hover,
.size-pill.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #fffdf8;
}

.brand-grid-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.brand-box {
  border: 1px solid #eee;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  aspect-ratio: 1/1;
  transition: all 0.3s;
}

.brand-box img {
  max-width: 100%;
  height: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.3s;
}

.brand-box:hover {
  border-color: var(--primary-color);
}

.brand-box:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.brand-box.active {
  border-color: var(--primary-color);
  background-color: rgba(175, 105, 0, 0.1);
}

.brand-box.active img {
  filter: grayscale(0);
  opacity: 1;
}

/* Price Slider */
.price-slider-container {
  position: relative;
  height: 40px;
  margin: 20px 0;
}

.price-slider-container input[type='range'] {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-slider-container input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
}

.price-slider-container input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
}

.price-slider-container input[type='range']::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.price-slider-container input[type='range']::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.price-slider-container #price-max {
  background: transparent;
}

.price-range-text {
  font-size: 0.9rem;
  color: #888;
}

/* Size Pills */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  border: 1px solid #eee;
  padding: 8px 15px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.size-pill:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Brand Grid Filter */
.brand-grid-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.brand-box {
  border: 1px solid #eee;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.brand-box img {
  max-width: 100%;
  max-height: 100%;
}

/* Shop Content */
.shop-content {
  flex: 1;
}

.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.results-count {
  color: #888;
}

.topbar-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.search-input {
  position: relative;
}

.search-input input {
  width: 280px;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.search-input i {
  position: absolute;
  left: 170px;
  top: 37%;
  transform: translateY(-50%);
  color: #999;
}

.sort-dropdown-wrapper {
  position: relative;
}

.sort-dropdown {
  cursor: pointer;
  color: #555;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  height: 41px; /* Matching search input height roughly or allowing padding to drive it */
  min-width: 140px;
}

.sort-dropdown:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.sort-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  display: none;
  z-index: 100;
}

.sort-menu.active {
  display: block;
}

.sort-option {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
  color: #555;
}

.sort-option:hover {
  background: #f9f9f9;
  color: var(--primary-color);
}

.sort-option:first-child {
  border-radius: 4px 4px 0 0;
}

.sort-option:last-child {
  border-radius: 0 0 4px 4px;
}

/* Active Filters */
.active-filters {
  margin-bottom: 30px;
}

.filter-dropdown-container {
  position: relative;
  display: inline-block;
}

.filter-dropdown-trigger {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.filter-dropdown-trigger:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  display: none;
  z-index: 100;
}

.filter-dropdown-menu.active {
  display: block;
}

.filter-option {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  transition: all 0.2s;
}

/* Advanced Filter Dropdowns in Topbar */
.filter-dropdown-row {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-dropdown-container {
  position: relative;
  cursor: pointer;
}

.filter-dropdown-trigger {
  padding: 8px 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.filter-dropdown-trigger:hover {
  border-color: #ccc;
}

.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-width: 160px;
  display: none;
  z-index: 100;
}

.filter-dropdown-menu.active {
  display: block;
}

/* Redefining Topbar Actions alignment */
.shop-topbar {
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.results-count {
  font-size: 1.25rem;
  color: #333;
  font-weight: 600;
}

/* Pagination Box Style */
.pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.page-num.active {
  background-color: #af6900;
  color: #fff;
  border-color: #af6900;
}

.page-num:hover:not(.active) {
  background-color: #f9f9f9;
}

.filter-option:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

/* Shop Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 60px;
}
/* Standard Pricing Meta */
.old-price {
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 10px;
  font-size: 0.9rem;
}

.badge-off {
  position: absolute;
  top: 0;
  left: 0;
  background: #af6900;
  color: #fff;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-num {
  width: 35px;
  height: 35px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
}

.page-num.active,
.page-num:hover {
  background: #f5f5f5;
  color: #000;
  font-weight: bold;
}

/* Slitta per saltare velocemente tra pagine lontane */
.pagination-jump {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 320px;
  margin: 0;
}

.page-jump-slider {
  width: 140px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #eee;
  outline: none;
  cursor: pointer;
}

.page-jump-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #af6900;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #af6900;
  transition: transform 0.2s;
}

.page-jump-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.page-jump-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #af6900;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #af6900;
}

.page-jump-label {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
}

.page-jump-label strong {
  color: #af6900;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .shop-container {
    flex-direction: column;
    gap: 30px;
  }

  .shop-sidebar {
    width: 100%;
  }

  .shop-topbar {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .search-input {
    width: 100%;
  }

  .search-input input {
    width: 100%;
  }

  .sort-dropdown-wrapper {
    width: 100%;
  }

  .sort-dropdown {
    width: 100%;
    justify-content: space-between;
  }

  .sort-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .brand-grid-filter {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .shop-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .shop-hero {
    height: 200px;
  }

  .shop-hero h1 {
    font-size: 2.5rem !important;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-card {
    padding: 15px;
  }

  .card-image {
    height: 220px;
  }

  .filter-group h3 {
    font-size: 1rem;
  }

  .size-options {
    gap: 8px;
  }

  .size-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .brand-grid-filter {
    grid-template-columns: repeat(2, 1fr);
  }

  .pagination {
    gap: 5px;
  }

  .page-num {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

/* ===========================
   PRODUCT DETAIL PAGE
   =========================== */

#item-sku {
  display: flex;
  gap: 2rem;
}

/* Product Detail Container */
.product-detail-container {
  padding: 60px 20px;
  background: #fff;
}

.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  position: relative;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  padding: 20px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.zoom-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.zoom-button:hover {
  background: #fff;
  color: var(--primary-color);
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.thumbnail {
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
  background: #fff;
  padding: 10px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-brand-eyebrow img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.product-brand-eyebrow a {
  color: #af6900;
  text-decoration: none;
}

.product-brand-eyebrow a:hover {
  text-decoration: underline;
}

.product-detail-container {
  position: relative;
  min-height: 400px;
}

.product-detail-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.product-detail-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.wine-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(175, 105, 0, 0.15);
  border-top-color: #af6900;
  animation: wine-spin 0.8s linear infinite;
}

@keyframes wine-spin {
  to {
    transform: rotate(360deg);
  }
}

.product-detail-wrapper.is-loading {
  opacity: 0;
}

.product-detail-wrapper {
  transition: opacity 0.25s ease;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.outlet-badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #af6900;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid #af6900;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: -10px;
}

.product-description {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 40px;
  height: 45px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e5e5e5;
  color: var(--primary-color);
}

#quantity {
  width: 60px;
  height: 45px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-cart {
  flex: 1;
  height: 45px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-cart:hover {
  background: var(--primary-hover);
}

.btn-add-cart[disabled] {
  background: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-wishlist {
  width: 45px;
  height: 45px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666;
  transition: all 0.3s;
}

/* Updated Product Card Icons (Top Right) */

.card-top-icons {
  display: none !important;
}

.product-card .card-top-icons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.product-card .card-top-icons img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(67%) sepia(18%) saturate(544%) hue-rotate(11deg)
    brightness(92%) contrast(88%);
}

/* Updated Product Card Buttons */
.product-card .product-cta {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.btn-aggiungi {
  flex: 1;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-aggiungi:hover {
  background: var(--primary-hover);
}

.btn-card-wishlist {
  width: 38px;
  height: 38px;
  border: 1px solid #444;
  background: #fff;
  border-radius: 4px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-card-wishlist:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Product Detail Redesign Styles */
.product-detail-icons {
  display: flex;
  gap: 20px;
  margin: 10px 0 20px;
}

.detail-badge-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
}

.detail-badge-icon img {
  height: 30px;
  width: auto;
  filter: invert(67%) sepia(18%) saturate(544%) hue-rotate(11deg)
    brightness(92%) contrast(88%);
}

.product-meta-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  margin: 30px 0;
  padding: 25px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-rating i {
  color: #ae9d6f !important;
}

.product-rating {
  display: none !important;
}

.meta-icon img {
  max-width: 100%;
  max-height: 100%;
  filter: invert(67%) sepia(18%) saturate(544%) hue-rotate(11deg)
    brightness(92%) contrast(88%);
}

.meta-text {
  font-size: 0.9rem;
  color: #444;
  font-weight: 500;
}

.meta-text span {
  color: #888;
  font-weight: 400;
  margin-right: 5px;
}

.meta-text a {
  color: inherit;
  transition: color 0.2s;
}

.meta-text a:hover {
  color: var(--primary-color);
}

.meta-text.in-stock {
  color: #2e7d32;
  font-weight: 600;
}

.meta-text.out-stock {
  color: #c62828;
  font-weight: 600;
  cursor: pointer;
}

/* Adjusting product actions for better alignment */
.product-actions {
  margin-bottom: 30px;
}

.btn-add-cart {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-wishlist:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-buy-now {
  width: 100%;
  height: 45px;
  background: #d6890a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-buy-now:hover {
  background: #c17a09;
}

/* Product Meta */
.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.meta-row {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.meta-label {
  font-weight: 600;
  color: #666;
  min-width: 100px;
}

.meta-value {
  color: var(--text-light);
}

.meta-value a {
  color: var(--text-light);
  text-decoration: none;
}

.meta-value a:hover {
  color: var(--primary-color);
}

/* Product Share */
.product-share {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 15px;
}

.share-label {
  font-weight: 600;
  color: #666;
}

.share-icons {
  display: flex;
  gap: 10px;
}

/* Hide Google Translate UI */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.skiptranslate,
div.skiptranslate,
.goog-te-gadget-icon,
.goog-te-gadget-simple img,
.goog-te-menu-value span:nth-child(2),
.goog-te-menu-value span:nth-child(3),
.goog-te-menu-value img,
#google_translate_element,
#goog-gt-tt,
.goog-te-balloon-frame,
div#goog-gt-tt {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-SmfZ-OEVmcd,
.VIpgJd-ZVi9od-xl07Ob-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

.share-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s;
}

.share-icon:nth-child(1) {
  background: #3b5998;
  color: #fff;
}

.share-icon:nth-child(2) {
  background: #1da1f2;
  color: #fff;
}

.share-icon:nth-child(3) {
  background: #0077b5;
  color: #fff;
}

.share-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Product Tabs Section */
.product-tabs-section {
  padding: 5px 20px;
  background: #fff;
}

.tabs-navigation {
  display: flex;
  gap: 30px;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 15px 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--text-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.tabs-content {
  max-width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Related Products Section */
.related-products-section {
  padding: 60px 20px;
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 40px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.related-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  padding: 20px;
  text-align: center;
}

.related-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-product-card .product-image {
  margin-bottom: 15px;
}

.related-product-card .product-image img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}

.product-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  margin-bottom: 10px;
}

.product-rating i {
  color: #ffc107;
  font-size: 0.85rem;
}

.reviews-count {
  font-size: 0.85rem;
  color: #999;
  margin-left: 5px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  min-height: 45px;
}

.product-pricing {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.original-price {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}

.sale-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-detail-container {
    padding: 30px 15px;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.3rem;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .product-actions {
    flex-wrap: wrap;
  }

  .quantity-selector {
    flex: 1 1 100%;
  }

  .btn-add-cart {
    flex: 1 1 calc(100% - 55px);
  }

  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Open state of the dialog  */
dialog:open {
  opacity: 1;
  transform: translate(-50%, -50%) scaleY(1);
}

/* Closed state of the dialog   */
dialog {
  opacity: 0;
  transform: scaleY(0);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out,
    overlay 0.7s ease-out allow-discrete,
    display 0.7s ease-out allow-discrete;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 500px;
  max-height: 400px;
  height: 90%;
  border: none;
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* gap: 32px; */

  #book-bottle-name {
    margin-bottom: 24px;
  }

  #book-bottle-quantity {
    border: 1px solid #ddd;
  }

  .form-actions {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    > * {
      flex: 1;
    }
  }
}

/* Before open state  */
/* Needs to be after the previous dialog:open rule to take effect,
    as the specificity is the same */
@starting-style {
  dialog:open {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
  }
}

/* Transition the :backdrop when the dialog modal is promoted to the top layer */
dialog::backdrop {
  background-color: transparent;
  transition:
    display 0.7s allow-discrete,
    overlay 0.7s allow-discrete,
    background-color 0.7s;
}

dialog:open::backdrop {
  background-color: rgba(0, 0, 0, 0.751);
}

/* This starting-style rule cannot be nested inside the above selector
because the nesting selector cannot represent pseudo-elements. */

@starting-style {
  dialog:open::backdrop {
    background-color: transparent;
  }
}

/* ===========================
   CART & CHECKOUT PAGES
   =========================== */

/* Cart Page Container */
.cart-page-container {
  padding: 60px 20px;
  background: var(--bg-section);
  min-height: calc(100vh - 400px);
}

.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cart Items Section */
.cart-items-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.cart-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 8px 0;
}

.bottle-size {
  font-size: 0.9rem;
  font-weight: 400;
  color: #999;
}

.cart-item-description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border: none;
  background: #fee;
  color: #d32f2f;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: #d32f2f;
  color: #fff;
}

.cart-item-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.cart-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.cart-item-quantity .qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 1.1rem;
  color: #666;
  transition: all 0.2s;
}

.cart-item-quantity .qty-btn:hover {
  background: #e8e8e8;
  color: var(--primary-color);
}

.cart-item-quantity .qty-input {
  width: 50px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
}

.cart-item-quantity .qty-input::-webkit-inner-spin-button,
.cart-item-quantity .qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-details-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--text-color);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.cart-item-details-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #fffdf8;
}

.cart-item-details-btn i {
  margin-left: 8px;
  font-size: 0.8rem;
}

/* Cart Total (Desktop Hidden, Mobile Visible) */
.cart-total-display,
.cart-mobile-total {
  display: none;
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  text-align: right;
}

.cart-total-display h3,
.cart-mobile-total h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin: 0;
}

.cart-total-display span,
.cart-mobile-total span {
  color: var(--primary-color);
  font-weight: 700;
}

/* Order Summary Sidebar */
.cart-summary-sidebar,
.checkout-form-sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.summary-title,
.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 25px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.summary-label {
  font-size: 1rem;
  color: #666;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.summary-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 20px 0;
}

.summary-total {
  margin-top: 10px;
}

.summary-total .summary-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.summary-total .summary-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.btn-pay-now,
.btn-submit-checkout {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 20px;
}

.btn-pay-now:hover,
.btn-submit-checkout:hover {
  background: var(--primary-hover);
}

/* Checkout Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: #f9f9f9;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cart-wrapper {
    grid-template-columns: 1fr 350px;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cart-summary-sidebar,
  .checkout-form-sidebar {
    position: static;
  }

  .cart-total-display,
  .cart-mobile-total {
    display: block;
  }
}

@media (max-width: 600px) {
  .cart-page-container {
    padding: 30px 15px;
  }

  .cart-item {
    flex-direction: column;
    padding: 20px;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .cart-item-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .cart-item-price {
    text-align: center;
  }

  .cart-item-quantity {
    justify-content: center;
  }

  .cart-item-details-btn {
    text-align: center;
  }
}

/* ===========================
   PROFILE PAGE
   =========================== */
.profile-page {
  background-color: #fffdf8;
}

.profile-page-container {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 25px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.edit-avatar-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s;
}

.edit-avatar-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 5px;
}

.profile-id {
  color: #999;
  font-size: 1rem;
  margin-bottom: 30px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 900px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.info-item i {
  font-size: 1.5rem;
  color: #666;
  width: 25px;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.info-value {
  font-size: 0.95rem;
  color: #666;
}

.profile-section-title {
  text-align: center;
  margin-top: 20px;
}

.profile-section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
}

.order-table th {
  background: #f8f8f8;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

.order-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}

.txn-id {
  color: var(--error-color);
  font-weight: 500;
}

.password-form {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.password-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.btn-update {
  margin-top: 10px;
  width: 100%;
}

/* ===========================
   CONTACTS PAGE
   =========================== */
.contacts-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
}

.contacts-page-container {
  padding: 60px 20px;
  background: #ffffff;
}

.contacts-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.card-content p {
  color: #666;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.strong {
  font-weight: 600;
  color: var(--text-color);
}

.contact-form-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-form-card .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form-card .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-color);
}

.contact-form-card .form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f8f8f8;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-send {
  padding: 15px 40px;
  margin-top: 20px;
}

/* ===========================
   BLOG PAGE
   =========================== */
.blog-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
}

.blog-page-container {
  padding: 80px 20px;
  background: #ffffff;
}

.blog-listing {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.blog-listing .blog-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.blog-image {
  width: 100%;
  height: auto;
}

.blog-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  color: #888;
  font-size: 0.9rem;
}

.blog-meta i {
  color: #555;
  margin-right: 5px;
}

.blog-excerpt {
  color: #666;
  line-height: 1.8;
  margin-bottom: 35px;
  font-size: 1rem;
}

.btn-read-more {
  display: inline-block;
  border: 1px solid #333;
  color: #333;
  background: transparent;
  padding: 8px 18px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-read-more:hover {
  background: #333;
  color: #fff;
}

/* ===========================
   BLOG DETAIL PAGE
   =========================== */
.blog-detail-container {
  padding: 60px 20px;
  background: var(--bg-section);
}

.blog-detail-content {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-detail-image {
  width: 100%;
  margin-bottom: 40px;
}

.blog-detail-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.blog-title-detail {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.2;
}

.blog-detail-content .blog-meta {
  justify-content: flex-start;
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: none;
  color: #888;
}

.blog-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
}

.blog-body p {
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contacts-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-form-card .form-row {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-image {
    height: 300px;
  }

  .blog-title {
    font-size: 1.8rem;
  }

  .blog-title-detail {
    font-size: 2rem;
  }
}

/* ===========================
   EVENTS PAGE
   =========================== */
.event-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
}

.events-page-container {
  padding: 60px 20px;
  background: #ffffff;
}

.events-search-bar {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-input-wrapper {
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 15px 10px;
  border: 0px solid #fff;
  border-right: none;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.btn-find-events {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 40px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-find-events:hover {
  background: var(--primary-hover);
}

.filter-buttons {
  display: flex;
  gap: 15px;
}

.filter-btn {
  padding: 10px 30px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.events-section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 50px;
}

.events-list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.event-card {
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.event-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.event-date {
  color: #945805;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.event-audience {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.event-audience i {
  margin-right: 5px;
}

.event-description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.event-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.per-person {
  font-size: 0.85rem;
  color: #888;
  font-family: var(--font-sans);
  font-weight: 400;
}

.btn-join-now {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 30px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-join-now:hover {
  background: var(--primary-color);
  color: #fff;
}

.event-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-actions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 20px;
}

.action-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.action-btn:hover {
  color: var(--primary-color);
}

.action-btn i {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-image {
    height: 350px;
    order: -1;
  }

  .event-content {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .events-section-title {
    font-size: 2rem;
  }

  .event-title {
    font-size: 1.5rem;
  }
}

/* ================= ABOUT PAGE ================= */
.about-page {
  background-color: #fffdf8;
}

.about-hero {
  height: 400px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('https://images.unsplash.com/photo-1543412849-0d5006093531?auto=format&fit=crop&w=1920&q=80')
      center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.about-hero h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin-bottom: 10px;
}

.about-hero .breadcrumb {
  font-size: 1.1rem;
  opacity: 0.9;
}

.about-hero .breadcrumb a:hover {
  color: var(--primary-color);
}

/* Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-content h2.sub-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.2;
}

.intro-content p {
  color: #777;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.intro-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us */
.why-choose-section {
  padding-top: 40px;
}

.why-choose-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.why-choose-header h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.why-choose-header p {
  font-style: italic;
  color: #888;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Collage */
.collage-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 15px;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.collage-item.large-img {
  grid-row: span 2;
  height: 100%;
}

.collage-item.small-img {
  height: 100%;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid #f0f0f0;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 55px;
  height: 55px;
  background: var(--primary-color);
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.benefit-card h3 {
  font-family: var(--font-serif);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.benefit-card p {
  color: #777;
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials-section {
  background-color: transparent; /* Patterns on body */
}

.testimonials-section .section-title {
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 2px;
}

.testimonial-card {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.testimonial-card .rating {
  margin-bottom: 20px;
  color: #ffb800;
}

.testimonial-card .rate-num {
  margin-left: 10px;
  color: #333;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-card h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.8;
}

.client-meta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-meta img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  margin-bottom: 10px;
  object-fit: cover;
}

.client-name {
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .intro-grid,
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-hero h1 {
    font-size: 3.2rem;
  }
  .collage-container {
    grid-template-rows: repeat(2, 250px);
    max-width: 700px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.8rem;
  }
  .intro-content h2.sub-title {
    font-size: 2.4rem;
  }
  .collage-container {
    grid-template-rows: repeat(2, 200px);
  }
  .benefits-grid {
    gap: 15px;
  }
  .benefit-card {
    padding: 20px;
  }
}

@media (max-width: 580px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .collage-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .collage-item.large-img,
  .collage-item.small-img {
    grid-row: auto;
    height: 250px;
  }
  .intro-content h2.sub-title,
  .why-choose-header h2 {
    font-size: 2rem;
  }
  .about-hero h1 {
    font-size: 2.2rem;
  }
}

/* ================= FAQ PAGE ================= */
.faq-page {
  background-color: #fffdf8;
}

/* FAQ hero inherits from about-hero */

.faq-section {
  padding-bottom: 100px;
}

.faq-grid {
  margin-top: 60px;
}

.faq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.faq-category {
  display: flex;
  flex-direction: column;
}

.category-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 30px;
}

.category-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.faq-category h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #000;
  margin: 0;
}

.faq-item {
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 2px solid #eee;
}

.faq-item h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.faq-item h4 .faq-toggle-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.faq-item.active h4 .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-item .faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
}

.faq-item.active .faq-answer-wrapper {
  max-height: 500px;
  margin-top: 12px;
}

.faq-item p {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* FAQ Responsive */
@media (max-width: 992px) {
  .faq-row {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }
  .faq-row:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .faq-section {
    padding-top: 50px;
    padding-bottom: 60px;
  }
  .faq-grid {
    margin-top: 40px;
  }
  .category-header {
    margin-bottom: 20px;
    align-items: center;
  }
  .category-num {
    font-size: 2.8rem;
  }
  .faq-category h3 {
    font-size: 1.6rem;
  }
  .faq-item {
    margin-bottom: 25px;
    padding-left: 15px;
  }
  .faq-item h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  .faq-item p {
    font-size: 0.9rem;
  }
  .faq-hero h1 {
    font-size: 2.5rem;
  }
}

/* Edit Profile Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 900px;
  padding: 60px 80px;
  border-radius: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #000;
}

.upload-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.avatar-preview img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #e0e0e0;
}

.upload-btn {
  color: #444;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-btn i {
  font-size: 1.2rem;
}

.upload-btn:hover {
  color: var(--primary-color);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 50px;
  margin-bottom: 50px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 12px;
}

.form-group .form-input {
  width: 100%;
  padding: 18px 25px;
  border: none;
  border-radius: 4px;
  background-color: #f1f1f1;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #333;
}

.form-group .form-input::placeholder {
  color: #bbb;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 10px;
}

.modal-actions .btn {
  padding: 18px 45px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn {
  background-color: #af6900;
  color: #fff;
}

.cancel-btn {
  background-color: #f1f1f1;
  color: #333;
}

.submit-btn:hover {
  background-color: #945805;
}

.cancel-btn:hover {
  background-color: #e0e0e0;
}

/* Modal Responsive */
@media (max-width: 900px) {
  .modal-content {
    padding: 40px 30px;
  }
  .form-grid {
    gap: 20px 30px;
  }
}

@media (max-width: 600px) {
  .modal-title {
    font-size: 2.2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn {
    width: 100%;
    padding: 15px;
  }
}

/* 1. RIMOZIONE DOPPIO LOGO E PULIZIA DESKTOP */
@media (min-width: 1025px) {
  /* Nasconde il logo mobile che il JS mette dentro il menu */
  .mobile-menu-header,
  .nav-menu .mobile-logo,
  .nav-menu .btn-header-login,
  .nav-menu .btn-header-signup,
  .nav-menu .mobile-user-link {
    display: none !important;
  }

  /* Forza la struttura Flexbox */
  .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  /* Logo a sinistra */
  .nav-logo {
    flex: 0 0 200px !important;
    display: flex !important;
    margin: 0 !important;
  }

  /* Menu al centro esatto */
  .nav-menu {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important; /* Rimuove eventuali posizionamenti strani */
    transform: none !important;
  }

  /* Area destra (Ricerca + Bottoni) */
  .nav-right {
    flex: 0 0 495px !important; /* Spazio fisso per bilanciare il logo (+75px per la ricerca allargata) */
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 15px !important;
  }

  /* Uniforma altezze ricerca e bottoni */
  .search-bar input,
  .btn-header-login,
  .btn-header-signup {
    height: 34px !important;
    line-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* 2. FIX BARRA DI RICERCA */
.search-bar {
  width: 325px !important; /* +30% rispetto ai 250px originali */
  margin: 0 !important;
}

.search-bar input {
  border-radius: 4px !important; /* Angoli squadrati invece della pillola */
  border: 1px solid #ddd !important;
}

/* 3. FIX ICONE */
.nav-icons {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

/* ================= END FIX ================= */

/* ============================================================
   FIX TESTO BANNER/PUZZLE PER MOBILE (DA AGGIUNGERE IN FONDO)
   ============================================================ */

@media (max-width: 768px) {
  /* 1. Titolo Grande della sezione principale */
  .main-banner .left-content h2,
  .main-banner .left-content h4,
  .hero-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  /* 2. Titoli dentro le 4 immagini pi� piccole (il puzzle) */
  .main-banner .right-content .inner-content h4 {
    font-size: 16px !important;
    line-height: 1.1 !important;
    margin-bottom: 5px !important;
  }

  /* 3. Sottotitoli o scritte piccole sopra i titoli (span) */
  .main-banner .inner-content span,
  .main-banner .left-content span {
    font-size: 12px !important;
    margin-bottom: 5px !important;
    display: block !important;
  }

  /* 4. Eventuali paragrafi o descrizioni */
  .main-banner .inner-content p {
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Taglia il testo dopo 2 righe per non coprire l'immagine */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 5. Ridimensionamento bottoni dentro le immagini */
  .main-banner .main-border-button a {
    padding: 8px 15px !important;
    font-size: 11px !important;
  }

  /* 6. Spaziatura generale del blocco banner su mobile */
  .main-banner {
    padding-top: 20px !important;
  }
}

/* Fix per schermi molto piccoli (es. iPhone SE) */
@media (max-width: 480px) {
  .main-banner .left-content h2,
  .hero-title {
    font-size: 20px !important;
  }
  .main-banner .right-content .inner-content h4 {
    font-size: 14px !important;
  }
}

.audio-player-wrapper {
  background: #fdfaf7; /* Un tono crema leggerissimo */
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#wine-audio-player {
  height: 35px; 
}

.video-player-wrapper {
  background: #fdfaf7;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#wine-video-player {
  max-height: 420px;
  background: #000;
  border-radius: 8px;
}


/* ==========================================================================
   1. BARRA DI NAVIGAZIONE BASE
   ========================================================================== */
.shop-filter-nav {
    background: #fff;
    border-top: 5px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.filter-main-menu {
    list-style: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 2%;
    width: 100%;
    max-width: 1750px; /* Come .shop-container: oltre non si allarga piu', evita voci troppo distanziate su schermi molto larghi */
    box-sizing: border-box;
}

/* IMPORTANTE: Questo libera il megamenu dai confini della parola "Categorie" */
.filter-main-menu > li:nth-child(3),
.filter-main-menu > li:nth-child(5) {
    position: static !important;
}

.filter-main-menu > li { 
    position: relative; 
    text-align: center;
    flex: 1;
}

/* Stato attivo del filtro OUTLET: senza questo, l'utente non ha alcun modo
   di capire che sta guardando solo l'outlet e non l'intero catalogo. */
.outlet-link.active {
    color: #6d0e0b !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   2. RICERCA (Centramento verticale millimetrico)
   ========================================================================== */
.search-item {
    flex: 1.5 !important;
    display: flex !important;
    align-items: center !important; /* Centra l'input nei 50px della barra */
    justify-content: flex-end;
    padding: 0 15px !important;
    height: 100% !important;
    list-style: none !important;
}

.search-input {
    position: relative;
    width: 100%;
    max-width: 250px;
    display: flex;
    align-items: center;
}

.search-input input {
    width: 100%;
    padding: 6px 35px 6px 15px !important;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f9f9f9;
    height: 32px; /* Altezza elegante per la barra di ricerca */
    outline: none;
    transition: all 0.3s ease;
}

.search-input input:focus {
    border-color: #b38e5d;
    background: #fff;
    box-shadow: 0 0 5px rgba(179, 142, 93, 0.2);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
}

/* ==========================================================================
   3. DESKTOP (> 992px) - LOGICA MEGAMENU FISSO E TRASPARENZA
   ========================================================================== */
@media (min-width: 992px) {
    .mobile-filter-toggle { display: none !important; }

    /* Forza l'altezza della barra per allineare tutte le tendine */
    .shop-filter-nav {
        height: 70px !important;
    }

    .filter-main-menu {
        height: 100%;
        margin: 0 !important;
        padding: 0 2% !important;
    }

    /* Centra verticalmente i testi del menu (Categorie, Prezzo, ecc.) */
    .filter-main-menu > li {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative;
        flex: 1;
    }

    /* Rende static i genitori dei Megamenu per permettere il centramento full-width */
    .filter-main-menu > li:nth-child(3),
    .filter-main-menu > li:nth-child(5) {
        position: static !important;
    }

    .filter-main-menu > li > a {
        text-decoration: none !important;
        color: #1a1a1a !important;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        height: 100%;
    }

    /* STILE COMUNE SOTTOMENU */
    .filter-submenu {
        display: none;
        position: absolute;
        top: 100% !important; /* Si attacca esattamente al fondo dei 50px */
        margin-top: -1px !important; /* Copre la riga di bordo per continuità visiva */
        
        /* EFFETTO TRASPARENZA */
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        border-bottom: 3px solid #b38e5d;
        z-index: 1100;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* DROPDOWN STANDARD (Prezzo, Formato, Ordina...) */
    .filter-submenu:not(.megamenu-grid) {
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 180px;
        padding: 10px 0 !important;
        list-style: none !important;
    }

    /* MEGAMENU (Categorie, Etichette) */
    .filter-submenu.megamenu-grid {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: none !important;
        /* Il pannello resta a tutta larghezza (la fascia bianca sotto la barra),
           ma il CONTENUTO occupa il 60% centrale: 20% di padding per lato.
           Essendo in percentuale vale a QUALSIASI risoluzione, schermi grandi
           compresi. Regola condivisa da Categorie, Territori ed Etichette. */
        padding: 40px 20% !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 20px;
    }

    /* TRIGGER HOVER */
    .filter-dropdown:hover > .filter-submenu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .filter-dropdown:hover > .filter-submenu.megamenu-grid {
        display: flex !important;
    }

    /* Forza la chiusura immediata della tendina dopo un click su una voce */
    .filter-dropdown.force-close-submenu > .filter-submenu,
    .filter-dropdown.force-close-submenu > .filter-submenu.megamenu-grid {
        display: none !important;
    }

    /* PONTE PER NON FAR CHIUDERE LA TENDINA */
    .filter-submenu::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        right: 0;
        height: 15px;
        background: transparent;
    }

    /* STILI INTERNI SOTTOMENU */
    .megamenu-col { flex: 1 1 200px; text-align: left; list-style: none !important; }

    /* CATEGORIE: Vini e Bollicine hanno molte voci, le dividiamo su due
       colonne interne (1° e 2° blocco del menu Categorie), riducendo anche
       lo spazio generale tra le colonne per fare posto */
    /* NB: larghezza al 60% e gap sono ora su .filter-submenu.megamenu-grid,
       condivisi da tutte e tre le tendine. */

    /* Tre colonne: Vini | Bollicine | Spirits + Accessori impilati */
    #topmenu-categories .megamenu-col:nth-child(1),
    #topmenu-categories .megamenu-col:nth-child(2) {
        flex: 1 1 240px;
    }

    #topmenu-categories .megamenu-col:nth-child(3) {
        flex: 0 1 150px;
    }

    /* Accessori segue l'elenco dei distillati: gli serve aria sopra */
    #topmenu-categories .megamenu-col .nested-submenu + .col-title {
        margin-top: 22px;
    }

    #topmenu-categories .megamenu-col:nth-child(1) .nested-submenu,
    #topmenu-categories .megamenu-col:nth-child(2) .nested-submenu {
        column-count: 2;
        column-gap: 16px;
    }

    #topmenu-categories .megamenu-col:nth-child(1) .nested-submenu li,
    #topmenu-categories .megamenu-col:nth-child(2) .nested-submenu li {
        break-inside: avoid;
    }
    
    .col-title { 
        display: block; font-weight: 700 !important; font-size: 12px; 
        text-transform: uppercase; color: #111; margin-bottom: 10px; 
        padding-bottom: 5px; border-bottom: 1px solid #f0f0f0;
        transition: color 0.2s;
    }

    /* Solo in Categorie i titoli filtrano davvero (portano data-category-id).
       In Territori sono intestazioni: niente manina, sarebbe fuorviante. */
    #topmenu-categories .col-title { cursor: pointer; }
    #topmenu-categories .col-title:hover { color: #b38e5d; }

    .filter-submenu a {
        font-size: 13px; color: #444 !important; padding: 8px 20px;
        display: block; text-decoration: none; transition: color 0.2s;
    }

    .megamenu-grid .nested-submenu a { font-size: 12px; }
    .megamenu-grid a { padding: 5px 0 !important; } 
    .filter-submenu a:hover { color: #b38e5d !important; }

    /* FASCIA ALFABETICA CANTINE (menu ETICHETTE) */
    .brand-letter-wrap {
        width: 100%;
        flex: 1 1 100%;
    }

    .brand-letter-bar {
        display: flex;
        flex-wrap: nowrap;
        background: rgba(179, 142, 93, 0.12);
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 20px;
    }

    .brand-letter-btn {
        flex: 1 1 0;
        background: none;
        border: none;
        padding: 5px 4px;
        font-size: 13px;
        font-weight: 700;
        color: #6d5a44;
        cursor: pointer;
        border-radius: 4px;
        text-align: center;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .brand-letter-btn:hover {
        background: rgba(179, 142, 93, 0.25);
    }

    .brand-letter-btn.active {
        background: #b38e5d;
        color: #fff;
    }

    .brand-letter-columns {
        list-style: none !important;
        margin: 0 auto;
        padding: 0;
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(8, auto);
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 4px 20px;
        text-align: left !important;
        /* Riempie lo spazio gia' limitato al 60% dal contenitore: prima
           l'80% di quel 60% lasciava la griglia troppo stretta */
        width: 100%;
        max-height: 340px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .brand-letter-columns li {
        list-style: none !important;
        text-align: left !important;
        width: 100% !important;
    }

    .brand-letter-columns a {
        font-size: 12px !important;
        color: #444 !important;
        padding: 3px 0 !important;
        display: block !important;
        text-align: left !important;
        width: 100% !important;
    }

    /* ROTAZIONE FRECCIA */
    .arrow-down i { transition: transform 0.3s ease; margin-left: 5px; }
    .filter-dropdown:hover .arrow-down i { transform: rotate(180deg); color: #b38e5d; }
}

/* ==========================================================================
   4. MOBILE & UTILITY
   ========================================================================== */
@media (max-width: 991px) {
    .filter-submenu { display: none; position: static !important; width: 100% !important; opacity: 1 !important; visibility: visible !important;}
}

.offers-link { color: #6d0e0b !important; font-weight: 800 !important; }
.shop-sidebar, .shop-topbar { display: none !important; }

/* Forza il menu hamburger a stare SOPRA tutto */
.navbar-collapse, .mobile-nav, .offcanvas {
    z-index: 9999 !important;
}

/* Abbassa il livello del menu Esplora quando non serve */
.mobile-filter-toggle {
    position: relative;
    z-index: 100;
}

/* Assicurati che i sottomenu siano visibili quando cliccati */
.mobile-wrapper .nested-dropdown .submenu, 
.mobile-wrapper .nested-dropdown ul {
    position: static !important; /* Fondamentale per il mobile */
    width: 100% !important;
    box-shadow: none !important;
}
/* Banner "Sei una Partita IVA?" - testo prominente in home */
.main-banner .left-content .inner-content h4 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.main-banner .left-content .inner-content span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Pagina Benvenuto (mockup di revisione con 3 varianti) */
.welcome-page .left-panel {
  max-width: 640px;
  width: 90%;
  margin: 0 auto;
  flex: none;
  text-align: center;
  align-items: center;
}

.welcome-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: rgba(175, 105, 0, 0.08);
  padding: 6px;
}

.welcome-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #777;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.welcome-tab:hover {
  color: var(--primary-color);
}

.welcome-tab.active {
  background: var(--primary-color);
  color: #fff;
}

.welcome-variant {
  display: none;
}

.welcome-variant.active {
  display: block;
}

.welcome-panel .auth-kicker {
  margin: 0 auto 4px;
}

.welcome-panel h1 {
  padding-bottom: 0;
  margin-bottom: 20px;
}

.welcome-panel h1::after {
  left: 50%;
  transform: translateX(-50%);
}

.welcome-text {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 14px;
}

.welcome-lead {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.welcome-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-perks li {
  padding: 10px 16px;
  background: rgba(175, 105, 0, 0.06);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #444;
}

.welcome-cta {
  display: inline-block;
  width: auto;
  min-width: 220px;
  margin-top: 10px;
  text-decoration: none;
  text-align: center;
}
