/* ==================================================================
   TemplateLover — WooCommerce Styles
   Modern editorial product page design
   ================================================================== */

/* ------------------------------------------------------------------
   LAYOUT RESETS — low specificity, only fix layout issues
   ------------------------------------------------------------------ */

.woocommerce div.product { margin: 0; }
.woocommerce div.product .summary { margin: 0; }
.woocommerce div.product form.cart { margin: 0; }
.woocommerce div.product form.cart .quantity { float: none; margin: 0; }
.woocommerce div.product .woocommerce-product-gallery { float: none; width: auto; margin: 0; }
.woocommerce .woocommerce-breadcrumb { margin: 0; padding: 0; }

/* ------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------ */

.tl-sp__breadcrumbs {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.tl-sp__breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.tl-sp__breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-sp__breadcrumb-item a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tl-sp__breadcrumb-item a:hover {
  color: var(--foreground);
}

.tl-sp__breadcrumb-sep {
  color: var(--border);
  font-size: 0.75rem;
}

/* ------------------------------------------------------------------
   Main Layout
   ------------------------------------------------------------------ */

.tl-sp {
  padding-bottom: 4rem;
}

.tl-sp__main {
  padding: 2rem 0 4rem;
}

.tl-sp__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .tl-sp__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------ */

.tl-sp__gallery {
  position: relative;
}

@media (min-width: 1024px) {
  .tl-sp__gallery {
    position: sticky;
    top: 5rem;
  }
}

.tl-sp__gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 1;
}

.tl-sp__gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tl-sp__gallery-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.tl-sp__gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tl-sp__gallery-main:hover .tl-sp__gallery-slide--active .tl-sp__gallery-img {
  transform: scale(1.05);
}

.tl-sp__gallery-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--muted-foreground);
}

/* Sale badge */
.tl-sp__sale-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: var(--destructive);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Thumbnails */
.tl-sp__thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.tl-sp__thumbnails::-webkit-scrollbar {
  height: 4px;
}

.tl-sp__thumbnails::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.tl-sp__thumb {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tl-sp__thumb:hover {
  border-color: var(--muted-foreground);
}

.tl-sp__thumb--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.tl-sp__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------------
   Product Info
   ------------------------------------------------------------------ */

.tl-sp__info {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .tl-sp__info-inner {
    position: sticky;
    top: 5rem;
  }
}

.tl-sp__sku {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.tl-sp__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0 0 1rem;
}

/* Rating */
.tl-sp__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tl-sp__stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}

.tl-sp__star--empty {
  color: var(--border);
}

.tl-sp__rating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.tl-sp__rating-count {
  color: var(--muted-foreground);
  font-weight: 400;
}

/* Price */
.tl-sp__price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tl-sp__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
}

.tl-sp__price del {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  font-weight: 400;
  margin-right: 0.25rem;
}

.tl-sp__price ins {
  text-decoration: none;
  color: var(--primary);
}

.tl-sp__price-save {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--destructive);
  background: rgba(239, 68, 68, 0.08);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

/* Short description */
.tl-sp__short-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.tl-sp__short-desc p {
  margin-bottom: 0.75rem;
}

.tl-sp__short-desc p:last-child {
  margin-bottom: 0;
}

/* Features list */
.tl-sp__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tl-sp__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.5;
}

.tl-sp__features li svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.125rem;
}

/* ------------------------------------------------------------------
   Cart Form
   ------------------------------------------------------------------ */

.tl-sp__cart-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tl-sp__quantity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tl-sp__quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9999px;
  overflow: hidden;
  background: var(--surface);
}

/* Neutralize WC .quantity wrapper inside our container */
.tl-sp__quantity .quantity {
  display: flex;
  align-items: center;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
}

.tl-sp__qty-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.tl-sp__qty-btn:hover {
  background: var(--secondary);
}

.tl-sp__qty-btn:active {
  background: var(--muted);
}

/* WC quantity input — covers both direct .qty and .quantity .qty */
.tl-sp__quantity .qty,
.tl-sp__quantity input[type="number"] {
  width: 3rem !important;
  height: 2.75rem !important;
  text-align: center !important;
  border: none !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  background: transparent !important;
  color: var(--foreground) !important;
  -moz-appearance: textfield;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  -webkit-appearance: none;
}

.tl-sp__quantity .qty::-webkit-outer-spin-button,
.tl-sp__quantity .qty::-webkit-inner-spin-button,
.tl-sp__quantity input[type="number"]::-webkit-outer-spin-button,
.tl-sp__quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart button */
.tl-sp__add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.tl-sp__add-to-cart:hover {
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.tl-sp__add-to-cart:active {
  transform: translateY(0);
}

.tl-sp__add-to-cart-text,
.tl-sp__add-to-cart-loading,
.tl-sp__add-to-cart-done {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tl-sp__add-to-cart-loading,
.tl-sp__add-to-cart-done {
  position: absolute;
  opacity: 0;
  transform: translateY(100%);
}

/* Loading state */
.tl-sp__add-to-cart.is-loading .tl-sp__add-to-cart-text {
  opacity: 0;
  transform: translateY(-100%);
}

.tl-sp__add-to-cart.is-loading .tl-sp__add-to-cart-loading {
  opacity: 1;
  transform: translateY(0);
}

.tl-sp__add-to-cart.is-loading .tl-sp__add-to-cart-loading svg {
  animation: tl-spin 0.8s linear infinite;
}

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

/* Done state */
.tl-sp__add-to-cart.is-done {
  background: #059669;
  color: #fff;
}

.tl-sp__add-to-cart.is-done .tl-sp__add-to-cart-text {
  opacity: 0;
  transform: translateY(-100%);
}

.tl-sp__add-to-cart.is-done .tl-sp__add-to-cart-done {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------
   Toast Notification
   ------------------------------------------------------------------ */

.tl-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background: var(--foreground);
  color: var(--background);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 24rem;
}

.tl-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.tl-toast__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  flex-shrink: 0;
}

.tl-toast__content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.tl-toast__title {
  font-weight: 600;
  font-size: 0.875rem;
}

.tl-toast__message {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.tl-toast__close {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: rgba(255,255,255,0.1);
  color: inherit;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  margin-left: 0.5rem;
}

.tl-toast__close:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 640px) {
  .tl-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ------------------------------------------------------------------
   PayPal Express Button area
   ------------------------------------------------------------------ */

.tl-sp__paypal-area {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tl-sp__paypal-area .paypal-button,
.tl-sp__paypal-area [data-paypal-button],
.tl-sp__paypal-area .wc-paypal-express-button,
.tl-sp__paypal-area .ppc-button-overlay-host {
  width: 100% !important;
  border-radius: 9999px !important;
}

.tl-sp__paypal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tl-sp__paypal-divider::before,
.tl-sp__paypal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Out of stock */
.tl-sp__oos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: var(--destructive);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.tl-sp__oos svg {
  flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Trust Badges
   ------------------------------------------------------------------ */

.tl-sp__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tl-sp__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
  color: var(--muted-foreground);
}

.tl-sp__trust-item svg {
  color: var(--primary);
}

.tl-sp__trust-item span {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .tl-sp__trust-item span {
    font-size: 0.75rem;
  }
}

/* ------------------------------------------------------------------
   Meta
   ------------------------------------------------------------------ */

.tl-sp__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-sp__meta-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.tl-sp__meta-label {
  font-weight: 500;
  color: var(--foreground);
  min-width: 5rem;
  flex-shrink: 0;
}

.tl-sp__meta-value {
  color: var(--muted-foreground);
}

.tl-sp__meta-value a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tl-sp__meta-value a:hover {
  color: var(--primary);
}

/* ------------------------------------------------------------------
   Tabs
   ------------------------------------------------------------------ */

.tl-sp__tabs-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.tl-sp__tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tl-sp__tab-btn {
  position: relative;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tl-sp__tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.tl-sp__tab-btn:hover {
  color: var(--foreground);
}

.tl-sp__tab-btn--active {
  color: var(--foreground);
}

.tl-sp__tab-btn--active::after {
  background: var(--primary);
}

.tl-sp__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: 9999px;
  background: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.tl-sp__tab-btn--active .tl-sp__tab-count {
  background: var(--accent);
  color: var(--accent-foreground);
}

.tl-sp__tab-panel {
  display: none;
}

.tl-sp__tab-panel--active {
  display: block;
  animation: tl-tab-fade 0.3s ease;
}

@keyframes tl-tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tl-sp__tab-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--foreground);
  max-width: 48rem;
}

.tl-sp__tab-content > * + * {
  margin-top: 1.25rem;
}

.tl-sp__tab-content h2,
.tl-sp__tab-content h3,
.tl-sp__tab-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.tl-sp__tab-content ul,
.tl-sp__tab-content ol {
  padding-left: 1.5rem;
}

.tl-sp__tab-content img {
  border-radius: var(--radius);
  max-width: 100%;
}

/* ------------------------------------------------------------------
   Related Products
   ------------------------------------------------------------------ */

.tl-sp__related {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.tl-sp__related-header {
  margin-bottom: 2.5rem;
}

.tl-sp__related-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------
   WooCommerce Notices
   ------------------------------------------------------------------ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.woocommerce-message {
  background: var(--accent);
  color: var(--accent-foreground);
  border: 1px solid var(--accent);
}

.woocommerce-info {
  background: rgba(59, 130, 246, 0.06);
  color: #1D4ED8;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.woocommerce-error {
  background: rgba(239, 68, 68, 0.06);
  color: var(--destructive);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ------------------------------------------------------------------
   Archive / Shop Page
   ------------------------------------------------------------------ */

.tl-archive-product {
  padding: 2rem 0 6rem;
}

.tl-archive-product__header {
  margin-bottom: 2rem;
}

.tl-archive-product__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem;
}

.tl-archive-product__description {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 40rem;
}

.tl-archive-product__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tl-archive-product__toolbar .woocommerce-result-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.tl-archive-product__toolbar .woocommerce-ordering select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* Products grid override */
.tl-archive-product .products,
.tl-sp__related .products {
  display: grid !important;
  grid-template-columns: repeat(1, 1fr) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (min-width: 640px) {
  .tl-archive-product .products,
  .tl-sp__related .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .tl-archive-product .products,
  .tl-sp__related .products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1280px) {
  .tl-archive-product .products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Pagination */
.tl-archive-product .woocommerce-pagination {
  margin-top: 3rem;
}

.tl-archive-product .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.tl-archive-product .woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tl-archive-product .woocommerce-pagination .page-numbers:hover {
  background: var(--secondary);
  border-color: var(--muted-foreground);
}

.tl-archive-product .woocommerce-pagination .page-numbers.current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ------------------------------------------------------------------
   Product Card Tag Variants
   ------------------------------------------------------------------ */

.tl-product-card__tag--sale {
  background: var(--destructive) !important;
  color: #fff !important;
}

.tl-product-card__tag--oos {
  background: var(--muted) !important;
  color: var(--muted-foreground) !important;
}

/* ------------------------------------------------------------------
   Cart Page
   ------------------------------------------------------------------ */

.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  border-radius: var(--radius);
  max-width: 80px;
}

.woocommerce-cart .woocommerce-cart-form .product-name a {
  font-weight: 500;
  color: var(--foreground);
}

.woocommerce-cart .cart_totals {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.woocommerce-cart .checkout-button {
  border-radius: 9999px !important;
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  font-weight: 600 !important;
  padding: 1rem 2rem !important;
}

/* ------------------------------------------------------------------
   Checkout Page
   ------------------------------------------------------------------ */

.woocommerce-checkout .woocommerce-billing-fields input,
.woocommerce-checkout .woocommerce-shipping-fields input,
.woocommerce-checkout .woocommerce-additional-fields textarea,
.woocommerce-checkout .woocommerce-checkout-payment {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.woocommerce-checkout .woocommerce-billing-fields input:focus,
.woocommerce-checkout .woocommerce-shipping-fields input:focus,
.woocommerce-checkout .woocommerce-additional-fields textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(14, 107, 99, 0.12);
}

.woocommerce-checkout #place_order {
  border-radius: 9999px !important;
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease !important;
}

.woocommerce-checkout #place_order:hover {
  background: var(--foreground) !important;
  color: var(--background) !important;
}

/* ------------------------------------------------------------------
   Account Page
   ------------------------------------------------------------------ */

.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  font-size: 0.9375rem;
  color: var(--foreground);
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  color: var(--primary);
}

/* ------------------------------------------------------------------
   Reviews in tabs
   ------------------------------------------------------------------ */

.tl-sp__tab-content .commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tl-sp__tab-content .commentlist .comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.tl-sp__tab-content .commentlist .comment:last-child {
  border-bottom: none;
}

.tl-sp__tab-content .comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tl-sp__tab-content .comment-author .fn {
  font-weight: 600;
  font-style: normal;
}

.tl-sp__tab-content .comment-date {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.tl-sp__tab-content .star-rating {
  margin: 0.25rem 0;
}

.tl-sp__tab-content .description p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--foreground);
}

/* Review form */
.tl-sp__tab-content .comment-respond {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tl-sp__tab-content .comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tl-sp__tab-content .comment-form input[type="text"],
.tl-sp__tab-content .comment-form input[type="email"],
.tl-sp__tab-content .comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.tl-sp__tab-content .comment-form input:focus,
.tl-sp__tab-content .comment-form textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(14, 107, 99, 0.12);
}

.tl-sp__tab-content .comment-form .submit {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tl-sp__tab-content .comment-form .submit:hover {
  background: var(--foreground);
  color: var(--background);
}

/* ------------------------------------------------------------------
   Product attributes table
   ------------------------------------------------------------------ */

.tl-sp__tab-content .woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
}

.tl-sp__tab-content .woocommerce-product-attributes th,
.tl-sp__tab-content .woocommerce-product-attributes td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.tl-sp__tab-content .woocommerce-product-attributes th {
  font-weight: 500;
  color: var(--foreground);
  width: 40%;
}

.tl-sp__tab-content .woocommerce-product-attributes td {
  color: var(--muted-foreground);
}
