/* CSS Variables for Theming */
:root, [data-theme="light"] {
  --brand-orange: #c8531e;
  --brand-black: #1f1d1b;
  --page-bg: #f2f0eb;
  --card-bg: #fcfbf9;
  --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --card-filter-shadow: none;
  --text-primary: #2d2a27;
  --text-secondary: #74706b;
  --text-inverted: #ffffff;
  --group-bg: transparent;
  --link-card-bg: #ffffff;
  --link-card-bg-hover: #f7f5f2;
  --link-card-text: var(--text-primary);
  --link-card-border: #e8e5df;
  --separator-text: #2d2a27;
  --border-color: #e8e5df;
  --button-primary-bg: #2d2a27;
  --button-primary-bg-hover: #433e3a;
  --button-primary-text: #ffffff;
  --product-image-bg: #f4f3f0;
  --modal-overlay-bg: rgba(45, 42, 39, 0.6);
  --skeleton-bg: #e8e5df;
  --skeleton-highlight: #fcfbf9;
  --focus-outline-color: var(--brand-orange);
  --social-icon-color: #2d2a27;
  --logo-bg: var(--card-bg);
}

[data-theme="dark"] {
  --page-bg: #1a1a1a;
  --card-bg: #2d2d2d;
  --card-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --card-filter-shadow: drop-shadow(0 0 15px #000);
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-inverted: #ffffff;
  --group-bg: #242424;
  --link-card-bg: #4a4a4a;
  --link-card-bg-hover: #5a5a5a;
  --link-card-text: var(--text-inverted);
  --link-card-border: rgba(255, 255, 255, 0.05);
  --separator-text: #e0e0e0;
  --border-color: #4a4a4a;
  --button-primary-bg: #f8fafc;
  --button-primary-bg-hover: #e2e8f0;
  --button-primary-text: #1a1a1a;
  --product-image-bg: #3a3a3a;
  --modal-overlay-bg: rgba(0, 0, 0, 0.8);
  --skeleton-bg: #4a4a4a;
  --skeleton-highlight: #5a5a5a;
  --focus-outline-color: #d95e25;
  --social-icon-color: #ffffff;
  --logo-bg: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* General Body & Font Styling */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--page-bg);
  margin: 0;
  transition: background-color 300ms ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes carouselItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tabTextFadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Layout */
.page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

/* Main Card Container */
.card-container {
  background-color: var(--card-bg);
  border-radius: 1.5rem;
  padding: 0; 
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
  filter: var(--card-filter-shadow);
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  transition: all 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-container.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Banner Image Styles */
.banner-container {
  width: 100%;
  height: auto;
  background-color: var(--card-bg);
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.02);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.banner-container:hover .banner-img {
  transform: scale(1.05);
}

/* Card Content Wrapper */
.card-content {
  padding: 2rem 2.25rem;
}

/* Card Header */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.logo {
  width: 105%;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
}

/* Logo Container Styles */
.logo-container {
  position: relative;
  width: 6rem;
  height: 6rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  border: 4px solid var(--card-bg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  background-color: var(--logo-bg);
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
}

.logo-flipper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform-style: preserve-3d;
  border-radius: 9999px;
}

.logo-container.is-flipped .logo-flipper {
  transform: rotateY(180deg);
}

.logo-front, .logo-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-back {
  background-color: var(--logo-bg);
  color: var(--text-secondary);
  transform: rotateY(180deg);
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.version-info-version {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.version-info-author {
  font-size: 0.7rem;
  opacity: 0.8;
}

.card-header h1 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

.title-orange {
  color: #d95e25;
}

/* Header Buttons: Theme Toggle and Share */
.theme-toggle, .share-button {
  position: absolute;
  top: -0.5rem;
  background-color: var(--group-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.theme-toggle:hover, .share-button:hover {
  transform: scale(1.1);
  background-color: var(--card-bg);
}
.theme-toggle {
  overflow: hidden;
  left: -0.5rem;
}
.share-button {
  right: -0.5rem;
}

.theme-toggle:focus-visible, .share-button:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
}

.language-toggle {
  position: absolute;
  top: -0.5rem;
  right: 2.25rem;
  min-width: 2.5rem;
  height: 2.25rem;
  padding: 0 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  background-color: var(--group-bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.language-toggle:hover {
  transform: scale(1.06);
  background-color: var(--card-bg);
  border-color: var(--brand-orange);
}

.language-toggle:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
}

/* Theme Toggle Animation */
.sun-icon, .moon-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}
[data-theme="dark"] .sun-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
[data-theme="dark"] .moon-icon { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
[data-theme="dark"] .theme-toggle:hover .sun-icon { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
[data-theme="dark"] .theme-toggle:hover .moon-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
[data-theme="light"] .sun-icon { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
[data-theme="light"] .moon-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
[data-theme="light"] .theme-toggle:hover .sun-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
[data-theme="light"] .theme-toggle:hover .moon-icon { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }


.social-nav {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}
.social-nav > * + * {
  margin-left: 1.25rem;
}
.social-link {
  color: var(--social-icon-color);
  transition: transform 150ms ease-in-out, color 300ms ease-in-out;
}
.social-link:hover {
  transform: scale(1.2);
}
.social-link:focus-visible {
  transform: scale(1.2);
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Links Group */
.links-group {
  background-color: var(--group-bg);
  padding: 0;
  border-radius: 1rem;
}
.links-group > * + * {
  margin-top: 1rem;
}

.links-group > .link-card:first-child {
  background-color: var(--brand-orange);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 22px -12px rgba(200, 83, 30, 0.9);
}

.links-group > .link-card:first-child:hover {
  background-color: #b94819;
}

@keyframes shopOnlineShine {
  0%, 62%, 100% {
    opacity: 0;
    transform: translateX(-180%) skewX(-18deg);
  }
  68% {
    opacity: 0.75;
  }
  86% {
    opacity: 0;
    transform: translateX(620%) skewX(-18deg);
  }
}

.shop-online-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shop-online-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -50%;
  left: 0;
  width: 18%;
  height: 200%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: shopOnlineShine 4.2s ease-in-out 1.2s infinite;
}

.shop-online-card > * {
  position: relative;
  z-index: 1;
}

/* Separator */
.separator {
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.separator-main-text {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Link Card */
.link-card {
  background-color: var(--link-card-bg);
  color: var(--link-card-text);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 400ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 300ms ease;
  border: 1px solid var(--link-card-border);
  cursor: pointer;
  text-decoration: none;
  height: 4.5rem;
  box-sizing: border-box;
  opacity: 0;
  animation-fill-mode: forwards;
}

.card-container.visible .link-card {
  animation-name: fadeInUp;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.link-card:hover {
  transform: translateY(-4px) scale(1.02);
  background-color: var(--link-card-bg-hover);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.link-card:active {
  transform: scale(0.95);
}

/* Chocolate Card Special Styles */
.chocolate-card {
  background: linear-gradient(135deg, #4E342E 0%, #3E2723 100%) !important;
  border: 1px solid #2D1815 !important;
  box-shadow: 0 4px 15px -3px rgba(62, 39, 35, 0.4) !important;
  position: relative;
  overflow: hidden;
}

.chocolate-card .link-card-main-text {
  color: #FFF8E1 !important;
  font-weight: 600;
}

.chocolate-card .icon {
  color: #D7CCC8 !important;
}

.chocolate-card:hover {
  background: linear-gradient(135deg, #3E2723 0%, #2D1815 100%) !important;
  box-shadow: 0 8px 25px -5px rgba(62, 39, 35, 0.6) !important;
}

/* Chocolate drip top highlight */
.chocolate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #8D6E63;
  border-radius: 4px 4px 0 0;
}

/* Decorative shine */
.chocolate-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.chocolate-card:hover::after {
  transform: rotate(30deg) translate(60%, 60%);
}
.link-card:focus-visible {
  transform: translateY(-2px);
  background-color: var(--link-card-bg-hover);
  outline: 3px solid var(--focus-outline-color);
  outline-offset: 2px;
}
.link-card-icon-container {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

/* Link Card Image */
.link-card-image-wrapper {
  width: 100%;
  height: 100%;
  background-color: var(--product-image-bg);
  overflow: hidden;
}
.link-card-image-wrapper.rounded {
  border-radius: 9999px;
}
.link-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link-card-image.rounded {
  border-radius: 9999px;
}

.link-card-text {
  flex-grow: 1;
  display: flex;
  align-items: baseline;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  text-align: left;
}

.link-card-text.small {
  font-size: 0.75rem;
}

.link-card-main-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-text {
  margin-left: 0.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.status-open { color: #16a34a; }
.status-closed { color: #dc2626; }

/* Icon Sizes & Animations */
.icon, .icon-large {
  transition: transform 200ms ease-out;
}
.icon { width: 1.5rem; height: 1.5rem; }
.icon-large { width: 2rem; height: 2rem; }

.share-icon-arrow {
  transition: transform 200ms ease-out;
}

.share-button:hover .share-icon-arrow,
.modal-action-button:hover .share-icon-arrow {
  transform: translateY(-3px);
}

/* Tabs Styles */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  background-color: var(--skeleton-bg);
  border-radius: 9999px;
  padding: 0.35rem;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.tabs-container::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.35rem - 0.125rem);
  background-color: var(--brand-orange);
  border-radius: 9999px;
  box-shadow: 0 4px 12px -4px rgba(200, 83, 30, 0.4);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}

.tabs-container.active-right::before {
  transform: translateX(calc(100% + 0.25rem));
}

.tab-button {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background-color: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.2, 0, 0, 1);
  border-radius: 9999px;
  text-align: center;
  z-index: 1;
}

.tab-button:hover:not(.active) {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--text-inverted);
}

[data-theme="dark"] .tab-button:hover:not(.active) {
  color: var(--text-inverted);
}

/* Product Carousel Section */
.product-carousel-container {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  margin-top: 1.5rem;
}
.loading-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-carousel-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: var(--product-image-bg);
  border-radius: 0.75rem;
  padding: 0.25rem;
  border: 1px solid var(--border-color);
}
.product-carousel-tab {
  padding: 0.5rem 1rem;
  border: none;
  background-color: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  border-radius: 0.6rem;
  flex: 1;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-carousel-tab:hover:not(.active) {
  color: var(--text-primary);
}
.product-carousel-tab.active {
  color: var(--text-primary);
  background-color: var(--card-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.product-carousel-tab:focus-visible {
    outline: 2px solid var(--focus-outline-color);
    outline-offset: 2px;
}

.product-carousel-tab.active .tab-text {
  animation: tabTextFadeInUp 300ms ease-out forwards;
}

.carousel-wrapper {
  position: relative;
}
.carousel {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
  gap: 0.75rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--brand-black);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: all 150ms ease-in-out;
}
[data-theme="dark"] .carousel-button {
  background-color: rgba(45, 45, 45, 0.9);
  color: #e0e0e0;
}
.carousel-button:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}
.carousel-button:hover.prev .icon {
  transform: translateX(-2px);
}
.carousel-button:hover.next .icon {
  transform: translateX(2px);
}
.carousel-button:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
}
[data-theme="dark"] .carousel-button:hover {
  background-color: #2d2d2d;
}

.carousel-button.prev { left: -1.25rem; }
.carousel-button.next { right: -1.25rem; }

.product-carousel-vat-notice {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.product-carousel-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.view-all-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  transition: all 150ms ease-in-out;
  text-decoration: none;
  border: 1px solid var(--border-color);
}
.view-all-button:hover {
  background-color: var(--link-card-bg-hover);
  color: var(--text-inverted);
  border-color: transparent;
}
.view-all-button:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
}

/* Product Card */
.product-card {
  flex: 0 0 9rem;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: none;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1);
  opacity: 0;
  animation-fill-mode: forwards;
}

.carousel .product-card,
.carousel .product-card.skeleton {
  animation-name: carouselItemFadeIn;
  animation-duration: 400ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.product-card:hover { 
  transform: translateY(-4px); 
}
.product-card:focus-visible {
  transform: translateY(-4px);
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
}

.product-image-container {
  width: 100%;
  height: 9rem;
  background-color: var(--product-image-bg);
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-in-out;
}
.product-card:hover .product-image:not(.fallback) { transform: scale(1.05); }
.product-image.fallback { object-fit: contain; padding: 0.5rem; }

.product-info {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.product-title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.8em;
}

.product-meta { margin-top: 0.4rem; }
.product-price { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.product-price del { display: block; opacity: 0.7; font-size: 0.7rem; font-weight: normal; color: var(--text-secondary); }
.product-price ins { display: block; text-decoration: none; background-color: transparent; color: var(--brand-orange); }
.product-availability,
.search-result-availability {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
}
.product-availability.in-stock,
.search-result-availability.in-stock { color: #22a447; }
.product-availability.sold-out,
.search-result-availability.sold-out { color: #dc2626; }
.product-stock-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.45rem;
  border-radius: 9999px;
  background: rgba(31, 29, 27, 0.86);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
}

/* Skeleton Loader */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.product-card.skeleton { pointer-events: none; }
.product-image-skeleton { width: 100%; height: 8rem; background-color: var(--skeleton-bg); }
.product-info-skeleton { padding: 0.5rem; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.product-meta-skeleton { margin-top: 0.5rem; }
.skeleton-line { height: 0.75rem; border-radius: 0.25rem; background-color: var(--skeleton-bg); margin-bottom: 0.5rem; }
.skeleton-line.short { width: 75%; }
.product-image-skeleton, .skeleton-line {
  background-image: linear-gradient(to right, var(--skeleton-bg) 0%, var(--skeleton-highlight) 20%, var(--skeleton-bg) 40%, var(--skeleton-bg) 100%);
  background-repeat: no-repeat;
  background-size: 2000px 104px;
  animation: shimmer 2s linear infinite;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
  transition: background-color 300ms ease-in-out;
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
}
.modal-overlay.visible {
  background-color: var(--modal-overlay-bg);
  pointer-events: auto;
}
.modal-content {
  background-color: var(--card-bg);
  border-radius: 1rem;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 300ms ease-in-out;
  opacity: 0;
  transform: scale(0.95);
}
.modal-content.visible {
  opacity: 1;
  transform: scale(1);
}
.map-modal { max-width: 32rem; height: 80vh; max-height: 600px; }
.content-modal { max-width: 24rem; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--border-color); }
.modal-header-title-group { display: flex; align-items: center; overflow: hidden; }
.modal-header-title-group > * + * { margin-left: 0.75rem; }
.modal-title { font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 0.5rem; }
.modal-title.centered { text-align: center; flex-grow: 1; margin: 0 0.5rem; }
.modal-action-button, .modal-close-button { color: var(--text-secondary); transition: color 150ms ease-in-out; background: none; border: none; cursor: pointer; flex-shrink: 0; }
.modal-action-button:hover, .modal-close-button:hover { color: var(--text-primary); }
.modal-close-button:hover .icon { transform: rotate(90deg); }
.modal-action-button:focus-visible, .modal-close-button:focus-visible { color: var(--text-primary); outline: 2px solid var(--focus-outline-color); border-radius: 4px; }
.modal-body { flex-grow: 1; }
.modal-body-padded { padding: 1.5rem; color: var(--text-primary); }
.content-line { margin-bottom: 0.5rem; font-size: 1.125rem; line-height: 1.75rem; }
.content-status { text-align: center; margin-top: 1rem; }
.status-text.large { font-size: 1.125rem; line-height: 1.75rem; }
.modal-footer { padding: 1rem; background-color: var(--card-bg); border-top: 1px solid var(--border-color); }

.button-primary {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-weight: 700;
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  transition: background-color 150ms ease-in-out;
  text-decoration: none;
}
.button-primary:hover { background-color: var(--button-primary-bg-hover); }
.button-primary:focus-visible { background-color: var(--button-primary-bg-hover); outline: 2px solid var(--button-primary-text); outline-offset: -3px; }

.showroom-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.showroom-address {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.showroom-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.65rem;
}

.showroom-actions .button-primary {
  box-sizing: border-box;
}

.button-secondary {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.button-secondary:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
}

/* QR Code */
.qr-code-container {
  position: fixed;
  bottom: 1.5rem;
  left: calc(50% + 17rem);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: all 500ms ease-out;
  opacity: 0;
  transform: translateY(1rem);
}
@media (min-width: 1200px) { .qr-code-container { display: flex; } }
.qr-code-container.visible { opacity: 1; transform: translateY(0); }
.qr-code-label { 
  color: var(--text-secondary); 
  font-weight: 700; 
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem; 
  text-align: center; 
}
.qr-code-image-wrapper { 
  width: 7.5rem;
  height: 7.5rem;
  padding: 0.65rem;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background-color: #ffffff; 
  border-radius: 1rem; 
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: hidden; 
}

.qr-code-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
}

.qr-code-spinner { width: 2rem; height: 2rem; border: 4px solid var(--border-color); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.toast-container.visible { opacity: 1; transform: translate(-50%, 0); }
.toast-close-button { background: transparent; border: none; color: var(--button-primary-text); font-size: 1.5rem; line-height: 1; cursor: pointer; margin-left: 1rem; padding: 0; opacity: 0.7; transition: opacity 150ms ease-in-out; }

/* Accessibility Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
body.modal-open { overflow: hidden; }

/* Search Form */
.product-search-form { margin-bottom: 0.75rem; }
.search-input-wrapper { position: relative; display: flex; align-items: center; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 0.5rem 0.75rem; transition: box-shadow 150ms ease-in-out, border-color 150ms ease-in-out; }
.search-input-wrapper:focus-within { border-color: var(--focus-outline-color); box-shadow: 0 0 0 1px var(--focus-outline-color); }
.search-input-wrapper.cursor-pointer { cursor: pointer; }
.search-input-wrapper .icon { color: var(--text-secondary); width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; flex-shrink: 0; }
.search-placeholder { color: var(--text-secondary); opacity: 0.7; font-size: 0.875rem; }

/* Search Modal */
.search-modal { max-width: 40rem; height: 80vh; max-height: 700px; }
.search-modal-header { display: flex; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border-color); gap: 1rem; }
.search-modal-form { flex-grow: 1; position: relative; display: flex; align-items: center; background-color: var(--group-bg); border-radius: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid transparent; }
.search-modal-form:focus-within { border-color: var(--focus-outline-color); background-color: var(--card-bg); }
.search-modal-input { background: transparent; border: none; color: var(--text-primary); font-size: 1rem; width: 100%; outline: none; font-family: inherit; }
.search-modal-cancel { background: none; border: none; color: var(--brand-orange); font-weight: 600; cursor: pointer; font-size: 0.875rem; }
.clear-search-btn { background: none; border: none; padding: 0; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-results-container { flex-grow: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; }
.search-loading { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; }
.spinner { width: 2rem; height: 2rem; border: 3px solid var(--border-color); border-top-color: var(--brand-orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
.search-results-list { display: flex; flex-direction: column; gap: 0.75rem; }
.search-result-item { display: flex; align-items: center; background-color: var(--group-bg); padding: 0.75rem; border-radius: 0.75rem; text-decoration: none; color: var(--text-primary); transition: background-color 150ms; }
.search-result-item:hover { background-color: var(--product-image-bg); }
.search-result-image { width: 3.5rem; height: 3.5rem; border-radius: 0.5rem; overflow: hidden; background-color: var(--card-bg); flex-shrink: 0; }
.search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { margin-left: 1rem; flex-grow: 1; min-width: 0; }
.search-result-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-size: 0.875rem; font-weight: 700; color: var(--brand-orange); }
.search-result-arrow { color: var(--text-secondary); margin-left: 0.5rem; }
.no-results { text-align: center; padding: 2rem; color: var(--text-secondary); }
.search-footer-action { margin-top: 1.5rem; text-align: center; }
.button-primary.small { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Discount Styles */
.discounts-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 500ms ease-out forwards;
}

.discount-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.discount-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--brand-orange);
}

.discount-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 700;
}

.discount-code-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.discount-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  background-color: var(--group-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px dashed var(--border-color);
  letter-spacing: 0.05em;
}

.copy-code-btn {
  background-color: var(--brand-orange);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.copy-code-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.copy-code-btn:active {
  transform: scale(0.95);
}

.discount-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.promo-banner {
  min-height: 8.25rem;
  box-sizing: border-box;
  padding: 1.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  text-decoration: none;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.18) 0 0.3rem, transparent 0.35rem),
    radial-gradient(circle at 82% 22%, transparent 0 2.1rem, rgba(255, 255, 255, 0.1) 2.15rem 2.2rem, transparent 2.25rem),
    linear-gradient(135deg, #1f1d1b 0%, #3c2a22 55%, #c8531e 145%);
  transition: filter 200ms ease, transform 300ms ease;
}

.promo-banner:hover {
  filter: brightness(1.06);
}

.promo-banner:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -6px;
}

.promo-kicker,
.section-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-kicker {
  margin-bottom: 0.45rem;
  color: #f2b397;
}

.promo-banner strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

.promo-copy {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
}

button.logo-container {
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.brand-subtitle {
  margin: -0.25rem 0 0;
  max-width: 18rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.catalog-section {
  margin-top: 2rem;
}

.section-heading {
  text-align: center;
}

.section-kicker {
  color: var(--brand-orange);
}

.section-heading h2 {
  margin: 0.45rem 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.carousel-button[hidden] {
  display: none;
}

.search-launch {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-launch:focus-visible,
.search-modal-cancel:focus-visible,
.clear-search-btn:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
}

.search-empty-state {
  min-height: 12rem;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  text-align: center;
}

.search-result-info,
.search-result-title,
.search-result-price {
  display: block;
}

.contact-section {
  margin-top: 2.75rem;
}

.contact-primary {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.contact-card {
  min-height: 4.75rem;
  height: auto;
}

.contact-card .link-card-text {
  flex-direction: column;
  align-items: flex-start;
}

.contact-hint {
  margin-top: 0.2rem;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 500;
}

.sales-team {
  margin-top: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  background: var(--link-card-bg);
  overflow: hidden;
}

.sales-team summary {
  min-height: 3.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sales-team summary::-webkit-details-marker {
  display: none;
}

.sales-team summary:hover {
  color: var(--brand-orange);
}

.sales-team summary:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: -3px;
}

.summary-icon {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  flex: 0 0 1.5rem;
  border-radius: 9999px;
  background: var(--product-image-bg);
  color: var(--brand-orange);
  font-size: 0;
  transition: transform 180ms ease;
}

.summary-icon::before,
.summary-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 2px;
  border-radius: 9999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.summary-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sales-team[open] .summary-icon {
  transform: rotate(45deg);
}

.sales-team-list {
  padding: 0 0.75rem 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.sales-team-list a {
  padding: 0.7rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.6rem;
  background: var(--group-bg);
  color: var(--text-primary);
  font-size: 0.78rem;
  text-decoration: none;
}

.sales-team-list a:hover {
  background: var(--product-image-bg);
  color: var(--brand-orange);
}

.sales-team-list a:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 1px;
}

.sales-team-list a span:last-child {
  color: var(--text-secondary);
  font-size: 0.68rem;
}

.mobile-action-bar {
  display: none;
}

[dir="rtl"] .social-nav > * + * {
  margin-left: 0;
  margin-right: 1.25rem;
}

[dir="rtl"] .link-card-icon-container {
  margin-right: 0;
  margin-left: 0.75rem;
}

[dir="rtl"] .link-card-text,
[dir="rtl"] .search-launch {
  text-align: right;
}

[dir="rtl"] .tabs-container.active-left::before {
  transform: translateX(calc(100% + 0.25rem));
}

[dir="rtl"] .tabs-container.active-right::before {
  transform: none;
}

[dir="rtl"] .status-text {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .language-toggle {
  right: auto;
  left: 2.25rem;
}

[dir="rtl"] .theme-toggle {
  left: auto;
  right: -0.5rem;
}

[dir="rtl"] .share-button {
  right: auto;
  left: -0.5rem;
}

[dir="rtl"] .product-price del {
  margin-right: 0;
}

.site-footer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

@media (max-width: 520px) {
  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .page-container {
    padding: 1rem 0.75rem;
  }

  .card-content {
    padding: 1.4rem 1.1rem 2rem;
  }

  .promo-banner {
    min-height: 7.5rem;
    padding: 1rem 1.1rem;
  }

  .promo-banner strong {
    font-size: 1.35rem;
  }

  .card-header {
    margin-bottom: 1.2rem;
  }

  .social-nav {
    margin-top: 0.75rem;
  }

  .links-group > * + * {
    margin-top: 0.75rem;
  }

  .link-card {
    min-height: 4.25rem;
    height: auto;
  }

  .link-card-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .link-card-main-text {
    display: -webkit-box;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .status-text {
    margin-left: 0;
    font-size: 0.72rem;
  }

  [dir="rtl"] .status-text {
    margin-right: 0;
  }

  .catalog-section {
    margin-top: 1.75rem;
  }

  .contact-section {
    margin-top: 2.25rem;
  }

  .showroom-actions {
    grid-template-columns: 1fr;
  }

  .carousel-button.prev {
    left: -0.75rem;
  }

  .carousel-button.next {
    right: -0.75rem;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 45;
    padding: 0.45rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--card-bg) 94%, transparent);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
  }

  .mobile-action-bar a {
    min-height: 3.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    border-radius: 0.7rem;
    color: var(--text-primary);
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-action-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .mobile-action-bar a:nth-child(2) {
    background: var(--brand-orange);
    color: #ffffff;
  }

  .mobile-action-bar a:active {
    transform: scale(0.96);
  }

  .mobile-action-bar a:focus-visible {
    outline: 2px solid var(--focus-outline-color);
    outline-offset: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
