@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ring-product-container * {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

.ring-product-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 2rem 1rem;
    overflow: visible;
    /* Ensure sticky positioning works */
    font-family: "Montserrat", sans-serif;
}

.productContainer {
    display: grid;
    grid-template-columns: 1.857fr 1fr;
    gap: 3rem;
    align-items: start;
    animation: fadeIn 0.5s ease-in-out;
}

@media (max-width: 968px) {
    .productContainer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* CSS Variables - Brand Colors - Matching Website Theme */
.ring-product-container:root,
.ring-product-container {
    --primary-color: #0080FE;
    --primary-hover: #09D0DB;
    --primary-light: #F0F9FF;
    --primary-alpha-10: rgba(0, 128, 254, 0.1);
    --primary-alpha-20: rgba(0, 128, 254, 0.2);
    --primary-gradient: linear-gradient(135deg, #0080FE, #09D0DB);
    --theme-color-2: #000B15;
    --text-color: #818181;
    --text-color-light: #B1B1B1;
    --title-color: #000000;
}

/* Product Gallery */
.product-gallery {
    animation: slideInLeft 0.6s ease-out;
    max-width: 100%;
    overflow: hidden;
}

.ring-gallery-swiper {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.ring-gallery-swiper .swiper-wrapper {
    height: initial;
}

.ring-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 600px;
}

.ring-gallery-swiper .swiper-slide img {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    object-fit: cover;
    padding: 0;
}

.ring-gallery-swiper .swiper-slide img:hover {
    transform: scale(1.02);
}

.ring-gallery-swiper .swiper-pagination {
    position: relative !important;
    margin-top: 0rem;
}

.ring-gallery-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
}

.ring-gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.ring-gallery-swiper .swiper-button-next,
.ring-gallery-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 128, 254, 0.2);
}

.ring-gallery-swiper .swiper-button-next:hover,
.ring-gallery-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

.ring-gallery-swiper .swiper-button-next:after,
.ring-gallery-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.product-badge-container {
    display: flex;
    gap: 0.125rem;
    justify-content: flex-start;
    margin-bottom: 1rem;
    flex-direction: row;
    align-items: flex-start;
}

/* Product Info */
.product-info {
    max-width: 24rem;
    margin: auto;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #5e44ba, #063D65);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    font-family: "Montserrat", sans-serif;
}

.badge-fsa {
    background: #69359B;
}

.badge-dna {
    background: var(--primary-color);
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--title-color);
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
}

.product-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-family: "Montserrat", sans-serif;
}

/* Customer Type Tabs */
.customer-tabs {
    display: none;
    /* Hidden - controlled by manual flag */
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 12px;
}

.customer-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
}

.customer-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Option Section */
.option-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.75rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Montserrat", sans-serif;
}

/* Color Selection */
.color-options {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.color-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s;
}

.color-option:hover {
    border-color: var(--primary-color);
}

.color-option.selected {
    border-color: var(--primary-color);
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
}

.color-swatch.black {
    background: linear-gradient(314deg, #101010 0%, #726b6b 65%, #ffffff 100%);
}

.color-swatch.silver {
    background: linear-gradient(314deg, #9e9d9d 0%, #e5e5e5 65%, #efefef 100%);
}

.color-swatch.gold {
    background: linear-gradient(314deg, #d9b876 0%, #eedab3 65%, #fdfdfd 100%);
}

.color-display {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-color);
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
}

.color-display .separator {
    color: var(--primary-color);
}

.color-display .price {
    color: var(--primary-color);
    font-weight: 400;
}

/* Size Selection */
.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    min-width: 48px;
    min-height: 48px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    color: var(--title-color);
    transition: all 0.2s;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.size-option:hover {
    border-color: var(--primary-color);
}

.size-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.size-option.unavailable,
.size-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f3f4f6;
}

.size-option.unavailable:hover,
.size-option:disabled:hover {
    border-color: #e5e7eb;
    transform: none;
}

.size-option.not-sure-option {
    min-width: auto;
    padding: 0 12px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

.size-assistant-message {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.875rem;
    line-height: 1.4;
    font-family: "Montserrat", sans-serif;
}

/* Offer Selection */
.offer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.offer-option {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    text-align: left;
}

.offer-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.offer-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-alpha-10);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.offer-content {
    flex: 1;
}

.offer-title {
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.25rem;
    font-family: "Montserrat", sans-serif;
}

.offer-price {
    font-size: 0.875rem;
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
}

.offer-option.pre-selected {
    width: 100%;
    margin-bottom: 1.5rem;
}

.offer-option.pre-selected * {
    color: var(--text-color);
}

.offer-content ul.feature-list,
.pricing-section ul.feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 25px 0;
    font-style: initial;
}

.offer-content .feature-list li,
.pricing-section .feature-list li {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.6;
    padding-left: 17px;
    position: relative;
    font-family: "Montserrat", sans-serif;
}

.offer-content .feature-list li::before,
.pricing-section .feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    width: 13px;
    height: 13px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-option:not(.selected):hover {
    border-color: var(--primary-color);
    background: transparent;
}

/* Warranty Options */
.warranty-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.warranty-option {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.warranty-option:hover {
    border-color: var(--primary-color);
}

.warranty-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.warranty-title {
    font-weight: 600;
    color: var(--title-color);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-family: "Montserrat", sans-serif;
}

.warranty-price {
    font-size: 0.75rem;
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
}

/* Warranty Info Modal */
.warranty-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.warranty-modal.active {
    display: flex;
}

.warranty-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.warranty-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #6b7280;
    transition: all 0.2s;
}

.warranty-modal-close:hover {
    background: #e5e7eb;
    color: var(--title-color);
}

.warranty-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    font-family: "Montserrat", sans-serif;
}

.warranty-modal h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--title-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: "Montserrat", sans-serif;
}

.warranty-modal h3:first-of-type {
    margin-top: 0;
}

.warranty-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warranty-modal li {
    padding: 0.75rem 0;
    color: var(--text-color);
    line-height: 1.6;
    border-bottom: 1px solid #f3f4f6;
    font-family: "Montserrat", sans-serif;
}

.warranty-modal li:last-child {
    border-bottom: none;
}

.warranty-modal li strong {
    color: var(--title-color);
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    background: linear-gradient(135deg, var(--primary-light), rgba(0, 128, 254, 0.05));
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--primary-alpha-10);
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--title-color);
    font-family: "Montserrat", sans-serif;
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-color-light);
    text-decoration: line-through;
    margin-left: 0.75rem;
    font-family: "Montserrat", sans-serif;
}

.subscription-price {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-top: 0.5rem;
    font-family: "Montserrat", sans-serif;
}

.total-price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0, 128, 254, 0.2);
    font-size: 1.125rem;
    color: var(--title-color);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.offer-description {
    margin-top: 0.75rem;
    color: var(--text-color);
    font-size: 0.875rem;
    font-family: "Montserrat", sans-serif;
}

/* CTA Button - Matching Website Style */
.button {
    display: inline-block;
    font-weight: 700;
    color: #fff;
    background-color: var(--primary-color);
    padding: 12px 26px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-transform: capitalize;
    transition: all 0.5s ease-in-out;
    width: 100%;
    height: 44px;
    line-height: 20px;
    font-family: "Montserrat", sans-serif;
    text-align: center;
}

.button:hover {
    background: var(--primary-hover);
    color: white;
}

.ring-gallery-swiper.swiper-horizontal>.swiper-pagination-bullets {
    right: 14px;
    bottom: 10px;
    left: initial;
    text-align: right;
    padding: 0 2rem 1rem;
    position: absolute !important;
    align-items: flex-end;
    justify-content: end;
    background: rgb(0 0 0 / 27%);
    width: auto;
    border-radius: 12px;
    padding: 0 5px 2px;
    line-height: 140%;
}

.ring-gallery-swiper.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 3px;
}

.klarna-offer .klarna-logo svg {
    max-width: 52px;
    vertical-align: baseline;
}

@media (max-width: 968px) {
    .ring-gallery-swiper {
        margin: 0;
    }

    .ring-gallery-swiper .swiper-slide {
        height: auto;
    }

    .ring-gallery-swiper.swiper-horizontal>.swiper-pagination-bullets {
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        right: initial;
    }
}

@media (min-width: 969px) {
    .productContainer {
        position: relative;
    }

    .product-gallery {
        position: sticky;
        top: 80px;
        max-height: calc(90vh - 100px);
        /* Prevents full height expansion */
        align-self: flex-start;
        /* Helps with sticky positioning */
    }

    .ring-gallery-swiper {
        max-height: inherit;
    }

    .product-info {
        max-width: 100%;
        margin: 0;
    }
}

/* Ensure parent containers don't block sticky positioning */
.boxed_wrapper {
    overflow: visible !important;
}

#add-to-cart.button {
    height: auto;
}

.klarna-offer .klarna-logo svg {
    max-width: 52px;
    vertical-align: baseline;
}

.offer-option.pre-selected {
    width: 100%;
    margin-bottom: 1.5rem;
}

.offer-option:not(.selected):hover {
    border-color: var(--primary-color);
    background: transparent;
  }

.offer-option.pre-selected * {
    color: #606060;
}

.offer-content ul.feature-list,
.pricing-section ul.feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 25px 0;
    font-style: initial;
}

.offer-content .feature-list li,
.pricing-section .feature-list li {
    font-size: 0.9rem;
    color: #5d5b5b;
    margin-bottom: 4px;
    line-height: 1.6;
    padding-left: 17px;
    position: relative;
}

.offer-content .feature-list li::before,
.pricing-section .feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    width: 13px;
    height: 13px;
    background: #00D084;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.klarna-offer  .klarna-logo svg {
    max-width: 52px;
    vertical-align: baseline;
  }

.ring-gallery-swiper.swiper-horizontal>.swiper-pagination-bullets {
  padding: 2px;
}

.offer-options-hidden:not(.offer-options-upgrade-hidden) .option-section:has(.offer-options) {
    display: none;
}

.offer-options-upgrade-hidden .offer-options .option-label,
.offer-options-upgrade-hidden .offer-options .offer-option[data-offer="offer2"] {
    display: none;
}

.inner-page .header-style-one {
    position: static;
}