/* =====================================
   THAI OLD BOOKS - REDESIGNED WEBSITE
   Modern Editorial Design System
   ===================================== */
/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* CSS Variables - Design System */
:root {
  /* Color System */
  --color-primary-light: #4B558C;
  --color-primary-main: #29336B;
  --color-primary-dark: #1C234A;
  --color-page-bg: #FDFBF8;
  --color-surface-bg: #FFFFFF;
  --color-border: #EAE7E2;
  --color-text-secondary: #6B645D;
  --color-text-primary: #2C2825;
  --color-success: #1E8A5A;
  --color-warning: #D97706;
  --color-error: #B91C1C;
  /* Typography */
  --font-heading: 'Sarabun', sans-serif;
  --font-body: 'IBM Plex Sans Thai', sans-serif;
  --text-h1: 48px;
  --text-h2: 32px;
  --text-h3: 20px;
  --text-body: 18px;
  --text-small: 14px;
  --text-button: 16px;
  /* Spacing System (4px base grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-xxxl: 96px;
  /* Layout */
  --max-width: 1280px;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(44, 40, 37, 0.08);
  --shadow-hover: 0 8px 24px rgba(44, 40, 37, 0.12);
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Base Styles */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}
h1 {
  font-size: var(--text-h1);
  line-height: 1.2;
}
h2 {
  font-size: var(--text-h2);
}
h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}
p {
  margin-bottom: var(--space-sm);
}
/* Header */
.header {
  background: var(--color-surface-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1001;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}
.header-content .logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}
.header-content .logo::before {
  content: '';
  background-image: var(--logo);
  height: 3.6rem;
  width: 3.6rem;
  background-size: cover;
  background-position: center;
}
.logo-text {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.logo-subtitle {
  color: var(--color-text-secondary);
  margin: 0;
}
.search-input,
.logo-subtitle,
.logo-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 1;
}
.header .logo::before,
.header a {
  border-radius: var(--border-radius);
}
.list-hero,
.about-hero {
  background: linear-gradient(135deg, #29336B 0%, #4B558C 100%);
  color: white;
  padding: var(--space-xxl, 64px) 0;
  text-align: center;
  margin-bottom: var(--space-xl, 48px);
}
.list-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm, 16px);
  color: white;
}
.about-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}
/* Cart Button */
.cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 24px;
  position: relative;
}
.cart-button:hover {
  background: var(--color-border, #EAE7E2);
  color: var(--color-primary-main);
}
.header .icon-cart {
  position: relative;
  cursor: pointer;
  padding: var(--space-xs);
}
.icon-cart .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-primary-main);
  color: white;
  font-size: 12px;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hero Section */
.hero {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../images/hero_bg.webp);
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
}
.hero-title {
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: var(--text-body);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}
/* Search Container */
.search-container {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--color-surface-bg);
  border-radius: var(--border-radius);
  padding: var(--space-xs);
  box-shadow: var(--shadow);
  transition: var(--transition);
  gap: var(--space-xs);
}
.search-box .form-control {
  border: none;
  width: 80%;
}
.search-box .form-control::before {
  background-color: transparent;
  color: var(--color-text);
  font-size: 1.5em;
}
.search-box button {
  min-width: auto;
  flex: 1;
}
/* Quick Categories */
.quick-categories {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.quick-category {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.quick-category:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
/* Section Titles */
.section-title {
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}
/* Featured Books Section */
.featured-books {
  padding: var(--space-xxxl) 0;
}
/* New Books Section */
.new-books {
  padding: var(--space-xxxl) 0;
}
/* List Page Layout */
.list-content-section {
  padding: var(--space-xl) 0 var(--space-xxxl) 0;
}
.list-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
/* Filters Sidebar */
.filters-sidebar {
  position: sticky;
  top: 80px;
  background: var(--color-surface-bg);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}
.sidebar-title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  color: var(--color-primary-main);
}
.filter-group {
  margin-bottom: var(--space-lg);
}
.filter-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}
.filters-sidebar .search-input {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: var(--text-small);
}
.filter-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}
.filter-categories li {
  margin-bottom: var(--space-xs);
}
.filter-categories input[type="checkbox"] {
  margin-right: var(--space-xs);
  cursor: pointer;
}
.filter-categories label {
  cursor: pointer;
  font-size: var(--text-small);
  color: var(--color-text-primary);
  transition: var(--transition);
}
.filter-categories label:hover {
  color: var(--color-primary-main);
}
/* Clear Filters Button */
.btn-clear-filters {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-border);
  color: var(--color-text-primary);
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-small);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-clear-filters:hover {
  background: var(--color-text-secondary);
  color: white;
}
.btn-clear-filters:active {
  transform: scale(0.98);
}
/* Books Grid in List Page */
.list-layout .books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
/* No Products Found - Empty State */
.no-products-found {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxxl) var(--space-lg);
  text-align: center;
  background: var(--color-surface-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  min-height: 400px;
}
.no-products-icon {
  font-size: 80px;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
.no-products-found h3 {
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.no-products-found p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  max-width: 400px;
}
/* Categories Section */
.categories {
  padding: var(--space-xxxl) 0;
  background: var(--color-surface-bg);
}
.product_categories {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  padding: 0;
}
.product_categories a {
  background-color: #F4E4C1;
  color: #3C2415;
  padding: 4px 20px;
  border-radius: 1em;
}
.product_categories a > span {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 1em;
  font-size: 80%;
  margin-left: 5px;
  padding: 2px 8px;
}
/* About Section */
section.about {
  padding: var(--space-xxxl) 0;
  background: var(--color-surface-bg);
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xxl);
  align-items: center;
}
.about-description {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}
.stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: space-around;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary-main);
  font-family: var(--font-heading);
}
.stat-label {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}
.about-image {
  position: relative;
}
.placeholder-image {
  width: 100%;
  height: 400px;
  background: var(--color-border);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  text-align: center;
  padding: var(--space-lg);
  background-image: url(../images/about.webp);
  background-position: center;
  background-size: cover;
}
.placeholder-image i {
  font-size: 80px;
  margin-bottom: var(--space-md);
}
/* Footer */
.footer {
  background: var(--color-text-primary);
  color: white;
  padding-top: var(--space-xxxl);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-title {
  color: white;
  margin-bottom: var(--space-md);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
}
.footer-links {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-links span,
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  gap: 5px;
}
.footer-links a:hover {
  color: white;
}
.hours {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-bottom p {
  margin-bottom: 0;
  padding: var(--space-lg) 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --text-h1: 40px;
    --text-h2: 28px;
    --text-h3: 18px;
  }
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stats {
    justify-content: center;
  }
  /* List Layout for Tablet */
  .list-layout {
    grid-template-columns: 240px 1fr;
    gap: var(--space-md);
  }
  .list-layout .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}
@media (max-width: 768px) {
  :root {
    --text-h1: 32px;
    --text-h2: 24px;
    --text-h3: 16px;
    --text-body: 16px;
  }
  .hero {
    height: 350px;
  }
  .hero-content {
    padding: var(--space-md);
  }
  .quick-categories {
    gap: var(--space-xs);
  }
  .quick-category {
    font-size: 12px;
    padding: var(--space-xs);
  }
  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-select {
    min-width: auto;
  }
  /* List Layout for Mobile */
  .list-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .filters-sidebar {
    position: static;
    margin-bottom: var(--space-md);
  }
  .list-layout .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-sm);
  }
  .book-details {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  .book-actions {
    flex-direction: column;
  }
  .stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  .about-description {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  .hero {
    height: 300px;
  }
  /* List Layout for Small Mobile */
  .list-layout .books-grid {
    grid-template-columns: 1fr;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .book-card {
    margin: 0 auto;
    max-width: 300px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    align-items: center;
  }
}
/* Utility Classes */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--color-primary-main);
}
.text-secondary {
  color: var(--color-text-secondary);
}
.hidden {
  display: none;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-up {
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.about-page {
  background: var(--color-page-bg, #FDFBF8);
  padding: var(--space-xl, 48px) 0;
}
.about-section {
  background: white;
  border-radius: var(--border-radius, 8px);
  padding: var(--space-lg, 32px);
  margin-bottom: var(--space-lg, 32px);
  box-shadow: var(--shadow, 0 4px 12px rgba(44, 40, 37, 0.08));
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg, 32px);
  margin-bottom: var(--space-xl, 48px);
}
.contact-card {
  background: white;
  border-radius: var(--border-radius, 8px);
  padding: var(--space-lg, 32px);
  box-shadow: var(--shadow, 0 4px 12px rgba(44, 40, 37, 0.08));
  transition: var(--transition, all 0.3s ease);
}
.contact-card:hover {
  box-shadow: var(--shadow-hover, 0 8px 24px rgba(44, 40, 37, 0.12));
  transform: translateY(-4px);
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #29336B 0%, #4B558C 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm, 16px);
}
.contact-icon i {
  color: white;
  font-size: 24px;
}
.contact-card h3 {
  color: var(--color-primary-dark, #1C234A);
  margin-bottom: var(--space-sm, 16px);
  font-size: 1.25rem;
}
.contact-card p {
  color: var(--color-text-secondary, #6B645D);
  line-height: 1.8;
  margin-bottom: 0;
}
.contact-card a {
  color: var(--color-primary-main, #29336B);
  text-decoration: none;
  transition: var(--transition, all 0.3s ease);
}
.contact-card a:hover {
  color: var(--color-primary-light, #4B558C);
  text-decoration: underline;
}
.map-section {
  background: white;
  border-radius: var(--border-radius, 8px);
  padding: var(--space-lg, 32px);
  margin-bottom: var(--space-lg, 32px);
  box-shadow: var(--shadow, 0 4px 12px rgba(44, 40, 37, 0.08));
}
.map-section h2 {
  color: var(--color-primary-dark, #1C234A);
  margin-bottom: var(--space-md, 24px);
  text-align: center;
}
#map {
  height: 450px;
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md, 24px);
  margin-top: var(--space-lg, 32px);
}
.info-item {
  display: flex;
  align-items: start;
  gap: var(--space-sm, 16px);
  padding: var(--space-md, 24px);
  background: var(--color-page-bg, #FDFBF8);
  border-radius: var(--border-radius, 8px);
  border-left: 4px solid var(--color-primary-main, #29336B);
}
.info-icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary-main, #29336B);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon i {
  color: white;
  font-size: 16px;
}
.info-content h4 {
  color: var(--color-primary-dark, #1C234A);
  margin-bottom: var(--space-xs, 8px);
  font-size: 1rem;
}
.info-content p {
  color: var(--color-text-primary, #2C2825);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.opening-hours {
  background: linear-gradient(135deg, #29336B 0%, #4B558C 100%);
  color: white;
  padding: var(--space-lg, 32px);
  border-radius: var(--border-radius, 8px);
  text-align: center;
  margin-top: var(--space-lg, 32px);
}
.opening-hours h3 {
  color: white;
  margin-bottom: var(--space-md, 24px);
}
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md, 24px);
  max-width: 600px;
  margin: 0 auto;
}
.hours-item {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-sm, 16px);
  border-radius: var(--border-radius, 8px);
}
.hours-item strong {
  display: block;
  margin-bottom: var(--space-xs, 8px);
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2rem;
  }
  .about-hero p {
    font-size: 1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  #map {
    height: 350px;
  }
}
.info-content h4 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.contact-card h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}
.info-content h4:before {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #29336B 0%, #4B558C 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.contact-card h3:before {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #29336B 0%, #4B558C 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm, 16px);
  color: white;
}
/* 404 Error Page */
.error-page-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxxl) 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.error-content {
  background: var(--color-surface-bg);
  border-radius: var(--border-radius);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-hover);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.error-illustration {
  position: relative;
  margin-bottom: var(--space-xl);
}
.error-number {
  font-size: 120px;
  font-weight: 900;
  color: var(--color-primary-main);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #29336B 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-books {
  font-size: 60px;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}
.error-message h1 {
  font-size: var(--text-h1);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}
.error-description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}
.error-hint {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  font-style: italic;
}
/* 404 Responsive */
@media (max-width: 768px) {
  .error-number {
    font-size: 80px;
  }
  .error-books {
    font-size: 40px;
  }
  .error-message h1 {
    font-size: var(--text-h2);
  }
  .error-content {
    padding: var(--space-lg);
  }
}
/* Checkout Page Styles */
.checkout-page {
  padding: 40px 0;
  min-height: 500px;
}
.checkout-header {
  text-align: center;
  margin-bottom: 40px;
}
.checkout-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #333;
}
.checkout-header p {
  font-size: 1.1em;
  color: #666;
}
.checkout-page p {
  margin-bottom: 0 !important;
}
/* Social Login Section */
.social-login-section {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.login-prompt {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.login-prompt .icon-user-circle {
  font-size: 4em;
  color: #4CAF50;
  margin-bottom: 20px;
}
.login-prompt h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}
.login-prompt p {
  color: #666;
  margin-bottom: 30px;
}
.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.social-btn span {
  font-size: 1.2em;
}
.facebook-btn {
  background: #1877F2;
  color: white;
}
.facebook-btn:hover {
  background: #145dbf;
}
.google-btn {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}
.google-btn:hover {
  background: #f5f5f5;
}
.line-btn {
  background: #00B900;
  color: white;
}
.line-btn:hover {
  background: #009600;
}
.telegram-btn {
  background: #0088cc;
  color: white;
}
.telegram-btn:hover {
  background: #006699;
}
.or-divider {
  position: relative;
  text-align: center;
  margin: 25px 0;
}
.or-divider:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #ddd;
}
.or-divider span {
  position: relative;
  background: #fff;
  padding: 0 15px;
  color: #999;
}
/* Checkout Content */
.checkout-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
@media (max-width: 968px) {
  .checkout-content {
    grid-template-columns: 1fr;
  }
  .order-summary {
    order: 2;
  }
  .checkout-form-wrapper {
    order: 1;
  }
}
/* Order Summary */
.order-summary {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}
.summary-title {
  font-size: 1.5em;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}
.summary-items {
  margin-bottom: 20px;
}
.summary-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.summary-item:last-child {
  border-bottom: none;
}
.summary-item img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.item-details {
  flex: 1;
}
.item-details h4 {
  font-size: 0.95em;
  margin-bottom: 5px;
  color: #333;
}
.item-details p {
  font-size: 0.9em;
  color: #666;
}
.item-price {
  font-weight: 600;
  color: #4CAF50;
}
.summary-totals {
  border-top: 2px solid #f0f0f0;
  padding-top: 15px;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95em;
  padding: 10px 0;
}
.summary-row.total {
  font-size: 1.2em;
  font-weight: 700;
  color: #4CAF50;
  margin-top: 10px;
  padding-top: 10px;
  border-top-width: 2px;
}
.summary-row.discount-row {
  color: #f44336;
}
.summary-row:not(:first-child) {
  border-top: 1px solid #dee2e6;
}
/* Checkout Form */
.checkout-form-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-section {
  margin-bottom: 30px;
}
.section-title {
  font-size: 1.3em;
  margin-bottom: 20px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  list-style-type: none;
  padding: 0;
}
.payment-option {
  display: block;
  cursor: pointer;
}
.payment-option input[type="radio"] {
  display: none;
}
.payment-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s;
}
.payment-option input[type="radio"]:checked + .payment-card {
  border-color: #4CAF50;
  background: #f1f8f4;
}
.payment-card span {
  font-size: 2em;
  color: #4CAF50;
}
.payment-card strong {
  display: block;
  margin-bottom: 3px;
  color: #333;
}
.payment-card p {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}
.payment-details {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.payment-details h4 {
  margin-bottom: 15px;
  color: #333;
}
.bank-info p,
.promptpay-info p {
  margin-bottom: 8px;
  line-height: 1.6;
}
/* QR Code */
.qr-code-container {
  text-align: center;
  margin: 20px 0;
}
.qr-code-image {
  display: inline-block;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.qr-code-image img,
.qr-code-image canvas {
  max-width: 250px;
  height: auto;
  display: block;
}
.qr-code-amount {
  margin: 15px 0;
  font-size: 1.2em;
}
.qr-code-instructions {
  margin-top: 20px;
  background: white;
  border-radius: 8px;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-8);
}