/* ============================================================
   AKAMMAK E-COMMERCE DESIGN SYSTEM
   Complete CSS for single-page application POC
   ============================================================ */

/* ------------------------------------------------------------
   0. GOOGLE FONTS
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ------------------------------------------------------------
   1. DESIGN TOKENS (Custom Properties)
   ------------------------------------------------------------ */
:root {
  /* Colors — Primary (Akammak Red) */
  --color-primary: #CB2027;
  --color-primary-hover: #A81B21;
  --color-primary-light: #FDE8E9;

  /* Colors — Accent */
  --color-accent: #BB0000;
  --color-accent-light: #F7E0E0;

  /* Colors — Neutrals */
  --color-bg: #FAFAFA;
  --color-surface: #F7F2F2;
  --color-border: #E5E0E0;
  --color-white: #FFFFFF;
  --color-black: #2A363B;

  /* Colors — Text */
  --color-text: #2A363B;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;

  /* Colors — Semantic */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Typography */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  /* Layout */
  --header-height: 72px;
  --container-max: 1280px;
  --sidebar-width: 280px;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   3. LAYOUT & STRUCTURE
   ------------------------------------------------------------ */

/* Announcement bar */
.announcement {
  background-color: var(--color-surface);
  text-align: center;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 4px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-bear {
  font-size: 28px;
  line-height: 1;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.nav-item:hover {
  color: var(--color-primary);
}

.has-mega {
  position: relative;
}

.has-mega:hover .mega-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Mega menu */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 480px;
  z-index: 110;
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.has-mega:hover .mega-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
  display: flex;
  gap: 32px;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-list a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.mega-list a:hover {
  color: var(--color-primary);
}

/* Header icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.header-icons a:hover {
  color: var(--color-primary);
}

.header-icons a svg {
  width: 22px;
  height: 22px;
}

.header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.header-icons button:hover {
  color: var(--color-primary);
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.lang-toggle:hover {
  border-color: var(--color-primary);
}

/* Cart badge */
.cart-badge {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Container & Section */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ------------------------------------------------------------
   4. HERO
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent-light) 100%);
  padding: 80px 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  color: var(--color-black);
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-image {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-placeholder {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 16px;
}

.hero-image-placeholder span {
  display: block;
  font-size: 48px;
  margin-bottom: 8px;
}

/* ------------------------------------------------------------
   5. USP STRIP
   ------------------------------------------------------------ */
.usp-strip {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 24px;
}

.usp-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.usp-icon {
  font-size: 20px;
}

/* ------------------------------------------------------------
   6. CATEGORIES
   ------------------------------------------------------------ */
.categories {
  padding: 80px 24px;
}

.categories-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-black);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 240px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.category-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.category-image {
  width: 160px;
  height: 160px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

.shop-link {
  color: var(--color-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  transition: gap var(--transition-fast);
}

.shop-link:hover {
  gap: 10px;
}

/* ------------------------------------------------------------
   7. PRODUCTS
   ------------------------------------------------------------ */
.products {
  padding: 80px 24px;
  background-color: var(--color-white);
}

.products-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.products-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-black);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--color-text);
}

.filter-tab.active {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

/* Product card */
.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image .wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 16px;
}

.product-image .wishlist:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
}

.product-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-image-placeholder {
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
}

.product-image-placeholder span {
  display: block;
  font-size: 40px;
  margin-bottom: 4px;
}

/* Product info */
.product-info {
  padding: 16px 4px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.product-price .old {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 400;
  margin-left: 6px;
}

/* Color dots */
.color-dots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.color-dot.active {
  border-color: var(--color-black);
}

/* Star rating */
.star-rating {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.stars {
  color: var(--color-warning);
  font-size: 14px;
}

.rating-count {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-left: 4px;
}

/* ------------------------------------------------------------
   8. TECHNOLOGY SECTION
   ------------------------------------------------------------ */
.technology {
  padding: 80px 24px;
  background-color: var(--color-surface);
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.tech-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.tech-inner h2 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--color-black);
  margin-bottom: 16px;
}

.tech-inner p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
}

.tech-feature .check {
  color: var(--color-success);
  font-size: 18px;
  flex-shrink: 0;
}

.tech-image {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  height: 380px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-image-placeholder {
  text-align: center;
  color: var(--color-text-muted);
}

.tech-image-placeholder span {
  display: block;
  font-size: 48px;
  margin-bottom: 8px;
}

/* ------------------------------------------------------------
   9. TESTIMONIALS
   ------------------------------------------------------------ */
.testimonials {
  padding: 80px 24px;
}

.testimonials-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-stars {
  color: var(--color-warning);
  font-size: 16px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-surface);
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.testimonial-role {
  color: var(--color-text-muted);
  font-size: 12px;
}

/* ------------------------------------------------------------
   10. NEWSLETTER
   ------------------------------------------------------------ */
.newsletter {
  padding: 80px 24px;
  background-color: var(--color-black);
  color: var(--color-white);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.newsletter-inner p {
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid #333;
  background-color: #2A2A2A;
  color: var(--color-white);
  padding: 0 16px;
  font-size: 15px;
  font-family: var(--font-body);
}

.newsletter-form input::placeholder {
  color: var(--color-text-light);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.newsletter-form button {
  background-color: var(--color-primary);
  color: var(--color-white);
  height: 52px;
  border-radius: var(--radius-md);
  border: none;
  padding: 0 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background-color: var(--color-primary-hover);
}

/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.footer-col a {
  display: block;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-badges {
  display: flex;
  gap: 12px;
}

.footer-badge {
  background-color: var(--color-surface);
  padding: 4px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   12. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  height: 52px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-black);
}

.btn-secondary:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-primary-hover);
}

.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

.btn .arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   13. FORMS
   ------------------------------------------------------------ */
input,
select,
textarea {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 0 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 120, 90, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-light);
}

label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: var(--color-text);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ------------------------------------------------------------
   14. MOBILE MENU
   ------------------------------------------------------------ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.mobile-nav {
  padding: 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   15. MODAL
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.modal-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body {
  padding: 20px;
}

/* ------------------------------------------------------------
   16. SEARCH
   ------------------------------------------------------------ */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-white);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-inner {
  max-width: 600px;
  width: 90%;
}

.search-input {
  width: 100%;
  height: 60px;
  font-size: 24px;
  border: none;
  border-bottom: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  padding: 0;
}

.search-input:focus {
  outline: none;
  border-bottom-color: var(--color-primary);
  box-shadow: none;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.search-bar {
  display: none;
  padding: 12px;
}

.search-bar-inner {
  display: flex;
  gap: 8px;
}

.recent-searches {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.recent-searches a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.recent-searches a:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   17. TOAST
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 400;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-bottom: 8px;
  animation: slideIn 0.3s ease-out;
  font-size: 14px;
}

.toast.success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.toast.error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.toast.info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.toast-close {
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.toast-close:hover {
  opacity: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ------------------------------------------------------------
   18. INNER PAGES — PRODUCTS LAYOUT
   ------------------------------------------------------------ */
.products-layout {
  display: flex;
  gap: 32px;
}

.products-main {
  flex: 1;
}

.products-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.product-count {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
  align-items: center;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

/* ------------------------------------------------------------
   19. PRODUCT DETAIL
   ------------------------------------------------------------ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Gallery */
.product-gallery {
  position: relative;
}

.product-gallery-main {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product-gallery-thumb {
  width: 60px;
  height: 60px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumb.active {
  border-color: var(--color-primary);
  border-width: 2px;
}

/* Product detail info */
.product-detail-info {
  display: flex;
  flex-direction: column;
}

/* Size selector */
.size-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 48px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--color-text);
}

.size-btn.active {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.size-btn.disabled {
  background-color: #F5F5F5;
  color: var(--color-text-light);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Color swatch */
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-swatch.active {
  border-color: var(--color-black);
  box-shadow: inset 0 0 0 2px var(--color-white);
}

/* Quantity selector */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--color-white);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: #F5F5F5;
}

.qty-value {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border: none;
  height: auto;
}

/* Trust indicators */
.trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Product tabs */
.product-tabs {
  border-bottom: 1px solid var(--color-border);
  margin-top: 48px;
  display: flex;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  transition: color var(--transition-fast);
  font-family: var(--font-body);
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
}

.tab-content {
  padding: 24px 0;
  display: none;
}

.tab-content.active {
  display: block;
}

/* Review card */
.review-card {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 700;
  font-size: 14px;
}

.review-date {
  color: var(--color-text-muted);
  font-size: 12px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   20. CART PAGE
   ------------------------------------------------------------ */
.cart-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
}

.cart-items {
  list-style: none;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background-color: #F5F5F5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  min-width: 80px;
}

.cart-item-remove {
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--color-error);
}

/* Cart summary */
.cart-summary {
  padding: 24px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-summary-total {
  font-size: 20px;
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
}

/* Free shipping bar */
.free-shipping-bar {
  height: 8px;
  background-color: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0;
}

.free-shipping-bar-fill {
  height: 100%;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* Promo input */
.promo-input {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.promo-input input {
  flex: 1;
  height: 44px;
}

.promo-input button {
  height: 44px;
}

/* ------------------------------------------------------------
   21. CHECKOUT
   ------------------------------------------------------------ */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.checkout-step.active {
  color: var(--color-primary);
  font-weight: 700;
}

.checkout-step.completed {
  color: var(--color-success);
}

.checkout-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.checkout-step.active .checkout-step-number {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.checkout-step.completed .checkout-step-number {
  background-color: var(--color-success);
  color: var(--color-white);
  border-color: var(--color-success);
}

.checkout-form {
  max-width: 600px;
}

/* ------------------------------------------------------------
   22. ACCOUNT / AUTH
   ------------------------------------------------------------ */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.auth-tab {
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.auth-tab.active {
  border-bottom-color: var(--color-primary);
  font-weight: 700;
  color: var(--color-text);
}

.auth-form {
  display: block;
}

.account-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

/* Order table */
.order-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.order-table th {
  padding: 12px;
  background-color: #F5F5F5;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.order-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   23. WISHLIST
   ------------------------------------------------------------ */
.wishlist-page {
  display: flex;
  gap: 32px;
}

/* ------------------------------------------------------------
   24. CONTENT PAGES
   ------------------------------------------------------------ */
.content-page {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--color-black);
}

.content-page p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 12px;
  border: 1px solid var(--color-border);
  font-size: 14px;
}

.comparison-table th {
  background-color: var(--color-surface);
  font-weight: 600;
}

/* Size chart */
.size-chart {
  width: 100%;
  border-collapse: collapse;
}

.size-chart th {
  background-color: #F5F5F5;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
}

.size-chart td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  font-size: 14px;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  padding: 32px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
}

/* ------------------------------------------------------------
   25. EMPTY STATE
   ------------------------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ------------------------------------------------------------
   26. ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ------------------------------------------------------------
   27. RESPONSIVE — TABLET (768px – 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

/* ------------------------------------------------------------
   28. RESPONSIVE — MOBILE (<768px)
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  /* Header */
  .nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-image {
    height: 280px;
  }

  /* USP */
  .usp-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Categories */
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 32px 24px;
    min-height: auto;
  }

  /* Products */
  .products-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .product-image {
    height: 200px;
  }

  /* Technology */
  .tech-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tech-image {
    height: 280px;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Inner pages */
  .products-layout {
    flex-direction: column;
  }

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

  .product-gallery-main {
    height: 350px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    flex-wrap: wrap;
    gap: 16px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Sections */
  .section {
    padding: 48px 0;
  }

  .categories,
  .products,
  .technology,
  .testimonials,
  .newsletter {
    padding: 48px 24px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  /* Filter tabs scroll on mobile */
  .filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ------------------------------------------------------------
   29. UTILITY & HELPERS
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-light);
}

/* Selection */
::selection {
  background-color: var(--color-primary-light);
  color: var(--color-text);
}
