/**
 * LM Single Product Page Styles
 * Layout, options UI, color modal, tabs, responsive
 */

/* ===== Page Layout ===== */
.lm-single-product {
    width: 100%;
    padding: 50px 0 4rem;
    background: #fff;
}

.lm-single-product__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ===== Breadcrumb ===== */
.lm-breadcrumb {
    font-size: 13px;
    color: #272727;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.lm-breadcrumb a {
    color: #272727;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lm-breadcrumb a:hover {
    color: #A28573;
}

.lm-breadcrumb__sep {
    margin: 0 6px;
    color: #ccc;
}

.lm-breadcrumb__current {
    color: #ccc;
}

/* ===== Title Row (above grid, aligned with right column) ===== */
.lm-single-product__title-row {
    gap: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
}

.lm-single-product__title-row .lm-single-product__title {
    grid-column: 2;
}

/* ===== Main Product Grid (Gallery + Info) ===== */
.lm-single-product__main {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 3rem;
    margin-bottom: 0;
}

/* ===== Gallery ===== */
.lm-single-product__gallery {
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* "New" Badge - PNG overlay on gallery */
.lm-single-product__badge-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

/* Hide WooCommerce default sale badge on single product */
.lm-single-product .onsale {
    display: none !important;
}

.lm-single-product__gallery .woocommerce-product-gallery {
    width: 100% !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 10px;
}

.lm-single-product__gallery .woocommerce-product-gallery .flex-viewport {
    flex: 1 !important;
    min-width: 0;
}

.lm-single-product__gallery .flex-control-thumbs {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    width: 70px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.lm-single-product__gallery .flex-control-thumbs li {
    margin: 0;
    padding: 0;
}

.lm-single-product__gallery .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    opacity: 0.6;
}

.lm-single-product__gallery .flex-control-thumbs li img.flex-active {
    border-color: #A28573;
    opacity: 1;
}

/* ===== Product Info ===== */
.lm-single-product__title {
    font-size: 28px;
    color: #201712;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.lm-single-product__price, .lm-single-product__price .price  {
    color: #A28573 !important;
    margin-bottom: 1.5rem;
    font-size: 28px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lm-single-product__price del {
    color: #c0333396;
    font-weight: 400;
    font-size: 18px;
}

.lm-single-product__price ins {
    text-decoration: none;
    margin-top: -8px !important;
}


/* Discount Badge - SVG next to price */
.lm-single-product__price .lm-discount-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.lm-single-product__price .lm-discount-badge svg {
    width: 100%;
    height: 100%;
}

.lm-single-product__price .lm-discount-badge__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== Rating (below description, above options) ===== */
.lm-single-product__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    justify-content: flex-end;
    margin-top: -30px;
}

.lm-single-product__rating .star-rating {
    font-size: 14px;
    color: #A28573;
}

.lm-single-product__rating-link {
    font-size: 13px;
    color: #272727;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lm-single-product__rating-link:hover {
    color: #A28573;
}

.lm-single-product__description {
    font-size: 15px;
    color: #272727;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ===== Product Options ===== */
.lm-product-options {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lm-option-label {
    font-size: 14px;
    font-weight: 400;
    color: #201712;
    white-space: nowrap;
    width: 75px;
}

/* ===== Color Selection — Compact Row ===== */
.lm-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lm-color-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #E6E6E6 !important;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #272727;
    transition: all 0.3s ease;
}

.lm-color-trigger:hover {
    border-color: #A28573 !important;
    color: #A28573;
}

.lm-color-trigger__text {
    color: inherit;
}

.lm-color-trigger__count {
    font-weight: 500;
    color: #A28573;
    font-size: 12px;
}

/* Color preview circles inline */
.lm-color-preview {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lm-color-preview__item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lm-color-preview__circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #E6E6E6;
    flex-shrink: 0;
}

.lm-color-preview__name {
    font-size: 12px;
    color: #201712;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Softness Selection — Dropdown ===== */
.lm-softness-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lm-softness-dropdown {
    position: relative;
}

.lm-softness-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #E6E6E6 !important;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #272727;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: space-between;
}

.lm-softness-dropdown__trigger:hover {
    border-color: #A28573 !important;
    color: #A28573;
}

.lm-softness-dropdown__current {
    color: inherit;
}

.lm-softness-dropdown.is-selected .lm-softness-dropdown__current {
    color: #201712;
    font-weight: 500;
}

.lm-softness-dropdown__arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.lm-softness-dropdown.is-open .lm-softness-dropdown__arrow {
    transform: rotate(180deg);
}

.lm-softness-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.lm-softness-dropdown.is-open .lm-softness-dropdown__menu {
    display: block;
}

.lm-softness-dropdown__menu li {
    margin: 0;
    padding: 0;
}

.lm-softness-dropdown__option {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #272727;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.lm-softness-dropdown__option:hover {
    background: #F6F9FC;
    color: #A28573;
}

.lm-softness-dropdown__option.is-selected {
    color: #A28573;
    font-weight: 500;
    background: #faf7f5;
}

.lm-softness-dropdown__desc {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

.lm-softness-dropdown__option.is-selected .lm-softness-dropdown__desc {
    color: #b89a8c;
}

/* ===== Instructions — Compact Row ===== */
.lm-instructions-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lm-instructions-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #E6E6E6 !important;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #272727;
    transition: all 0.3s ease;
}

.lm-instructions-trigger:hover {
    border-color: #A28573 !important;
    color: #A28573;
}

.lm-instructions-trigger svg {
    flex-shrink: 0;
}

.lm-instructions-preview {
    font-size: 12px;
    color: #272727;
    font-style: italic;
    line-height: 1.3;
    display: none;
}

/* ===== Instructions Modal ===== */
.lm-instructions-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 100000;
}

.lm-instructions-modal.is-open {
    display: block;
}

.lm-instructions-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    animation: lm-fade-in 0.2s ease;
}

.lm-instructions-modal__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: lm-slide-up 0.25s ease;
}

.lm-instructions-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E6E6E6;
    flex-shrink: 0;
}

.lm-instructions-modal__title {
    font-size: 16px;
    font-weight: 400;
    color: #201712;
}

.lm-instructions-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none !important;
    cursor: pointer;
    color: #272727;
    padding: 0;
    transition: color 0.3s ease;
}

.lm-instructions-modal__close:hover {
    color: #201712;
}

.lm-instructions-modal__body {
    padding: 24px;
}

.lm-instructions-modal__textarea {
    width: 100%;
    min-height: 120px;
    max-height: 250px;
    padding: 12px;
    border: 1px solid #E6E6E6;
    border-radius: 5px;
    font-size: 14px;
    color: #201712;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lm-instructions-modal__textarea:focus {
    outline: none;
    border-color: #A28573;
}

.lm-instructions-modal__textarea::placeholder {
    color: #999;
}

.lm-instructions-modal__charcount {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 6px;
}

.lm-instructions-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #E6E6E6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.lm-instructions-modal__clear {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lm-instructions-modal__clear:hover {
    border-color: #A28573 !important;
    color: #A28573;
}

.lm-instructions-modal__confirm {
    padding: 10px 28px;
    transition: background 0.3s ease;
}

.lm-instructions-modal__confirm:hover {
    background: #8a6f60;
}

/* ===== Color Modal ===== */
.lm-color-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 100000;
}

.lm-color-modal.is-open {
    display: block;
}

.lm-color-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    animation: lm-fade-in 0.2s ease;
}

@keyframes lm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lm-color-modal__panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: lm-slide-up 0.25s ease;
}

@keyframes lm-slide-up {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.lm-color-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E6E6E6;
    flex-shrink: 0;
}

.lm-color-modal__title {
    font-size: 16px;
    font-weight: 400;
    color: #201712;
}

.lm-color-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none !important;
    cursor: pointer;
    color: #272727;
    padding: 0;
    transition: color 0.3s ease;
}

.lm-color-modal__close:hover {
    color: #201712;
}

.lm-color-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.lm-color-modal__limit-msg {
    display: none;
    font-size: 13px;
    color: #A28573;
    font-style: italic;
    margin-bottom: 16px;
    text-align: center;
}

.lm-color-modal__limit-msg.is-visible {
    display: block;
}

.lm-color-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

/* Individual color swatch in modal */
.lm-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
}

.lm-color-swatch:hover {
    background: #F6F9FC;
    border-color: #E6E6E6;
}

.lm-color-swatch.is-selected {
    border-color: #A28573;
    background: #faf7f5;
}

.lm-color-swatch__circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #E6E6E6;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.lm-color-swatch.is-selected .lm-color-swatch__circle {
    border-color: #A28573;
}

.lm-color-swatch__check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lm-color-swatch.is-selected .lm-color-swatch__check {
    opacity: 1;
}

.lm-color-swatch__name {
    font-size: 11px;
    letter-spacing: 2px;
    color: #272727;
    text-align: center;
    line-height: 1.2;
}

.lm-color-swatch.is-selected .lm-color-swatch__name {
    color: #201712;
}

.lm-color-swatch.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Modal footer */
.lm-color-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #E6E6E6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.lm-color-modal__selection-info {
    font-size: 13px;
    color: #272727;
}

.lm-color-modal__confirm {
    padding: 10px 28px;
    background: #A28573;
    color: #fff;
    border: none !important;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.lm-color-modal__confirm:hover {
    background: #8a6f60;
}

/* ===== Variation Dropdown (matches softness dropdown pattern) ===== */
.lm-variation-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lm-variation-dropdown {
    position: relative;
}

.lm-variation-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #E6E6E6 !important;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #272727;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: space-between;
}

.lm-variation-dropdown__trigger:hover {
    border-color: #A28573 !important;
    color: #A28573;
}

.lm-variation-dropdown__current {
    color: inherit;
}

.lm-variation-dropdown.is-selected .lm-variation-dropdown__current {
    color: #201712;
    font-weight: 500;
}

.lm-variation-dropdown__arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.lm-variation-dropdown.is-open .lm-variation-dropdown__arrow {
    transform: rotate(180deg);
}

.lm-variation-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.lm-variation-dropdown.is-open .lm-variation-dropdown__menu {
    display: block;
}

.lm-variation-dropdown__menu li {
    margin: 0;
    padding: 0;
}

.lm-variation-dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 13px;
    color: #272727;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    gap: 12px;
}

.lm-variation-dropdown__option:hover {
    background: #F6F9FC;
    color: #A28573;
}

.lm-variation-dropdown__option.is-selected {
    color: #A28573;
    font-weight: 500;
    background: #faf7f5;
}

.lm-variation-dropdown__option-name {
    flex: 1;
}

.lm-variation-dropdown__option-price {
    font-size: 11px;
    color: #A28573;
    font-weight: 500;
    flex-shrink: 0;
}

.lm-variation-dropdown__option.is-selected .lm-variation-dropdown__option-price {
    font-weight: 500;
}

/* Hide WC's default variation elements */
.lm-single-product .variations {
    display: none !important;
}

.lm-single-product .reset_variations {
    display: none !important;
}

/* Hide WC variation price display (we show price in our own block) */
.lm-single-product .single_variation .woocommerce-variation-price {
    display: none !important;
}

.lm-single-product .single_variation .woocommerce-variation-description {
    display: none !important;
}

/* ===== Add to Cart Button ===== */
.lm-single-product .single_add_to_cart_button {
    background-color: white !important;
    color: black !important;
    border: 1px solid black !important;
    font-weight: 300  !important;
    transition: all 0.3s ease !important;
    padding: 12px !important;
    letter-spacing: 2px;
    outline: none !important;
    font-size: 14px !important;
}


.lm-single-product .single_add_to_cart_button:hover {
    background-color: #A28573 !important;
    color: white !important;
    border-color: #A28573 !important;
}

.lm-single-product .quantity {
    height: 42px;
    outline: none;
}

.lm-single-product .cart, .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: -12px;
}

.single_add_to_cart_button {
    border-radius:0px !important;
}

/* ===== Add & Checkout Button ===== */
.lm-checkout-btn {
    padding: 12px 32px !important;
    background-color: #A28573 !important;
    color: white !important;
    border: 1px solid #A28573 !important;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
}

.lm-checkout-btn:hover {
    background-color: #8a6f60 !important;
    border-color: #8a6f60 !important;
}

/* ===== Product Tabs ===== */
.lm-single-product__tabs {
    margin-bottom: 4rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    gap: 0 !important;
    border-bottom: 1px solid #A28573 !important;
    overflow: visible !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: auto !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 12px 12px !important;
    font-size: 12px !important;
    color: #272727 !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: all 0.5s ease !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    background-color: #A28573 !important;
    color: #ECE8E6 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: #A28573 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background-color: #A28573 !important;
    color: #ECE8E6 !important;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.woocommerce div.product .woocommerce-tabs .wb_cptb_title,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel > h2 {
    display: none !important;
}


.woocommerce div.product form.cart div.quantity {
    float: left;
    /* margin: 0 4px 0 0; */
    display: flex;
    outline: none !important;
}

.wb_cptb_content p {
    display: flex;
    justify-content: center;
}


/* ===== Reviews Tab ===== */
.lm-single-product .woocommerce-Reviews {
    max-width: 800px;
    margin: 0 auto;
}

.lm-single-product__gallery .lm-single-product__badge-new {
    margin-left:80px; /* claude: do not change this */
}

/* Existing reviews list */
.lm-single-product .woocommerce-Reviews .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.lm-single-product .woocommerce-Reviews .commentlist .comment {
    border-bottom: 1px solid #E6E6E6;
    padding: 1.5rem 0;
}

.lm-single-product .woocommerce-Reviews .commentlist .comment:last-child {
    border-bottom: none;
}

.lm-single-product .woocommerce-Reviews .comment_container {
    display: flex;
    gap: 1rem;
}

.lm-single-product .woocommerce-Reviews .comment_container img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lm-single-product .woocommerce-Reviews .comment-text {
    flex: 1;
}

.lm-single-product .woocommerce-Reviews .comment-text .star-rating {
    float: none;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: #A28573;
}

.lm-single-product .woocommerce-Reviews .comment-text .meta {
    font-size: 13px;
    color: #272727;
    margin-bottom: 0.5rem;
}

.lm-single-product .woocommerce-Reviews .comment-text .description p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Review form */
.lm-single-product .woocommerce-Reviews #review_form_wrapper {
    margin-top: 2rem;
}

.lm-single-product .woocommerce-Reviews #reply-title {
    font-size: 18px;
    color: #201712;
    margin-bottom: 1rem;
    display: block;
}

.lm-single-product .woocommerce-Reviews .comment-form label {
    font-size: 14px;
    font-weight: 400;
    color: #201712;
    display: block;
    margin-bottom: 4px;
}

.lm-single-product .woocommerce-Reviews .comment-form input[type="text"],
.lm-single-product .woocommerce-Reviews .comment-form input[type="email"],
.lm-single-product .woocommerce-Reviews .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E6E6E6;
    border-radius: 5px;
    font-size: 14px;
    color: #201712;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lm-single-product .woocommerce-Reviews .comment-form input:focus,
.lm-single-product .woocommerce-Reviews .comment-form textarea:focus {
    outline: none;
    border-color: #A28573;
}

.lm-single-product .woocommerce-Reviews .comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Star rating selector (click-to-rate)
   WooCommerce's woocommerce.css handles the star glyphs (font-family: WooCommerce,
   \e021 = empty star, \e020 = filled star) and hover/selected content switching.
   We only override colors here to match the brand. */
.lm-single-product .woocommerce-Reviews .comment-form .stars {
    margin-bottom: 1rem;
}

.lm-single-product .woocommerce-Reviews .comment-form .stars a::before {
    color: #A28573 !important;
}

/* Submit button */
.lm-single-product .woocommerce-Reviews .comment-form .form-submit input[type="submit"] {
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lm-single-product .woocommerce-Reviews .comment-form .form-submit input[type="submit"]:hover {
    background-color: #A28573;
    color: white;
    border-color: #A28573;
}

/* No reviews message */
.lm-single-product .woocommerce-Reviews .woocommerce-noreviews {
    font-size: 15px;
    color: #272727;
    font-style: italic;
}

/* ===== Related Products ===== */
.lm-single-product__related {
    margin-top: 2rem;
    padding-top: 2rem;
}

.lm-single-product__related > h2 {
    font-size: 22px;
    font-weight: 200;
    color: #201712;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Sticky Tab Header ===== */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    position: sticky;
    top: 45px;
    z-index: 90;
    background: #fff;
    justify-content: center;
}

/* ===== Swipeable Mobile Tabs ===== */
.lm-tabs--swipeable {
    overflow: hidden;
    max-width: 100%;
}

.lm-tabs-swipe-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.lm-tabs-swipe-container {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.lm-tabs-swipe-container > .woocommerce-Tabs-panel {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 1rem 0;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .lm-single-product__main {
        gap: 2.5rem;
    }

    .lm-single-product__title {
        font-size: 24px;
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
    .lm-single-product {
        padding: 38px 0 3rem;
    }

    .lm-single-product__container {
        padding: 0 1rem;
    }

    /* Title row: single column on mobile */
    .lm-single-product__title-row {
        display: block;
        margin-bottom: 0.5rem;
    }

    .lm-single-product__main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lm-single-product__gallery {
        position: relative;
        top: 0px;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .lm-single-product__gallery .woocommerce-product-gallery {
        flex-direction: column;
    }

    /* Hide gallery thumbnails on mobile — swipe is sufficient */
    .lm-single-product__gallery .flex-control-thumbs {
        display: none !important;
    }

    .lm-single-product__gallery .lm-single-product__badge-new {
        margin-left:0px; /* claude: do not change this */
    }

    .lm-single-product__title {
        font-size: 22px;
    }

    .lm-single-product__price {
        font-size: 20px;
    }

    .lm-single-product__description {
        font-size:18px;
    }

    .lm-breadcrumb {
        font-size: 12px;
        margin-bottom: 2rem;
    }

    /* Color modal: full width on mobile */
    .lm-color-modal__panel {
        width: 95%;
        max-height: 85vh;
    }

    .lm-color-modal__grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 8px;
    }

    .lm-color-swatch__circle {
        width: 36px;
        height: 36px;
    }

    /* Instructions modal: full width on mobile */
    .lm-instructions-modal__panel {
        width: 95%;
    }

    /* Variation dropdown: full width on mobile */
    .lm-variation-dropdown__trigger {
        min-width: 120px;
    }

    .lm-variation-dropdown__menu {
        max-height: 50vh;
        overflow-y: auto;
    }

    /* Tabs: horizontally scrollable on mobile */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
        top: 0px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        flex-shrink: 0;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 16px !important;
        font-size: 12px !important;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    /* Force all panels visible inside swipe container */
    .lm-tabs-swipe-container > .woocommerce-Tabs-panel {
        display: block !important;
    }

    /* Cart buttons: stack on small screens */
    .lm-single-product .cart {
        flex-wrap: wrap;
    }

    .lm-checkout-btn {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }

}
