@import "tamland-dropdown.css";

/* ==========================================================================
   Tamland Design System Tokens (Global)
   Extracted from Figma (File: Tamland.com)
   ========================================================================== */

:root {
  /* --- Colors: Brand & Status --- */
  --tamland-color-primary: #C5161C;
  --tamland-color-primary-hover: #A01217;
  --tamland-color-primary-disabled: rgba(197, 22, 28, 0.4);
  --tamland-color-primary-subtle: rgba(197, 22, 28, 0.08);
  --tamland-color-menu-active-red: #710D10;
  --tamland-opacity-unready: 0.65;
  --tamland-opacity-loading: 0.65;
  --tamland-loader-border: rgba(255, 255, 255, 0.35);
  --tamland-color-primary-dark: #4B3700;
  --tamland-color-primary-light: #FFF6DD;
  --tamland-color-hero-yellow: #FFC727;
  --tamland-color-hero-darkred: #7A0004;
  --tamland-color-snapppay-blue: #008EFA;

  /* --- Colors: Text --- */
  --tamland-color-text-title: #231F20;
  --tamland-color-text-primary: #202021;
  --tamland-color-text-secondary: #57595B;
  --tamland-color-text-muted: #7E7F83;
  --tamland-color-text-subtle: #8C8C8D;
  --tamland-color-text-disabled: rgba(32, 32, 33, 0.44);

  /* --- Colors: Surfaces & Borders --- */
  --tamland-color-surface-bg: #FCFCFC;
  --tamland-color-surface-card: #FFFFFF;
  --tamland-color-surface-muted: #F4F4F5;
  --tamland-color-border: #D5D5D6;
  --tamland-color-border-light: rgba(213, 213, 213, 0.5);
  --tamland-color-border-thumb: #D7D7D7;
  --tamland-color-border-subtle: #ECECEC;
  --tamland-color-focus-outline: #064D76;

  /* --- Colors: Soft Accents & Badges --- */
  --tamland-color-accent-badge: rgba(254, 191, 16, 0.24);
  --tamland-color-discount-gold-bg: #FECD45;
  --tamland-color-discount-gold-text: #202021;
  --tamland-color-pink-soft-bg: #FCEFEF;
  --tamland-color-pink-soft-text: #C5161C;
  --tamland-color-pink-soft-border: #F5CECE;
  --tamland-color-yellow-soft-bg: #FFF6DD;
  --tamland-color-yellow-soft-text: #4B3700;
  --tamland-color-success-bg: #E8F7EB;
  --tamland-color-success-text: #16A34A;
  --tamland-color-success-border: #16A34A;
  --tamland-color-gold-bg: #FFF9ED;
  --tamland-color-gold-text: #B47818;
  --tamland-color-gold-border: #D9A74A;
  --tamland-color-badge-gold-bg: #FFF6DD;
  --tamland-color-badge-gold-text: #B88D3A;
  --tamland-color-badge-magenta-bg: rgba(217, 41, 166, 0.06);
  --tamland-color-badge-magenta-text: #D929A6;
  --tamland-color-badge-teal-bg: rgba(5, 189, 141, 0.06);
  --tamland-color-badge-teal-text: #05BD8D;
  --tamland-color-cat-purple-bg: #FBEDF7;
  --tamland-color-cat-teal-bg: #EAF9F5;
  --tamland-color-cat-yellow-bg: #FDF6E1;
  --tamland-color-cat-red-bg: #FDEFEF;
  --tamland-color-discount-pill-bg: rgba(254, 191, 16, 0.24);
  --tamland-color-discount-pill-text: #B88D3A;
  --tamland-color-text-white: #FFFFFF;

  /* --- Gradient Tokens --- */
  --tamland-gradient-hero-dark-start: #1E1B4B;
  --tamland-gradient-hero-dark-mid: #312E81;
  --tamland-gradient-hero-dark-end: #4338CA;
  --tamland-gradient-red-start: #E9373D;
  --tamland-gradient-red-end: #C5161C;
  --tamland-gradient-hero-red-end: #7A0C10;
  --tamland-gradient-purple-start: #1C2438;
  --tamland-gradient-purple-mid: #291C3E;
  --tamland-gradient-purple-end: #921E78;
  --tamland-color-accent-purple: #921E78;
  --tamland-color-amber-bg: #FFFDF0;
  --tamland-color-amber-bg-hover: #FEF9C3;
  --tamland-color-amber-border: #F59E0B;
  --tamland-color-amber-border-hover: #D97706;
  --tamland-color-video-bg: #FFF8F8;
  --tamland-color-video-player-bg: #3C3F46;
  --tamland-color-success-dark-text: #0A4714;
  --tamland-color-border-divider: #F0F0F0;
  --tamland-color-teal-dark: #0E6251;

  /* --- Colors: Category Tags --- */
  --tamland-color-tag-pink-bg: #FCEFEF;
  --tamland-color-tag-pink-text: #C5161C;
  --tamland-color-tag-teal-bg: #F4FBF9;
  --tamland-color-tag-teal-text: #42CDA8;
  --tamland-color-tag-green-bg: #F4FBF1;
  --tamland-color-tag-green-text: #68CD45;
  --tamland-color-tag-gray-bg: #F4F4F5;
  --tamland-color-tag-gray-text: #57595B;

  /* --- Colors: Thumbnails --- */
  --tamland-color-thumb-yellow-bg: #FBBD10;
  --tamland-color-thumb-yellow-text: #231F20;
  --tamland-color-thumb-pink-bg: #F9CBCF;
  --tamland-color-thumb-pink-text: #231F20;

  /* --- Typography: Font Family & Weights --- */
  --tamland-font-family: 'YekanBakhFaNum', 'Yekan Bakh FaNum', 'YekanBakhFanum', 'Yekan Bakh', -apple-system, BlinkMacSystemFont, sans-serif;
  --tamland-font-weight-regular: 400;
  --tamland-font-weight-semibold: 600;
  --tamland-font-weight-bold: 700;

  /* --- Typography: Font Sizes & Line Heights --- */
  --tamland-font-size-title-xl: 1.625rem;
  --tamland-line-height-title-xl: 1.35;
  --tamland-font-size-title-lg: 1.5rem;
  --tamland-line-height-title-lg: 1.4;
  --tamland-font-size-title-md: 1.25rem;
  --tamland-line-height-title-md: 1.35;
  --tamland-font-size-title-sm: 1rem;
  --tamland-line-height-title-sm: 1.5;
  --tamland-font-size-body-md: 0.875rem;
  --tamland-line-height-body-md: 1.428;
  --tamland-font-size-body-sm: 0.75rem;
  --tamland-line-height-body-sm: 1.5;
  --tamland-font-size-label-lg: 0.875rem;
  --tamland-line-height-label-lg: 1.428;
  --tamland-font-size-label-md: 0.75rem;
  --tamland-line-height-label-md: 1.5;
  --tamland-font-size-label-sm: 0.6875rem;
  --tamland-line-height-label-sm: 1.4;
  --tamland-font-size-micro: 0.625rem;
  --tamland-line-height-micro: 1.5;
  --tamland-font-size-item-title: 0.8125rem;
  --tamland-line-height-item-title: 1.5;
  --tamland-font-size-caption-sm: 0.75rem;
  --tamland-line-height-caption-sm: 1.4;

  /* --- Spacing System --- */
  --tamland-space-0: 0;
  --tamland-space-2: 0.125rem;
  --tamland-space-4: 0.25rem;
  --tamland-space-6: 0.375rem;
  --tamland-space-8: 0.5rem;
  --tamland-space-10: 0.625rem;
  --tamland-space-12: 0.75rem;
  --tamland-space-16: 1rem;
  --tamland-space-18: 1.125rem;
  --tamland-space-20: 1.25rem;
  --tamland-space-24: 1.5rem;
  --tamland-space-32: 2rem;
  --tamland-space-36: 2.25rem;
  --tamland-space-40: 2.5rem;
  --tamland-space-48: 3rem;
  --tamland-space-56: 3.5rem;

  /* --- Border Radii --- */
  --tamland-radius-4: 0.25rem;
  --tamland-radius-8: 0.5rem;
  --tamland-radius-10: 0.625rem;
  --tamland-radius-12: 0.75rem;
  --tamland-radius-16: 1rem;
  --tamland-radius-24: 1.5rem;
  --tamland-radius-48: 3rem;
  --tamland-radius-pill: 6.25rem;

  /* --- Standard Dimensions --- */
  --tamland-container-max: 75rem;
  --tamland-container-max-w: 75rem;
  --tamland-container-narrow: 56.25rem;
  --tamland-drawer-mobile-w: 18rem;
  --tamland-main-col-w: 46.25rem;
  --tamland-sidebar-col-w: 26.25rem;
  --tamland-shop-sidebar-w: 20rem;
  --tamland-shop-card-h: 23rem;
  --tamland-shop-thumb-h: 12.5rem;
  --tamland-shop-card-aspect-ratio: 245 / 200; /* Natural aspect ratio of course poster images (1.225) */
  --tamland-shop-carousel-card-w: 15.3125rem; /* 245px = exact 245x200 image aspect-ratio fit for contain */
  --tamland-shop-carousel-gap: var(--tamland-space-10, 0.625rem); /* 10px reduced item gap */
  --tamland-shop-carousel-spv-desktop: 5; /* Desktop (>= 1200px): 5 slides (~232px card) */
  --tamland-shop-carousel-spv-tablet-lg: 4;   /* Max Tablet / Small Desktop (992px - 1199px, incl. 1024px): 4 slides (~249px card) */
  --tamland-shop-carousel-spv-tablet: 3;      /* Standard Tablet (768px - 991px): 3 slides (~249px card) */
  --tamland-shop-carousel-spv-tablet-sm: 2.8; /* Small Tablet (640px - 767px, incl. 720px): 2.8 slides (~242px card) */
  --tamland-shop-carousel-spv-phablet-lg: 2.35; /* Large Phablet (576px - 639px): 2.35 slides (~229px card) */
  --tamland-shop-carousel-spv-phablet: 2;     /* Small Phablet (480px - 575px): 2 slides (~225px card) */
  --tamland-shop-carousel-spv-mobile-lg: 1.5;  /* Large Mobile (430px - 479px): 1.5 slides (1 card + 0.5 card peek) */
  --tamland-shop-carousel-spv-mobile-md: 1.5;  /* Medium Mobile (390px - 429px): 1.5 slides (1 card + 0.5 card peek) */
  --tamland-shop-carousel-spv-mobile: 1.5;     /* Standard Mobile (360px - 389px, e.g. iPhone SE 375px): 1.5 slides */
  --tamland-shop-carousel-spv-mobile-sm: 1.5;  /* Small Mobile (< 360px, e.g. 320px): 1.5 slides */
  --tamland-shop-carousel-spv: var(--tamland-shop-carousel-spv-desktop); /* Default desktop SPV */
  --tamland-shop-cat-h: 4.875rem;
  --tamland-shop-cat-h-mobile: 3.75rem;
  --tamland-shop-cat-icon-size-mobile: 1.375rem;
  --tamland-customer-info-sidebar-w: 20.5rem;
  --tamland-btn-cta-height: 3.5rem;
  --tamland-btn-cta-height-mobile: 3.25rem;
  --tamland-btn-sub-height: 3rem;
  --tamland-btn-sub-width: 5rem;
  --tamland-btn-outline-h-mobile: 2rem;
  --tamland-btn-outline-border-w: 1px;
  --tamland-input-height: 3rem;
  --tamland-thumbnail-size: 5rem;
  --tamland-sidecart-thumb-size: 6.25rem;
  --tamland-illustration-size: 12.5rem;
  --tamland-badge-w: 2.25rem;
  --tamland-badge-h: 1.125rem;
  --tamland-thankyou-mobile-h: 75.875rem;
  --tamland-cart-mobile-pb: 6.875rem;
  --tamland-checkout-mobile-pb: 12rem;

  /* --- 404 Error Page Tokens (Figma: 4151-57508, 4152-60158) --- */
  --tamland-card-404-max-w: 42rem;
  --tamland-card-404-content-max-w: 28rem;
  --tamland-illustration-404-max-w: 22rem;
  --tamland-illustration-404-h: 12rem;
  --tamland-badge-404-size: 3.5rem;
  --tamland-badge-404-icon-size: 1.75rem;
  --tamland-font-size-404-glitch: 7.5rem;
  --tamland-font-size-404-glitch-mobile: 5rem;
  --tamland-gradient-404-end: #FF6B6B;
  --tamland-gradient-404: linear-gradient(135deg, var(--tamland-color-primary) 0%, var(--tamland-gradient-404-end) 100%);
  --tamland-shadow-404-card: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.04);
  --tamland-shadow-404-badge: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  --tamland-shadow-404-btn-primary: 0 0.25rem 0.75rem rgba(197, 22, 28, 0.2);
  --tamland-shadow-404-btn-primary-hover: 0 0.5rem 1.25rem rgba(197, 22, 28, 0.3);

  /* --- Exam Card Tokens (Figma: 4634-158611) --- */
  --tamland-shadow-exam-card-active: 0 0.25rem 0.75rem rgba(197, 22, 28, 0.08);

  /* --- Shop & Archive Tokens (Figma: 3749-113992, 4539-77399, 4540-86367) --- */
  --tamland-overlay-backdrop: rgba(0, 0, 0, 0.5);
  --tamland-shadow-shop-card-hover: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.06);
  --tamland-shadow-shop-cat: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  --tamland-shadow-shop-sheet: 0 -0.5rem 2rem rgba(0, 0, 0, 0.15);
  --tamland-shadow-shop-card-active: 0 0.125rem 0.5rem rgba(197, 22, 28, 0.08);
  --tamland-shimmer-start: rgba(255, 255, 255, 0);
  --tamland-shimmer-mid: rgba(255, 255, 255, 0.55);
  --tamland-shimmer-end: rgba(255, 255, 255, 0);
  --tamland-gradient-shimmer: linear-gradient(270deg, var(--tamland-shimmer-start) 0%, var(--tamland-shimmer-mid) 50%, var(--tamland-shimmer-end) 100%);

  /* --- Header & Admin Bar Standard Dimensions --- */
  --tamland-header-height: 4.5rem;
  --tamland-header-height-mobile: 4.5rem; /* 72px */
  --tamland-header-height-tablet: 4.375rem; /* 70px */
  --tamland-adminbar-height-mobile: 2.875rem; /* 46px */
  --tamland-adminbar-height-desktop: 2rem; /* 32px */
  --tamland-bottom-nav-height: 5.25rem; /* 84px standard mobile bottom nav height */

  /* --- Megamenu & Header Tokens (Figma: 4522-130616, 3158-125355, 3240-232847) --- */
  --tamland-shadow-menu: 0 1rem 2rem rgba(0, 0, 0, 0.08);
  --tamland-shadow-menu-pinned: 0 0.375rem 1.125rem rgba(20, 24, 40, 0.10);
  --tamland-shadow-drawer: -0.625rem 0 2.125rem rgba(20, 24, 40, 0.16);
  --tamland-menu-col-width: 15.625rem; /* 250px */
  --tamland-menu-row-h: 3rem; /* 48px */
  --tamland-menu-row-sub-h: 2.75rem; /* 44px */
  --tamland-search-modal-max-w: 26rem; /* 416px max width for mobile search modal */

  /* --- Z-Index Layer Tokens --- */
  --tamland-z-base: 1;
  --tamland-z-substicky: 10;
  --tamland-z-sticky: 20;
  --tamland-z-dropdown: 50;
  --tamland-z-header: 100;
  --tamland-z-site-header: 990;
  --tamland-z-loader: 1000;
  --tamland-z-drawer-backdrop: 9990;
  --tamland-z-drawer: 9999;
  --tamland-z-bottom-nav: 10000;
  --tamland-z-modal: 10000;
  --tamland-z-toast: 99999;
}

@keyframes tamland-spin {
  to {
    transform: rotate(360deg);
  }
}
