/* =========================================
   PEPTINIUM LABS — WooCommerce child theme
   ========================================= */

/* --- Header / nav --- */
.site-header {
  background: rgba(247, 248, 251, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.ast-primary-header-bar {
  border-bottom: none !important;
}

.ast-main-header-wrap {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.ast-header-breadcrumb-trigger,
.ast-header-account-wrap,
.ast-site-header-cart-data {
  color: var(--pepti-foreground);
}

.ast-site-header-cart .ast-cart-menu-wrap .count {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  font-size: 11px;
}

/* Logo wordmark */
.site-title a,
.site-title a:hover {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-header-menu > .menu-item > .menu-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--pepti-foreground);
  transition: color 0.3s ease;
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .menu-item.current-menu-item > .menu-link {
  color: var(--pepti-violet);
}

/* --- Buttons / CTAs --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #content input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce #content input.button.alt,
.wc-block-grid__product-add-to-cart.wp-block-button__link,
.wp-block-button__link {
  background: var(--gradient-cta);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: background-position 400ms ease, box-shadow 300ms ease, transform 200ms ease;
  box-shadow: var(--pepti-shadow);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-grid__product-add-to-cart.wp-block-button__link:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: var(--pepti-shadow-hover);
  color: #fff;
}

.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Product cards --- */
.products .product,
.wc-block-grid__product,
.woocommerce-page ul.products li.product {
  background: var(--pepti-surface);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: var(--pepti-radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  position: relative;
}

.products .product:hover,
.wc-block-grid__product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--pepti-shadow-hover);
  border-color: rgba(124, 58, 237, 0.15);
}

.woocommerce ul.products li.product a img,
.wc-block-grid__product-image img,
.woocommerce-page ul.products li.product a img {
  border-radius: 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(46, 198, 224, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 0;
}

.woocommerce ul.products li.product:hover a img,
.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.04);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--pepti-ink);
  padding: 1rem 1.25rem 0.5rem;
  letter-spacing: -0.01em;
}

.woocommerce ul.products li.product .price,
.wc-block-grid__product-price,
.woocommerce-page ul.products li.product .price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--pepti-ink);
  padding: 0 1.25rem 1rem;
}

.woocommerce ul.products li.product .price del,
.wc-block-grid__product-price del {
  font-size: 15px;
  color: var(--pepti-muted);
  margin-right: 0.5rem;
}

.woocommerce ul.products li.product .price ins,
.wc-block-grid__product-price ins {
  text-decoration: none;
  color: var(--pepti-violet);
}

.woocommerce ul.products li.product .button {
  margin: 0 1.25rem 1.25rem;
  width: calc(100% - 2.5rem);
  text-align: center;
}

.woocommerce ul.products li.product .ast-shop-product-out-of-stock {
  display: none;
}

/* Badges */
.pepti-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
}

.pepti-badge-oos {
  background: #f59e0b;
}

.pepti-badge-sale {
  background: var(--gradient-brand);
}

.pepti-badge-featured {
  background: var(--pepti-violet);
}

/* --- Single product --- */
.woocommerce div.product {
  background: var(--pepti-surface);
  border-radius: var(--pepti-radius-lg);
  padding: 2rem;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.woocommerce div.product .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--pepti-ink);
  margin-bottom: 1rem;
}

.woocommerce div.product .price del {
  font-size: 20px;
  color: var(--pepti-muted);
}

.woocommerce div.product .price ins {
  text-decoration: none;
  color: var(--pepti-violet);
}

.woocommerce div.product .woocommerce-product-details__short-description,
.pepti-short-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pepti-muted);
  margin-bottom: 1.5rem;
}

.pepti-ruo-notice {
  font-size: 12px;
  color: var(--pepti-muted);
  background: rgba(124, 58, 237, 0.06);
  border-left: 3px solid var(--pepti-violet);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
}

.woocommerce div.product form.cart .button {
  padding: 16px 36px;
  font-size: 15px;
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  padding-left: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none;
  background: transparent;
  border-radius: 0;
  margin: 0 24px 0 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--pepti-muted);
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--pepti-violet);
  border-bottom-color: var(--pepti-violet);
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  box-shadow: none;
}

/* --- Forms / checkout --- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.pepti-input {
  background: var(--pepti-surface-2);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--pepti-foreground);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.pepti-input:focus {
  border-color: var(--pepti-violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  outline: none;
}

.woocommerce-checkout-payment {
  background: var(--pepti-surface) !important;
  border: 1px solid rgba(17, 24, 39, 0.06) !important;
  border-radius: var(--pepti-radius) !important;
}

.woocommerce-checkout-payment .place-order .button {
  width: 100%;
  padding: 18px;
  font-size: 16px;
}

/* --- Cart --- */
.woocommerce-cart .woocommerce table.shop_table {
  background: var(--pepti-surface);
  border-radius: var(--pepti-radius);
  border: 1px solid rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

.woocommerce-cart .woocommerce table.shop_table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pepti-muted);
  background: var(--pepti-surface-2);
}

.woocommerce-cart .woocommerce table.shop_table td {
  padding: 16px;
}

.woocommerce-cart .woocommerce a.remove {
  color: var(--pepti-muted) !important;
  font-size: 20px;
}

.woocommerce-cart .woocommerce a.remove:hover {
  color: #ef4444 !important;
  background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--pepti-surface);
  border-radius: var(--pepti-radius);
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 1.5rem;
}

/* --- Shop header --- */
.woocommerce-products-header__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.woocommerce-products-header .page-description {
  color: var(--pepti-muted);
  font-size: 16px;
  max-width: 640px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count {
  font-size: 13px;
  color: var(--pepti-muted);
}

.woocommerce .woocommerce-ordering select {
  background: var(--pepti-surface-2);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

/* --- Footer --- */
.site-footer {
  background: var(--pepti-ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* --- Widgets --- */
.woocommerce .widget_shopping_cart .woocommerce-mini-cart__total,
.woocommerce .widget_shopping_cart .woocommerce-mini-cart__buttons {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
  background: var(--gradient-brand);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--pepti-violet);
  border-color: var(--pepti-violet);
}

/* --- Breadcrumbs --- */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--pepti-muted);
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-breadcrumb a,
.woocommerce-page .woocommerce-breadcrumb a {
  color: var(--pepti-violet);
}

/* --- Notices / messages --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message {
  border-radius: var(--pepti-radius);
  border: none;
  font-size: 14px;
}

.woocommerce-message {
  background: rgba(46, 198, 224, 0.08);
  color: var(--pepti-ink);
}

.woocommerce-info {
  background: rgba(124, 58, 237, 0.08);
  color: var(--pepti-ink);
}

.woocommerce-error {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

/* --- Hero section (home page) --- */
.pepti-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--pepti-radius-lg);
  background: linear-gradient(135deg, rgba(46, 198, 224, 0.08) 0%, rgba(59, 95, 228, 0.08) 50%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 5rem 2rem;
  margin: 2rem auto;
  max-width: 1400px;
}

.pepti-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.pepti-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.pepti-hero p {
  font-size: 18px;
  color: var(--pepti-muted);
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.pepti-hero .button {
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- Promo banner (Bac Water) --- */
.pepti-promo-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--pepti-radius-lg);
  background: linear-gradient(135deg, #eef1ff 0%, #f5f2ff 50%, #fdf2f6 100%);
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 1400px;
}

.pepti-promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.pepti-promo-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* --- Section labels --- */
.pepti-section-label {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--pepti-violet);
  margin-bottom: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .woocommerce div.product {
    padding: 1rem;
  }

  .woocommerce div.product .product_title {
    font-size: 28px;
  }

  .woocommerce div.product .price {
    font-size: 26px;
  }

  .woocommerce-products-header__title {
    font-size: 36px;
  }

  .pepti-hero {
    padding: 3rem 1.5rem;
  }
}

/* --- Custom card classes used in content-product.php --- */
.pepti-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(46, 198, 224, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pepti-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.products .product:hover .pepti-card-image img {
  transform: scale(1.04);
}

.pepti-card-category {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--pepti-muted);
  padding: 1rem 1.25rem 0.25rem;
  margin: 0;
}

.pepti-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--pepti-muted);
  padding: 0 1.25rem 0.75rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pepti-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
  margin-top: auto;
}

.pepti-card-footer .price {
  padding: 0 !important;
}

.pepti-card-footer .button {
  margin: 0 !important;
  width: 100% !important;
}

.pepti-header-scrolled {
  box-shadow: 0 4px 20px -10px rgba(17, 24, 39, 0.15);
}

.pepti-press-active {
  transform: scale(0.97) !important;
  transition-duration: 150ms !important;
}

/* --- Accessibility --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pepti-violet);
  outline-offset: 2px;
}

