/* Horizon-Inspired Product Page Styles */
  .sub-modern-box {
        border: 1px solid #e5e7eb;
        background: #ffffff;
        padding: 8px 16px;
        border-radius: 6px;
        font-family: system-ui, sans-serif;
        max-width: 360px;
        font-size: 13px;
    }

    .sub-row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 8px;
        gap: 12px;
    }

    .sub-label {
        font-weight: 500;
        color: #111;
        width: 110px;
        font-size: 13px;
    }

    .sub-input {
        height: 30px;
        font-size: 13px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 3px 8px;
        flex: 1;
    }

    .deliver-pill {
        background: #fafafa;
        padding: 3px 8px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 13px;
        display: inline-block;
    }

    #subscriptionValidationMsg,
    #combinationValidationMsg {
        margin-top: var(--spacing-element, 6px);
        color: #991b1b;
        font-size: var(--text-sm, 13px);
        display: none;
        padding: var(--spacing-element, 8px) var(--spacing-component, 12px);
        background-color: rgba(239, 68, 68, 0.12);
        border-radius: var(--border-radius-small, 4px);
        border-left: 3px solid var(--color-error, #b70000);
        line-height: var(--line-height-base, 1.4);
    }
    
    #subscriptionValidationMsg:not(:empty),
    #combinationValidationMsg:not(:empty) {
        display: block;
    }
    
    #subscriptionInfoMessage {
        display: none;
        margin-bottom: var(--spacing-component, 12px);
        padding: var(--spacing-element, 8px) var(--spacing-component, 12px);
        background-color: var(--color-info-light, #f0f9ff);
        border-left: 3px solid var(--color-info, #3b82f6);
        border-radius: var(--border-radius-small, 4px);
        font-size: var(--text-sm, 13px);
        color: var(--color-info-dark, #1e40af);
    }
    
    #subscriptionInfoMessage:not(:empty) {
        display: block;
    }
    
    #shippingMethodDetails {
        margin-top: var(--spacing-element, 8px);
        font-size: var(--text-xs, 12px);
        color: var(--color-text-muted, #666);
        display: none;
    }
    
    #shippingMethodDetails:not(:empty) {
        display: block;
    }
    
    .required-indicator {
        color: var(--color-error, #b70000);
    }
    
    .help-text {
        font-size: var(--text-xs, 11px);
        color: var(--color-text-muted, #666);
        margin-top: var(--spacing-element, 2px);
    }
    
    .flex-column {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .subscription-item-content {
        display: flex;
        align-items: center;
        gap: var(--spacing-element, 10px);
        flex: 1;
    }
    
    .subscription-item-right {
        text-align: right;
    }
    
    .subscription-item-actions {
        display: flex;
        align-items: center;
        gap: var(--spacing-element, 5px);
        justify-content: flex-end;
    }
    
    .subscription-item-meta {
        margin-top: var(--spacing-element, 5px);
    }
    
    .subscription-included {
        font-size: var(--text-xs, 11px);
        color: var(--color-text-muted, #666);
        font-weight: var(--font-weight-normal, normal);
    }
    
    .subscription-spec {
        font-size: var(--text-xs, 12px);
        color: var(--color-text-muted, #666);
    }
    
    .subscription-item-title {
        margin: 0;
    }
    
    .info-message-content {
        line-height: var(--line-height-base, 1.6);
    }
    
.freq-ui {
  padding: 8px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #fafafa;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

.freq-ui.selected {
  background: #e5e7eb;
  color: #111;
}

.freq-ui:hover {
  background: #fafafa;
}

.weekly-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


  .subscription-item {
  border: 1px solid #e5e7eb;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}

/* Highlight selected item */
.subscription-item.selected {
  background-color: #e5e7eb;
  border-color: #111;
}

/* Ensure checkbox is visible */
.subscription-item input.sub-select {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer;
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
}

.subscription-item input.sub-select-required {
    cursor: not-allowed;
    opacity: 0.6;
}

  .combo-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }

  .combo-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    width: 150px;
    cursor: pointer;
    position: relative;
  }

  .combo-card.selected {
    border-color: #dc2626;
  }

  .combo-card.selected .combo-checkbox {
    color: #dc2626;
    background: #dc2626;
  }

  .combo-image {
    position: relative;
  }

  .combo-image img {
    width: 100%;
    border-radius: 10px;
  }

  .combo-checkbox {
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    border-radius: 3px;
    padding: 2px;
    height:16px;
    width:16px;
  }

  .combo-info {
    margin-top: 5px;
  }


  .product-option-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 8px 14px;
    margin: 4px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: .2s;
  }

  .product-option-btn.selected {
    background: #111;
    color: #ffffff;
    border-color: #111;
  }

  .product-option-btn[data-display-type="color"] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0;
    padding: 0;
    border: 2px solid #aaa;
    background-color: currentColor;
  }

  .product-option-btn[data-display-type="color"].selected {
    border: 2px solid #111 !important;
  }
  .product-main.horizon-style {
    padding: 0;
    margin: 0;
  }

  .product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 80px;
  }

  /* Product Gallery */
  .product-gallery {
    position: sticky;
    top: 20px;
  }

  .gallery-main {
    position: relative;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
  }

  .gallery-main-image {
    width: 100%;
    height: auto;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .gallery-main-image.active {
    display: block;
    opacity: 1;
  }

  .gallery-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #6b7280;
  }

  .gallery-zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #111;
    backdrop-filter: blur(10px);
  }

  .gallery-zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
  }

  .gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
  }

  .gallery-thumbnail {
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    background: #ffffff;
    position: relative;
  }

  .gallery-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
  }

  .gallery-thumbnail:hover::after,
  .gallery-thumbnail.active::after {
    border-color: #111;
  }

  .gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Product Info */
  .product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 0;
  }

  .product-vendor {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: -16px;
  }

  .product-sku {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: -16px;
  }

  .product-sku__label {
    font-weight: 500;
    margin-right: 4px;
  }
  .product-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: #111;
    margin: 0;
    letter-spacing: -0.02em;
  }

  .product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .price-current {
    font-size: 24px;
    font-weight: 400;
    color: #111;
    letter-spacing: -0.01em;
  }

  .price-compare {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
  }

  /* Product Form */
  .product-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
  }

  #productOptionsContainer:empty {
    display: none;
  }

  .product-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .option-label {
    font-weight: 500;
    color: #111;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Color Swatches */
  .option-value-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }

  .option-value-color:hover:not(.disabled) {
    transform: scale(1.1);
    border-color: rgba(0, 0, 0, 0.2);
  }

  .option-value-color.selected {
    border-color: #111;
    border-width: 2px;
  }

  .option-value-color.selected::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #111;
    border-radius: 50%;
  }

  .option-value-color.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
  }

  .option-value-color.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dc2626;
    transform: rotate(45deg);
  }

  /* Size/Text Options */
  .option-value-text {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    color: #111;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    border-radius: var(--border-radius-small);
  }
  

  .option-value-text.selected {
    border-color: #111;
    background: #111;
    color: #ffffff;
  }

  .option-value-text.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
  }

  /* Quantity Selector */
  .quantity-option {
    width: fit-content;
  }

  .quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-medium);
    width: fit-content;
    overflow: hidden;
    background: #ffffff;
  }

  .quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    color: #111;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
  }

  .quantity-btn:hover:not(:disabled) {
    background: #fafafa;
  }

  .quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    background: #ffffff;
    color: #111;
    -moz-appearance: textfield;
  }

  .quantity-input::-webkit-inner-spin-button,
  .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* Action Button */
  .product-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
    width: 100%;
    position:relative;
    opacity:unset;
  }

  .btn {
    padding: 16px 32px;
 
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    width: 100%;
  }

  .btn-primary {
    background: #111;
    color: #ffffff;
    border-color: #111;
  }

  .btn-primary:hover:not(:disabled) {
    background: #0f0f0f;
    border-color: #0f0f0f;
  }

  .btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .btn-primary.loading {
    opacity: 0.7;
    cursor: wait;
  }

  .cart-message {
    padding: var(--spacing-component, 12px) var(--spacing-component, 16px);
    color: var(--color-success, #059669);
    font-size: var(--text-base, 14px);
    font-weight: var(--font-weight-normal, 500);
    text-transform: none;
    letter-spacing: 0;
    animation: fadeIn var(--transition, 0.3s) var(--ease-out, ease);
    border-radius: var(--border-radius-small, 4px);
    margin-top: var(--spacing-component, 12px);
    line-height: var(--line-height-base, 1.5);
  }
  
  .cart-message.error {
    color: var(--color-error, #b70000);
    background-color: var(--color-error-light, #ffe6e6);
    border: 1px solid var(--color-error, #b70000);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Product Description Short */
  .product-description-short {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
  }

  /* Product Description Section */
  .product-description-section {
    padding: 80px 0;
    border-top: 1px solid #e5e7eb;
  }

  .description-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .product-description-content {
    line-height: 1.8;
    color: #6b7280;
    font-size: 15px;
  }

  .product-description-content h1,
  .product-description-content h2,
  .product-description-content h3 {
    color: #111;
    font-weight: 400;
    margin-top: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
  }

  .product-description-content p {
    margin-bottom: 16px;
  }

  /* Related Products */
  .related-products-section {
    padding: 80px 0;
    border-top: 1px solid #e5e7eb;
  }

  .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .section-title {
    font-size: 24px;
    font-weight: 400;
    color: #111;
    margin: 0 0 48px 0;
    text-align: center;
    letter-spacing: -0.01em;
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
  }

  /* Full Screen Gallery Modal */
  .gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
  }

  .gallery-modal.active {
    display: block;
  }

  .gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
  }

  .gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
  }

  .gallery-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
  }

  .gallery-modal-close,
  .gallery-modal-nav {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10000;
    color: #fff;
    backdrop-filter: blur(10px);
  }

  .gallery-modal-close:hover,
  .gallery-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }

  .gallery-modal-close {
    top: 32px;
    right: 32px;
  }

  .gallery-modal-nav {
    top: 50%;
    transform: translateY(-50%);
  }

  .gallery-modal-prev {
    left: 32px;
  }

  .gallery-modal-next {
    right: 32px;
  }

  .gallery-modal-counter {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  /* Product Attributes Section */
  .product-attributes-section {
    padding: 72px 0 40px;
    border-top: 1px solid #e5e7eb;
  }

  .attributes-tabs-wrapper {
    margin-top: 28px;
  }

  .attributes-nav {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: -138px 31px 18px 0;
    padding: 0;
   
  }

  .attributes-tab-link {
    padding: 10px 7px;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color .18s ease, border-color .18s ease;
  }

  .attributes-tab-link:hover { color: #111; }
  .attributes-tab-link.active { color: #111; border-bottom-color: #111; }

  .attributes-tab-content { padding-top: 20px; }

  .attributes-tab-pane { display: none; }
  .attributes-tab-pane.active { display: block; }

  .attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }

  .attributes-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    align-items: flex-start;
    transition: box-shadow .18s ease, transform .12s ease, background .18s ease;
  }

  .attributes-card:hover { box-shadow: 0 6px 18px rgba(16,24,40,0.06); transform: translateY(-2px); background: #ffffff; }

  .attribute-icon { width: 40px; height: 40px; border-radius: 10px; display:flex; align-items:center; justify-content:center; background:#fafafa; color:#6b7280; flex-shrink:0; }

  .attribute-info { min-width:0; }
  .attribute-name { font-size:11px; text-transform:uppercase; color:#111; font-weight:700; margin-bottom:6px; }
  .attribute-value-text { font-size:14px; color:#6b7280; line-height:1.4; word-break:break-word; }

  /* Product Specifications Section */
  .product-specifications-section {
    padding: 80px 0;
    border-top: 1px solid #e5e7eb;
  }

  .specifications-container {
    margin-top: 32px;
  }

  /* Responsive Design */
  @media (max-width: 1024px) {
    .product-container {
      grid-template-columns: 1fr;
      gap: 48px;
      padding-top: 24px;
      padding-bottom: 48px;
    }
    
    .product-gallery {
      position: static;
    }
    
    .gallery-thumbnails {
      grid-template-columns: repeat(6, 1fr);
    }
  }

  @media (max-width: 768px) {
    .product-container {
      padding: 0 16px;
      padding-top: 16px;
      padding-bottom: 32px;
      gap: 32px;
    }
    
    .product-title {
      font-size: 28px;
    }
    
    .price-current {
      font-size: 20px;
    }
    
    .gallery-thumbnails {
      grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-modal-content {
      padding: 16px;
    }
    
    .gallery-modal-close,
    .gallery-modal-nav {
      width: 40px;
      height: 40px;
    }
    
    .gallery-modal-close {
      top: 16px;
      right: 16px;
    }
    
    .gallery-modal-prev {
      left: 16px;
    }
    
    .gallery-modal-next {
      right: 16px;
    }
    
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 24px;
    }
    
    .product-description-section,
    .related-products-section {
      padding: 48px 0;
    }
    
    .description-container,
    .section-container {
      padding: 0 16px;
    }
  }

  @media (max-width: 480px) {
    .product-title {
      font-size: 24px;
    }
    
    .gallery-thumbnails {
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }
    
    .products-grid {
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
  }

  /* PDP visual override to match requested reference layout */
  .product-main.horizon-style {
    padding: 0;
  }

  .product-container {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-items: start;
  }

  .product-gallery {
    position: static;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
  }

  .gallery-main {
    grid-column: 2;
    margin-bottom: 0;
    border-radius: 0;
  }

  .gallery-main-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .gallery-thumbnails {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    max-height: min(640px, 80vh);
    overflow-y: auto;
  }

  .gallery-thumbnail {
    border: 1px solid #e5e7eb;
  }

  .gallery-thumbnail:hover::after,
  .gallery-thumbnail.active::after {
    border-color: #111;
  }

  .gallery-zoom-btn {
    top: 8px;
    right: 8px;
    bottom: auto;
    width: 28px;
    height: 28px;
    border-radius: 0;
    backdrop-filter: none;
  }

  .product-info {
    gap: 16px;
    padding: 8px 0 0;
  }

  .product-vendor,
  .product-sku,
  .product-short-description {
    display: none;
  }

  .product-header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: start;
  }

  .product-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
  }

  .product-price-wrapper {
    margin: 0;
    align-self: start;
    justify-self: end;
    gap: 4px;
  }

  .price-current {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }

  .price-compare {
    font-size: 12px;
  }

  .product-form {
    border-top: 0;
    padding-top: 0;
    gap: 16px;
  }

  .product-option {
    gap: 4px;
  }

  .option-label {
    font-size: 11px;
    letter-spacing: 0.05em;
    font-weight: 700;
  }

  .option-values {
    gap: 4px;
  }

  .product-option-btn {
    min-width: 30px;
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
  }

  .product-option-btn[data-display-type="color"] {
    width: 28px;
    height: 28px;
    border-radius: 0;
    border-width: 1px;
  }

  .product-option-btn[data-display-type="color"].selected {
    border-width: 2px;
  }

  .quantity-option {
    width: 100%;
  }

  .quantity-wrapper {
    border-radius: 0;
  }

  .quantity-btn,
  .quantity-input {
    height: 34px;
    font-size: 13px;
  }

  .quantity-btn {
    width: 34px;
  }

  .quantity-input {
    width: 44px;
  }

  .product-actions {
    margin-top: 4px;
  }

  .btn {
    border-radius: 0;
    min-height: 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .product-meta-accordion {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
  }

  .product-meta-item {
    border-bottom: 1px solid #e5e7eb;
  }

  .product-meta-summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #111;
    position: relative;
  }

  .product-meta-summary::-webkit-details-marker {
    display: none;
  }

  .product-meta-summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 400;
  }

  .product-meta-item[open] .product-meta-summary::after {
    content: "−";
  }

  .product-meta-content {
    padding: 0 0 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-left: 10px;
  }

  .product-attributes-section {
    display: none;
  }

  @media (max-width: 1024px) {
    .product-container {
      grid-template-columns: 1fr;
    }

    .product-gallery {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .gallery-main {
      grid-column: 1;
    }

    .gallery-thumbnails {
      grid-column: 1;
      grid-row: auto;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      max-height: none;
      overflow: visible;
    }

    .product-header-row {
      grid-template-columns: 1fr;
      gap: 4px;
    }

    .product-price-wrapper {
      justify-self: start;
    }
  }

/* PDP reference layout override (keeps existing class/id contracts) */
.product-main.horizon-style .product-stock-note {
  font-size: 11px;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  margin: 0;
}

.product-main.horizon-style .quantity-option {
  display: none;
}

.product-main.horizon-style .gallery-zoom-btn {
  display: none;
}

.product-main.horizon-style .gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-main.horizon-style .gallery-nav-btn--prev {
  left: 8px;
}

.product-main.horizon-style .gallery-nav-btn--next {
  right: 8px;
}

.product-main.horizon-style .product-form {
  gap: 8px;
}

.product-main.horizon-style .product-option {
  align-items: center;
}

.product-main.horizon-style .option-label {
  width: 100%;
  text-align: center;
}

.product-main.horizon-style .option-values {
  justify-content: center;
}

.product-main.horizon-style .product-option-btn,
.product-main.horizon-style .option-value-text {
  min-width: 40px;
  min-height: 40px;
  padding: 4px 8px;
}

.product-main.horizon-style .product-actions {
  margin-top: 8px;
}

.product-main.horizon-style .btn-add-to-cart {
  border-radius: 0;
}

.product-main.horizon-style .product-meta-accordion {
  margin-top: 24px;
}

.product-main.horizon-style .product-meta-summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-main.horizon-style .product-meta-summary::after {
  content: "+";
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 18px;
  font-weight: 400;
}

.product-main.horizon-style .product-meta-item[open] .product-meta-summary::after {
  content: "-";
}

.product-main.horizon-style .details-rich-content {
  margin-bottom: 16px;
}

.product-main.horizon-style .details-rich-content p {
  margin: 0 0 8px;
}

.product-main.horizon-style .details-attributes {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.product-main.horizon-style .details-attribute-row {
     display: flex;
    justify-content: space-between;
}

.product-main.horizon-style .details-attribute-name {
  font-weight: 700;
  color: #111;
}

.product-main.horizon-style .details-attribute-value {
  color: #111;
}

.product-main.horizon-style .details-sku {
  color: #111;
}

.product-main.horizon-style .product-meta-item--details {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: start;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}

.product-main.horizon-style .product-meta-item--details .product-meta-summary {
  min-height: 0;
  padding: 8px 0 0;
  cursor: default;
}

.product-main.horizon-style .product-meta-item--details .product-meta-summary::after {
  display: none;
}

.product-main.horizon-style .product-meta-item--details .product-meta-content {
  padding-top: 0;
  padding-bottom: 8px;
}

.product-main.horizon-style .product-meta-item--details .details-rich-content {
  margin-bottom: 24px;
}

.product-main.horizon-style .product-meta-item--details .details-rich-content p {
  margin: 0 0 8px;
  color: #9ca3af;
  line-height: 1.6;
}

.product-main.horizon-style .product-meta-item--details .details-sku {
  margin-top: 8px;
  font-weight: 500;
}

@media (min-width: 1025px) {
  .product-main.horizon-style .product-container {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: start;
  }

  .product-main.horizon-style .product-gallery {
    grid-template-columns: 52px 1fr;
    gap: 8px;
  }

  .product-main.horizon-style .gallery-thumbnails {
    max-height: min(76vh, 700px);
    overflow-y: auto;
  }

  .product-main.horizon-style .gallery-main-image {
    aspect-ratio: 4 / 5;
  }

  .product-main.horizon-style .product-title {
    font-size: 14px;
  }

  .product-main.horizon-style .price-current {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .product-main.horizon-style .product-container {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 8px 32px;
  }

  .product-main.horizon-style .product-gallery {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 8px;
    align-items: start;
  }

  .product-main.horizon-style .gallery-main {
    margin: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .product-main.horizon-style .gallery-main-image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .product-main.horizon-style .gallery-thumbnails {
    margin-top: 0;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: min(74vh, 640px);
  }

  .product-main.horizon-style .gallery-nav-btn {
    display: none;
  }

  .product-main.horizon-style .product-info {
    padding-top: 8px;
  }

  .product-main.horizon-style .product-header-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .product-main.horizon-style .product-form {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .product-main.horizon-style {
    padding-bottom: 80px;
  }

  .product-main.horizon-style .product-container {
    padding-left: 4px;
    padding-right: 4px;
  }

  .product-main.horizon-style .product-gallery {
    grid-template-columns: 42px 1fr;
    gap: 4px;
  }

  .product-main.horizon-style .gallery-main-image {
    aspect-ratio: 3 / 4;
  }

  .product-main.horizon-style .gallery-thumbnails {
    grid-template-columns: 1fr;
    max-height: min(72vh, 560px);
  }

  .product-main.horizon-style .product-title {
    font-size: 13px;
  }

  .product-main.horizon-style .price-current {
    font-size: 13px;
  }
  .product-main.horizon-style .btn-add-to-cart {
    min-height: 40px;
  }

  .product-main.horizon-style .product-meta-summary {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .product-main.horizon-style .product-gallery {
    display: block;
  }

  .product-main.horizon-style .gallery-main {
    grid-column: auto;
    grid-row: auto;
  }

  .product-main.horizon-style .gallery-main-image {
    aspect-ratio: 3 / 4;
  }

  .product-main.horizon-style .gallery-thumbnails {
    margin-top: 8px;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

/* Final responsive pass for all viewport sizes */
.product-main.horizon-style .product-container {
  width: 100%;
  box-sizing: border-box;
}

.product-main.horizon-style .product-header-row,
.product-main.horizon-style .product-title,
.product-main.horizon-style .price-current,
.product-main.horizon-style .price-compare {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-main.horizon-style .option-values {
  width: 100%;
}

.product-main.horizon-style .product-option-btn {
  max-width: 100%;
}

@media (min-width: 1440px) {
  .product-main.horizon-style .product-container {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
  }

  .product-main.horizon-style .gallery-main-image {
    aspect-ratio: 4 / 5;
    max-height: 78vh;
    object-fit: cover;
  }
}

@media (max-width: 1280px) {
  .product-main.horizon-style .product-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 24px;
  }

  .product-main.horizon-style .gallery-main-image {
    aspect-ratio: 3 / 4;
  }

  .product-main.horizon-style .product-meta-item--details {
    column-gap: 16px;
  }
}

@media (max-width: 1024px) {
  .product-main.horizon-style .product-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-main.horizon-style .product-info {
    gap: 8px;
  }

  .product-main.horizon-style .product-header-row {
    grid-template-columns: 1fr auto;
    gap: 4px;
  }

  .product-main.horizon-style .product-meta-item--details {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .product-main.horizon-style .product-meta-item--details .product-meta-summary {
    padding-top: 0;
    margin-bottom: 4px;
  }
}

@media (max-width: 768px) {
  .product-main.horizon-style {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .product-main.horizon-style .product-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .product-main.horizon-style .product-gallery {
    grid-template-columns: 24px 1fr;
    gap: 4px;
  }

  .product-main.horizon-style .gallery-thumbnails {
    max-height: min(64vh, 420px);
  }

  .product-main.horizon-style .product-actions {
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 #e5e7eb;
  }
}

@media (max-width: 640px) {
  .product-main.horizon-style .product-header-row {
    grid-template-columns: 1fr;
  }

  .product-main.horizon-style .product-price-wrapper {
    justify-self: start;
  }

  .product-main.horizon-style .product-meta-content {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .product-main.horizon-style .product-container {
    padding-left: 4px;
    padding-right: 4px;
  }

  .product-main.horizon-style .gallery-main-image {
    aspect-ratio: 3 / 4;
  }

  .product-main.horizon-style .gallery-thumbnails {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .product-main.horizon-style .product-option-btn {
    min-height: 24px;
    padding-left: 4px;
    padding-right: 4px;
  }
}
