.ec-productRole {
    margin-top: 60px;
    background-color: #fff;
}

.slick-slider {
    margin-bottom: 16px;
}

/* Gift Wrap Styles */
.gift-wrap-content {
    display: none;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.gift-wrap-header {
    cursor: pointer;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0;
    background-color: #fff;
    transition: background-color 0.2s;
}

.gift-wrap-header:hover {
    background-color: #f5f5f5;
}

.gift-wrap-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-wrap-toggle {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}

.gift-wrap-options {
    margin-top: 16px;
}

.gift-wrap-option {
    margin-bottom: 8px;
}

.gift-wrap-option input[type="radio"] {
    margin-right: 8px;
}

.gift-wrap-message {
    margin: 4px;
    padding: 16px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    line-height: 1.6;
    color: #333;
}

/* Slick Slider Customizations */
.slick-slide {
    /* Remove any default slick styling that might be too prominent */
}

.slick-current {
    /* Customize current slide styling if needed */
}

.slick-active {
    /* Customize active slide styling if needed */
}

/* Hide or minimize slick-specific styling */
.slick-slide:not(.slick-current) {
    /* Optional: reduce opacity of non-current slides */
}

.slick-dots {
    position: absolute;
    bottom: -45px;
    display: block;
    width: 100%;
    padding: 0;
    list-style: none;
    text-align: center;
}

.slick-dots li {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    padding: 0;

    cursor: pointer;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 20px;
    height: 20px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}

.slick-dots li button:hover,
.slick-dots li button:focus {
    outline: none;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
    opacity: 1;
}

.slick-dots li button:before {
    content: " ";
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    text-align: center;
    opacity: .25;
    background-color: black;
    border-radius: 50%;

}

.slick-dots li.slick-active button:before {
    opacity: .75;
    background-color: black;
}

.slick-dots li button.thumbnail img {
    width: 0;
    height: 0;
}

.color-selection, .number-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.color-swatch, .number-swatch {
    border: 2px solid #eee;
    border-radius: 6px;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch {
    width: 72px;
    font-size: 16px;
}

.number-swatch {
    width: 48px;
    height: 48px;
    line-height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
}

.color-swatch:hover, .number-swatch:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.color-swatch.active, .number-swatch.active {
    border-color: #E6002D;
    box-shadow: 0 2px 4px rgba(230, 0, 45, 0.2);
}

.color-swatch img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    margin-bottom: 4px;
    border-radius: 4px;
}

.no-numbers {
    color: #999;
    font-style: italic;
}

#classcategory_id1,
#classcategory_id2,
.product-classcategory-select {
    appearance: none;
    -webkit-appearance: none;
    width: 235px;
    height: 45px;
    font-size: 16px;
    border-radius: 4px;
    border: 1.2px solid #888;
    padding: 0 48px 0 16px;
    font-weight: normal;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="black" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 16px center/18px 18px;
    box-sizing: border-box;
    position: relative;
    background-clip: padding-box;
}
#classcategory_id1:focus,
#classcategory_id2:focus,
.product-classcategory-select:focus {
    border-color: #E6002D;
}
#classcategory_id1::-ms-expand,
#classcategory_id2::-ms-expand,
.product-classcategory-select::-ms-expand {
    display: none;
}
#classcategory_id1 option,
#classcategory_id2 option,
.product-classcategory-select option {
    font-weight: normal;
}
/* Arrow divider */
#classcategory_id2:after {
    content: '';
    position: absolute;
    top: 8px;
    right: 40px;
    width: 1px;
    height: 29px;
    background: #888;
    z-index: 2;
}

.quantity-box {
    display: flex;
    width: 235px;
    height: 45px;
    border: 1.2px solid #888;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}
#quantity-minus, #quantity-plus {
    width: 45px;
    height: 100%;
    font-size: 20px;
    border: none;
    background: none;
    font-weight: normal;
    cursor: pointer;
    transition: background 0.2s;
    color: #23272B;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 45px;
    text-align: center;
    flex: none;
    align-items: center;
    justify-content: center;
    display: flex;
}
#quantity-minus {
    border-right: 1px solid #888;
}
#quantity-plus{
    border-left: 1px solid #888;
}
#quantity {
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: normal;
    width: 100px;
    text-align: center;
    height: 100%;
    background: none;
    color: #23272B;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 45px;
    flex: 1;
    cursor: default;
}
#quantity-minus:hover, #quantity-plus:hover {
    background: #f5f5f5;
}

.label-col {
    width: 60px;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.2em;
    color: #555666;
    line-height: 1.1;
    text-align: left;
    display: flex;
    align-items: center;
}

.quantity-row {
    margin-bottom: 16px;
    display: flex !important;
    align-items: center !important;
    gap: 32px;
    flex-direction: row !important;
}

.quantity-row .label-col {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: auto !important;
    min-width: 60px !important;
}



.slide-item img {
    border: 1.5px solid #CCCCCC;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.item_nav .slideThumb img {
    border: 1.5px solid #CCCCCC;
    border-radius: 4px;
    transition: border 0.2s;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 20px;
}
.item_nav .slideThumb.active img {
    border: 1px solid #E6002D;
}

#quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions-container {
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
}

.product-action-buttons {
    display: flex;
    width: 100%;
    gap: 16px;
    margin-bottom: 24px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    flex: 1 1 0;
    min-width: 0;
}

.action-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    opacity: 0.85;
}

.action-button svg {
    width: 24px;
    height: 24px;
}

.add-to-cart-btn {
    background-color: #E6002D;
    color: #fff;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Debug: Make sure button is visible and clickable */
.add-to-cart-btn:hover {
    background-color: #cc0026 !important;
    transform: scale(1.02) !important;
}

/* Debug: Add a border to see the button clearly */
/* .add-to-cart-btn {
    border: 2px solid yellow !important;
} */

.add-to-favorite-btn {
    background-color: #555666;
    color: #fff;
}

.add-to-favorite-btn.is-favorite {
    background-color: #555666;
}

.add-to-favorite-btn.is-favorite svg {
    fill: #E6002D;
}

.add-to-favorite-btn.is-favorite svg path {
    stroke: #E6002D;
    fill: #E6002D;
}

.gift-wrap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    background-color: #EAEAEA;
    height: 60px;
    border-radius: 4px;
}

.gift-wrap-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.gift-wrap-title img {
    width: 24px;
    height: 24px;
}

.gift-wrap-toggle {
    font-size: 28px;
    font-weight: 300;
    color: #333;
}

.gift-wrap-content {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #ddd;
    display: none; /* Hidden by default */
}

.gift-wrap-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 12px;
}

.gift-wrap-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gift-wrap-option {
    display: flex;
    align-items: center;
}

.gift-wrap-option input {
    margin-right: 10px;
}

.gift-wrapping-accordion {
    background-color: #EAEAEA;
    border-radius: 8px;
    margin-top: 16px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    height: 60px;
    transition: background-color 0.3s;
}


.product-tag-list {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.product-tag-pill {
    display: inline-block;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    color: #fff;
}

.product-tag-pill--new {
    background: #E6002D;
}

.product-tag-pill--sale {
    background: #fff;
    border: 2px solid #E6002D;
    color: #E6002D;
}

.product-tag-pill--outlet {
    background: #E6B600;
}

.product-tag-pill--dark,
.product-tag-pill--default {
    background: #23272B;
    color: #fff;
}

.gift-wrap-content .gift-wrap-option label {
    margin-left: 8px;
    cursor: pointer;
}

.gift-wrap-message {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.product-intro-text {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 32px;
    padding-left: 16px;
    margin-top: 36px;
}

.product-intro-text p:last-child {
    margin-top: 1em;
}

.product-extended-info {
    background-color: #f5f5f5;
    padding: 32px;
    margin-top: 40px;
    margin-left: 16px;
}


.product-specs-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #23272B;
    margin-top: 16px;
    line-height: 1.6;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dddddd;
}

.product-specs-table th,
.product-specs-table td {
    border: 1px solid #dddddd;
    padding: 16px;
    font-size: 13px;
    vertical-align: middle;
}

.product-specs-table th {
    background-color: #EAEAEA;
    font-weight: bold;
    text-align: left;
    width: 25%;
}

.product-specs-table td {
    background-color: #fff;
}

.specs-disclaimer {
    font-size: 13px;
    color: #555;
    margin-top: 16px;
    line-height: 1.6;
}

.usage-guide-button-container {
    margin-top: 32px;
    margin-bottom: 120px;
    padding-left: 16px;
}

.usage-guide-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #4C4A5E;
    color: #fff;
    text-align: center;
    padding: 18px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.usage-guide-button:hover {
    opacity: 0.85;
    color: #fff;
}

.usage-guide-button::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    position: absolute;
    right: 24px;
}

.ec-productRole__profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-profile {
    font-family: "Noto Sans JP", sans-serif;
}

.product-code {
    color: #23272B;
    font-size: 14px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 34px;
    font-weight: bold;
    color: #23272B;
    margin-bottom: 16px;
}

.product-price-section {
    margin-bottom: 16px;
}

.product-regular-price {
    color: #23272B;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-discount-badge {
    background: #E86C6C;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.95rem;
    margin-left: 8px;
}

#price-display {
    font-size: 2rem;
    color: #E6002D;
    font-weight: bold;
    margin-bottom: 16px;
    display: none;
}

#original-price-display {
    display: none;
}

#fallback-price-display {
    font-size: 2rem;
    color: #E6002D;
    font-weight: bold;
    margin-bottom: 16px;
}

.product-price-tax {
    font-size: 1rem;
    color: #23272B;
    font-weight: normal;
}

.product-option-row {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.product-option-select {
    width: 235px;
    position: relative;
}

.product-select-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.product-option-soldout {
    width: 235px;
    color: #999;
}

.product-quantity-row {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.product-quantity-label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
}

.product-hidden-field {
    display: none;
}

.product-coupon-section {
    width: 100%;
    margin-bottom: 24px;
}

.product-favorite-form {
    display: none;
}

.product-logo--half {
    width: 50% !important;
}

.gift-wrap-accordion {
    width: 100%;
}

.gift-wrap-message--error {
    color: red;
}

.product-logo-container {
    margin-bottom: 16px;
}

.related-products-section {
    margin-top: 60px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: url('../icon/side-icon.svg');
    display: inline-block;
    width: 10px;
    height: 20px;
    margin-right: 12px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.related-product-item a {
    text-decoration: none;
    color: inherit;
}

.related-product-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: 1px solid #eee;
    margin-bottom: 16px;
}

.related-product-item .product-code {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.related-product-item .product-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}

.related-product-item .product-price {
    font-size: 15px;
    font-weight: bold;
}

.related-product-item .product-price span {
    font-size: 12px;
    font-weight: normal;
    color: #888;
    margin-left: 4px;
}

.promo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 100px;
}

.promo-banners img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Related Features Section */
.related-features-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.related-feature-content {
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 32px;
    line-height: 1.6;
    color: #333;
}

.related-feature-content:last-child {
    margin-bottom: 0;
}

.related-feature-content h1,
.related-feature-content h2,
.related-feature-content h3,
.related-feature-content h4,
.related-feature-content h5,
.related-feature-content h6 {
    color: #23272B;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: bold;
}

.related-feature-content p {
    margin-bottom: 16px;
}

.related-feature-content p:last-child {
    margin-bottom: 0;
}

.related-feature-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}

.related-feature-content ul,
.related-feature-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.related-feature-content li {
    margin-bottom: 8px;
}

.related-feature-content blockquote {
    border-left: 4px solid #E6002D;
    padding-left: 16px;
    margin: 16px 0;
    font-style: italic;
    color: #666;
}

.related-feature-content a {
    color: #E6002D;
    text-decoration: none;
}

.related-feature-content a:hover {
    text-decoration: underline;
}

.related-feature-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.related-feature-content table th,
.related-feature-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.related-feature-content table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

#form1 {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.ec-grid2__cell {
    width: 100%;
    box-sizing: border-box;
}

/* Modal Styles */
.ec-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ec-modal.show {
    display: block;
}

.ec-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ec-modal-wrap {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    padding: 32px 48px;
    width: 1200px;
    height: 266px;
    max-width: 1200px;
    min-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
    box-sizing: border-box;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ec-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ec-modal-close .ec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.ec-modal-close svg {
    width: 16px;
    height: 16px;
}

#ec-modal-header {
    font-size: 18px;
    font-weight: normal;
    color: #23272B;
    text-align: center;
    padding-right: 40px;
    padding-top: 20px;
}

.ec-modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ec-role {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0 24px; /* Left/right padding around buttons */
    align-items: center;
    padding-bottom: 73px;
}

.ec-inlineBtn--cancel,
.ec-inlineBtn--action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px; /* Left/right padding inside buttons */
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 320px;
    height: 60px;
    white-space: nowrap;
    flex: none;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.ec-inlineBtn--cancel {
    background-color: #555666;
    color: #fff;
}

.ec-inlineBtn--cancel:hover {
    background-color: #444555;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.ec-inlineBtn--action {
    background-color: #E6002D;
    color: #fff;
}

.ec-inlineBtn--action:hover {
    background-color: #cc0026;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 0, 45, 0.3);
    color: #fff;
}

.ec-inlineBtn--cancel svg,
.ec-inlineBtn--action svg {
    width: 16px;
    height: 16px;
}

/* Image Zoom Modal Styles */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.image-zoom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform: translate(var(--pan-x, 0px), var(--pan-y, 0px));
}

.zoom-modal-image.zoomed {
    cursor: zoom-out;
    transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(2);
    cursor: grab;
    transition: transform 0.05s linear;
}

.zoom-modal-image.zoomed:active {
    cursor: grabbing;
}

.zoom-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.zoom-modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.zoom-modal-nav-icon {
    width: 22px;
    height: 22px;
}

.zoom-modal-prev {
    left: 16px;
}

.zoom-modal-next {
    right: 16px;
}

.zoom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease;
}

.zoom-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.zoom-modal-close::before {
    content: '×';
    font-size: 28px;
    line-height: 1;
}

.zoom-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* Make main product images clickable */
.slide-item img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.slide-item img:hover {
    opacity: 0.9;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .ec-modal-wrap {
        width: calc(100vw - 40px);
        height: auto;
        min-height: 200px;
        padding: 24px;
        margin: 20px;
    }
    
    .ec-role {
        flex-direction: column;
        gap: 12px;
    }
    
    .ec-inlineBtn--cancel,
    .ec-inlineBtn--action {
        width: 100%;
        height: 50px;
        padding: 0 20px;
        font-size: 16px;
    }
    
    #ec-modal-header {
        font-size: 18px;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .ec-modal-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }
    
    .zoom-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .zoom-instructions {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Product Image Gallery Styles */
.ec-sliderItemRole {
    position: relative;
    margin-bottom: 20px !important; /* Override the 24px margin from style.css */
}

.item_visual-container {
    position: relative;
}

.item_visual-container .item_visual {
    position: relative;
    width: 100%;
    height: auto;
}

.item_visual-container .item_visual .slick-slider {
    width: 100%;
}

.item_visual-container .item_visual .slick-track {
    width: 100%;
}

.item_visual-container .item_visual .slick-slide {
    width: 100%;
}

.product-image-nav-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin: 0;
}

.product-image-nav-btn:hover {
    background: #333;
}

.product-image-nav-btn img {
    width: 16px;
    height: 16px;
}

.product-image-nav-left {
    left: 10px;
}

.product-image-nav-left img {
    transform: rotate(180deg);
}

.product-image-nav-right {
    right: 10px;
}

.product-image-nav-btn[style*="display: none"] {
    display: none !important;
}

.ec-sliderItemRole .item_nav {
    display: flex !important; /* Force display on desktop */
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.ec-sliderItemRole .slideThumb {
    width: 100px;
    height: 100px;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid #CCCCCC;
}

.ec-sliderItemRole .slideThumb.active {
    opacity: 1;
    border: 2px solid #E6002D;
    transform: scale(1.05);
}

.ec-sliderItemRole .slideThumb:focus {
    outline: none;
}

.ec-sliderItemRole .slideThumb:hover {
    opacity: 1;
    transform: scale(1.02);
}

.ec-sliderItemRole .slideThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Control main image container height */
.item_visual {
max-height: 550px;
}

.item_visual .slide-item {
    width: 100%;
    height: auto;
}

/* Adjust slick dots positioning for mobile only */
@media (max-width: 768px) {
    .slick-dots {
        position: absolute;
        bottom: -45px;
        display: block;
        width: 100%;
        padding: 0;
        list-style: none;
        text-align: center;
    }
    
    .ec-productRole {
        height: auto !important;
    }
    
    .ec-grid2 {
        height: auto !important;
    }
    
    .ec-grid2__cell {
        height: auto !important;
        min-height: auto !important;
    }
    
    .ec-sliderItemRole {
        margin-bottom: 0 !important;
        height: auto !important;
    }
    
    .item_visual-container {
        height: auto !important;
    }
    
    .item_visual {
        max-height: none !important;
        height: auto !important;
    }
    
    .slick-slider {
        margin-bottom: 0 !important;
        height: auto !important;
    }
    
    .item_visual .slick-list {
        height: auto !important;
    }
    
    .item_visual .slick-track {
        height: auto !important;
    }
    
    .slick-slide {
        height: auto !important;
    }
    
    .slick-slide.slick-current.slick-active {
        height: auto !important;
    }
    
    .item_visual .slide-item {
        height: auto !important;
        min-height: auto !important;
    }
    
    .item_visual .slide-item img {
        max-height: 300px;
        width: 100%;
        height: auto !important;
        object-fit: contain;
        display: block;
    }
    
    .ec-sliderItemRole .item_nav {
        display: flex !important;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        margin-bottom: 0;
    }
    
    .product-logo-container {
        margin-top: 24px;
    }
}


@media (min-width: 769px) {
    .slick-dots {
        display: none; /* Hide dots on desktop since we have thumbnails */
    }
    
    .ec-sliderItemRole .item_nav {
        display: flex !important;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 16px;
        margin-bottom: 0;
    }
}