/* WeatherSeal PDP Component Styles */

.cmp-weatherseal-pdp * {
    box-sizing: border-box;
    font-family: 'Archivo';
}

.cmp-weatherseal-pdp {
    max-width: 1360px;
    margin: 0 auto;
    font-family: 'Archivo', Arial, sans-serif;
    background-color: #ffffff;
    width: 94%;
    overflow: visible !important;
}

/* ========================================================================
   Main Container - 2-column grid (65% gallery | 35% info)
   ======================================================================== */

.cmp-weatherseal-pdp__container {
    display: grid;
    grid-template-columns: 65% 32%;
    gap: 40px;
    align-items: flex-start;
    margin-top: 24px;
    margin-bottom: 120px;
}

/* ========================================================================
   Gallery Section
   ======================================================================== */

.cmp-weatherseal-pdp__gallery-desktop {
    display: block;
}

.cmp-weatherseal-pdp__gallery-mobile {
    display: none;
}

.cmp-weatherseal-pdp__carousel-expand {
    display: none;
}

.cmp-weatherseal-pdp__fullscreen {
    display: none;
}

/* ========================================================================
   Desktop Hero Image
   ======================================================================== */

.cmp-weatherseal-pdp__hero-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 16px;
}

.cmp-weatherseal-pdp__hero-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ========================================================================
   Desktop Expand Button on Hero
   ======================================================================== */

.cmp-weatherseal-pdp__desktop-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
    z-index: 2;
}

.cmp-weatherseal-pdp__desktop-expand img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================================================
   Gallery Grid (image 1: full width, 2-3: half width each, 4: full width)
   ======================================================================== */

.cmp-weatherseal-pdp__thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Images 2 & 3: half width */
.cmp-weatherseal-pdp__thumb-item {
    flex: 0 0 calc(50% - 5px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #F4F4F4;
}

/* Image 4: full width */
.cmp-weatherseal-pdp__thumb-item:nth-child(3) {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
}

.cmp-weatherseal-pdp__thumb-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ========================================================================
   Desktop Fullscreen Lightbox
   ======================================================================== */

@media (min-width: 768px) {
    .cmp-weatherseal-pdp__fullscreen {
        display: none;
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 56px;
    }

    .cmp-weatherseal-pdp__fullscreen.active {
        display: flex;
    }

    .cmp-weatherseal-pdp__fullscreen-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 10;
    }

    .cmp-weatherseal-pdp__fullscreen-close img {
        width: 24px;
        height: 24px;
        display: block;
        filter: invert(1);
    }

    .cmp-weatherseal-pdp__fullscreen-carousel {
        width: 100%;
        max-width: 900px;
        position: relative;
        overflow: hidden;
    }

    .cmp-weatherseal-pdp__fullscreen-image-set {
        display: flex;
        transition: transform 0.35s ease;
    }

    .cmp-weatherseal-pdp__fullscreen-image-item {
        min-width: 100%;
        height: 70vh;
        background: #fff;
        overflow: hidden;
    }

    .cmp-weatherseal-pdp__fullscreen-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

    .cmp-weatherseal-pdp__fullscreen-prev,
    .cmp-weatherseal-pdp__fullscreen-next {
        display: none;
    }

    .cmp-weatherseal-pdp__fullscreen-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        padding: 16px 0 0;
    }

    .cmp-weatherseal-pdp__fullscreen-dot {
        height: 3px;
        border-radius: 50px;
        background: rgba(0, 0, 0, 0.15);
        width: 20px;
        transition: all 0.3s ease-in;
        cursor: pointer;
        border: none;
        padding: 0;
    }

    .cmp-weatherseal-pdp__fullscreen-dot.active {
        background: #202129;
        width: 40px;
    }
}

/* ========================================================================
   Info Section (Right Column)
   ======================================================================== */

.cmp-weatherseal-pdp__info {
    display: flex;
    flex-direction: column;
}

/* Actions Container: badges left, wishlist + share right */
.cmp-weatherseal-pdp__actions-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cmp-weatherseal-pdp__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cmp-weatherseal-pdp__badge {
    font-size: 12px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 4px;
    border: 0.6px solid #CACBCC;
    font-family: Archivo, sans-serif;
    color: #232426;
    @media screen and (max-width:767px){
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Action buttons */
.cmp-weatherseal-pdp__action-container {
    display: flex;
    gap: 30px;
}

.cmp-weatherseal-pdp__action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    width: 24px;
    height: 24px;
    padding: 0;
}

.cmp-weatherseal-pdp__action-btn--wishlist {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    min-width: 24px;
}

.cmp-weatherseal-pdp__action-btn--wishlist[data-wishlist-status="added"] .cmp-weatherseal-pdp__like-icon path {
    fill: #e53935;
    stroke: #e53935;
}

.cmp-weatherseal-pdp__like-icon {
    display: block;
    width: 24px;
    height: 24px;
    transition: fill 0.2s ease;
}

/* ========================================================================
   Title & Series
   ======================================================================== */

.cmp-weatherseal-pdp__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: #202129;
    margin: 0 0 30px;
    @media screen and (max-width:767px){
        color: #232426;
        margin: 0 0 8px;
    }
}

.cmp-weatherseal-pdp__series {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 8px;
    font-size: 14px;
    color: #74798A;
    font-weight: 300;
}

.cmp-weatherseal-pdp__sub-brand {
    color: #202129;
    font-weight: 500;
}

.cmp-weatherseal-pdp__product-series {
    color: #74798A;
}

.cmp-weatherseal-pdp__frame-material {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 16px;
    font-size: 14px;
}

.cmp-weatherseal-pdp__frame-label {
    color: #74798A;
    font-weight: 300;
}

.cmp-weatherseal-pdp__frame-value {
    color: #202129;
    font-weight: 400;
}

/* ========================================================================
   Colours Section
   ======================================================================== */

.cmp-weatherseal-pdp__colors-section {
    margin-bottom: 24px;
}

.cmp-weatherseal-pdp__colors-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cmp-weatherseal-pdp__colors-text {
    font-size: 13px;
    font-weight: 300;
    color: #74798A;
}

.cmp-weatherseal-pdp__colors-name {
    font-size: 14px;
    color: #202129;
    font-weight: 400;
}

.cmp-weatherseal-pdp__swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cmp-weatherseal-pdp__swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.2s ease;
    display: block;
    text-decoration: none;
    border: 2px solid transparent;
    padding: 2px;
}

.cmp-weatherseal-pdp__swatch--active {
    border-color: #202129;
}

.cmp-weatherseal-pdp__swatch-circle {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* ========================================================================
   CTA Section
   ======================================================================== */

.cmp-weatherseal-pdp__cta-section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.cmp-weatherseal-pdp__cta-section-title{
    font-size: 20px;
    font-weight: 600;
    color: #202129;
    @media screen and (max-width:767px){
        font-size: 14px;
    }
}

.cmp-weatherseal-pdp__cta-primary {
    padding: 16px 30px;
    background-color: #202129;
    color: #ffffff;
    text-decoration: none;
    border: none;
    font-family: 'Archivo', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    border-radius: 65px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    flex: 1;
}

.cmp-weatherseal-pdp__cta-primary:hover {
    background-color: #3a3b4a;
}

.cmp-weatherseal-pdp__cta-primary img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: invert(1);
}

/* ========================================================================
   Accordions
   ======================================================================== */

.cmp-weatherseal-pdp__accordions {
    margin-top: 8px;
}

.cmp-weatherseal-pdp__accordion {
    border-bottom: 1px solid #eee;
}

.cmp-weatherseal-pdp__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-family: 'Archivo', Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: #000000;
}

.cmp-weatherseal-pdp__accordion-title {
    font-size: 14px;
    font-weight: 400;
    color: #202129;
    line-height: 120%;
}

.cmp-weatherseal-pdp__accordion-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cmp-weatherseal-pdp__accordion-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.cmp-weatherseal-pdp__accordion--open .cmp-weatherseal-pdp__accordion-icon {
    transform: rotate(180deg);
}

.cmp-weatherseal-pdp__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding-bottom 0.3s ease;
    padding: 0;
}

.cmp-weatherseal-pdp__accordion--open .cmp-weatherseal-pdp__accordion-content {
    max-height: 2000px;
    padding-bottom: 20px;
}

/* ========================================================================
   Material Details Table
   ======================================================================== */

.cmp-weatherseal-pdp__material-table {
    width: 100%;
    border-collapse: collapse;
}

.cmp-weatherseal-pdp__material-key {
    padding: 10px 12px 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #74798A;
    width: 45%;
    vertical-align: top;
}

.cmp-weatherseal-pdp__material-value {
    padding: 10px 0;
    font-size: 14px;
    color: #4F5466;
    font-weight: 300;
    text-align: left;
}

/* ========================================================================
   Finishes List
   ======================================================================== */

.cmp-weatherseal-pdp__finishes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cmp-weatherseal-pdp__finish-item {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #3B3D40;
    font-weight: 400;
}

/* ========================================================================
   Use Case Image Grid
   ======================================================================== */

.cmp-weatherseal-pdp__usecase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cmp-weatherseal-pdp__usecase-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmp-weatherseal-pdp__usecase-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.cmp-weatherseal-pdp__usecase-label {
    font-size: 13px;
    font-weight: 400;
    color: #3B3D40;
    line-height: 1.4;
    text-align: center;
}

/* ========================================================================
   Bullet List (Handle type / Glass type)
   ======================================================================== */

.cmp-weatherseal-pdp__bullet-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.cmp-weatherseal-pdp__bullet-item {
    font-size: 14px;
    font-weight: 300;
    color: #4F5466;
    line-height: 1.6;
    padding: 4px 0;
}

/* ========================================================================
   Rich Text
   ======================================================================== */

.cmp-weatherseal-pdp__rich-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.cmp-weatherseal-pdp__rich-text p {
    margin: 0 0 12px;
}

.cmp-weatherseal-pdp__rich-text ul {
    padding-left: 20px;
    margin: 0 0 12px;
    list-style-type: disc;
}

.cmp-weatherseal-pdp__rich-text li {
    margin-bottom: 6px;
    font-family: Archivo;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.cmp-weatherseal-pdp__rich-text strong {
    color: #3B3D40;
}

/* ========================================================================
   Share Wrapper + Tooltip
   ======================================================================== */

.cmp-weatherseal-pdp__share-wrapper {
    position: relative;
}

.cmp-weatherseal-pdp__share-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: -50px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 12px 20px 0px #00000014;
    padding: 8.5px;
    z-index: 200;
    min-width: 264px;
    text-align: center;
}

.cmp-weatherseal-pdp__share-tooltip.active {
    display: block;
}

.cmp-weatherseal-pdp__share-tooltip-arrow {
    position: absolute;
    top: -8px;
    right: 50px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
}

.cmp-weatherseal-pdp__share-tooltip-items {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.cmp-weatherseal-pdp__share-tooltip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #5A5A5A;
    font-size: 10px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.cmp-weatherseal-pdp__share-tooltip-item:hover {
    opacity: 0.75;
}

.cmp-weatherseal-pdp__share-tooltip-item img {
    width: 24px;
    height: 24px;
}

.cmp-weatherseal-pdp__share-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
}

.cmp-weatherseal-pdp__share-tooltip-title {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #202129;
}

.cmp-weatherseal-pdp__share-tooltip-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.cmp-weatherseal-pdp__share-tooltip-close img {
    width: 20px;
    height: 20px;
}

.cmp-weatherseal-pdp__share-overlay {
    display: none;
}

/* ========================================================================
   Mobile Sticky Bar
   ======================================================================== */

.cmp-weatherseal-pdp__sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    box-shadow: 0px -2px 25px 0px #0000001A;
    z-index: 100;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.3s ease;
}

.cmp-weatherseal-pdp__sticky-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    background: #202129;
    color: #fff;
    border: none;
    border-radius: 60px;
    font-family: 'Archivo', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.cmp-weatherseal-pdp__sticky-btn img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* ========================================================================
   Responsive - Tablet (max-width: 991px)
   ======================================================================== */

@media (max-width: 991px) {
    .cmp-weatherseal-pdp {
        padding: 20px 30px;
    }

    .cmp-weatherseal-pdp__container {
        gap: 24px;
    }

    .cmp-weatherseal-pdp__title {
        font-size: 20px;
    }

}

/* ========================================================================
   Responsive - Mobile (max-width: 767px)
   ======================================================================== */

@media (max-width: 767px) {
    .cmp-weatherseal-pdp {
        padding: 0;
        width: 100%;
    }

    .cmp-weatherseal-pdp__desktop-expand {
        display: none;
    }

    .cmp-weatherseal-pdp__container {
        display: block;
        margin-bottom: 0;
    }

    /* Hide desktop gallery; show mobile gallery */
    .cmp-weatherseal-pdp__gallery-desktop {
        display: none;
    }

    .cmp-weatherseal-pdp__gallery-mobile {
        display: block;
        width: 100%;
        background: #fff;
    }

    /* Mobile hero image */
    .cmp-weatherseal-pdp__mobile-hero-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        background: #f5f5f5;
    }

    .cmp-weatherseal-pdp__mobile-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Expand button on mobile hero */
    .cmp-weatherseal-pdp__carousel-expand {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
        background: rgba(255, 255, 255, 0.85);
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .cmp-weatherseal-pdp__carousel-expand img {
        width: 18px;
        height: 18px;
    }

    /* Thumbnail strip */
    .cmp-weatherseal-pdp__mobile-thumbs {
        display: flex;
        gap: 8px;
        padding: 10px 16px;
        overflow-x: auto;
        scrollbar-width: none;
        background: #fff;
        justify-content: center;
    }

    .cmp-weatherseal-pdp__mobile-thumbs::-webkit-scrollbar {
        display: none;
    }

    .cmp-weatherseal-pdp__mobile-thumb-card {
        height: 44px;
        width: 44px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.2s ease;
    }

    .cmp-weatherseal-pdp__mobile-thumb-card--active {
        border-color: #202129;
    }

    .cmp-weatherseal-pdp__mobile-thumb-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Info section full width on mobile */
    .cmp-weatherseal-pdp__info {
        padding: 16px;
    }

    .cmp-weatherseal-pdp__title {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 500;
    }

    /* Hide desktop CTAs on mobile - sticky bar replaces them */
    .cmp-weatherseal-pdp__cta-section {
        display: none;
    }

    /* Show sticky bar */
    .cmp-weatherseal-pdp__sticky-bar {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0px -2px 25px 0px #0000001A;
    }

    .cmp-weatherseal-pdp__sticky-bar .cmp-weatherseal-pdp__cta-section-title {
        font-size: 14px;
        font-weight: 600;
        color: #202129;
        margin: 0 0 12px;
    }

    /* Hide bottom navigation (site global) */
    .bottom_navigation__icons_wrapper {
        display: none;
    }

    /* Fullscreen image popup */
    .cmp-weatherseal-pdp__fullscreen {
        display: none;
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 1003;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 56px;
    }

    .cmp-weatherseal-pdp__fullscreen.active {
        display: flex;
    }

    .cmp-weatherseal-pdp__fullscreen-close {
        position: absolute;
        top: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
        background: rgba(0, 0, 0, 0.35);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 10;
    }

    .cmp-weatherseal-pdp__fullscreen-prev,
    .cmp-weatherseal-pdp__fullscreen-next {
        display: none;
    }

    .cmp-weatherseal-pdp__fullscreen-carousel {
        width: 100%;
        overflow: hidden;
    }

    .cmp-weatherseal-pdp__fullscreen-image-set {
        display: flex;
        transition: transform 0.35s ease;
    }

    .cmp-weatherseal-pdp__fullscreen-image-item {
        min-width: 100%;
        height: 100vw;
        background: #fff;
        overflow: hidden;
    }

    .cmp-weatherseal-pdp__fullscreen-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cmp-weatherseal-pdp__fullscreen-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        padding: 12px 0 0;
    }

    .cmp-weatherseal-pdp__fullscreen-dot {
        height: 3px;
        border-radius: 50px;
        background: rgba(0, 0, 0, 0.15);
        width: 20px;
        transition: all 0.3s ease-in;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .cmp-weatherseal-pdp__fullscreen-dot.active {
        background: #000;
        width: 40px;
    }

    /* Share tooltip mobile - bottom sheet */
    .cmp-weatherseal-pdp__share-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 199;
    }

    .cmp-weatherseal-pdp__share-overlay.active {
        display: block;
    }

    .cmp-weatherseal-pdp__share-tooltip {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 12px 12px 0 0;
        min-width: auto;
        padding: 20px 16px;
        z-index: 201;
    }

    .cmp-weatherseal-pdp__share-tooltip-arrow {
        display: none;
    }

    .cmp-weatherseal-pdp__share-tooltip-close {
        display: block;
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .cmp-weatherseal-pdp__colors-section {
        margin-bottom: 20px;
    }
}
