/**
 * Single Product Page - Louis Vuitton Inspired
 * Clean, minimal luxury design
 */

/* ===== CSS Variables ===== */
.lv-single-product {
    --lv-bg: #ffffff;
    --lv-bg-alt: #ffffff;
    --lv-text: #19110b;
    --lv-text-light: #6e6e6e;
    --lv-text-muted: #9a9a9a;
    --lv-border: #e8e8e8;
    --lv-accent: #f26522;
    --lv-black: #19110b;
    --lv-success: #0a7c42;
    --lv-error: #c41230;
    --lv-radius: 0;
    --lv-transition: 0.25s ease;
}

/* ===== Base Layout ===== */
.lv-single-product {
    background: var(--lv-bg);
    min-height: 100vh;
}

/* Remove any default padding from parent */
.lv-single-product .site-main {
    padding: 0 !important;
}

.lv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Breadcrumb ===== */
.lv-breadcrumb {
    background: var(--lv-bg);
    padding: 16px 0;
    border-bottom: 1px solid var(--lv-border);
    max-width: 1400px;
    margin: 0 auto;
}

.lv-breadcrumb .lv-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    flex-wrap: wrap;
    padding: 0 40px;
}

.lv-breadcrumb .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lv-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--lv-transition);
}

.lv-breadcrumb .back-link:hover {
    opacity: 0.7;
}

.lv-breadcrumb .separator {
    color: var(--lv-text-muted);
}

.lv-breadcrumb .category {
    color: var(--lv-text-light);
}

.lv-breadcrumb .category a {
    color: inherit;
    text-decoration: none;
}

.lv-breadcrumb .current {
    color: var(--lv-text);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Main Product Layout ===== */
.lv-product-main {
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.lv-product-layout {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
    padding: 0 40px;
    align-items: start;
}

/* ===== Gallery ===== */
.lv-gallery {
    background: var(--lv-bg);
    position: sticky;
    top: 120px;
}

.gallery-main-wrapper {
    position: relative;
    background: var(--lv-bg);
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform, opacity;
}

@media (min-width: 769px) {
    .gallery-main:hover .main-image {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .main-image {
        cursor: grab;
    }
    
    .main-image:active {
        cursor: grabbing;
    }
}

.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-badge.sale {
    background: var(--lv-accent);
    color: white;
}

.zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--lv-bg);
    border: 1px solid var(--lv-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--lv-transition);
    z-index: 2;
}

.zoom-btn:hover {
    background: var(--lv-black);
    border-color: var(--lv-black);
    color: white;
}

/* Gallery Navigation Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--lv-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--lv-transition);
    z-index: 3;
    opacity: 0;
    visibility: hidden;
}

.gallery-main-wrapper:hover .gallery-arrow {
    opacity: 1;
    visibility: visible;
}

.gallery-arrow:hover {
    background: var(--lv-black);
    border-color: var(--lv-black);
    color: white;
}

.gallery-arrow-prev {
    left: 16px;
}

.gallery-arrow-next {
    right: 16px;
}

.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--lv-border);
    color: var(--lv-text);
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 0;
    background: var(--lv-bg);
    border: 2px solid var(--lv-border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color var(--lv-transition);
    overflow: hidden;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover {
    border-color: var(--lv-text-muted);
}

.thumb-item.active {
    border-color: var(--lv-black);
}

/* Mobile carousel indicators */
.gallery-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.gallery-dots .dot {
    width: 6px;
    height: 6px;
    background: var(--lv-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--lv-transition);
}

.gallery-dots .dot.active {
    background: var(--lv-black);
}

/* ===== Product Details ===== */
.lv-details {
    padding: 0;
    max-width: 500px;
}

.product-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-sku {
    font-size: 0.8125rem;
    color: var(--lv-text-muted);
    letter-spacing: 0.5px;
}

.wishlist-btn {
    /* Plugin button styling */
}

.wishlist-btn .yith-wcwl-add-to-wishlist,
.wishlist-btn .woosw-btn,
.wishlist-btn .tinvwl_add_to_wishlist_button {
    background: none !important;
    border: none !important;
    padding: 8px !important;
    color: var(--lv-text) !important;
}

.wishlist-btn .yith-wcwl-add-to-wishlist:hover,
.wishlist-btn .woosw-btn:hover,
.wishlist-btn .tinvwl_add_to_wishlist_button:hover {
    color: var(--lv-accent) !important;
}

.wishlist-btn .woosw-btn::before {
    font-size: 24px !important;
}

.wishlist-fallback {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--lv-text);
    transition: color var(--lv-transition);
}

.wishlist-fallback:hover {
    color: var(--lv-accent);
}

/* Title */
.lv-details .product-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--lv-text);
    margin: 0 0 16px 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Price */
.lv-details .product-price {
    font-size: 1.125rem;
    color: var(--lv-text);
    font-weight: 500;
    margin-bottom: 20px;
}

.lv-details .product-price del {
    color: var(--lv-text-muted);
    font-size: 0.9375rem;
    margin-right: 8px;
}

.lv-details .product-price ins {
    text-decoration: none;
}

/* Short Description */
.product-excerpt {
    font-size: 0.875rem;
    color: var(--lv-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-excerpt p {
    margin: 0;
}

/* Stock Status */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    margin-bottom: 24px;
    padding: 6px 0;
}

.stock-status.in-stock {
    color: var(--lv-success);
}

.stock-status.out-of-stock {
    color: var(--lv-error);
}

/* ===== Product Form (Add to Cart) ===== */
.product-form-wrapper {
    margin-bottom: 16px;
}

/* Variation dropdowns - LV style */
.product-form-wrapper .variations {
    margin-bottom: 24px;
    width: 100%;
}

.product-form-wrapper .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.product-form-wrapper .variations .label {
    margin-bottom: 8px;
}

.product-form-wrapper .variations .label label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lv-text);
}

.product-form-wrapper .variations td.value {
    width: 100%;
}

.product-form-wrapper .variations td.value {
    overflow: visible !important;
}

.product-form-wrapper .variations select {
    width: 100%;
    padding: 16px 40px 16px 16px;
    border: 1px solid var(--lv-border);
    border-radius: 4px;
    font-size: 0.9375rem;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 54px;
    color: var(--lv-text);
    background-color: var(--lv-bg);
    cursor: pointer;
    transition: border-color var(--lv-transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2319110b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    box-sizing: border-box;
    overflow: visible !important;
    clip: auto !important;
}

.product-form-wrapper .variations select:focus {
    outline: none;
    border-color: var(--lv-black);
}

.product-form-wrapper .variations select option {
    padding: 12px;
    color: var(--lv-text);
}

/* Select2 overrides for variations (if Select2 is used) */
.product-form-wrapper .select2-container {
    width: 100% !important;
}

.product-form-wrapper .select2-container .select2-selection--single {
    height: auto !important;
    min-height: 54px !important;
    padding: 12px 40px 12px 16px !important;
    border: 1px solid var(--lv-border) !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
}

.product-form-wrapper .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    font-size: 0.9375rem !important;
    color: var(--lv-text) !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.product-form-wrapper .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 12px !important;
}

.product-form-wrapper .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--lv-text-muted);
    text-decoration: underline;
    cursor: pointer;
}

.product-form-wrapper .reset_variations:hover {
    color: var(--lv-accent);
}

/* Quantity - Blocksy Theme Compatible */
.lv-single-product .quantity,
.product-form-wrapper .quantity {
    position: relative !important;
    display: inline-block !important;
    width: 130px !important;
    height: 48px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    margin-right: 16px;
}

/* Quantity input field */
.lv-single-product .quantity input[type="number"],
.product-form-wrapper .quantity input[type="number"] {
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0 40px !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #19110b !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 48px !important;
    box-shadow: none !important;
}

.lv-single-product .quantity input[type="number"]:focus,
.product-form-wrapper .quantity input[type="number"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

.lv-single-product .quantity input::-webkit-outer-spin-button,
.lv-single-product .quantity input::-webkit-inner-spin-button,
.product-form-wrapper .quantity input::-webkit-outer-spin-button,
.product-form-wrapper .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

/* Blocksy quantity buttons (ct-increase / ct-decrease) */
.lv-single-product .quantity .ct-increase,
.lv-single-product .quantity .ct-decrease,
.product-form-wrapper .quantity .ct-increase,
.product-form-wrapper .quantity .ct-decrease {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    color: #19110b !important;
    transition: background 0.2s ease !important;
    z-index: 2 !important;
}

.lv-single-product .quantity .ct-decrease,
.product-form-wrapper .quantity .ct-decrease {
    left: 6px !important;
    right: auto !important;
}

.lv-single-product .quantity .ct-increase,
.product-form-wrapper .quantity .ct-increase {
    right: 6px !important;
    left: auto !important;
}

.lv-single-product .quantity .ct-increase:hover,
.lv-single-product .quantity .ct-decrease:hover,
.product-form-wrapper .quantity .ct-increase:hover,
.product-form-wrapper .quantity .ct-decrease:hover {
    background: #f0f0f0 !important;
}

/* Blocksy arrow icons - ensure visibility */
.lv-single-product .quantity .ct-increase:before,
.lv-single-product .quantity .ct-decrease:before,
.product-form-wrapper .quantity .ct-increase:before,
.product-form-wrapper .quantity .ct-decrease:before {
    color: #19110b !important;
    font-size: 10px !important;
}

/* Add to Cart Button - LV Black Style */
.product-form-wrapper .single_add_to_cart_button,
.product-form-wrapper button[type="submit"] {
    width: 100%;
    background: var(--lv-black);
    color: white;
    border: none;
    padding: 18px 32px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--lv-transition);
}

.product-form-wrapper .single_add_to_cart_button:hover,
.product-form-wrapper button[type="submit"]:hover {
    background: var(--lv-accent);
}

.product-form-wrapper .single_add_to_cart_button:disabled {
    background: var(--lv-text-muted);
    cursor: not-allowed;
}

/* Variable product layout */
.product-form-wrapper form.cart {
    display: flex;
    flex-direction: column;
}

.product-form-wrapper .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-form-wrapper .woocommerce-variation-price {
    margin-bottom: 16px;
}

.product-form-wrapper .woocommerce-variation-price .price {
    font-size: 1.125rem;
    color: var(--lv-text);
    font-weight: 500;
}

/* Product Meta */
.product-meta-info {
    font-size: 0.8125rem;
    margin-bottom: 24px;
    color: var(--lv-text-light);
}

.product-meta-info a {
    color: var(--lv-text);
    text-decoration: none;
}

.product-meta-info a:hover {
    color: var(--lv-accent);
}

/* ===== Accordions ===== */
.product-accordions {
    border-top: 1px solid var(--lv-border);
}

.accordion-item {
    border-bottom: 1px solid var(--lv-border);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lv-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--lv-transition);
}

.accordion-header:hover {
    color: var(--lv-accent);
}

.accordion-header svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-header svg {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
}

.accordion-inner {
    padding: 0 0 24px 0;
    font-size: 0.875rem;
    color: var(--lv-text-light);
    line-height: 1.7;
}

.accordion-inner p {
    margin: 0 0 12px 0;
}

.accordion-inner p:last-child {
    margin-bottom: 0;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.specs-table tr {
    border-bottom: 1px solid var(--lv-border);
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 12px 0;
    text-align: left;
    font-size: 0.875rem;
    border: none !important;
    background: transparent !important;
}

.specs-table th {
    color: var(--lv-text-muted);
    font-weight: 400;
    width: 40%;
}

.specs-table td {
    color: var(--lv-text);
}

/* Remove any orange/accent borders from WooCommerce product attributes */
.lv-single-product table,
.lv-single-product .woocommerce-product-attributes,
.lv-single-product .shop_attributes {
    border: none !important;
    border-collapse: collapse;
}

.lv-single-product table tr,
.lv-single-product table th,
.lv-single-product table td {
    border-color: var(--lv-border) !important;
    border-left: none !important;
}

/* ===== YITH Product Add-Ons - Clean Minimal Styling ===== */

/* Toggle button for add-ons section */
.lv-single-product .wapo-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    margin-top: 24px;
    background: none;
    border: none;
    border-top: 1px solid var(--lv-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lv-single-product .wapo-toggle-btn:hover {
    opacity: 0.7;
}

.lv-single-product .wapo-toggle-btn .wapo-toggle-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lv-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lv-single-product .wapo-toggle-btn .wapo-toggle-icon {
    transition: transform 0.3s ease;
    color: var(--lv-text);
}

.lv-single-product .wapo-toggle-btn.open .wapo-toggle-icon {
    transform: rotate(45deg);
}

/* Container when open */
.lv-single-product #yith-wapo-container {
    margin-top: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--lv-border);
}

.lv-single-product .yith-wapo-block {
    padding: 0 !important;
}

/* Add-on title */
.lv-single-product .yith-wapo-block .wapo-block-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--lv-text);
    margin: 0 0 20px 0;
    padding: 0;
}

/* Add-on section header */
.lv-single-product .yith-wapo-block .yith-wapo-addon .wapo-addon-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lv-text);
    margin-bottom: 12px;
}

/* Add-on dropdown/select - Fix placeholder cropping */
.lv-single-product .yith-wapo-block .yith-wapo-addon select {
    width: 100%;
    height: 52px;
    padding: 0 40px 0 16px;
    margin-top: 8px;
    border: 1px solid var(--lv-border);
    border-radius: 4px;
    font-size: 0.9375rem;
    line-height: 52px;
    color: var(--lv-text);
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2319110b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.lv-single-product .yith-wapo-block .yith-wapo-addon select:focus {
    outline: none;
    border-color: var(--lv-black);
}

/* Price totals table - Clean white design */
.lv-single-product #wapo-total-price-table {
    margin-top: 24px !important;
    padding: 20px 24px !important;
    background: #ffffff !important;
    border: 1px solid var(--lv-border) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.lv-single-product #wapo-total-price-table table {
    width: 100% !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    border: none !important;
    background: transparent !important;
}

.lv-single-product #wapo-total-price-table table tr {
    border: none !important;
    background: transparent !important;
}

.lv-single-product #wapo-total-price-table table tr:not(:last-child) {
    border-bottom: 1px solid var(--lv-border) !important;
}

.lv-single-product #wapo-total-price-table table th,
.lv-single-product #wapo-total-price-table table td {
    padding: 12px 0 !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle !important;
}

.lv-single-product #wapo-total-price-table table th {
    font-weight: 400 !important;
    color: var(--lv-text-light) !important;
    text-align: left !important;
}

.lv-single-product #wapo-total-price-table table td {
    font-weight: 500 !important;
    color: var(--lv-text) !important;
    text-align: right !important;
}

/* Final total row - slightly emphasized */
.lv-single-product #wapo-total-price-table table tr:last-child th {
    font-weight: 500 !important;
    color: var(--lv-text) !important;
}

.lv-single-product #wapo-total-price-table table tr:last-child td {
    font-weight: 600 !important;
    color: var(--lv-text) !important;
    font-size: 1rem !important;
    border-right: none !important;
}

/* ===== Share Section ===== */
.share-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--lv-border);
}

.share-label {
    font-size: 0.8125rem;
    color: var(--lv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lv-border);
    background: var(--lv-bg);
    color: var(--lv-text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--lv-transition);
}

.share-btn:hover {
    border-color: var(--lv-black);
    color: var(--lv-black);
}

.share-btn.copy-btn.copied {
    background: var(--lv-success);
    border-color: var(--lv-success);
    color: white;
}

/* ===== Related Products ===== */
.lv-related {
    padding: 80px 0;
    background: var(--lv-bg);
    border-top: 1px solid var(--lv-border);
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--lv-text);
    text-align: center;
    margin: 0 0 48px 0;
    letter-spacing: -0.01em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-item {
    text-decoration: none;
    transition: opacity var(--lv-transition);
}

.related-item:hover {
    opacity: 0.8;
}

.related-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--lv-bg-alt);
    margin-bottom: 16px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mini-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    background: var(--lv-accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-info {
    text-align: center;
}

.related-info h3 {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--lv-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.related-price {
    font-size: 0.875rem;
    color: var(--lv-text-light);
}

.related-price del {
    color: var(--lv-text-muted);
    margin-right: 6px;
}

/* ===== Lightbox ===== */
.lv-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lv-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: opacity var(--lv-transition);
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* ===== Responsive Design ===== */

/* Small Desktop / Large Tablet Landscape (iPad Pro landscape) */
@media (max-width: 1200px) {
    .lv-product-layout {
        grid-template-columns: 50% 50%;
        gap: 32px;
        padding: 0 32px;
    }
    
    .lv-details {
        max-width: none;
    }
}

/* Tablet Landscape / iPad Landscape (1024px) */
@media (max-width: 1024px) {
    .lv-product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 0 24px;
    }
    
    .lv-product-main {
        padding: 24px 0;
    }
    
    .lv-gallery {
        position: relative;
        top: 0;
    }
    
    .gallery-main {
        aspect-ratio: 1;
    }
    
    .lv-details {
        max-width: none;
    }
    
    .lv-details .product-title {
        font-size: 1.375rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .thumb-item {
        width: 56px;
        height: 56px;
    }
}

/* Hide gallery arrows on touch devices / tablets and below */
@media (max-width: 1024px) {
    .gallery-arrow {
        display: none !important;
    }
}

/* Tablet Portrait / iPad Portrait (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .lv-product-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0;
    }
    
    .lv-gallery {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .gallery-main-wrapper {
        border: none !important;
        border-radius: 0 !important;
        max-height: none;
        background: var(--lv-bg);
    }
    
    .gallery-main {
        max-height: none;
        padding: 24px;
        aspect-ratio: 1;
    }
    
    .main-image {
        max-width: 100%;
        max-height: 70vh;
        width: auto;
        height: auto;
    }
    
    .gallery-thumbs {
        display: none !important;
    }
    
    .gallery-dots {
        display: flex !important;
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
        padding: 8px 0;
    }
    
    .gallery-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .lv-details {
        max-width: 100%;
        margin: 0;
        padding: 0 24px;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .lv-related {
        padding: 48px 24px;
    }
}

/* Large Mobile / Small Tablet (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .lv-breadcrumb {
        padding: 12px 0;
    }
    
    .lv-breadcrumb .lv-container {
        padding: 0 16px;
    }
    
    .lv-product-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 20px;
    }
    
    .lv-product-main {
        padding: 16px 0;
    }
    
    .lv-gallery {
        width: 100%;
        max-width: 100%;
        margin: 0;
        position: relative;
        top: 0;
    }
    
    .gallery-main-wrapper {
        border: none !important;
        border-radius: 0 !important;
        overflow: hidden;
        max-height: none;
        background: var(--lv-bg);
    }
    
    .gallery-main {
        aspect-ratio: 1;
        max-height: none;
        padding: 16px;
        touch-action: pan-x pan-y;
        overflow: hidden;
    }
    
    .main-image {
        max-width: 100%;
        max-height: 60vh;
        width: auto;
        height: auto;
    }
    
    .gallery-thumbs {
        display: none !important;
    }
    
    .gallery-dots {
        display: flex !important;
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
        padding: 8px 0;
    }
    
    .gallery-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .lv-details {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 16px;
    }
    
    .lv-details .product-title {
        font-size: 1.375rem;
    }
    
    .zoom-btn {
        display: none;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .lv-related {
        padding: 56px 16px;
    }
}

/* Mobile (480px - 599px) */
@media (max-width: 599px) and (min-width: 480px) {
    .lv-breadcrumb {
        padding: 12px 0;
    }
    
    .lv-breadcrumb .lv-container {
        padding: 0 16px;
    }
    
    .lv-breadcrumb .current {
        max-width: 150px;
    }
    
    .lv-product-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 20px;
    }
    
    .lv-product-main {
        padding: 12px 0;
    }
    
    .lv-gallery {
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
    }
    
    .gallery-main-wrapper {
        border: none !important;
        border-radius: 0 !important;
        overflow: hidden;
        max-height: none;
        background: var(--lv-bg);
    }
    
    .gallery-main {
        aspect-ratio: 1;
        max-height: none;
        padding: 12px;
        touch-action: pan-x pan-y;
        overflow: hidden;
    }
    
    .main-image {
        max-width: 100%;
        max-height: 55vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .gallery-thumbs {
        display: none !important;
    }
    
    .gallery-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
        padding: 8px 0;
    }
    
    .gallery-dots .dot {
        width: 8px;
        height: 8px;
        background: var(--lv-border);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .gallery-dots .dot.active {
        background: var(--lv-accent);
        transform: scale(1.2);
    }
    
    .lv-details {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }
    
    .lv-details .product-title {
        font-size: 1.25rem;
    }
    
    .product-top-row {
        margin-bottom: 8px;
    }
    
    .zoom-btn {
        display: none;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .lv-related {
        padding: 48px 16px;
    }
    
    .section-heading {
        margin-bottom: 32px;
    }
    
    .accordion-header {
        padding: 16px 0;
    }
}

/* Small Mobile (<480px) */
@media (max-width: 479px) {
    .lv-breadcrumb {
        padding: 10px 0;
    }
    
    .lv-breadcrumb .lv-container {
        padding: 0 12px;
        font-size: 0.75rem;
    }
    
    .lv-breadcrumb .current {
        max-width: 120px;
    }
    
    .lv-product-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 16px;
    }
    
    .lv-product-main {
        padding: 8px 0;
    }
    
    .lv-gallery {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .gallery-main-wrapper {
        border: none !important;
        border-radius: 0 !important;
        overflow: hidden;
        max-height: none;
        background: var(--lv-bg);
    }
    
    .gallery-main {
        aspect-ratio: 1;
        max-height: none;
        padding: 8px;
        touch-action: pan-x pan-y;
        overflow: hidden;
    }
    
    .main-image {
        max-width: 100%;
        max-height: 50vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .gallery-thumbs {
        display: none !important;
    }
    
    .gallery-dots {
        display: flex !important;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
        padding: 6px 0;
    }
    
    .gallery-dots .dot {
        width: 6px;
        height: 6px;
        background: var(--lv-border);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .gallery-dots .dot.active {
        background: var(--lv-accent);
        transform: scale(1.3);
    }
    
    .lv-details {
        width: 100%;
        padding: 0 12px;
    }
    
    .lv-details .product-title {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .lv-details .product-price {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .product-top-row {
        margin-bottom: 6px;
    }
    
    .product-sku {
        font-size: 0.75rem;
    }
    
    .product-excerpt {
        font-size: 0.8125rem;
        margin-bottom: 16px;
    }
    
    .stock-status {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }
    
    .zoom-btn {
        display: none;
    }
    
    .product-form-wrapper .variations tr {
        margin-bottom: 16px;
    }
    
    .product-form-wrapper .variations select {
        padding: 12px 36px 12px 14px;
        min-height: 48px;
        font-size: 0.875rem;
    }
    
    .product-form-wrapper .quantity {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .product-form-wrapper .single_add_to_cart_button {
        padding: 16px 24px;
        font-size: 0.8125rem;
    }
    
    .product-meta-info {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }
    
    .accordion-header {
        padding: 14px 0;
        font-size: 0.8125rem;
    }
    
    .accordion-inner {
        font-size: 0.8125rem;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .lv-related {
        padding: 40px 12px;
    }
    
    .section-heading {
        font-size: 1.125rem;
        margin-bottom: 24px;
    }
    
    .related-info h3 {
        font-size: 0.8125rem;
    }
    
    .related-price {
        font-size: 0.8125rem;
    }
}

/* ===== WooCommerce Plugin Overrides ===== */

/* YITH Wishlist */
.lv-single-product .yith-wcwl-add-to-wishlist {
    margin: 0 !important;
}

.lv-single-product .yith-wcwl-add-to-wishlist a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lv-single-product .yith-wcwl-add-to-wishlist .feedback {
    display: none !important;
}

/* WPC Smart Wishlist */
.lv-single-product .woosw-btn {
    background: none !important;
    box-shadow: none !important;
}

/* TI Wishlist */
.lv-single-product .tinvwl_add_to_wishlist_button {
    background: none !important;
    box-shadow: none !important;
}

/* WooCommerce Messages */
.lv-single-product .woocommerce-message,
.lv-single-product .woocommerce-info,
.lv-single-product .woocommerce-error {
    margin: 16px 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
}

/* Variable product - Price display */
.lv-single-product .woocommerce-variation-price {
    margin: 16px 0;
}

.lv-single-product .woocommerce-variation-availability {
    margin-bottom: 16px;
}

/* Out of stock */
.lv-single-product .out-of-stock {
    color: var(--lv-error) !important;
}

/* Grouped products */
.lv-single-product .woocommerce-grouped-product-list {
    margin-bottom: 24px;
}

.lv-single-product .woocommerce-grouped-product-list td {
    padding: 12px 0;
    border-bottom: 1px solid var(--lv-border);
}

.lv-single-product .woocommerce-grouped-product-list .woocommerce-grouped-product-list-item__label a {
    color: var(--lv-text);
    text-decoration: none;
}

.lv-single-product .woocommerce-grouped-product-list .woocommerce-grouped-product-list-item__price {
    color: var(--lv-accent);
}
