/*
Theme Name: Dara Flower
Description: Dara Flower Theme with Material 3 Design
Author: Natthapon Pinyo
Author URI: https://iamnbty.com/
Version: 2.0.0
*/

/* ==========================================
   MATERIAL 3 DESIGN SYSTEM - COLOR TOKENS
   ========================================== */

:root {
  /* Custom brand colors */
  --md-sys-color-logo: #98b494;

  /* Primary colors - Flower shop theme (Darker, sophisticated sage green) */
  --md-sys-color-primary: #5f7a5b;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #98b494;
  --md-sys-color-on-primary-container: #1a3a1a;

  /* Secondary colors (Darker forest green) */
  --md-sys-color-secondary: #4a6b46;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #c8e0c5;
  --md-sys-color-on-secondary-container: #1f3d1c;

  /* Tertiary colors (Warmer earth tones) */
  --md-sys-color-tertiary: #8a7d5f;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #d4cbb8;
  --md-sys-color-on-tertiary-container: #2d2a1f;

  /* Error colors */
  --md-sys-color-error: #BA1A1A;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-error-container: #FFDAD6;
  --md-sys-color-on-error-container: #410002;

  /* Surface colors */
  --md-sys-color-surface: #fcf9ef;
  --md-sys-color-on-surface: #2a2820;
  --md-sys-color-surface-variant: #e8e4d9;
  --md-sys-color-on-surface-variant: #5a5649;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #f9f6ec;
  --md-sys-color-surface-container: #f5f2e8;
  --md-sys-color-surface-container-high: #f0ede3;
  --md-sys-color-surface-container-highest: #ebe8de;

  /* Outline */
  --md-sys-color-outline: #8e8a7e;
  --md-sys-color-outline-variant: #d1cdc1;

  /* Shadow and scrim */
  --md-sys-color-shadow: #000000;
  --md-sys-color-scrim: #000000;

  /* Inverse colors */
  --md-sys-color-inverse-surface: #34312a;
  --md-sys-color-inverse-on-surface: #f5f2e8;
  --md-sys-color-inverse-primary: #bcd3b8;

  /* Typography scale */
  --md-sys-typescale-display-large-font: 'Roboto', sans-serif;
  --md-sys-typescale-display-large-size: 57px;
  --md-sys-typescale-display-large-line-height: 64px;
  --md-sys-typescale-display-large-weight: 400;

  --md-sys-typescale-display-medium-size: 45px;
  --md-sys-typescale-display-medium-line-height: 52px;
  --md-sys-typescale-display-medium-weight: 400;

  --md-sys-typescale-display-small-size: 36px;
  --md-sys-typescale-display-small-line-height: 44px;
  --md-sys-typescale-display-small-weight: 400;

  --md-sys-typescale-headline-large-size: 32px;
  --md-sys-typescale-headline-large-line-height: 40px;
  --md-sys-typescale-headline-large-weight: 400;

  --md-sys-typescale-headline-medium-size: 28px;
  --md-sys-typescale-headline-medium-line-height: 36px;
  --md-sys-typescale-headline-medium-weight: 400;

  --md-sys-typescale-headline-small-size: 24px;
  --md-sys-typescale-headline-small-line-height: 32px;
  --md-sys-typescale-headline-small-weight: 400;

  --md-sys-typescale-title-large-size: 22px;
  --md-sys-typescale-title-large-line-height: 28px;
  --md-sys-typescale-title-large-weight: 400;

  --md-sys-typescale-title-medium-size: 16px;
  --md-sys-typescale-title-medium-line-height: 24px;
  --md-sys-typescale-title-medium-weight: 500;

  --md-sys-typescale-title-small-size: 14px;
  --md-sys-typescale-title-small-line-height: 20px;
  --md-sys-typescale-title-small-weight: 500;

  --md-sys-typescale-body-large-size: 16px;
  --md-sys-typescale-body-large-line-height: 24px;
  --md-sys-typescale-body-large-weight: 400;

  --md-sys-typescale-body-medium-size: 14px;
  --md-sys-typescale-body-medium-line-height: 20px;
  --md-sys-typescale-body-medium-weight: 400;

  --md-sys-typescale-body-small-size: 12px;
  --md-sys-typescale-body-small-line-height: 16px;
  --md-sys-typescale-body-small-weight: 400;

  --md-sys-typescale-label-large-size: 14px;
  --md-sys-typescale-label-large-line-height: 20px;
  --md-sys-typescale-label-large-weight: 500;

  --md-sys-typescale-label-medium-size: 12px;
  --md-sys-typescale-label-medium-line-height: 16px;
  --md-sys-typescale-label-medium-weight: 500;

  --md-sys-typescale-label-small-size: 11px;
  --md-sys-typescale-label-small-line-height: 16px;
  --md-sys-typescale-label-small-weight: 500;

  /* Elevation and shadows */
  --md-sys-elevation-level0: none;
  --md-sys-elevation-level1: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-level2: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-level3: 0px 1px 3px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-level4: 0px 2px 3px rgba(0, 0, 0, 0.3), 0px 6px 10px 4px rgba(0, 0, 0, 0.15);
  --md-sys-elevation-level5: 0px 4px 4px rgba(0, 0, 0, 0.3), 0px 8px 12px 6px rgba(0, 0, 0, 0.15);

  /* Shape tokens */
  --md-sys-shape-corner-none: 0px;
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;

  /* State layers (hover, focus, press) */
  --md-sys-state-hover-opacity: 0.08;
  --md-sys-state-focus-opacity: 0.12;
  --md-sys-state-pressed-opacity: 0.12;
  --md-sys-state-dragged-opacity: 0.16;
}

/* ==========================================
   RESET AND BASE STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--md-sys-typescale-display-large-font);
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
  font-weight: var(--md-sys-typescale-body-large-weight);
  color: var(--md-sys-color-on-surface);
  background-color: var(--md-sys-color-surface);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--md-sys-color-on-primary-container);
}

/* ==========================================
   MATERIAL 3 TYPOGRAPHY CLASSES
   ========================================== */

.display-large {
  font-size: var(--md-sys-typescale-display-large-size);
  line-height: var(--md-sys-typescale-display-large-line-height);
  font-weight: var(--md-sys-typescale-display-large-weight);
}

.display-medium {
  font-size: var(--md-sys-typescale-display-medium-size);
  line-height: var(--md-sys-typescale-display-medium-line-height);
  font-weight: var(--md-sys-typescale-display-medium-weight);
}

.display-small {
  font-size: var(--md-sys-typescale-display-small-size);
  line-height: var(--md-sys-typescale-display-small-line-height);
  font-weight: var(--md-sys-typescale-display-small-weight);
}

.headline-large {
  font-size: var(--md-sys-typescale-headline-large-size);
  line-height: var(--md-sys-typescale-headline-large-line-height);
  font-weight: var(--md-sys-typescale-headline-large-weight);
}

.headline-medium {
  font-size: var(--md-sys-typescale-headline-medium-size);
  line-height: var(--md-sys-typescale-headline-medium-line-height);
  font-weight: var(--md-sys-typescale-headline-medium-weight);
}

.headline-small {
  font-size: var(--md-sys-typescale-headline-small-size);
  line-height: var(--md-sys-typescale-headline-small-line-height);
  font-weight: var(--md-sys-typescale-headline-small-weight);
}

.title-large {
  font-size: var(--md-sys-typescale-title-large-size);
  line-height: var(--md-sys-typescale-title-large-line-height);
  font-weight: var(--md-sys-typescale-title-large-weight);
}

.title-medium {
  font-size: var(--md-sys-typescale-title-medium-size);
  line-height: var(--md-sys-typescale-title-medium-line-height);
  font-weight: var(--md-sys-typescale-title-medium-weight);
}

.title-small {
  font-size: var(--md-sys-typescale-title-small-size);
  line-height: var(--md-sys-typescale-title-small-line-height);
  font-weight: var(--md-sys-typescale-title-small-weight);
}

.body-large {
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
  font-weight: var(--md-sys-typescale-body-large-weight);
}

.body-medium {
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-medium-line-height);
  font-weight: var(--md-sys-typescale-body-medium-weight);
}

.body-small {
  font-size: var(--md-sys-typescale-body-small-size);
  line-height: var(--md-sys-typescale-body-small-line-height);
  font-weight: var(--md-sys-typescale-body-small-weight);
}

.label-large {
  font-size: var(--md-sys-typescale-label-large-size);
  line-height: var(--md-sys-typescale-label-large-line-height);
  font-weight: var(--md-sys-typescale-label-large-weight);
}

.label-medium {
  font-size: var(--md-sys-typescale-label-medium-size);
  line-height: var(--md-sys-typescale-label-medium-line-height);
  font-weight: var(--md-sys-typescale-label-medium-weight);
}

.label-small {
  font-size: var(--md-sys-typescale-label-small-size);
  line-height: var(--md-sys-typescale-label-small-line-height);
  font-weight: var(--md-sys-typescale-label-small-weight);
}

/* ==========================================
   MATERIAL 3 BUTTON COMPONENTS
   ========================================== */

.md-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  cursor: pointer;
  font-family: var(--md-sys-typescale-display-large-font);
  font-size: var(--md-sys-typescale-label-large-size);
  font-weight: var(--md-sys-typescale-label-large-weight);
  line-height: var(--md-sys-typescale-label-large-line-height);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.md-button:hover {
  box-shadow: var(--md-sys-elevation-level1);
}

.md-button:active {
  box-shadow: none;
}

/* Filled button (Primary) */
.md-button-filled {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.md-button-filled:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 92%, white);
}

/* Outlined button */
.md-button-outlined {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
}

.md-button-outlined:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}

/* Text button */
.md-button-text {
  background-color: transparent;
  color: var(--md-sys-color-primary);
  padding: 10px 12px;
}

.md-button-text:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}

/* Elevated button */
.md-button-elevated {
  background-color: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-primary);
  box-shadow: var(--md-sys-elevation-level1);
}

.md-button-elevated:hover {
  box-shadow: var(--md-sys-elevation-level2);
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, var(--md-sys-color-surface-container-low));
}

/* Tonal button */
.md-button-tonal {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.md-button-tonal:hover {
  box-shadow: var(--md-sys-elevation-level1);
  background-color: color-mix(in srgb, var(--md-sys-color-on-secondary-container) 8%, var(--md-sys-color-secondary-container));
}

/* ==========================================
   MATERIAL 3 CARD COMPONENTS
   ========================================== */

.md-card {
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-medium);
  overflow: hidden;
  transition: all 0.3s ease;
}

.md-card-elevated {
  box-shadow: var(--md-sys-elevation-level1);
}

.md-card-elevated:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

.md-card-filled {
  background-color: var(--md-sys-color-surface-container-highest);
}

.md-card-outlined {
  border: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface);
}

.md-card-header {
  padding: 16px;
}

.md-card-media {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.md-card-content {
  padding: 16px;
}

.md-card-actions {
  padding: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ==========================================
   MATERIAL 3 INPUT COMPONENTS
   ========================================== */

.md-textfield {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.md-textfield-outlined input,
.md-textfield-outlined textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small);
  background-color: transparent;
  font-family: inherit;
  font-size: var(--md-sys-typescale-body-large-size);
  color: var(--md-sys-color-on-surface);
  transition: all 0.2s ease;
}

.md-textfield-outlined input:focus,
.md-textfield-outlined textarea:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  border-width: 2px;
}

.md-textfield-filled input,
.md-textfield-filled textarea {
  width: 100%;
  padding: 24px 16px 8px;
  border: none;
  border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
  border-radius: var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small) 0 0;
  background-color: var(--md-sys-color-surface-container-highest);
  font-family: inherit;
  font-size: var(--md-sys-typescale-body-large-size);
  color: var(--md-sys-color-on-surface);
  transition: all 0.2s ease;
}

.md-textfield-filled input:focus,
.md-textfield-filled textarea:focus {
  outline: none;
  border-bottom-color: var(--md-sys-color-primary);
  border-bottom-width: 2px;
}

.md-textfield label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-body-large-size);
  pointer-events: none;
  transition: all 0.2s ease;
}

/* ==========================================
   MATERIAL 3 NAVIGATION
   ========================================== */

.md-navigation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-level2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.md-navigation-menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.md-navigation-menu a {
  font-weight: 600;
}

.md-navigation-item {
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-corner-small);
  transition: background-color 0.2s ease;
}

.md-navigation-item:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}

.md-navigation-item.active {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-fluid {
  width: 100%;
  padding: 0 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 4px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.gap-32 {
  gap: 32px;
}

/* Spacing utilities */
.p-0 {
  padding: 0;
}

.p-8 {
  padding: 8px;
}

.p-16 {
  padding: 16px;
}

.p-24 {
  padding: 24px;
}

.p-32 {
  padding: 32px;
}

.m-0 {
  margin: 0;
}

.m-8 {
  margin: 8px;
}

.m-16 {
  margin: 16px;
}

.m-24 {
  margin: 24px;
}

.m-32 {
  margin: 32px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet: 768px and up */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .md-navigation-bar {
    padding: 16px 32px;
  }

  .grid-cols-md-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cols-md-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .display-large {
    font-size: 57px;
    line-height: 64px;
  }

  .display-medium {
    font-size: 45px;
    line-height: 52px;
  }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .grid-cols-lg-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cols-lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-cols-lg-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .grid-cols-lg-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Mobile-first responsive utilities */
@media (max-width: 767px) {

  /* Adjust typography for mobile */
  .display-large {
    font-size: 36px;
    line-height: 44px;
  }

  .display-medium {
    font-size: 32px;
    line-height: 40px;
  }

  .display-small {
    font-size: 28px;
    line-height: 36px;
  }

  .headline-large {
    font-size: 28px;
    line-height: 36px;
  }

  /* Hide on mobile */
  .hide-mobile {
    display: none !important;
  }

  /* Stack navigation on mobile */
  .md-navigation-menu {
    flex-direction: column;
    width: 100%;
  }

  /* Full width buttons on mobile */
  .md-button-mobile-full {
    width: 100%;
  }

  /* Reduce padding on mobile */
  .container {
    padding: 0 16px;
  }

  .md-card-content {
    padding: 12px;
  }

  .md-navigation-bar {
    padding: 12px 16px;
  }
}

/* ==========================================
   WORDPRESS SPECIFIC STYLES
   ========================================== */

/* WordPress alignment classes */
.alignleft {
  float: left;
  margin-right: 16px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 16px;
  margin-bottom: 16px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* WordPress post content */
.wp-block-image img {
  border-radius: var(--md-sys-shape-corner-medium);
}

.wp-block-quote {
  border-left: 4px solid var(--md-sys-color-primary);
  padding-left: 16px;
  margin: 24px 0;
  font-style: italic;
  color: var(--md-sys-color-on-surface-variant);
}

.wp-block-code {
  background-color: var(--md-sys-color-surface-container-highest);
  padding: 16px;
  border-radius: var(--md-sys-shape-corner-small);
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

/* WordPress navigation menu */
.menu {
  list-style: none;
  display: flex;
  gap: 8px;
}

.menu-item a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--md-sys-shape-corner-small);
  transition: background-color 0.2s ease;
}

.menu-item a:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent);
}

.current-menu-item a {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

/* WordPress widgets */
.widget {
  background-color: var(--md-sys-color-surface-container);
  padding: 16px;
  border-radius: var(--md-sys-shape-corner-medium);
  margin-bottom: 16px;
}

.widget-title {
  font-size: var(--md-sys-typescale-title-large-size);
  font-weight: var(--md-sys-typescale-title-large-weight);
  margin-bottom: 12px;
  color: var(--md-sys-color-on-surface);
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.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;
}

*:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {

  .md-navigation-bar,
  .md-button,
  .no-print {
    display: none !important;
  }

  body {
    background-color: white;
    color: black;
  }

  .md-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ==========================================
   PRODUCT DETAIL PAGE - MATERIAL 3
   ========================================== */

.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Product Gallery Section */
.product-gallery-section {
  width: 100%;
}

.product-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-main-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-large) var(--md-sys-shape-corner-large) 0 0;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--md-sys-elevation-level2);
  transition: opacity 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 10;
  opacity: 0;
}

.carousel-arrow:hover {
  opacity: 1 !important;
  box-shadow: var(--md-sys-elevation-level3);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:active {
  box-shadow: var(--md-sys-elevation-level1);
  transform: translateY(-50%) scale(0.98);
}

.carousel-arrow-left {
  left: 16px;
}

.carousel-arrow-right {
  right: 16px;
}

/* Carousel Thumbnails */
.carousel-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: 0 0 var(--md-sys-shape-corner-large) var(--md-sys-shape-corner-large);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--md-sys-color-primary) var(--md-sys-color-surface-container);
}

.carousel-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
  background: var(--md-sys-color-surface-container);
  border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
  background: var(--md-sys-color-primary);
  border-radius: 3px;
}

.carousel-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--md-sys-shape-corner-small);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  padding: 0;
  background: none;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-thumb:hover {
  border-color: var(--md-sys-color-primary);
  opacity: 0.9;
}

.carousel-thumb.active {
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--md-sys-elevation-level1);
}

/* Product Info Section */
.product-info-section {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  color: var(--md-sys-color-on-surface);
  margin: 0;
}

/* Price Container - Match Product Card Style */
.product-price-container {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-price-container .price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-price {
  color: var(--md-sys-color-error);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.product-price-original {
  color: var(--md-sys-color-outline);
  text-decoration: line-through;
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.product-discount-badge {
  background-color: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  padding: 6px 14px;
  border-radius: var(--md-sys-shape-corner-full);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}

.product-best-seller-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a;
  padding: 6px 14px;
  border-radius: var(--md-sys-shape-corner-full);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-best-seller-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Product Order Remark */
.product-order-remark {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-top: 8px;
  background: linear-gradient(135deg,
      var(--md-sys-color-primary-container) 0%,
      var(--md-sys-color-secondary-container) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--md-sys-color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-order-remark:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.product-order-remark .remark-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--md-sys-color-primary);
  border-radius: 50%;
  color: var(--md-sys-color-on-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-order-remark .remark-icon svg {
  width: 20px;
  height: 20px;
}

.product-order-remark .remark-text {
  flex: 1;
  color: var(--md-sys-color-on-primary-container);
  line-height: 1.6;
  padding-top: 4px;
}

/* Product CTA Button */
.product-cta-button {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.product-cta-button svg {
  width: 24px;
  height: 24px;
}

/* Product Divider */
.product-divider {
  height: 1px;
  background-color: var(--md-sys-color-outline-variant);
  margin: 8px 0;
}

/* Product Description */
.product-description {
  color: var(--md-sys-color-on-surface);
}

.product-description h2 {
  color: var(--md-sys-color-on-surface);
}

.product-description p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.product-description ul,
.product-description ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.product-description li {
  margin-bottom: 8px;
}

/* Tablet Layout: 768px and up */
@media (min-width: 768px) {
  .product-detail-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .carousel-main-container {
    aspect-ratio: 4 / 3;
  }

  .carousel-thumbnails {
    padding: 20px;
    gap: 12px;
  }

  .carousel-thumb {
    width: 80px;
    height: 80px;
  }

  .product-info-section {
    padding: 32px;
    gap: 24px;
  }

  .product-cta-button {
    max-width: 400px;
  }
}

/* Desktop Layout: 1024px and up */
@media (min-width: 1024px) {
  .product-detail-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }

  .carousel-thumb {
    width: 96px;
    height: 96px;
  }

  .product-info-section {
    padding: 40px;
    gap: 28px;
  }

  .carousel-arrow {
    width: 56px;
    height: 56px;
  }

  .carousel-arrow-left {
    left: 24px;
  }

  .carousel-arrow-right {
    right: 24px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .product-detail-wrapper {
    gap: 16px;
  }

  .carousel-main-container {
    aspect-ratio: 1 / 1;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow-left {
    left: 8px;
  }

  .carousel-arrow-right {
    right: 8px;
  }

  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .carousel-thumbnails {
    padding: 12px;
    gap: 6px;
  }

  .carousel-thumb {
    width: 64px;
    height: 64px;
  }

  .product-info-section {
    padding: 20px;
    gap: 16px;
  }

  .product-price-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-cta-button {
    font-size: 14px;
    padding: 14px 20px;
  }
}

/* ==========================================
   SHARED TEMPLATE STYLES
   ========================================== */

/* Category/Archive Header */
.category-header {
  text-align: center;
  padding: 48px 0;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #e8f4e7 0%, #fef5e7 50%, #f8e7f0 100%);
  border-radius: var(--md-sys-shape-corner-extra-large);
  animation: fadeInDown 0.8s ease-out;
}

.category-title {
  font-size: 3rem;
  color: var(--md-sys-color-primary);
  margin: 0 0 15px 0;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
}

.category-description {
  font-size: 1.2rem;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
}

/* Entry Header & Meta */
.entry-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 0.8s ease-out;
}

.entry-title {
  font-size: 3rem;
  color: var(--md-sys-color-primary);
  margin: 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.entry-meta a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

.entry-meta a:hover {
  text-decoration: underline;
}

.meta-separator {
  color: var(--md-sys-color-outline);
}

/* Entry Content */
.entry-content {
  padding: 32px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.3s;
}

.featured-image {
  margin-bottom: 32px;
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Wrapper */
.content-wrapper {
  color: var(--md-sys-color-on-surface);
  line-height: 1.8;
}

.content-wrapper p {
  margin-bottom: 16px;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
  color: var(--md-sys-color-on-surface);
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-wrapper li {
  margin-bottom: 8px;
}

.content-wrapper a {
  color: var(--md-sys-color-primary);
  text-decoration: underline;
}

.content-wrapper a:hover {
  color: var(--md-sys-color-secondary);
}

.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--md-sys-shape-corner-medium);
  margin: 24px 0;
}

/* Entry Footer & Tags */
.entry-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tags-label {
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 600;
}

.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: var(--md-sys-shape-corner-full);
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.post-tags a:hover {
  background-color: var(--md-sys-color-secondary);
  color: var(--md-sys-color-on-secondary);
}

/* Page Links */
.page-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Post Navigation */
.post-navigation {
  margin-top: 48px;
  animation: fadeInUp 0.6s ease-out backwards;
  animation-delay: 0.4s;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.nav-previous a,
.nav-next a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pagination */
.navigation.pagination {
  margin-top: 64px;
  padding: 40px 0;
  text-align: center;
  width: 100%;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto;
}

/* Screen reader only text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Base page number styling */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  padding: 0 !important;
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Ripple effect */
.page-numbers::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.3s;
}

.page-numbers:active::before {
  width: 120%;
  height: 120%;
  opacity: 0.12;
  transition: 0s;
}

/* Hover state */
.page-numbers:hover {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-color: var(--md-sys-color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Current page */
.page-numbers.current {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  transform: scale(1.05);
}

.page-numbers.current:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dots (ellipsis) */
.page-numbers.dots {
  background-color: transparent;
  pointer-events: none;
  color: var(--md-sys-color-on-surface-variant);
  width: 32px;
  border: none;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Previous/Next navigation buttons */
.page-numbers.prev,
.page-numbers.next {
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  padding: 0 20px !important;
  gap: 8px;
  border-radius: var(--md-sys-shape-corner-full, 24px) !important;
  background-color: var(--md-sys-color-surface-variant);
  border: 1px solid var(--md-sys-color-outline-variant);
  font-weight: 600;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-color: var(--md-sys-color-primary);
}

/* Navigation icons */
.pagination-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  line-height: 0;
}

.page-numbers.prev:hover .pagination-nav-icon {
  transform: translateX(-3px);
}

.page-numbers.next:hover .pagination-nav-icon {
  transform: translateX(3px);
}

.pagination-nav-text {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1;
}

/* SVG icons */
.page-numbers svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination .nav-links {
  animation: fadeInUp 0.5s ease-out;
}

.page-numbers {
  animation: fadeInScale 0.4s ease-out backwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-numbers:nth-child(1) {
  animation-delay: 0.05s;
}

.page-numbers:nth-child(2) {
  animation-delay: 0.1s;
}

.page-numbers:nth-child(3) {
  animation-delay: 0.15s;
}

.page-numbers:nth-child(4) {
  animation-delay: 0.2s;
}

.page-numbers:nth-child(5) {
  animation-delay: 0.25s;
}

.page-numbers:nth-child(6) {
  animation-delay: 0.3s;
}

.page-numbers:nth-child(7) {
  animation-delay: 0.35s;
}

.page-numbers:nth-child(8) {
  animation-delay: 0.4s;
}

.page-numbers:nth-child(9) {
  animation-delay: 0.45s;
}

.page-numbers:nth-child(10) {
  animation-delay: 0.5s;
}

/* Blog Cards */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.blog-card:nth-child(1) {
  animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
  animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
  animation-delay: 0.3s;
}

.blog-card:nth-child(4) {
  animation-delay: 0.4s;
}

.blog-card:nth-child(5) {
  animation-delay: 0.5s;
}

.blog-card:nth-child(6) {
  animation-delay: 0.6s;
}

.blog-card:nth-child(7) {
  animation-delay: 0.7s;
}

.blog-card:nth-child(8) {
  animation-delay: 0.8s;
}

.blog-card:nth-child(9) {
  animation-delay: 0.9s;
}

.blog-card:nth-child(10) {
  animation-delay: 1s;
}

.blog-card:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-image {
  overflow: hidden;
  background-color: var(--md-sys-color-surface-container);
}

.blog-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.blog-card-meta a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

.blog-card-meta a:hover {
  text-decoration: underline;
}

.blog-card-title {
  color: var(--md-sys-color-on-surface);
  margin: 0 0 12px 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-card-excerpt {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-card-actions {
  margin-top: auto;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.p-32 {
  padding: 32px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mt-24 {
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 767px) {
  .category-header {
    padding: 40px 15px;
  }

  .category-title {
    font-size: 2rem;
  }

  .category-description {
    font-size: 1rem;
  }

  .entry-content {
    padding: 24px 16px;
  }

  .entry-header {
    margin-bottom: 40px;
  }

  .entry-title {
    font-size: 2rem;
  }

  .post-navigation .nav-links {
    flex-direction: column;
  }

  .navigation.pagination {
    margin-top: 32px;
    padding: 24px 0;
  }

  /* Mobile pagination improvements */
  .pagination .nav-links {
    gap: 8px;
    padding: 0 12px;
  }

  .page-numbers {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  /* Show dots on mobile */
  .page-numbers.dots {
    display: inline-flex;
    width: 32px;
  }

  /* Previous/Next buttons take more space on mobile */
  .page-numbers.prev,
  .page-numbers.next {
    padding: 0 16px !important;
    flex: 1;
    max-width: 140px;
  }

  /* Hide text on very small screens */
  @media (max-width: 480px) {
    .pagination-nav-text {
      display: none;
    }

    .page-numbers.prev,
    .page-numbers.next {
      min-width: 48px;
      padding: 0 12px;
    }
  }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-numbers {
    width: 44px;
    height: 44px;
  }

  .pagination .nav-links {
    gap: 10px;
  }
}

/* ==========================================
   BREADCRUMB NAVIGATION - MATERIAL 3
   ========================================== */

.breadcrumb-navigation {
  margin-bottom: 32px;
  padding: 12px 20px;
  background-color: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-large);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.3s ease;
}

.breadcrumb-navigation:hover {
  background-color: var(--md-sys-color-surface-container);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-medium-line-height);
  font-weight: var(--md-sys-typescale-label-large-weight);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.breadcrumb-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--md-sys-shape-corner-small);
  background-color: var(--md-sys-color-on-surface);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--md-sys-color-primary);
  background-color: rgba(95, 122, 91, 0.08);
}

.breadcrumb-link:hover::before {
  opacity: var(--md-sys-state-hover-opacity);
}

.breadcrumb-link:active {
  transform: scale(0.96);
}

.breadcrumb-home-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.breadcrumb-separator {
  margin: 0 2px;
  color: var(--md-sys-color-outline);
  opacity: 0.6;
  flex-shrink: 0;
}

.breadcrumb-current {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-medium-line-height);
  font-weight: var(--md-sys-typescale-label-large-weight);
}

.breadcrumb-current span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* Breadcrumb responsive design */
@media (max-width: 767px) {
  .breadcrumb-navigation {
    padding: 10px 16px;
    margin-bottom: 24px;
    border-radius: var(--md-sys-shape-corner-medium);
  }

  .breadcrumb-link {
    padding: 6px 10px;
    font-size: 13px;
  }

  .breadcrumb-current {
    padding: 6px 10px;
    font-size: 13px;
  }

  .breadcrumb-current span {
    max-width: 180px;
  }

  .breadcrumb-home-icon {
    width: 16px;
    height: 16px;
  }

  .breadcrumb-separator {
    width: 14px;
    height: 14px;
  }

  /* Hide text on very small screens, show only home icon */
  @media (max-width: 480px) {
    .breadcrumb-home span {
      display: none;
    }

    .breadcrumb-link {
      padding: 6px 8px;
    }

    .breadcrumb-current span {
      max-width: 120px;
    }
  }
}

/* Breadcrumb animation on page load */
@keyframes breadcrumbSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb-navigation {
  animation: breadcrumbSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth hover effect for breadcrumb items */
.breadcrumb-item {
  transition: transform 0.2s ease;
}

.breadcrumb-link:hover .breadcrumb-item {
  transform: translateX(2px);
}

/* Accessibility improvements */
.breadcrumb-link:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .breadcrumb-navigation {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .breadcrumb-navigation:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
}