/* Theme1 boutique vendeur — design marketplace premium */

.tk-shop-section {
  padding: 3.5rem 0;
}
.tk-shop-section--alt {
  background: #fff;
}
.tk-shop-section--muted {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.tk-shop-section--dark {
  background: linear-gradient(145deg, #0f172a 0%, #134e4a 55%, #065f46 100%);
  color: #fff;
}

.tk-shop-page-head {
  margin-bottom: 2rem;
}
.tk-shop-page-head .tk-shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600, #059669);
  margin-bottom: 0.5rem;
}
.tk-shop-page-head h1,
.tk-shop-page-head h2 {
  font-family: "Syne", "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.tk-shop-page-head p {
  color: #64748b;
  margin-top: 0.35rem;
}
.tk-shop-link {
  color: var(--brand-600, #059669);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s, gap 0.2s;
}
.tk-shop-link:hover {
  color: var(--brand-700, #047857);
  gap: 0.55rem;
}

/* Boutons hero & CTA */
.tk-shop-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-700, #047857);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.tk-shop-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}
.tk-shop-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.tk-shop-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.tk-shop-hero-actions {
  width: 100%;
}

@media (max-width: 639px) {
  .tk-shop-hero-actions {
    max-width: 18.5rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .tk-shop-btn-primary,
  .tk-shop-btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .tk-shop-btn-primary span,
  .tk-shop-btn-outline span {
    flex: 1;
  }
}
.tk-shop-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--brand-500, #059669), var(--brand-700, #047857));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.tk-shop-btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-500, #059669) 35%, transparent);
}
.tk-shop-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  color: var(--brand-700, #047857);
  font-weight: 600;
  font-size: 0.875rem;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.tk-shop-btn-ghost:hover {
  border-color: var(--brand-400, #34d399);
  background: var(--brand-50, #ecfdf5);
}

/* Cartes produit */
.tk-shop-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s;
}
.tk-shop-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--brand-400, #34d399) 40%, #e2e8f0);
}
.tk-shop-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0.15rem;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  overflow: hidden;
}
.tk-shop-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #fff;
  border-radius: 0.5rem;
  transition: transform 0.4s ease;
}
.tk-shop-product-card__media.has-image-dims {
  aspect-ratio: 4 / 3;
}
.tk-shop-product-card:hover .tk-shop-product-card__media img {
  transform: scale(1.04);
}
.tk-shop-product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tk-shop-product-card__badge--promo {
  background: linear-gradient(135deg, var(--brand-500, #059669), var(--brand-700, #047857));
  color: #fff;
}
.tk-shop-product-card__badge--stock {
  top: auto;
  left: auto;
  right: 0.75rem;
  bottom: 0.75rem;
  background: #10b981;
  color: #fff;
}
.tk-shop-product-card__badge--out {
  background: #ef4444;
  color: #fff;
}
.tk-shop-product-card__body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}
.tk-shop-product-card__title {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tk-shop-product-card__title:hover {
  color: var(--brand-600, #059669);
}
.tk-shop-product-card__desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tk-shop-product-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-600, #059669);
}
.tk-shop-product-card__price-old {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 0.35rem;
  font-weight: 500;
}
.tk-shop-product-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.tk-shop-product-card__actions .tk-shop-btn-ghost,
.tk-shop-product-card__actions .tk-shop-btn-accent {
  flex: 1;
}

/* Cartes catégorie */
.tk-shop-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s, border-color 0.28s;
  position: relative;
  overflow: hidden;
}
.tk-shop-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 60%, color-mix(in srgb, var(--brand-500, #059669) 8%, transparent));
  opacity: 0;
  transition: opacity 0.3s;
}
.tk-shop-category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--brand-400, #34d399) 50%, #e2e8f0);
}
.tk-shop-category-card:hover::before {
  opacity: 1;
}
.tk-shop-category-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--brand-50, #ecfdf5), #fff);
  border: 1px solid color-mix(in srgb, var(--brand-300, #6ee7b7) 40%, transparent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--brand-600, #059669);
  transition: transform 0.3s;
}
.tk-shop-category-card:hover .tk-shop-category-card__icon {
  transform: scale(1.08) rotate(-3deg);
}
.tk-shop-category-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.tk-shop-category-card__hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Filtres sidebar */
.tk-shop-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  position: sticky;
  top: 5.5rem;
}
.tk-shop-filters h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 1.25rem;
}
.tk-shop-filter-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  color: #64748b;
  font-size: 0.875rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tk-shop-filter-link:hover,
.tk-shop-filter-link.is-active {
  color: var(--brand-700, #047857);
  background: var(--brand-50, #ecfdf5);
  border-left-color: var(--brand-500, #059669);
}
.tk-shop-filter-link.is-active {
  font-weight: 700;
}

/* Barre recherche */
.tk-shop-search-bar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.5rem;
}
.tk-shop-search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tk-shop-search-input:focus {
  outline: none;
  border-color: var(--brand-500, #059669);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500, #059669) 15%, transparent);
}

/* Features / perks accueil */
.tk-shop-feature-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tk-shop-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}
.tk-shop-feature-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.35rem;
  background: var(--brand-50, #ecfdf5);
  color: var(--brand-600, #059669);
}

/* Hero accueil — badge */
.tk-shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Grille responsive */
.tk-shop-grid-products {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .tk-shop-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .tk-shop-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tk-shop-section--dark .tk-shop-eyebrow {
  color: #a7f3d0;
}
.tk-shop-section--dark .tk-shop-page-head h1,
.tk-shop-section--dark .tk-shop-page-head h2 {
  color: #a7f3d0;
}
.tk-shop-section--dark .tk-shop-page-head a {
  color: #a7f3d0;
}
.tk-shop-section--dark .tk-shop-page-head a:hover {
  color: #fff;
}
.tk-shop-grid-products,
.tk-shop-grid-products--4 {
  display: grid;
  gap: 1.5rem;
}
.tk-shop-grid-products--4 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .tk-shop-grid-products--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .tk-shop-grid-products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tk-shop-grid-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .tk-shop-grid-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Auth boutique — fond & orbes thème */
body.cn-auth-body.theme-classic,
body.cn-auth-body.theme-modern,
body.cn-auth-body.theme-minimal,
body.cn-auth-body.theme-boutique,
body.cn-auth-body.theme-market {
  --brand-auth-glow: var(--brand-500, #059669);
}
body.cn-auth-body::before {
  background:
    radial-gradient(ellipse 75% 55% at 10% 15%, color-mix(in srgb, var(--brand-500, #059669) 28%, transparent), transparent 55%),
    radial-gradient(ellipse 65% 50% at 90% 80%, color-mix(in srgb, var(--brand-600, #047857) 22%, transparent), transparent 50%),
    linear-gradient(165deg, #04120e 0%, #0a1628 45%, #0f172a 100%);
}
.cn-auth-body .cn-auth-top-brand .tk-brand-icon {
  background: linear-gradient(135deg, var(--brand-500, #059669), var(--brand-700, #065f46));
}
.cn-auth-body .cn-auth-top-brand .tk-brand-name {
  color: var(--brand-800, #065f46);
}

.cn-login-scene--shop-split .cn-auth-form-flat--shop {
  position: relative;
}
.cn-auth-fullpage--shop .cn-auth-form-flat--shop {
  position: relative;
}
.cn-auth-fullpage--shop .cn-auth-form-flat--shop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-600, #047857), var(--brand-400, #34d399), var(--brand-600, #047857));
  background-size: 200% 100%;
  animation: tkShopAuthBar 6s linear infinite;
}
.cn-auth-form-flat--shop .cn-input:focus {
  border-color: var(--brand-500, #059669);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500, #059669) 15%, transparent);
}
.cn-auth-form-flat--shop .cn-input-wrap:focus-within > i.field-icon {
  color: var(--brand-600, #047857);
}
.cn-auth-form-flat--shop .cn-btn-primary {
  background: linear-gradient(135deg, var(--brand-500, #059669), var(--brand-700, #065f46)) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-500, #059669) 35%, transparent) !important;
}
.cn-auth-form-flat--shop .cn-btn-primary:hover {
  box-shadow: 0 16px 32px color-mix(in srgb, var(--brand-500, #059669) 45%, transparent) !important;
}
@keyframes tkShopAuthBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.cn-login-visual--shop .cn-login-badge-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-100, #d1fae5);
  margin-bottom: 1rem;
  width: fit-content;
}

/* Pages catalogue / fiche produit — contenu visible, pas de vide sous la grille */
body.tk-shop-subpage {
  overflow-y: auto;
  height: auto;
}
body.tk-shop-subpage .tk-shop-shell {
  min-height: 0;
}
body.tk-shop-subpage .tk-shop-shell .app-main {
  flex: 0 0 auto;
}
body.tk-shop-subpage .tk-shop-shell > .tk-site-footer--shop {
  margin-top: 0;
}
body.tk-shop-subpage [data-reveal] {
  opacity: 1;
  transform: none;
}

.tk-shop-catalog .tk-shop-filters {
  position: static;
  top: auto;
}

.tk-shop-product-detail {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  overflow-x: clip;
  max-width: 100%;
}
.tk-shop-product-detail > .max-w-5xl {
  max-width: min(100%, 72rem);
  width: 100%;
  box-sizing: border-box;
}
.tk-shop-product-detail__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 1.25rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}
.tk-shop-product-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}
.tk-shop-product-detail__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  max-width: 100%;
}
@media (max-width: 480px) {
  .tk-shop-product-detail__head {
    flex-wrap: wrap;
  }
  .tk-shop-product-detail__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }
}
@media (min-width: 768px) {
  .tk-shop-product-detail__card {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 2rem;
    padding: 2rem;
  }
}
.tk-shop-product-detail__media {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  width: 100%;
}
.tk-product-gallery {
  width: 100%;
}
.tk-shop-product-detail__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.tk-shop-product-detail__info {
  min-width: 0;
}
.tk-shop-product-detail__desc {
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .tk-shop-product-card,
  .tk-shop-category-card,
  .tk-shop-feature-card { transition: none; }
  .cn-login-scene--shop-split .cn-auth-form-flat--shop::before,
  .cn-auth-fullpage--shop .cn-auth-form-flat--shop::before { animation: none; }
}
