/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Brand Colors =====
   TOTAL:  primary #13C2C2 (teal), dark #117076
   DYLLU:  primary #FF9900 (orange), dark #CC7A00
*/

/* ===== Header ===== */
#app-header {
  background: #1a1a2e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}

#breadcrumbs {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#breadcrumbs a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
#breadcrumbs a:hover { color: #fff; }
#breadcrumbs .sep { margin: 0 6px; color: rgba(255,255,255,0.3); }

.cart-button {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cart-button:hover { background: rgba(255,255,255,0.1); }

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #13C2C2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== Main Container ===== */
#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ===== Landing Page — Brand Selection ===== */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
}

.landing h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  color: #1a1a2e;
}

.landing p {
  color: #666;
  margin-bottom: 48px;
  text-align: center;
  font-size: 16px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 720px;
}

.brand-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 2px solid #e8e8e8;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* TOTAL brand card — teal */
.brand-card.brand-total { border-color: #13C2C2; }
.brand-card.brand-total::before { background: #13C2C2; }
.brand-card.brand-total:hover { border-color: #13C2C2; }
.brand-card.brand-total:hover::before { height: 6px; }

/* DYLLU brand card — orange */
.brand-card.brand-dyllu { border-color: #FF9900; }
.brand-card.brand-dyllu::before { background: #FF9900; }
.brand-card.brand-dyllu:hover { border-color: #FF9900; }
.brand-card.brand-dyllu:hover::before { height: 6px; }

.brand-card .brand-icon { margin-bottom: 4px; }

.brand-card .brand-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}

.brand-card.brand-total .brand-name { color: #117076; }
.brand-card.brand-dyllu .brand-name { color: #CC7A00; }

.brand-card .brand-count {
  font-size: 14px;
  color: #888;
}

.brand-card .brand-arrow {
  color: #ccc;
  transition: all 0.3s;
}

.brand-card:hover .brand-arrow {
  transform: translateX(4px);
}

.brand-card.brand-total:hover .brand-arrow { color: #13C2C2; }
.brand-card.brand-dyllu:hover .brand-arrow { color: #FF9900; }

/* ===== Category Grid ===== */
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a1a2e;
}

.page-subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.back-link:hover { color: #1a1a2e; }
.back-link svg { width: 16px; height: 16px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* TOTAL theme — teal */
.brand-total-theme .category-card { border-left-color: #13C2C2; }
.brand-total-theme .category-card:hover { background: #f0fafa; }
/* DYLLU theme — orange */
.brand-dyllu-theme .category-card { border-left-color: #FF9900; }
.brand-dyllu-theme .category-card:hover { background: #fff8ef; }

.category-card .cat-name {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.category-card .cat-count {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

.category-card .cat-arrow {
  color: #ccc;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.category-card:hover .cat-arrow { transform: translateX(3px); }
.brand-total-theme .category-card:hover .cat-arrow { color: #13C2C2; }
.brand-dyllu-theme .category-card:hover .cat-arrow { color: #FF9900; }

/* ===== Product List ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-bar .search-input {
  flex: 0 0 100%;
  padding: 10px 14px 10px 38px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 4px;
}

.filter-bar .search-input:focus { border-color: #999; }
.brand-total-theme .filter-bar .search-input:focus { border-color: #13C2C2; }
.brand-dyllu-theme .filter-bar .search-input:focus { border-color: #FF9900; }

.filter-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-pill:hover { border-color: #999; background: #f8f8f8; }

.filter-pill.active {
  color: #fff;
  border-color: transparent;
}

.brand-total-theme .filter-pill.active { background: #13C2C2; }
.brand-dyllu-theme .filter-pill.active { background: #FF9900; }

.product-count {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card .card-img {
  width: 100%;
  aspect-ratio: 200 / 141;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
}

.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-card .card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.product-card .card-article {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

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

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

/* TOTAL — teal buttons */
.brand-total-theme .btn-add { background: #13C2C2; }
.brand-total-theme .btn-add:hover { background: #0fa8a8; }
/* DYLLU — orange buttons */
.brand-dyllu-theme .btn-add { background: #FF9900; }
.brand-dyllu-theme .btn-add:hover { background: #e68a00; }

.btn-add.in-cart {
  background: #2e7d32 !important;
}

.btn-add.in-cart:hover { background: #256828 !important; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none !important; }
.modal-overlay:not([hidden]) { display: flex; }
.modal-overlay.visible { opacity: 1; }

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-overlay.visible .modal-content { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-close:hover { background: #fff; color: #333; }

/* Gallery in modal (replaces old .modal-image) */
.modal-body-inner {
  display: flex;
  flex-direction: column;
}

.modal-gallery {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 16px 16px 0 0;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  scrollbar-width: thin;
}

.gallery-thumb {
  width: 72px;
  height: 54px;
  object-fit: contain;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  background: #fff;
  transition: border-color 0.15s;
  padding: 2px;
}

.gallery-thumb:hover { border-color: #ccc; }
.gallery-thumb.active { border-color: #13C2C2; }

.modal-info {
  padding: 24px;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .modal-body-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 85vh;
  }
  .modal-gallery {
    border-radius: 16px 0 0 16px;
    overflow-y: auto;
  }
  .modal-info {
    max-height: 85vh;
    overflow-y: auto;
  }
}

.modal-info h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
  color: #1a1a2e;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 10px;
}

.modal-meta .meta-item {
  font-size: 13px;
  color: #666;
}

.modal-meta .meta-item strong {
  color: #1a1a2e;
}

.modal-description {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  white-space: pre-line;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-actions .btn-add {
  padding: 12px 28px;
  font-size: 15px;
  width: auto;
  border-radius: 10px;
}

/* ===== Quantity Controls ===== */
.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-control label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-right: 2px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover { background: #eee; border-color: #ccc; }
.qty-btn:active { transform: scale(0.95); }

.qty-input {
  width: 52px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus { border-color: #999; }

/* Cart page quantity */
.cart-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cart-qty .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 6px;
}

.cart-qty .qty-input {
  width: 44px;
  height: 28px;
  font-size: 13px;
  border-radius: 6px;
}

/* ===== Cart Page ===== */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: #ddd;
}

.cart-empty h2 { margin-bottom: 8px; color: #666; }
.cart-empty a { color: #13C2C2; }

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.cart-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.cart-item img {
  width: 60px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fafafa;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1a1a2e;
}

.cart-item-article {
  font-size: 12px;
  color: #999;
}

.cart-item-price {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
}

.cart-item-sum {
  font-weight: 700;
  font-size: 14px;
  color: #e53935;
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.btn-remove {
  background: none;
  border: none;
  color: #cc0000;
  font-size: 20px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-remove:hover { background: rgba(204,0,0,0.08); }

.cart-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.cart-total {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-right: auto;
}

.cart-grand-total {
  display: block;
  font-size: 18px;
  color: #e53935;
  font-weight: 700;
  margin-top: 4px;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s;
}

.btn-send.email-btn { background: #1a1a2e; }
.btn-send.email-btn:hover { background: #2a2a4e; }
.btn-send.tg-btn { background: #0088cc; }
.btn-send.tg-btn:hover { background: #006fa8; }
.btn-send.copy-btn { background: #555; }
.btn-send.copy-btn:hover { background: #777; }

.btn-clear {
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  transition: all 0.2s;
}

.btn-clear:hover { border-color: #cc0000; color: #cc0000; }

/* ===== Toast notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1a1a2e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.toast.visible { transform: translateX(-50%) translateY(0); }

/* ===== MOQ Badge ===== */
.card-moq {
  font-size: 11px;
  color: #e65100;
  font-weight: 600;
  margin-top: 2px;
  padding: 2px 0;
}

.moq-highlight {
  color: #e65100;
  background: #fff3e0;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

/* ===== How to Order (Landing Instructions) ===== */
.how-to-order {
  max-width: 600px;
  margin: 48px auto 0;
  background: #f8f9fa;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.how-to-order h3 {
  text-align: center;
  font-size: 20px;
  color: #1a1a2e;
  margin: 0 0 24px;
  font-weight: 700;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* ===== Brand Search ===== */
.brand-search {
  max-width: 500px;
  margin: 0 auto 24px;
}

.brand-search input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff;
}

.brand-search input:focus {
  border-color: #999;
}

.brand-total-theme .brand-search input:focus {
  border-color: #13C2C2;
}

.brand-dyllu-theme .brand-search input:focus {
  border-color: #FF9900;
}

.search-results-info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
  padding: 8px;
}

#brand-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

#brand-search-grid[hidden] {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .brand-grid { grid-template-columns: 1fr; max-width: 400px; }
  .brand-card { padding: 28px 20px; }
  .brand-card .brand-name { font-size: 24px; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  #brand-search-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .landing { padding-top: 32px; }
  .landing h1 { font-size: 24px; }
  .modal-content { max-width: 100%; margin: 10px; }
  .how-to-order { padding: 24px 20px; margin-top: 32px; }
  .how-to-order h3 { font-size: 18px; }
  .step { font-size: 14px; gap: 12px; padding: 12px 0; }
  .step-num { width: 32px; height: 32px; font-size: 14px; }
}

@media (max-width: 480px) {
  #app { padding: 16px 12px 40px; }
  .header-content { padding: 0 12px; height: 52px; }
  .logo { font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card .card-body { padding: 8px 10px; }
  .product-card .card-title { font-size: 12px; }
  .cart-item { gap: 10px; padding: 10px 12px; }
  .cart-item-sum { font-size: 12px; min-width: 60px; }
  .cart-footer { flex-direction: column; }
  .cart-footer .btn-send,
  .cart-footer .btn-clear { width: 100%; justify-content: center; }
}

/* ===== Auth Pages ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 20px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}

.auth-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1a1a2e;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.auth-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.form-group input {
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #13C2C2;
}

.auth-error {
  background: #fff3f3;
  color: #d32f2f;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.btn-auth {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #13C2C2;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.btn-auth:hover { background: #0fa8a8; }
.btn-auth:disabled { background: #aaa; cursor: not-allowed; }

.btn-auth.btn-secondary {
  background: #f0f0f0;
  color: #555;
}
.btn-auth.btn-secondary:hover { background: #e0e0e0; }

.auth-link {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

.auth-link a {
  color: #13C2C2;
  font-weight: 600;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.verify-icon {
  margin-bottom: 16px;
}

.verify-text {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* ===== User Section in Header ===== */
.user-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-email {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.btn-logout:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ===== Print styles for cart ===== */
@media print {
  #app-header, .btn-add, .btn-remove, .btn-send, .btn-clear, .cart-footer { display: none !important; }
  .cart-item { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== Auth responsive ===== */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .user-email { display: none; }
}

/* ===== Product Price ===== */
.card-price {
  color: #e53935;
  font-weight: 700;
  font-size: 15px;
  margin: 4px 0 2px;
}

.modal-price {
  color: #e53935;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ===== PDF Manual Button ===== */
.modal-manual {
  margin: 12px 0 16px;
}

.btn-manual {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-manual:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.btn-manual svg {
  flex-shrink: 0;
}

/* ===== Video Section ===== */
.video-section {
  max-width: 960px;
  margin: 48px auto 0;
}

.video-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 32px;
}

.video-brand-block {
  margin-bottom: 40px;
}

.video-brand-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid currentColor;
  display: inline-block;
}

.brand-total-heading { color: #13C2C2; }
.brand-dyllu-heading { color: #FF9900; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.video-preview {
  position: relative;
  background: #1a1a2e;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  transition: background 0.2s;
}

.video-card:hover .video-play-btn {
  background: rgba(0,0,0,0.3);
}

.video-size-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.video-card-body {
  padding: 12px 14px;
}

.video-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 4px;
}

.video-meta {
  font-size: 12px;
  color: #999;
}

/* Video/gallery mobile overrides */
@media (max-width: 640px) {
  .modal-body-inner {
    flex-direction: column;
  }
  .modal-gallery {
    border-radius: 16px 16px 0 0;
  }
  .gallery-main {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-section-title {
    font-size: 20px;
  }
  .gallery-thumb {
    width: 56px;
    height: 42px;
  }
}
