/* Product Detail Page Design Changes */
/* Default styles for .switch-label (unselected state) */
.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(119, 119, 119, 0.47);
    background-color: #f9f9f9;
    border: #e0e0e0 !important;
    color: #1e1e1e !important;
    transition: background-color 0.3s ease;
    position: relative;
    background-clip: padding-box;
    border-radius: 50px;
    padding: 2px;
}

/* Default styles for .switch-button (unselected state) */
.switch-button {
    position: relative;
    z-index: 1;
    padding: 4px 12px;
    line-height: 16px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    border-radius: 50px;
}

/* Hide radio inputs */
.switch-radio {
    display: none;
}

/* Gradient text for checked .switch-button */
.switch-radio:checked + .switch-button {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(
        106.22deg,
        #238cfc 11.43%,
        #7000fe 61.27%
    );
    background-color: transparent;
    border: none;
    border-radius: 50px;
}

/* Gradient background for checked .switch-label */
.switch-label:has(.switch-radio:checked) {
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.3) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    );
    border: 1px solid transparent;
    box-shadow: none;
    border-radius: 50px;
    position: relative;
}

/* Gradient border for checked .switch-label */
.switch-label:has(.switch-radio:checked)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(106.22deg, #238cfc 11.43%, #7000fe 61.27%);
    border-radius: 50px;
    padding: 1px;
    box-sizing: border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Hover effect for .switch-label (when not checked) */
.switch-label:not(:has(.switch-radio:checked)):hover {
    border: 1px solid transparent;
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.1) 11.43%,
        rgba(112, 0, 254, 0.1) 61.27%
    );
    box-shadow: none;
    color: #1e1e1e;
}

.switch-label:not(:has(.switch-radio:checked)):hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(106.22deg, #238cfc 11.43%, #7000fe 61.27%);
    border-radius: 50px;
    padding: 1px;
    box-sizing: border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Ensure hover doesn't override selected state */
.switch-label:has(.switch-radio:checked):hover {
    border: 1px solid transparent;
}

/* Selected styles (fallback for non-checked .selected state) */
.switch-label.text.selected {
    background-color: rgba(61, 81, 103, 1);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(61, 81, 103, 1);
    border-radius: 50px;
}

/* Ensure .selected state doesn't override gradients when checked */
.switch-label.text.selected:has(.switch-radio:checked) {
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.3) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    );
    border: 1px solid transparent;
    box-shadow: none;
    border-radius: 50px;
}

/* Selected and checked .switch-button */
.switch-label.text.selected .switch-radio:checked + .switch-button {
    background-color: transparent;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(
        106.22deg,
        #238cfc 11.43%,
        #7000fe 61.27%
    );
    border: none;
    border-radius: 50px;
}

/* Disabled styles */
.disabled-option {
    position: relative;
    pointer-events: none;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(119, 119, 119, 0.24);
    color: rgba(119, 119, 119, 0.46) !important;
    border-radius: 50px;
}

/* Container styles */
.custom-option-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 2px 8px 8px;
}

/* Default swatch option styles (unselected state) */
.swatch-opt .swatch-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(119, 119, 119, 0.47);
    background-color: #f9f9f9;
    color: #1e1e1e;
    transition: all 0.3s ease;
    position: relative;
    background-clip: padding-box;
    border-radius: 50px;
    padding: 2px;
}

/* Text swatch options */
.swatch-opt .swatch-option.text {
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(119, 119, 119, 0.47);
    background-color: #f9f9f9;
    border-radius: 50px;
    padding: 8px 16px;
    line-height: 16px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Color swatch options */
.swatch-opt .swatch-option.color {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 2px solid #f0f0f0;
}

/* Image swatch options */
.swatch-opt .swatch-option.image {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 2px solid #f0f0f0;
}

/* Selected state for all swatch types */
.swatch-opt .swatch-option.selected {
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
}

/* Gradient background for selected text swatches */
.swatch-opt .swatch-option.text.selected:not(.color) {
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.3) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    ) !important;
    background-color: transparent !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    background-image: linear-gradient(
        106.22deg,
        #238cfc 11.43%,
        #7000fe 61.27%
    ) !important;
}

/* Fix for text swatch background - separate background and text gradients */
.swatch-opt .swatch-option.text.selected:not(.color)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.3) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    );
    border-radius: inherit;
}

/* Gradient background for selected color swatches */
.swatch-opt .swatch-option.color.selected:not(.color) {
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.3) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    ) !important;
    background-color: transparent !important;
}

/* Gradient background for selected image swatches */
.swatch-opt .swatch-option.image.selected:not(.color) {
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.3) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    ) !important;
    background-color: transparent !important;
}

/* Gradient border for selected swatch options */
.swatch-opt .swatch-option.selected:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(106.22deg, #238cfc 11.43%, #7000fe 61.27%);
    border-radius: inherit;
    padding: 1px;
    box-sizing: border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Special border radius for color swatches */
.swatch-opt .swatch-option.color.selected::after {
    border-radius: 50%;
}

/* Special border radius for image swatches */
.swatch-opt .swatch-option.image.selected::after {
    border-radius: 8px;
}

/* Ensure content is visible above the gradient border */
.swatch-opt .swatch-option.selected *,
.swatch-opt .swatch-option.selected .swatch-option-link-layered {
    position: relative;
    z-index: 2;
}

/* Hover effect for swatch options (when not selected) */
.swatch-opt .swatch-option:not(.selected, .color):hover {
    border: 1px solid transparent !important;
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.1) 11.43%,
        rgba(112, 0, 254, 0.1) 61.27%
    ) !important;
    box-shadow: none !important;
    color: #1e1e1e !important;
    outline: none !important;
}

/* Remove any default outline on focus/hover */
.swatch-opt .swatch-option:hover,
.swatch-opt .swatch-option:focus,
.swatch-opt .swatch-option:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Gradient border for hover state */
.swatch-opt .swatch-option:not(.selected):hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(106.22deg, #238cfc 11.43%, #7000fe 61.27%);
    border-radius: inherit;
    padding: 1px;
    box-sizing: border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Special border radius for color swatches on hover */
.swatch-opt .swatch-option.color:not(.selected, .color):hover::before {
    border-radius: 50%;
}

/* Special border radius for image swatches on hover */
.swatch-opt .swatch-option.image:not(.selected, .color):hover::before {
    border-radius: 8px;
}

/* Ensure hover content is visible above the gradient border */
.swatch-opt .swatch-option:not(.selected, .color):hover *,
.swatch-opt
    .swatch-option:not(.selected, .color):hover
    .swatch-option-link-layered {
    position: relative;
    z-index: 1;
}

/* Disabled swatch options - keep original Magento styling */
.swatch-opt .swatch-option.disabled {
    position: relative;
    pointer-events: none;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(119, 119, 119, 0.24);
    color: rgba(172, 210, 22, 0.46) !important;
    background-color: #f9f9f9;
}

/* Ensure disabled options don't get gradient effects */
.swatch-opt .swatch-option.disabled:hover,
.swatch-opt .swatch-option.disabled:focus,
.swatch-opt .swatch-option.disabled:active {
    background: #f9f9f9 !important;
    border: 1px solid transparent !important;
    box-shadow: inset 0 0 0 1px rgba(119, 119, 119, 0.24) !important;
}

.swatch-opt .swatch-option.disabled::before,
.swatch-opt .swatch-option.disabled::after {
    display: none !important;
}

/* Swatch attribute labels */
.swatch-opt .swatch-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* More info tooltip adjustments */
.swatch-opt .swatch-more {
    position: relative;
    z-index: 2;
}

/* Wishlist Button  */
.product-addto-links .action.towishlist,
.action.tocompare,
.product-addto-links .action.tocompare,
.moved-add-to-links .action.tocompare {
    border-radius: 50px;
}

/* Add to cart color button */
.action.tocart {
    background: linear-gradient(
        106.22deg,
        #238cfc 11.43%,
        #7000fe 61.27%
    ) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
}

#product-options-wrapper {
    float: left;
    width: 100%;
}

.options-pdp {
    float: left;
    width: 50%;
}

.sizechart-pdp {
    float: left;
    width: 50%;
    margin-top: 10px;
}

.radio-swatch {
    display: flex;
    align-items: center;
    padding: 8px 0px;
}

.swatch-attribute-label {
    font-size: 14px !important;
}

.product-options-wrapper .swatch-attribute-label {
    padding: 0px !important;
}

button.action-primary.action-accept {
    font-size: 1em !important;
    padding: 0.8em 2em !important;
}

@media all and (min-width: 992px), print {
    .column.main {
        min-height: auto !important;
    }
}

.catalog-product-view div.mage-error {
    position: initial !important;
}

/* Size Guide */
.product-size-chart span {
    display: block;
    float: left;
    height: 10px;
    width: 16px;
    margin-right: 4px;
    gap: 2px;
}

/* Size Chart Modal */
.modal-popup .action-close,
.modal-slide .action-close {
    top: 28px !important;
}

.modal-popup .modal-inner-wrap {
    width: 60% !important;
}

/* Currency Dropdown */
.page-header .switcher .options ul.dropdown {
    min-width: 45px !important;
}

/* Product Page */
.product-options-wrapper .swatch-opt {
    margin-top: 1rem !important;
}

.product-button {
    background: linear-gradient(106.22deg, #238cfc 11.43%, #7000fe 61.27%);
}

/* Header Background color changes */
.page-header .header-main {
    color: #171c26 !important;
    background: linear-gradient(
            106.22deg,
            rgba(35, 140, 252, 0.4) 11.43%,
            rgba(112, 0, 254, 0.3) 61.27%
        ),
        #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Footer Background color changes */
footer.page-footer {
    color: #171c26 !important;
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.4) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    ) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    min-height: 200px !important;
}

.page-footer .footer,
.page-footer .footer-middle,
.page-footer .footer-bottom {
    background: transparent !important;
}

.share-links .share-facebook:hover {
    background: #1877f2 !important;
}

.share-links .share-instagram:hover {
    background: #e4405f !important;
}

/* Nav Bar Menu Hover Effect */
nav.navigation.sw-megamenu ul li {
    transition: all 0.3s ease;
}

nav.navigation.sw-megamenu ul li:hover {
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.4) 11.43%,
        rgba(112, 0, 254, 0.3) 61.27%
    ) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    transform: scale(0.9);
}

/* Breadcrumbs changes */
.breadcrumbs .items {
    background-color: initial !important;
}

.page-wrapper > .breadcrumbs .items {
    color: #393939 !important;
}

/* Home Page layout width */
.layout-fullwidth .container {
    padding-left: 72px !important;
    padding-right: 72px !important;
}

/* Sub Title Size */
h2 {
    font-size: 28px !important;
}

/* Category Padding */
.category-flex {
    margin-top: 12px;
    margin-bottom: 10px;
}

/* Footer Sapcing */
.footer .footer-bottom {
    padding: 1rem 0 !important;
}

.footer-middle > .container {
    position: relative;
    padding-top: 4rem;
    padding-bottom: initial !important;
}

/* Owl Carousel Prev Next Btn Designs */
.porto-products .owl-carousel .owl-nav .owl-next {
    right: -28px !important;
}

.porto-products .owl-carousel .owl-nav .owl-prev {
    left: -28px !important;
}

.porto-products .owl-carousel.nav-style-4 .owl-nav [class*="owl-"] {
    padding: 3px !important;
    font-size: 20px !important;
    border-radius: 50px;
    background: linear-gradient(
        106.22deg,
        #238cfc 11.43%,
        #7000fe 61.27%
    ) !important;
    color: white !important;
}

/* Customize Page Product Category Alignment */
.owl-carousel.owl-loaded {
    margin-bottom: 50px;
}

.cart.actions button.action,
.cart-discount .actions-toolbar button.action {
    background: linear-gradient(
        106.22deg,
        #238cfc 11.43%,
        #7000fe 61.27%
    ) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
}

.action.primary {
    background: linear-gradient(
        106.22deg,
        #238cfc 11.43%,
        #7000fe 61.27%
    ) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
}

.limiter {
    gap: 10px;
}

.box-tocart {
    margin: 0 50px;
}

.products-grid.wishlist .product-item .fieldset .product-item-actions {
    padding-left: 20px;
}

/* --------------------- Shoppping Cart UI Changes --------------------- */
.cyos-cart-table thead {
    background-color: #f1f4f9;
}

.cyos-cart-table-wrapper {
    border: 2px solid #e7e7e7;
    padding: 24px 30px;
    border-radius: 24px;
}

.cart-summary {
    border-radius: 24px;
}

.cart-discount .actions-toolbar element.style {
    padding-left: 12px !important;
}

textarea {
    border-radius: 12px !important;
}

select {
    border-radius: 12px !important;
}

.fieldset
    > .field
    input.input-text:not(.product-add-form .field input.input-text) {
    line-height: 32px;
    border-radius: 12px !important;
}

#discount-coupon-form #coupon_code {
    border-radius: 24px;
    height: 43px;
}

.cart-discount .actions-toolbar {
    padding-left: 12px;
}

.opc-wrapper {
    border-radius: 24px;
}

.opc-block-summary {
    border-radius: 24px;
}

.opc-wrapper .shipping-address-item.selected-item:after {
    background: #5e21fe;
    height: 26px;
    width: 29px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 8px;
}

.opc-wrapper .shipping-address-item.selected-item {
    border-color: #5e21fe;
    border-radius: 12px;
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.2) 11.43%,
        rgba(112, 0, 254, 0.2) 61.27%
    );
    color: #171c26;
}

.page-main-inner .opc-progress-bar-item._active > span:before {
    background: #5e21fe;
    color: #171c26;
}

.page-main-inner .opc-progress-bar-item._active:before {
    background: #5e21fe;
}

#newsletter_popup input[type="email"] {
    border-radius: 24px !important;
}

#newsletter_popup form.subscribe {
    gap: 10px;
}

.sg-main-container .card-title {
    color: #222529;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
}

.sg-main-container .card-title h2 {
    font-weight: 600;
    font-size: 28px;
}

.wpb_content_element,
.m_content_element {
    margin-bottom: 56px !important;
}

/* ------------------- Trending Design ------------------- */
#trending-designs .trending-grid.limited-designs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#trending-designs .design-card {
    flex: 0 1 calc(25% - 20px);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    position: relative;
}

#trending-designs .design-thumbnail {
    width: auto;
    height: 175px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 10px;
}

#trending-designs .design-info {
    padding: 10px;
}

#trending-designs .design-category {
    margin: 5px 0;
    font-size: 16px;
    color: #171c26;
}

#trending-designs .design-name {
    margin: 5px 0 2px;
    font-size: 18px;
    font-weight: 600;
}

#trending-designs .design-vendor {
    margin: 0;
    font-size: 16px;
    color: #6811fe;
}

#trending-designs .design-sales {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: #6200ea;
}

/* Hover effect for cards */
#trending-designs .design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#trending-designs .design-card:hover .design-info {
    background: linear-gradient(
        106.22deg,
        rgba(35, 140, 252, 0.2) 11.43%,
        rgba(112, 0, 254, 0.2) 61.27%
    );
}

/* Hide navigation arrows by default */
#trending-designs .owl-nav {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Show on hover */
#trending-designs:hover .owl-nav {
    opacity: 1;
    visibility: visible;
}

/* Optional: Position arrows nicely */
#trending-designs .owl-nav button.owl-prev,
#trending-designs .owl-nav button.owl-next {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#trending-designs .owl-nav button.owl-prev {
    left: -15px;
}

#trending-designs .owl-nav button.owl-next {
    right: -15px;
}

/* Hide disabled buttons */
#trending-designs .owl-nav button.disabled {
    display: none;
}

/* ------------------- Latest Products ------------------- */
#latest-products .artist-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border: 3px solid #f1f4f9;
}

#latest-products .artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#latest-products .artist-banner {
    width: auto;
    height: 175px;
    background-size: cover;
    background-repeat: no-repeat;
}

#latest-products .artist-profile-img {
    position: absolute;
    top: 130px;
    left: 20%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
}

#latest-products .artist-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#latest-products .artist-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-top: 50px;
    margin-bottom: 20px;
}

#latest-products .artist-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#latest-products .artist-name {
    margin: 5px 0 2px;
    font-size: 18px;
    font-weight: 600;
    color: #171c26;
}

#latest-products .artist-country {
    font-size: 14px;
    color: #666;
}

#latest-products .artist-action {
    margin-top: 10px;
    margin-bottom: 20px;
}

#latest-products .artist-action {
    display: inline-block;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6200ea;
    border: 2px solid #6811fe;
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
}

/* Hide nav icons by default */
#latest-products.recent-artists .owl-nav {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show nav icons on hover */
#latest-products.recent-artists:hover .owl-nav {
    opacity: 1;
    visibility: visible;
}

/* Optional: Position and style nav icons (adjust as needed) */
#latest-products.recent-artists .owl-nav .owl-prev,
#latest-products.recent-artists .owl-nav .owl-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

#latest-products.recent-artists .owl-nav .owl-prev {
    left: -15px;
}

#latest-products.recent-artists .owl-nav .owl-next {
    right: -15px;
}