/* Horizon-Inspired Product Page Styles */
  .product-main.horizon-style,
  .product-description-section,
  .related-products-section,
  .product-attributes-section,
  .product-specifications-section {
    font-family: var(--font-body, var(--font-primary, 'Jost-Variable', Jost, sans-serif));
  }

  /* Keep PDP controls/content on self-hosted theme body font stack */
  .product-main.horizon-style button,
  .product-main.horizon-style input,
  .product-main.horizon-style select,
  .product-main.horizon-style textarea,
  .product-main.horizon-style .product-meta-row,
  .product-main.horizon-style .product-stock-status,
  .product-main.horizon-style .product-description-content,
  .product-main.horizon-style .product-description-content p,
  .product-main.horizon-style .product-description-content li,
  .product-main.horizon-style .product-description-content span,
  .product-main.horizon-style .product-option-btn,
  .product-main.horizon-style .quantity-input {
    font-family: var(--font-body, var(--font-primary, 'Jost-Variable', Jost, sans-serif));
  }

  .product-title,
  .price-current,
  .option-label,
  .section-title,
  .attributes-tab-link,
  .attribute-name,
  .product-description-content h1,
  .product-description-content h2,
  .product-description-content h3 {
    font-family: var(--font-heading, var(--font-primary, 'Jost-Variable', Jost, sans-serif));
  }

  .sub-modern-box {
        border: 1px solid #e5e7eb;
        background: #ffffff;
        padding: 8px 16px;
        border-radius: 6px;
        font-family: var(--font-body, var(--font-primary, 'Jost-Variable', Jost, 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: 48px 0 56px;
    margin: 0;
    background: #ffffff;
  }
@media (max-width: 768px) {
  .product-main.horizon-style {
    padding: 0px !important;
  }
}
  .product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  
    align-items: start;
  }

  /* Product Gallery */
  .product-gallery {
    position: static;
    display: grid;
    grid-template-columns: 83px minmax(0, 446px);
    gap: 40px;
    align-items: stretch;
    justify-content: flex-start;
    max-width: 545px;
  }

  .gallery-thumbnails-shell {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 92px;
    height: 595px;
    min-height: 595px;
  }

  .gallery-main {
    position: relative;
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    grid-column: 2;
    grid-row: 1;
    border: 1px solid rgba(205, 205, 205, 0.9);
    min-height: 0;
    background: #efefef;
    height: 595px;
  }

  .gallery-main img {
    display: block;
  }

  .gallery-main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.55), transparent 55%);
  }

  .gallery-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.35s ease;
  }

  .gallery-main-image.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .gallery-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #6b7280;
  }

  .product-style-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(140, 140, 140, 0.72);
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    z-index: 12;
  }

  .product-style-badge__label {
    opacity: 0.95;
  }

  .product-style-badge__value {
    font-weight: 600;
  }

  .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: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    flex: 1;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
  }

  .gallery-thumbnails-nav {
    position: relative;
    width: 100%;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(153, 153, 153, 0.42);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    z-index: 3;
    flex-shrink: 0;
    font-size: 0;
  }

  .gallery-thumbnails-nav--up {
    margin-bottom: 2px;
  }

  .gallery-thumbnails-nav--down {
    margin-top: 2px;
  }

  .gallery-thumbnails-nav:hover {
    background: rgba(124, 124, 124, 0.58);
    color: #ffffff;
  }

  .gallery-thumbnails-nav::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    display: block;
  }

  .gallery-thumbnails-nav--up::before {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .gallery-thumbnails-nav--down::before {
    transform: rotate(45deg);
    margin-bottom: 4px;
  }

  .gallery-thumbnails::-webkit-scrollbar {
    width: 4px;
  }

  .gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 999px;
  }

  .gallery-thumbnail {
    width: 83px;
    min-width: 83px;
    height: 101px;
    min-height: 101px;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    background: #f3f3f3;
    position: relative;
    flex-shrink: 0;
  }

  .gallery-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px 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;
    object-position: center top;
    display: block;
  }

  .gallery-thumbnails-nav svg {
    width: 14px;
    height: 14px;
    display: block;
  }

  /* Product Info */
  .product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
  }
@media (max-width: 768px) {
  .product-info {
    padding: 0px !important;
    border-radius: 0px !important;
  }
}
  .product-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .product-vendor {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: -16px;
    width: fit-content;
  }

  .product-sku {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: -16px;
  }

  .product-sku__label {
    font-weight: 500;
    margin-right: 4px;
  }
  .product-title {
    font-size: 30.4px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin: 0;
    letter-spacing: -0.02em;
  }

  .product-share-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: #111;
  }

  .product-detail-wishlist-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    color: #111;
  }

  .product-share-btn:hover {
    background: #fafafa;
    border-color: #111;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }

  .product-detail-wishlist-btn:hover {
    background: #fafafa;
    border-color: #111;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }

  .product-share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .product-detail-wishlist-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
  }

  .product-detail-wishlist-btn.in-wishlist {
    background: rgba(239, 68, 68, 0.95) !important;
    border-color: rgba(239, 68, 68, 0.95);
    color: #ffffff !important;
  }

  .product-detail-wishlist-btn.in-wishlist svg {
    fill: #ffffff;
    stroke: #ffffff;
  }

  .product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .price-current {
    font-size: 25.6px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
  }

  .price-compare {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
  }

  .price-saved {
    font-size: 18px;
    color: #2f80c0;
    font-weight: 500;
    white-space: nowrap;
  }

  /* Product Form */
  .product-form {
    display: flex;
    flex-direction: column;
   
  }

  #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-label[data-option-key] {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
  }

  .option-label-current {
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 0;
    text-transform: none;
  }

  .option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .option-values-color {
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    padding-bottom: 4px;
  }

  .option-values-color::-webkit-scrollbar {
    display: none;
  }

  .option-values-color-carousel {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    /* padding: 0 18px; */
    overflow: visible;
  }

  .option-values-color-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #1f1f1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0;
    font-size: 0;
  }

  .option-values-color-nav:hover:not(:disabled) {
    transform: translateY(calc(-50% - 1px));
  }

  .option-values-color-nav:disabled {
    display: none;
  }

  .option-values-color-nav-prev {
    left: -15px;
  }

  .option-values-color-nav-next {
    right: -3px;
  }

  .option-values-color-nav span {
    display: none;
  }

  .option-values-color-nav::before {
    content: '';
    width: 8px;
    height: 8px;
    display: block;
    border-top: 2px solid #222222;
    border-right: 2px solid #222222;
  }

  .option-values-color-nav-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
  }

  .option-values-color-nav-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
  }

  /* Color Swatches */
  .option-value-color {
    width: calc((100% - 56px) / 5);
    min-width: calc((100% - 56px) / 5);
    max-width: calc((100% - 56px) / 5);
    min-height: 126px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 8px 0px 0px;
    overflow: visible;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
  }

  .option-value-color:hover:not(.disabled) {
    transform: translateY(-1px);
  }

  .option-value-color.selected {
    background: #ffffff;
    color: #111;
  }

  .option-value-color.selected::after {
    content: none;
  }

  .option-value-color.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
  }

  .option-value-color.disabled::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 28px;
    height: auto;
    background: #dc2626;
    transform: rotate(45deg);
    transform-origin: center;
    opacity: 0.7;
    border-radius: 1px;
    z-index: 2;
  }

  .option-value-color-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1.18;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f3;
    display: block;
    position: relative;
  }

  .option-value-color.selected .option-value-color-image-wrap {
    box-shadow: 0 0 0 2px #111;
  }

  .option-value-color-image,
  .option-value-color-fallback {
    width: 100%;
    height: 100%;
    display: block;
  }

  .option-value-color-image {
    object-fit: cover;
    object-position: center top;
  }

  .option-value-color-fallback {
    border-radius: 10px;
  }

  .option-value-color-name {
    font-size: 13px;
    line-height: 1.25;
    color: #111;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    display: block;
    min-height: 32px;
  }

  .option-value-color.option-value-color-text {
    width: auto;
    min-width: 96px;
    max-width: none;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    justify-content: center;
    gap: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
  }

  .option-value-color.option-value-color-text:hover:not(.disabled) {
    transform: none;
    border-color: #111;
  }

  .option-value-color.option-value-color-text.selected {
    background: linear-gradient(276deg, #221f20 -33.36%, #505050 139.52%);
    border-color: transparent;
    color: #ffffff;
  }

  .option-value-color.option-value-color-text.disabled::after {
    top: 50%;
    left: 12px;
    right: 12px;
    bottom: auto;
    height: 1px;
  }

  /* Size/Text Options */
  .option-value-text {
    width: 47.9911px;
    min-width: 47.9911px;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    color: #111;
    font-size: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  

  .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;
    gap: 20px;
  }

  .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: 52px;
    height: 44px;
    border: none;
    background: transparent;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 0;
    outline: none;
  }

  

  .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;
    position: relative;
    opacity: unset;
  }

  .btn {
    padding: 14px 28px;
    min-height: 45px;
    min-width: 280px;
    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.16em;
    white-space: nowrap;
    width: 100%;
    box-shadow: none;
    border-radius: 8px;
  }

  .btn-primary {
    background: #111;
    color: #ffffff;
    border-color: #111;
    
  }

  .btn-primary:hover:not(:disabled) {
    background: #0f0f0f;
    border-color: #0f0f0f;
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
  }

  .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);
    display:none;
  }
  
  .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: 0px 0;
    border-top: 1px solid #e5e7eb;
  }

  .description-container {
    max-width: 1200px;
    
    padding: 0 40px;
  }

  .product-description-content {
    line-height: 1.8;
    font-size: clamp(15px, calc(17 * (100vw / 1440)), 19px) !important;
    color: black !important;
  }

  .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: 30px 0;
   
  }

  .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0px;
  }

  .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(4 , 1fr);
    gap: 10px;
  }

  /* 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: 0px;
  }

  .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;
  }



  .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-static-content {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    
  }

 

  .attributes-section-title {
    margin: 0 0 18px;
    font-size: 18.56px;
    font-weight: 500;
    color: #111;
    letter-spacing: -0.01em;
  }

  .attributes-group + .attributes-group {
    margin-top: 24px;
  }

  .attributes-group-title {
    margin: 0 0 12px;
    font-size: 13px;
   
    letter-spacing: 0.6px;
  
  }

  .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: 0px 0;
    border-top: 1px solid #e5e7eb;
  }

  .specifications-container {
    margin-top: 32px;
  }

  /* Responsive Design */
  @media (max-width: 1024px) {
    .product-container {
      grid-template-columns: 1fr;
      gap: 10px;
      padding-top: 10px;
      padding-bottom: 10px;
    }
    
    .product-gallery {
      position: static;
    }

    .gallery-main {
      display: block;
      height: auto;
      overflow: visible;
      padding-right: 0;
    }

    .gallery-main-image {
      display: none;
      opacity: 0;
      height: auto;
      aspect-ratio: auto;
    }

    .gallery-main-image.active {
      display: block;
      opacity: 1;
    }
    
    .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: 10px;
    }
    
    .product-description-section,
    .related-products-section {
      padding: 10px 0;
    }
    
    .description-container,
    .section-container {
      padding: 0 16px;
    }

    .attributes-static-content {
      gap: 24px;
    }

    .attributes-static-section + .attributes-static-section {
      padding-top: 22px;
    }
  }

  @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;
    }
  }


  .product-style-badge {
    right: 0px;
    bottom: 0px;
    padding: 12px 12px;
    background: rgba(124, 124, 124, 0.72);
 
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    transform: scale(0.46);
    transform-origin: right bottom;
  }

  .product-style-badge__label {
    opacity: 1;
    font-weight: 500;
  }

  .product-info {
    padding-top: 2px;
    gap: 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .product-header-row {
    gap: 16px;
    align-items: center;
  }

  .product-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .product-title {
    font-size: 37px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1f1f1f;
  }

  .product-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #d2d2d2;
    /* background: #f8f8f8;
    color: #6b6b6b; */
  }

  .product-detail-wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #d2d2d2;
    background: #ffffff;
    color: #171717;
  }

  .product-like-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #d2d2d2;
    background: #f8f8f8;
    color: #6b6b6b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .product-like-btn:hover {
    background: #ffffff;
    border-color: #c4c4c4;
    color: #434343;
  }

  .product-like-btn[aria-pressed="true"] {
    background: #fff1f3;
    border-color: #fecdd3;
    color: #e11d48;
  }

  .product-share-btn svg {
    width: 20px;
    height: 20px;
  }

  .product-detail-wishlist-btn svg {
    width: 20px;
    height: 20px;
  }

  .product-price-wrapper {
    margin-top: 0;
  }

  .price-current {
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    color: #171717;
    margin-right: 10px;
  }

  .product-option {
    gap: 10px;
  }

  .option-label {
    font-size: var(--text-lg);
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #181818;
  }

  .option-values {
    gap: 3px;
  }

  .option-label-current {
    font-size: inherit;
  }

  .product-option-btn {
    border: 1px solid #b9b9b9;
    line-height: 1;
    color: #222222;
    background: #ffffff;
   }

  .product-option-btn.option-value-color {
    border: none;
    box-shadow: none;
    outline: none;
    background: transparent;
  }

  .product-option-btn.selected {
    border-color: linear-gradient(276deg, #221f20 -33.36%, #505050 139.52%);
    background: linear-gradient(276deg, #221f20 -33.36%, #505050 139.52%);
    color:  #ffffff;
  }

  .product-option-btn.option-value-color.selected {
    background: #ffffff;
    color: #181818;
    border-color: transparent;
    box-shadow: none;
  }

  .product-option-btn.option-value-color.option-value-color-text {
    background: #ffffff;
    color: #222222;
    border: 1px solid #b9b9b9;
  }

  .product-option-btn.option-value-color.option-value-color-text.selected {
    background: linear-gradient(276deg, #221f20 -33.36%, #505050 139.52%);
    color: #ffffff;
    border-color: transparent;
  }

  .quantity-option {
    margin-top: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
 

 

  .btn-primary {
    background: #2c2c2f;
    border-color: #2c2c2f;
    color: #ffffff;
  }

  .btn-primary:hover:not(:disabled) {
    background: #1f1f21;
    border-color: #1f1f21;
    transform: none;
    box-shadow: none;
  }

  @media (max-width: 1024px) {
    .product-container {
      grid-template-columns: 1fr;
      padding: 0 16px;
      row-gap: 26px;
    }

    .product-gallery {
      position: static;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      max-width: none;
    }

    .gallery-thumbnails-shell {
      grid-column: auto;
      grid-row: auto;
      flex-direction: row;
      align-items: center;
      min-height: auto;
      height: auto;
      width: auto;
      gap: 8px;
    }

    .gallery-main {
      grid-column: auto;
      grid-row: auto;
      height: min(78vw, 520px);
    }

    .gallery-thumbnails {
      flex-direction: row;
      max-height: none;
      height: auto;
      padding: 0;
      padding-right: 0;
      overflow-x: auto;
      overflow-y: hidden;
      width: auto;
      flex: 1;
    }

    .gallery-thumbnails-nav {
      position: static;
      transform: none;
      width: 30px;
      height: 30px;
      border-radius: 999px;
      flex-shrink: 0;
    }

    .gallery-thumbnails-nav--up {
      transform: rotate(-90deg);
    }

    .gallery-thumbnails-nav--down {
      transform: rotate(-90deg);
    }

    .gallery-thumbnail {
      width: 58px;
      min-width: 58px;
      height: 58px;
      min-height: 58px;
      border-radius: 8px;
    }

    .product-title {
      font-size: 28px;
    }

    .price-current {
      font-size: 30px;
    }

    .option-label {
      font-size: 18px;
    }

    .product-option-btn {
      min-width: 48px;
      height: 48px;
      font-size: 16px;
      border-radius: 8px;
    }

    .option-values-color {
      gap: 10px;
    }

    .option-values-color-carousel {
      padding: 0 16px;
    }

    .option-values-color-nav {
      width: 28px;
      height: 28px;
      min-width: 28px;
    }

    .option-value-color {
      width: calc((100% - 40px) / 5);
      height: auto;
      min-width: calc((100% - 40px) / 5);
      max-width: calc((100% - 40px) / 5);
      min-height: 118px;
      padding: 6px 6px 8px;
      border-radius: 12px;
    }

    .option-value-color.option-value-color-text {
      width: auto;
      min-width: 84px;
      max-width: none;
      min-height: 48px;
      padding: 0 16px;
    }

    .option-value-color.selected::after {
      content: none;
    }

    .option-value-color-name {
      font-size: 12px;
      min-height: 30px;
    }

    .quantity-wrapper {
      width: 150px;
    }

    .quantity-btn,
    .quantity-input {
      height: 48px;
    }

    .quantity-btn {
      width: 48px;
      font-size: 24px;
    }

    .quantity-input {
      width: 54px;
      font-size: 20px;
    }

    .btn {
      height: 50px;
      min-width: 0;
      font-size: 18px;
      border-radius: 10px;
    }
  }

  @media (max-width: 640px) {
    .product-main.horizon-style {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    .product-container {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      row-gap: 18px;
      align-items: start;
      overflow-x: hidden;
    }

    .product-gallery {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      max-width: calc(100% + 32px);
      min-width: 0;
    }

    .gallery-main {
      width: 100%;
      max-width: 100%;
      height: auto;
      aspect-ratio: 1 / 1.22;
      min-height: 0;
      overflow: hidden;
      border-radius: 0;
      touch-action: pan-y;
    }

    .gallery-main-image {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .gallery-thumbnails-shell {
      width: 100%;
      justify-content: center;
      gap: 0;
    }

    .gallery-thumbnails-nav {
      display: none;
    }

    .gallery-thumbnails {
      width: 100%;
      flex: 0 0 auto;
      justify-content: center;
      align-items: center;
      gap: 8px;
      overflow: visible;
      padding: 0;
    }

    .gallery-thumbnail {
      width: 10px;
      min-width: 10px;
      height: 10px;
      min-height: 10px;
      border-radius: 999px;
      border: 0;
      background: rgba(24, 24, 24, 0.22);
    }

    .gallery-thumbnail::after {
      inset: 0;
      border: 0;
      border-radius: inherit;
      background: transparent;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .gallery-thumbnail img {
      display: none;
    }

    .gallery-thumbnail:hover::after,
    .gallery-thumbnail.active::after {
      background: #181818;
      transform: scale(1.1);
    }

    .product-info {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      margin-top: 0;
      padding-top: 0;
      padding-left: 16px;
      padding-right: 16px;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    .product-header-row,
    .product-option,
    .quantity-option,
    .option-values-color-carousel {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }

    .option-values-color {
      display: flex;
      width: 100%;
      max-width: 100%;
      gap: 4px;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
    }

    .option-values-color-carousel {
      padding: 0;
      overflow: hidden;
    }

    .option-values-color-nav {
      display: none;
    }

    .option-value-color {
      width: calc((100% - 40px) / 5);
      height: auto;
      min-width: calc((100% - 40px) / 5);
      max-width: calc((100% - 40px) / 5);
      min-height: 112px;
      box-sizing: border-box;
      scroll-snap-align: start;
    }

    .option-label[data-option-key] {
      gap: 4px;
    }

    .option-label-current {
      width: 100%;
    }

    .product-quantity-inline {
      display: none;
    }

    .mobile-pdp-sticky-bar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1040;
      padding: 0 0 env(safe-area-inset-bottom, 0px);
      background: #ffffff;
      border-top: 1px solid rgba(24, 24, 24, 0.08);
      box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    }

    .mobile-pdp-sticky-bar__inner {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      gap: 12px;
      padding: 12px 16px 10px;
      background: #ffffff;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .mobile-pdp-sticky-bar__product {
      display: none;
      align-items: center;
      gap: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(24, 24, 24, 0.08);
    }

    .mobile-pdp-sticky-bar__product.is-visible {
      display: flex;
    }

    .mobile-pdp-sticky-bar__product-image-wrap {
      width: 46px;
      height: 58px;
      flex: 0 0 46px;
      border-radius: 8px;
      overflow: hidden;
      background: #f4f4f4;
    }

    .mobile-pdp-sticky-bar__product-image {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
    }

    .mobile-pdp-sticky-bar__product-title {
      min-width: 0;
      color: #111;
      font-size: 14px;
      font-weight: 600;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mobile-pdp-sticky-bar__price-block {
      min-width: 0;
      flex: 0 0 auto;
    }

    .mobile-pdp-sticky-bar__price {
      color: #111;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
    }

    .mobile-pdp-sticky-bar__tax {
      margin-top: 3px;
      color: rgba(24, 24, 24, 0.68);
      font-size: 10px;
      line-height: 1.3;
      white-space: nowrap;
    }

    .mobile-pdp-sticky-bar__actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex: 1;
      min-width: 0;
      flex-wrap: nowrap;
    }

    .mobile-pdp-sticky-bar__meta-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      width: 100%;
      min-width: 0;
      flex-wrap: nowrap;
    }

    .mobile-pdp-sticky-bar__qty[hidden] {
      display: none !important;
    }

    .mobile-pdp-sticky-bar__qty {
      width: auto;
      flex: 0 0 auto;
    }

    .mobile-pdp-sticky-bar__qty .quantity-btn,
    .mobile-pdp-sticky-bar__qty .quantity-input {
      height: 42px;
    }

    .mobile-pdp-sticky-bar__qty .quantity-btn {
      width: 34px;
      font-size: 18px;
    }

    .mobile-pdp-sticky-bar__qty .quantity-input {
      width: 34px;
      font-size: 14px;
    }

    .mobile-pdp-sticky-bar__button {
      min-width: 126px;
      width: auto;
      height: 42px;
      min-height: 42px;
      margin: 0;
      padding: 0 18px;
      font-size: 12px;
      letter-spacing: 0.08em;
      border-radius: 8px;
      flex: 0 0 auto;
    }

    .mobile-pdp-sticky-bar__price-block {
      min-width: 72px;
      flex: 0 0 auto;
    }
  }

  @media (max-width: 768px) {
  }

  @media (min-width: 641px) {
    .mobile-pdp-sticky-bar {
      display: none !important;
    }
  }
