/* ==========================================================================
   Product Showcase Switcher Styles
   ========================================================================== */

.product-showcase {
    position: relative;
    padding: 40px 0;
    color: #ffffff;
    background: linear-gradient(180deg, var(--showcase-bg-color) 0%, #0c0407 100%);
    transition: background 0.8s cubic-bezier(0.25, 1, 0.25, 1);
    overflow: hidden;
}

.product-showcase__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 40px;
}

.product-showcase__left {
    flex: 1 1 400px;
}

.product-showcase__right {
    flex: 1 1 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Typography & Left Content */
.product-showcase__title {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 300;
    font-style: italic;
    max-width: 460px;
    line-height: 55px;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.product-showcase__description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #ffffff;
}

.product-showcase__description p {
    margin: 0 0 8px 0;
}

/* Selector List */

.product-showcase__border {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    max-width: 438px;
    padding: 8px;
}

/* Active highlight segments positioned directly ON the outer border line of .product-showcase__border */
.product-showcase__active-indicator {
    position: absolute;
    top: 0;
    left: -1px;
    right: -1px;
    height: var(--active-height, 60px);
    transform: translateY(var(--active-top, 0px));
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.25, 1), height 0.4s cubic-bezier(0.25, 1, 0.25, 1);
    pointer-events: none;
    z-index: 10;
}

/* Left vertical white border line segment ON the outer border */
.product-showcase__active-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Right vertical white border line segment ON the outer border */
.product-showcase__active-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
}

.product-showcase__list {
    display: flex;
    flex-direction: column;
}

.product-showcase__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 19px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.25, 1);
    position: relative;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-showcase__item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-showcase__item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.product-showcase__item:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.product-showcase__item.is-active {
    background: linear-gradient(90deg, var(--item-highlight-color, #d8286a) 0%, rgba(255, 255, 255, 0.04) 95%) !important;
    color: #ffffff !important;
    font-weight: 800;
}

.product-showcase__item-title {
    max-width: 85%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-showcase__item-arrow {
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.25, 1);
    flex-shrink: 0;
}

.product-showcase__item:hover .product-showcase__item-arrow,
.product-showcase__item.is-active .product-showcase__item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Showcase Panels & Images */
.product-showcase__showcase-wrapper {
    width: 100%;
    position: relative;
    height: 550px;
}

.product-showcase__panel {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.25, 1);
    z-index: 1;
}

.product-showcase__panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 2;
}

.product-showcase__image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.product-showcase__main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    background: transparent;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
}

/* Central Plus / Quick View Button (Morphing Capsule) */
.product-showcase__plus-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #000000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
    z-index: 10;
    overflow: visible;
    padding: 0 16px;
    white-space: nowrap;
}

/* Inner Concentric Ring & Border Arcs Wrapper (Inside Button) */
.product-showcase__plus-outer {
    position: absolute;
    inset: 5px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    pointer-events: none;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Normal State: Top-Left curved arc (INSIDE circle button) */
.product-showcase__plus-outer::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 16px;
    height: 16px;
    border-top: 1.5px solid #000000;
    border-left: 1.5px solid #000000;
    border-top-left-radius: 18px;
    transform: translate(0, 0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Normal State: Bottom-Right curved arc (INSIDE circle button) */
.product-showcase__plus-outer::after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 16px;
    height: 16px;
    border-bottom: 1.5px solid #000000;
    border-right: 1.5px solid #000000;
    border-bottom-right-radius: 18px;
    transform: translate(0, 0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

/* Plus icon inside circle */
.product-showcase__plus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.25, 1);
}

.product-showcase__plus-icon svg {
    width: 18px;
    height: 18px;
    stroke: #000000;
}

/* Text inside pill */
.product-showcase__plus-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    color: #000000;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.25, 1, 0.25, 1), opacity 0.3s ease;
}

/* HOVER MORPH STATE */
.product-showcase__plus-btn:hover {
    width: 145px;
    height: 56px;
    background: #ffffff;
    border-color: #fff;
    transform: translate(-50%, -50%);
}

.product-showcase__plus-btn:hover .product-showcase__plus-icon {
    display: none;
    opacity: 0;
}

.product-showcase__plus-btn:hover .product-showcase__plus-text {
    max-width: 100px;
    opacity: 1;
}

/* Hover State: Top-Left arc slides & morphs to Top-Center straight line bar */
.product-showcase__plus-btn:hover .product-showcase__plus-outer::before {
    top: 0px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 28px;
    height: 0;
    border-left-color: transparent;
    border-top-left-radius: 0;
    top: -2px;
}

/* Hover State: Bottom-Right arc slides & morphs to Bottom-Center straight line bar */
.product-showcase__plus-btn:hover .product-showcase__plus-outer::after {
    bottom: 0px;
    right: 50%;
    transform: translate(50%, 0);
    bottom: -2px;
    width: 28px;
    height: 0;
    border-right-color: transparent;
    border-bottom-right-radius: 0;
}

/* Floating Decor Images */
.product-showcase__decor {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    width: 130px;
}

.product-showcase__decor img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-showcase__decor--left {
    top: 20%;
    left: 0;
    animation: float-left 8s ease-in-out infinite;
}

.product-showcase__decor--right {
    bottom: 20%;
    right: 0;
    animation: float-right 8s ease-in-out infinite;
}

@keyframes float-left {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(-4deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes float-right {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(4deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.showcase-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    transition: visibility 0.4s ease;
}

.showcase-drawer.is-open {
    visibility: visible;
}

.showcase-drawer__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 0.4s ease;
}

.showcase-drawer.is-open .showcase-drawer__overlay {
    opacity: 1;
}

.showcase-drawer__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 720px;
    max-width: 90%;
    background-color: #ffffff;
    color: #333333;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.25, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.showcase-drawer.is-open .showcase-drawer__content {
    transform: translateX(0);
}

.showcase-drawer__close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #777777;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 100;
}

.showcase-drawer__close-btn:hover {
    color: #000000;
}

.showcase-drawer__close-btn svg {
    width: 24px;
    height: 24px;
}

/* Drawer Body Structure */
.showcase-drawer__body {
    padding: 60px 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.showcase-drawer__gallery {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-drawer__gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.showcase-drawer__gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.showcase-drawer__info {
    flex: 1.2 1 320px;
    display: flex;
    flex-direction: column;
}

.showcase-drawer__title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #111111;
}

.showcase-drawer__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #777777;
    margin-bottom: 20px;
}

.showcase-drawer__separator {
    color: #cccccc;
}

.showcase-drawer__description {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 24px;
}

.showcase-drawer__description p {
    margin: 0 0 10px 0;
}

/* Stock Status */
.showcase-drawer__stock {
    margin-bottom: 24px;
}

.showcase-drawer__stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
}

.showcase-drawer__stock-badge--instock {
    background-color: #eaf6ec;
    color: #2b7a3a;
}

.showcase-drawer__stock-badge svg {
    width: 16px;
    height: 16px;
}

/* Variant Picker */
.showcase-drawer__variants {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 20px 0;
    margin-bottom: 24px;
}

.showcase-drawer__option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.showcase-drawer__option-label {
    font-size: 13px;
    color: #777777;
}

.showcase-drawer__option-label strong {
    color: #111111;
}

.showcase-drawer__option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-drawer__option-value-btn {
    padding: 10px 24px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.showcase-drawer__option-value-btn:hover {
    border-color: #000000;
}

.showcase-drawer__option-value-btn.is-selected {
    border-color: #000000;
    background-color: #000000;
    color: #ffffff;
}

/* Price Container */
.showcase-drawer__price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 24px;
}

.showcase-drawer__price {
    font-size: 24px;
    font-weight: 800;
    color: #111111;
}

.showcase-drawer__price-compare {
    font-size: 16px;
    color: #999999;
    text-decoration: line-through;
}

.showcase-drawer__qty-row {
    margin-bottom: 20px;
}

.showcase-drawer__quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 8px;
    overflow: hidden;
}

.showcase-drawer__qty-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.showcase-drawer__qty-btn:hover {
    background-color: #f5f5f5;
}

.showcase-drawer__qty-input {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #111111;
    background: transparent;
}

/* Remove default spin buttons */
.showcase-drawer__qty-input::-webkit-outer-spin-button,
.showcase-drawer__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons */
.showcase-drawer__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-drawer__add-to-cart-btn {
    width: 100%;
    height: 52px;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.showcase-drawer__add-to-cart-btn:hover {
    background-color: #222222 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.showcase-drawer__buy-now-btn {
    width: 100%;
    background-color: #5a31f4;
    color: #ffffff;
    border-radius: 8px;
    height: 48px;
    font-size: 15px;
}

.showcase-drawer__buy-now-btn:hover {
    background-color: #431ec5;
}

.showcase-drawer__more-payment {
    margin-top: 15px;
    text-align: center;
}

.showcase-drawer__more-payment-link {
    font-size: 13px;
    color: #777777;
    text-decoration: underline;
}

/* 2K Screens (1600px - 2199px) */
@media (min-width: 1600px) and (max-width: 2199px) {
    .product-showcase {
        padding: 90px 0;
        min-height: 720px;
    }

    .product-showcase__grid {
        max-width: 1600px;
        margin: 0 auto;
    }

    .product-showcase__showcase-wrapper {
        height: 620px;
    }

    .product-showcase__title {
        font-size: 48px;
        line-height: 58px;
        max-width: 540px;
    }

    .product-showcase__border {
        max-width: 480px;
    }

    .product-showcase__decor {
        max-width: 25%;
    }
}

/* 4K Screens & Ultra-wide (2200px and up) */
@media (min-width: 2200px) {
    .product-showcase {
        padding: 120px 0;
        min-height: 860px;
    }

    .product-showcase__grid {
        max-width: 1800px;
        margin: 0 auto;
    }

    .product-showcase__showcase-wrapper {
        height: 720px;
    }

    .product-showcase__title {
        font-size: 54px;
        line-height: 66px;
        max-width: 620px;
    }

    .product-showcase__description {
        font-size: 20px;
        line-height: 30px;
        max-width: 620px;
    }

    .product-showcase__border {
        max-width: 540px;
    }

    .product-showcase__item {
        font-size: 22px;
        padding: 20px 28px;
    }

    .product-showcase__decor {
        max-width: 28%;
    }
}

@media (min-width: 750px) and (max-width: 1024px) {
    .product-showcase {
        padding: 50px 0;
    }

    .product-showcase__grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 30px;
        margin: 0 24px;
        align-items: center;
    }

    .product-showcase__left {
        flex: 1 1 45%;
        max-width: 50%;
    }

    .product-showcase__right {
        flex: 1 1 50%;
        max-width: 50%;
    }

    .product-showcase__title {
        font-size: 32px;
        line-height: 40px;
    }

    .product-showcase__border {
        max-width: 100%;
        width: 100%;
    }

    .product-showcase__showcase-wrapper {
        height: 420px;
    }

    .product-showcase__main-image {
        max-height: 100%;
    }

    .product-showcase__decor {
        width: 90px;
    }
}

@media (max-width: 749px) {
    .product-showcase {
        padding: 40px 0;
    }

    .product-showcase__grid {
        margin: 0 16px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .product-showcase__left,
    .product-showcase__right {
        flex: 1 1 100%;
        width: 100%;
    }

    .product-showcase__border {
        max-width: 100%;
        width: 100%;
    }

    .product-showcase__title {
        font-size: 28px;
        line-height: 36px;
    }

    .product-showcase__showcase-wrapper {
        height: 360px;
    }

    .product-showcase__decor {
        width: 70px;
    }
}

@media (max-width: 749px) {
    .showcase-drawer__body {
        padding: 50px 24px;
        gap: 30px;
    }

    .showcase-drawer__gallery {
        flex: 1 1 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
    }

    .showcase-drawer__gallery-item {
        width: 120px;
        flex-shrink: 0;
    }

    .showcase-drawer__info {
        flex: 1 1 100%;
    }
}