/**
 * Product Page Styles
 * Extracted from sections/product.liquid for better maintainability and performance
 */

/* ====================
   PRODUCT PAGE LAYOUT
   ==================== */
.product-page {
    /* CSS Custom Properties */
    --color-accent: #06b6d4;
    --color-accent-dark: #0e7490;

    min-height: 100vh;
    padding: 2rem 0 4rem 0;
    background: #1a0d2e;
    background-image: radial-gradient(circle at 20% 80%, rgba(169, 57, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(191, 139, 255, 0.08) 0%, transparent 50%);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Smooth text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* Apply smooth text rendering globally to all text elements */
  .product-page *,
  .product-page *::before,
  .product-page *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  .product-page__container {
    display: grid;
    grid-template-columns: var(--content-grid);
    width: 100%;
  }
  
  /* Breadcrumb Styles */
  .breadcrumb {
    grid-column: 2;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
  }

  .breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .breadcrumb__item {
    display: flex;
    align-items: center;
  }

  .breadcrumb__item:not(:last-child)::after {
    content: "/";
    color: #7c7c8a;
    margin-left: 0.75rem;
    font-weight: 300;
  }
  
  .breadcrumb__link {
    color: #c9a9ff;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .breadcrumb__link:hover {
    color: var(--color-primary);
  }
  
  .breadcrumb__current {
    color: white;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Mobile Back Button */
  .product-back-button {
    display: none;
  }

  .product-back-button__link {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #c9a9ff;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .product-back-button__link:hover {
    color: var(--color-primary);
  }

  .product-back-button__link i {
    width: 24px;
    height: 24px;
  }

  /* Mobile Product Info Header */
  .product-info-mobile {
    display: none;
  }

  /* Product Info Section */
  .product-info-section__container {
    display: grid;
    grid-template-columns: var(--content-grid);
    width: 100%;
  }
  
  .product-info-section__content {
    grid-column: 2;
    display: grid;
    grid-template-columns: 3fr 2.5fr 300px;
    gap: 2rem 3rem;
  }

  /* Purchase Sidebar */
  .product-purchase-sidebar {
    background: rgba(26, 13, 46, 0.5);
    border: 1px solid rgba(201, 169, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  /* Sidebar Price */
  .sidebar-price {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .sidebar-price__regular {
    color: #d9ccff;
    font-size: 2rem;
    font-weight: 500;
  }
  
  .sidebar-price__sale {
    color: #d9ccff;
    font-size: 2.25rem;
    font-weight: 500;
  }
  
  .sidebar-price__compare {
    color: #999;
    font-size: 1.25rem;
    font-weight: 300;
    position: relative;
    top: 3px;
  }
  
  .sidebar-price__compare::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top right, transparent 48%, rgba(153, 153, 153, 0.45) 48%, rgba(153, 153, 153, 0.45) 52%, transparent 52%);
    pointer-events: none;
  }
  
  .sidebar-price__regular .money-cents,
  .sidebar-price__sale .money-cents {
    font-size: 0.6em;
    vertical-align: super;
    position: relative;
    top: 2px;
    border-bottom: 1px solid rgba(201, 169, 255, 0.5);
  }

  .sidebar-price__regular .money-dollar,
  .sidebar-price__sale .money-dollar {
    font-size: 0.5em;
    vertical-align: top;
    position: relative;
    top: 5px;
    font-weight: 300;
  }
  
  /* Sidebar SpeedShip */
  .sidebar-speedship {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
  }
  
  .sidebar-speedship__icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-primary, #c9a9ff);
    flex-shrink: 0;
    stroke-width: 2.5;
  }
  
  .sidebar-speedship__text {
    font-size: 0.875rem;
    font-weight: 700;
    font-style: italic;
    color: white;
    letter-spacing: 0.01em;
  }
  
  /* Sidebar Delivery Estimate */
  .sidebar-delivery-estimate {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .sidebar-delivery-estimate__text {
    font-size: 0.8rem;
    color: #c0c0c4;
    font-weight: 600;
    line-height: 1.3;
  }
  
  .sidebar-delivery-estimate__text .delivery-dates {
    color: white;
    font-weight: 700;
  }

  /* Sidebar Delivery Estimate - Vacation Mode */
  .sidebar-delivery-estimate__vacation {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
  }

  .sidebar-delivery-estimate__vacation-icon {
    flex-shrink: 0;
    color: #fbbf24;
    margin-top: 1px;
    animation: vacation-icon-pulse 2s ease-in-out infinite;
  }

  .sidebar-delivery-estimate__vacation-text {
    font-size: 0.8rem;
    color: #fde68a;
    font-weight: 600;
    line-height: 1.4;
  }

  @keyframes vacation-icon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* Sidebar Delivery Estimate - Shop Closed */
  .sidebar-delivery-estimate__shop-closed {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
  }

  .sidebar-delivery-estimate__shop-closed-icon {
    flex-shrink: 0;
    color: #f87171;
    margin-top: 1px;
  }

  .sidebar-delivery-estimate__shop-closed-text {
    font-size: 0.8rem;
    color: #fca5a5;
    font-weight: 600;
    line-height: 1.4;
  }

  /* Sidebar Holiday Notice - Always visible even when sold out */
  .sidebar-holiday-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
  }

  .sidebar-holiday-notice__icon {
    flex-shrink: 0;
    margin-top: 1px;
  }

  .sidebar-holiday-notice__text {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
  }

  /* Holiday Notice - Vacation Mode (amber) */
  .sidebar-holiday-notice--vacation {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
  }

  .sidebar-holiday-notice--vacation .sidebar-holiday-notice__icon {
    color: #fbbf24;
    animation: vacation-icon-pulse 2s ease-in-out infinite;
  }

  .sidebar-holiday-notice--vacation .sidebar-holiday-notice__text {
    color: #fde68a;
  }

  /* Holiday Notice - Shop Closed (red) */
  .sidebar-holiday-notice--closed {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

  .sidebar-holiday-notice--closed .sidebar-holiday-notice__icon {
    color: #f87171;
  }

  .sidebar-holiday-notice--closed .sidebar-holiday-notice__text {
    color: #fca5a5;
  }

  /* Holiday Notice - Logistics Delay (amber) */
  .sidebar-holiday-notice--delay {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
  }

  .sidebar-holiday-notice--delay .sidebar-holiday-notice__icon {
    color: #fbbf24;
    animation: vacation-icon-pulse 2s ease-in-out infinite;
  }

  .sidebar-holiday-notice--delay .sidebar-holiday-notice__text {
    color: #fde68a;
  }

  /* Sidebar Add to Cart - Shop Closed */
  .sidebar-add-to-cart--shop-closed {
    background: #6b7280 !important;
    color: #d1d5db !important;
    cursor: not-allowed !important;
  }

  .sidebar-add-to-cart--shop-closed:hover {
    background: #6b7280 !important;
    color: #d1d5db !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Sidebar Urgency */
  .sidebar-urgency {
    margin-top: 0.125rem;
  }
  
  .sidebar-urgency__text {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 600;
    font-style: italic;
    line-height: 1.3;
  }
  
  /* Sidebar Purchase Actions */
  .sidebar-purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Sidebar Stock Warning */
  .sidebar-stock-warning {
    margin-bottom: -0.5rem;
  }
  
  .sidebar-stock-warning__text {
    font-size: 0.95rem;
    color: #e879f9;
    font-weight: 600;
    font-style: italic;
  }
  
  /* Sidebar Quantity */
  .sidebar-quantity__label {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .sidebar-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(201, 169, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
    background: rgba(169, 57, 255, 0.15);
    backdrop-filter: blur(10px);
  }
  
  .sidebar-quantity__btn {
    width: 40px;
    height: 36px;
    background: rgba(169, 57, 255, 0.2);
    border: none;
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #c9a9ff;
  }
  
  .sidebar-quantity__btn:hover {
    background: var(--color-primary);
    color: white;
  }
  
  .sidebar-quantity__input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    background: transparent;
    color: white;
    -moz-appearance: textfield;
  }
  
  .sidebar-quantity__input:focus {
    outline: none;
  }
  
  .sidebar-quantity__input::-webkit-outer-spin-button,
  .sidebar-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  /* Sidebar Add to Cart */
  .sidebar-add-to-cart {
    width: 100%;
    padding: 14px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .sidebar-add-to-cart__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }
  
  .sidebar-add-to-cart__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .sidebar-add-to-cart:hover {
    background: #9425e6;
    transform: translateY(-1px);
  }
  
  .sidebar-add-to-cart:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
  }

  .sidebar-add-to-cart:disabled .sidebar-add-to-cart__icon {
    display: none;
  }

  /* Hide elements when product is sold out */
  .sidebar--sold-out .sidebar-speedship,
  .sidebar--sold-out .sidebar-delivery-estimate,
  .sidebar--sold-out .sidebar-quantity {
    display: none;
  }
  
  /* Gallery Styles */
  .product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 2rem;
    align-self: start;
  }
  
  .product-gallery__main {
    aspect-ratio: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  
  .product-gallery__main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .product-gallery__main-image:hover {
    transform: scale(1.05);
  }
  
  .product-gallery__thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .product-gallery__thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
  }
  
  .product-gallery__thumbnail.active {
    border-color: var(--color-primary);
  }
  
  .product-gallery__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .product-gallery__placeholder {
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
  }
  
  /* Product Info Styles */
  .product-info {
    display: flex;
    flex-direction: column;
  }
  
  .product-info__type {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
  }
  
  .product-info__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .product-info__title {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    line-height: 0.8;
    margin: 0;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .product-info__variant-pill {
    background: #7d2bbc;
    color: white;
    padding: 0.25rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 0.5rem;
  }
  
  .product-info__physical-description {
    font-size: 0.95rem;
    color: white;
    font-style: italic;
    line-height: 1.4;
    margin: 0 0 1rem 0;
  }
  
  .product-info__formula {
    font-size: 0.9rem;
    color: #c9a9ff;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 0.25rem 0;
  }
  
  .product-info__formula sub {
    font-size: 0.8em;
  }
  
  .product-info__badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  
  .product-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .product-badge--lot {
    background: white;
    color: #333;
    border: 1px solid #ddd;
  }
  
  .product-badge--purity {
    background: var(--color-primary, #c9a9ff);
    color: white;
  }

  /* COA Link */
  .coa-link {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-accent-dark);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .coa-link:hover {
    background: #155e75;
  }

  /* COA Modal */
  .coa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .coa-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
  }

  .coa-modal__content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 85vw;
    height: 85vh;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }

  .coa-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
  }

  .coa-modal__title-section {
    flex: 1;
  }

  .coa-modal__title {
    margin: 0;
    line-height: 1.2;
  }

  .coa-modal__title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .coa-modal__icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary, #c9a9ff);
    flex-shrink: 0;
    margin-top: 0.125rem;
  }

  .coa-modal__title-text {
    flex: 1;
    min-width: 0;
  }

  .coa-modal__company {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary, #c9a9ff);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
  }

  .coa-modal__details {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
  }

  .coa-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    color: #6b7280;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .coa-modal__close:hover {
    background: #f3f4f6;
    color: #1f2937;
  }

  .coa-modal__body {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .coa-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
  }

  .coa-loading__spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6B46C1;
    border-radius: 50%;
    animation: coa-spin 1s linear infinite;
  }

  @keyframes coa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .coa-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .coa-content iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .coa-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .coa-error {
    color: #dc2626;
    text-align: center;
    padding: 2rem;
  }

  .coa-error a {
    color: #6B46C1;
    text-decoration: underline;
  }

  .coa-error a:hover {
    color: #5B21B6;
  }

  .product-info__price {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .product-price {
    font-size: 1.5rem;
    font-weight: 400;
  }
  
  .product-price--regular {
    color: #d9ccff;
    font-size: 2rem;
    font-weight: 500;
  }
  
  .product-price--sale {
    color: #d9ccff;
    font-size: 2.25rem;
    font-weight: 500;
  }
  
  .product-price--sale .money-cents,
  .product-price--regular .money-cents {
    font-size: 0.6em;
    vertical-align: super;
    position: relative;
    top: 2px;
    border-bottom: 1px solid rgba(201, 169, 255, 0.5);
  }

  .product-price--sale .money-dollar,
  .product-price--regular .money-dollar {
    font-size: 0.5em;
    vertical-align: top;
    position: relative;
    top: 5px;
    font-weight: 300;
  }
  
  .product-price--compare {
    color: #999;
    font-size: 1.25rem;
    font-weight: 300;
    position: relative;
    top: 3px;
  }
  
  .product-price--compare::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top right, transparent 48%, rgba(153, 153, 153, 0.45) 48%, rgba(153, 153, 153, 0.45) 52%, transparent 52%);
    pointer-events: none;
  }
  
  /* Product Form Styles */
  .product-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .product-form__label {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    display: block;
  }
  
  /* Variant Card Styles */
  .variants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .variant-card {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 90px;
  }
  
  .variant-card:hover {
    border-color: var(--color-primary);
    background: rgba(169, 57, 255, 0.15);
    transform: translateY(-2px);
  }
  
  .variant-card:has(.variant-card__radio:checked) {
    border-color: var(--color-primary);
    background: rgba(169, 57, 255, 0.2);
    box-shadow: 0 0 0 1px var(--color-primary);
  }
  
  .variant-card--unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .variant-card--unavailable:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: none;
  }
  
  /* Hidden radio button for cards */
  .variant-card__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  
  .variant-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
  }
  
  .variant-card__title {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  
  .variant-card__divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 -0.75rem;
    width: calc(100% + 1.5rem);
  }
  
  .variant-card__pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
  }
  
  .variant-card__stock {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }
  
  .variant-card__stock--out {
    color: #f87171;
  }

  .variant-card__stock--low {
    color: #e879f9;
    font-weight: 600;
    font-style: italic;
  }
  
  .variant-price {
    font-weight: 500;
  }
  
  .variant-price--regular {
    color: #c9a9ff;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .variant-price--sale {
    color: #c9a9ff;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .variant-price--compare {
    color: #999;
    font-size: 0.75rem;
    position: relative;
  }
  
  .variant-price--compare::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top right, transparent 48%, rgba(153, 153, 153, 0.45) 48%, rgba(153, 153, 153, 0.45) 52%, transparent 52%);
    pointer-events: none;
  }
  
  
  .product-form__select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
  }
  
  .product-form__select:focus {
    outline: none;
    border-color: var(--color-primary);
  }
  
  /* Quality Assurance Notice */
  .quality-assurance-notice {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg,
      rgba(201, 169, 255, 0.08) 0%,
      rgba(201, 169, 255, 0.03) 50%,
      rgba(191, 139, 255, 0.06) 100%);
    border: 1px solid rgba(201, 169, 255, 0.2);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
  }

  .quality-assurance-notice--mobile {
    display: none;
  }

  .quality-assurance-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 100%);
    animation: shimmer 8s ease-in-out infinite;
  }

  @keyframes shimmer {
    0%, 90% { left: -100%; }
    100% { left: 100%; }
  }

  .assurance-notice__content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .assurance-notice__icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.125rem;
  }

  .assurance-notice__text {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #e5e7eb;
  }

  .assurance-notice__title {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
  }

  .assurance-notice__description {
    color: #e5e7eb;
    line-height: 1.4;
  }

  .assurance-notice__description p {
    margin: 0 0 0.5rem 0;
  }

  .assurance-notice__description p:last-child {
    margin-bottom: 0;
  }

  /* Product Information Table */
  .product-info-table {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  .info-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .info-row:last-child {
    border-bottom: none;
  }
  
  .info-label {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
  }
  
  .info-value {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: white;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    word-break: break-all;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .info-value sub {
    font-size: 0.7em;
    margin: 0;
  }

  .molecular-formula {
    display: inline;
  }

  .lot-check-icon {
    width: 1rem;
    height: 1rem;
    color: #10b981;
    flex-shrink: 0;
    position: relative;
    top: 3px;
  }
  
  .info-value sub {
    font-size: 0.7em;
  }

  /* Mobile duplicate sections - hidden on desktop */
  .product-info-mobile-duplicate {
    display: none;
  }

  .quality-assurance-notice--mobile-duplicate {
    display: none;
  }

  .product-info-table--mobile-duplicate {
    display: none;
  }

  /* Quantity selector and add to cart moved to sidebar */
  
  /* Product Tabs Section */
  .product-tabs-section {
    padding: 1rem 0 3rem 0;
  }

  .product-tabs-section__container {
    display: grid;
    grid-template-columns: var(--content-grid);
    width: 100%;
  }

  .product-tabs-section__content {
    grid-column: 2;
  }

  .product-tabs__header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
  }

  .product-tabs__tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .product-tabs__tab:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  .product-tabs__tab--active {
    color: white;
    border-bottom-color: var(--color-primary);
  }

  .product-tabs__content {
    position: relative;
  }

  .product-tabs__panel {
    display: none;
  }

  .product-tabs__panel--active {
    display: block;
  }

  /* Research Insights Layout */
  .research-insights-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    min-width: 0;
  }

  /* Table of Contents */
  .table-of-contents {
    position: sticky;
    top: 2rem;
  }

  .toc-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .toc-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.25rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s ease;
  }

  .toc-link:hover {
    color: rgba(255, 255, 255, 0.9);
    border-left-color: rgba(169, 57, 255, 0.5);
  }

  .toc-link:focus {
    color: white;
    border-left-color: var(--color-primary);
    outline: none;
  }

  /* Content styling for both tabs */
  .product-description-content,
  .coa-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .product-description-content h1,
  .product-description-content h2,
  .product-description-content h3,
  .product-description-content h4,
  .product-description-content h5,
  .product-description-content h6,
  .coa-content h1,
  .coa-content h2,
  .coa-content h3,
  .coa-content h4,
  .coa-content h5,
  .coa-content h6 {
    color: white;
    margin: 0 0 1rem 0;
  }

  .product-description-content h1,
  .coa-content h1 {
    line-height: 1.2;
  }

  .product-description-content p,
  .coa-content p {
    margin: 0 0 1rem 0;
  }

  .product-description-content > p:last-child,
  .coa-content > p:last-child {
    margin-bottom: 0;
  }

  .product-description-content ul,
  .product-description-content ol,
  .product-description-content li,
  .coa-content ul,
  .coa-content ol,
  .coa-content li {
    color: rgba(255, 255, 255, 0.9);
  }

  .product-description-content section ul,
  .product-description-content section ol,
  .coa-content section ul,
  .coa-content section ol {
    margin: 0 0 1rem 0;
  }

  .product-description-content strong,
  .product-description-content b,
  .coa-content strong,
  .coa-content b {
    color: white;
  }

  .product-description-content img,
  .product-description-content figure img,
  .coa-content img,
  .coa-content figure img {
    max-width: 100%;
    height: auto;
  }

  /* Prevent overflow for wide elements */
  .product-description-content table,
  .product-description-content pre,
  .product-description-content code,
  .coa-content table,
  .coa-content pre,
  .coa-content code {
    max-width: 100%;
    overflow-x: auto;
  }

  .product-description-content table,
  .coa-content table {
    width: 100%;
    table-layout: fixed;
  }

  .product-description-content a,
  .coa-content a {
    color: #8db4e6;
    text-decoration: underline;
    transition: color 0.2s ease;
  }

  .product-description-content a:visited,
  .coa-content a:visited {
    color: #b794e6;
  }

  .product-description-content a:hover,
  .product-description-content a:focus,
  .coa-content a:hover,
  .coa-content a:focus {
    color: #a5c4f0;
    text-decoration-color: #a5c4f0;
  }

  /* Research descriptions (2026-10-22 template): the Key Facts box, data tables, the research FAQ, sequences */
  .product-description-content .rd-facts {
    display: flow-root; /* sits beside the floated product info box instead of running underneath it */
    margin: 0 0 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(169, 57, 255, 0.35);
    border-radius: 12px;
    background: rgba(169, 57, 255, 0.07);
  }
  .product-description-content .rd-facts h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
  .product-description-content .rd-facts dl {
    display: grid;
    grid-template-columns: minmax(9rem, max-content) 1fr;
    gap: 0.5rem 1.25rem;
    margin: 0;
  }
  .product-description-content .rd-facts dt { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
  .product-description-content .rd-facts dd { margin: 0; color: white; min-width: 0; overflow-wrap: anywhere; }
  .product-description-content table.rd-table {
    border-collapse: collapse;
    margin: 0 0 1.25rem 0;
    font-size: 0.92rem;
    table-layout: auto;
  }
  .product-description-content .rd-table caption {
    caption-side: top;
    text-align: left;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    padding-bottom: 0.5rem;
  }
  .product-description-content .rd-table th,
  .product-description-content .rd-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
  }
  .product-description-content .rd-table th { color: white; font-weight: 600; background: rgba(255, 255, 255, 0.05); }
  .product-description-content .rd-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
  .product-description-content dl.rd-faq { margin: 0 0 1rem 0; }
  .product-description-content .rd-faq dt {
    color: white;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem 0;
  }
  .product-description-content .rd-faq dt:first-child { margin-top: 0; }
  .product-description-content .rd-faq dd {
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(169, 57, 255, 0.45);
    color: rgba(255, 255, 255, 0.85);
  }
  .product-description-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  @media (max-width: 640px) {
    .product-description-content .rd-facts { padding: 1rem; }
    .product-description-content .rd-facts dl { grid-template-columns: 1fr; gap: 0.15rem; }
    .product-description-content .rd-facts dd { margin-bottom: 0.6rem; }
    .product-description-content table.rd-table { display: block; overflow-x: auto; }
  }

  /* Noscript fallback styling */
  .product-description-fallback {
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
  }

  .product-description-fallback h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
  }

  /* Wikipedia-style Infobox */
  .product-infobox {
    float: right;
    clear: right;
    width: 300px;
    margin: 0 0 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
  }

  .product-infobox__title {
    background: rgba(169, 57, 255, 0.8);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .product-infobox__image {
    padding: 1rem;
    text-align: center;
    background: white;
  }

  .product-infobox__image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

  .product-infobox__table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
  }

  .product-infobox__table th {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
    width: 40%;
  }

  .product-infobox__table td {
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
    word-break: break-word;
  }

  .product-infobox__table tr:last-child th,
  .product-infobox__table tr:last-child td {
    border-bottom: none;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .product-page {
      padding: 0.5rem 0 4rem 0;
    }

    /* Show back button, hide breadcrumb on mobile */
    .product-back-button {
      display: block;
      grid-column: 2;
    }

    .breadcrumb {
      display: none;
    }

    /* Show mobile product info header */
    .product-info-mobile {
      display: block;
    }

    .product-info-mobile .product-info__title {
      font-size: 1.5rem;
    }

    .product-info-mobile .product-info__formula {
      font-size: 0.75rem;
      font-weight: 500;
      color: #d4b5ff;
    }

    .product-info-mobile .product-info__variant-pill {
      display: none;
    }

    .product-info-mobile .product-info__physical-description {
      color: #d4b5ff;
      font-size: 0.8125rem;
      margin-top: 0.75rem;
      margin-bottom: 0;
    }

    .product-form__label {
      font-size: 0.8125rem;
      color: rgba(255, 255, 255, 0.9);
    }

    .variants-grid {
      margin-bottom: 0.5rem;
    }

    .product-info-mobile .product-info__header {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .product-info-mobile .product-info__title {
      width: 100%;
    }

    .product-info-mobile .product-badge {
      position: relative;
      top: 4px;
    }

    /* Hide desktop product info elements on mobile */
    .product-info .product-info__formula,
    .product-info .product-info__header,
    .product-info .product-info__physical-description,
    .product-info .product-info__badges,
    .product-info .product-info__price,
    .product-info .product-speedship {
      display: none;
    }

    .product-info-section__content {
      grid-template-columns: 1fr;
      gap: 0.5rem;
    }

    /* Show mobile quality assurance notice, hide desktop */
    .quality-assurance-notice--desktop {
      display: none;
    }

    .quality-assurance-notice--mobile {
      display: none !important; /* Hide original on mobile */
    }

    .product-info-table:not(.product-info-table--mobile-duplicate) {
      display: none !important; /* Hide original product info table on mobile */
    }

    /* Show mobile duplicates */
    .product-info-mobile-duplicate {
      display: block;
      margin-top: 0.75rem;
    }

    .quality-assurance-notice--mobile-duplicate {
      display: block;
    }

    .product-info-table--mobile-duplicate {
      display: block;
    }

    .product-purchase-sidebar {
      position: relative;
      top: auto;
    }

    .research-insights-layout {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .table-of-contents {
      position: static;
      order: 2;
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .product-description-content {
      order: 1;
    }

    .product-infobox {
      float: none;
      width: 100%;
      margin: 0 0 1.5rem 0;
    }

    .product-infobox__image {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .product-infobox__image img {
      display: block;
      margin: 0 auto;
      width: auto;
      max-width: 250px;
    }

    .product-gallery {
      position: static;
    }
    
    .product-info__title {
      font-size: 1.75rem;
    }
    
    .product-form {
      max-width: none;
      margin-bottom: 0;
    }
    
    .product-gallery__thumbnails {
      justify-content: center;
    }
    
    .product-description-section {
      padding: 2rem 0;
    }
  }

  /* Accessibility Classes */
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
  }

  .skip-link:focus {
    top: 6px;
    left: 6px;
  }

  /* Form Error Styling */
  .form-errors {
    background: #fee2e2;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
  }

  .form-error {
    margin-bottom: 0.5rem;
  }

  .form-error:last-child {
    margin-bottom: 0;
  }

  /* Back to top navigation aid */
  .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: rgba(107, 70, 193, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  .back-to-top:hover,
  .back-to-top:focus {
    background: rgba(107, 70, 193, 1);
    border-color: white;
    transform: translateY(-2px);
  }

  .back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.5);
  }

  /* Remove default fieldset border */
  .product-form__variants {
    border: none;
    padding: 0;
    margin: 0;
  }

  /* Product Share Component */
  .product-gallery__main {
    position: relative;
  }

  .product-share {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
  }

  .product-share__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .product-share__button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
  }

  .product-share__button:focus {
    outline: none;
    opacity: 0.8;
  }

  .product-share__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .product-share__menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(26, 13, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 150px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .product-share__menu.show {
    display: block;
    animation: shareMenuFadeIn 0.2s ease;
  }

  @keyframes shareMenuFadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .product-share__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: #c9a9ff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
  }

  .product-share__option:hover,
  .product-share__option:focus {
    background: rgba(201, 169, 255, 0.1);
    outline: none;
  }

  .product-share__option i {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .product-share {
      top: 0.25rem;
      right: 0.25rem;
    }

    .product-share__button {
      width: 2rem;
      height: 2rem;
    }

    .product-share__icon {
      width: 1.25rem;
      height: 1.25rem;
    }

    .product-share__menu {
      right: -0.5rem;
    }
  }

  /* SpeedShip Feature */
  .product-speedship {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
    margin-bottom: 1.5rem;
  }

  .product-speedship__icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-primary, #c9a9ff);
    flex-shrink: 0;
    stroke-width: 2.5;
  }

  .product-speedship__text {
    font-size: 0.875rem;
    font-weight: 700;
    font-style: italic;
    color: white;
    letter-spacing: 0.01em;
  }

  /* Responsive SpeedShip */
  @media (max-width: 768px) {
    .product-speedship__text {
      font-size: 0.8rem;
    }

    .product-speedship__icon {
      width: 1rem;
      height: 1rem;
    }
  }