/* =========================
   SINGLE PRODUCT — PAGE
========================= */
.single-product-page {
    padding: 60px 72px 120px;
}

.single-product-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

/* =========================
   GALLERY
========================= */
.single-product-gallery {
    position: sticky;
    top: 120px;
}

.main-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    transition: transform .4s ease;
}

.main-product-image:hover img {
    transform: scale(1.03);
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #fff;
    padding: 4px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, transform .2s;
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: rgba(237, 127, 26, .4);
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: var(--orange);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* =========================
   CONTENT
========================= */
.single-product-content {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
}

/* Badge categorie */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(237, 127, 26, .10);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing:0;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
    text-decoration: none;
    transition: background .2s;
}

.product-badge:hover {
    background: rgba(237, 127, 26, .18);
}

/* Titlu */
.single-product-content h1 {
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    letter-spacing:0;
    color: var(--text);
    margin-bottom: 20px;
}

/* Preț */
.single-product-price {
    font-size: 48px;
    font-weight: 900;
    color: var(--orange);
    letter-spacing:0;
    margin-bottom: 28px;
    line-height: 1;
}

/* Descriere scurtă */
.single-product-description {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 28px 32px;
    line-height: 1.85;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

/* =========================
   CART BOX
========================= */
.product-cart-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Quantity */
.custom-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    transition: background .2s, color .2s, transform .2s;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--orange);
    color: #fff;
    transform: scale(1.08);
}

.custom-quantity input {
    width: 44px;
    height: 40px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    background: transparent;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.custom-quantity input::-webkit-outer-spin-button,
.custom-quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.custom-quantity input[type="number"] { -moz-appearance: textfield; }

/* Add to cart */
.add-to-cart-main {
    flex: 1;
    height: 62px;
    border: none;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing:0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 16px 36px rgba(237, 127, 26, .28);
}

.add-to-cart-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(237, 127, 26, .36);
}

.add-to-cart-main:active { transform: scale(.97); }

.add-to-cart-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .55s ease;
    pointer-events: none;
}

.add-to-cart-main:hover::after { transform: translateX(100%); }

.single-product-page #wc-stripe-payment-request-wrapper,
.single-product-page #wc-stripe-payment-request-button-separator,
.single-product-page .wc-stripe-product-checkout-container,
.single-product-page .wc-stripe-payment-request-wrapper,
.single-product-page .wc-stripe-payment-request-button,
.single-product-page #wc-stripe-payment-request-button,
.single-product-page .wcpay-express-checkout-wrapper,
.single-product-page #wcpay-express-checkout-element,
.single-product-page .wcpay-payment-request-wrapper,
.single-product-page .express-payment-methods,
.single-product-page .payment-request-button,
.single-product-page .stripe-payment-request-button,
.single-product-page .stripe-express-checkout-element,
.single-product-page .wc-stripe-express-checkout-element,
.single-product-page .wc-stripe-express-checkout-button,
.single-product-page .wc-stripe-express-checkout,
.single-product-page .wc-block-components-express-payment,
.single-product-page .wc-block-components-express-payment__event-buttons{
    display:none !important;
}

.single-product-page form.cart > .product-cart-box ~ *{
    display:none !important;
}

.novaro-native-add-to-cart .cart{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.novaro-native-add-to-cart .variations{
    width:100%;
    border-collapse:collapse;
    margin:0 0 8px;
}

.novaro-native-add-to-cart .variations th,
.novaro-native-add-to-cart .variations td{
    display:block;
    padding:0;
    text-align:left;
}

.novaro-native-add-to-cart .variations label{
    display:block;
    margin:0 0 8px;
    font-size:14px;
    font-weight:800;
    color:var(--text);
}

.novaro-native-add-to-cart .variations select{
    width:100%;
    height:56px;
    border:1px solid var(--border);
    border-radius:16px;
    background:#fff;
    padding:0 16px;
    font-size:16px;
    color:var(--text);
    box-shadow:var(--shadow-sm);
}

.novaro-native-add-to-cart .reset_variations{
    display:inline-block;
    margin-top:8px;
    color:var(--text-light);
    font-size:14px;
}

.novaro-native-add-to-cart .single_variation{
    color:var(--text);
    font-weight:700;
}

.novaro-native-add-to-cart .single_variation_wrap{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.novaro-native-add-to-cart .quantity input.qty{
    width:100%;
    max-width:120px;
    height:52px;
    border:1px solid var(--border);
    border-radius:999px;
    text-align:center;
    font-weight:800;
}

.novaro-native-add-to-cart .single_add_to_cart_button{
    position:relative;
    overflow:hidden;
    min-height:62px;
    border:none;
    border-radius:999px;
    background:var(--button-gradient);
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    box-shadow:var(--button-shadow);
}

.novaro-native-add-to-cart .single_add_to_cart_button::before{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:70%;
    height:100%;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transform:skewX(-20deg);
    transition:left .75s ease;
    pointer-events:none;
}

.novaro-native-add-to-cart .single_add_to_cart_button:hover::before,
.novaro-native-add-to-cart .single_add_to_cart_button:focus-visible::before{
    left:150%;
}

.novaro-native-add-to-cart .single_add_to_cart_button:hover,
.novaro-native-add-to-cart .single_add_to_cart_button:focus-visible{
    transform:translateY(-3px);
    color:#fff;
    outline:0;
    box-shadow:var(--button-shadow-hover);
}

/* =========================
   META / ATTRIBUTES
========================= */
.product-meta {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 300;
}

.product-meta-row strong {
    font-weight: 700;
    color: var(--text);
    min-width: 100px;
}

/* =========================
   RELATED PRODUCTS
========================= */
.related-products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 72px 120px;
}

.related-header {
    margin-bottom: 40px;
}

.related-header h2 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing:0;
    line-height: 1;
    color: var(--text);
    margin-top: 10px;
}

.related-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.related-products-section .product-card {
    border-radius: 26px;
    height: 100%;
}

.related-products-section .product-image {
    aspect-ratio: 1 / 1;
}

.related-products-section .product-content {
    padding: 20px;
}

.related-products-section .product-content h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 16px;
    min-height: 49px;
}

.related-products-section .product-content h3 a {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.related-products-section .product-bottom {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 16px;
}

.related-products-section .product-price {
    font-size: 20px;
    white-space: normal;
    line-height: 1.2;
}

.related-products-section .product-actions {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.related-products-section .product-card .novaro-qty {
    min-height: 42px;
    padding: 3px;
    background: #F5F0E8;
    box-shadow: inset 0 0 0 1px rgba(2,0,17,.04);
}

.related-products-section .product-card .novaro-qty__btn {
    width: 30px;
    height: 30px;
    font-size: 17px;
}

.related-products-section .product-card .novaro-qty__input {
    width: 32px;
    font-size: 14px;
}

.related-products-section .product-cart-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 16px;
}

.related-products-section .product-cart-btn::after {
    width: 16px;
    height: 16px;
    background:
        linear-gradient(#fff,#fff) center/100% 3px no-repeat,
        linear-gradient(#fff,#fff) center/3px 100% no-repeat;
}

.related-products-section .product-meta {
    display: -webkit-box;
    min-height: 34px;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .single-product-page      { padding: 48px 48px 100px; }
    .related-products-section { padding: 0 48px 100px; }
    .related-products-section .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .single-product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .single-product-gallery,
    .single-product-content { position: static; }
}

@media (max-width: 768px) {
    .single-product-page      { padding: 32px 24px 80px; }
    .related-products-section { padding: 0 24px 80px; }
    .single-product-content h1 { font-size: 36px; }
    .single-product-price      { font-size: 32px; }
    .product-cart-box          { flex-direction: column; align-items: center; gap: 18px; }
    .custom-quantity           { justify-content: center; }
    .add-to-cart-main          {
        width: min(100%, 320px);
        flex: 0 0 auto;
        min-height: 68px;
        height: 68px;
        padding: 0 32px;
        font-size: 17px;
        line-height: 1.2;
    }
    .related-products-section .products-grid { grid-template-columns: repeat(2, 1fr); }
    .related-products-section .product-content { padding: 14px; }
    .related-products-section .product-content h3 {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 10px;
        min-height: 39px;
    }
    .related-products-section .product-price { font-size: 16px; }
    .related-products-section .product-actions { min-height: 38px; }
    .related-products-section .product-cart-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 12px;
    }
    .related-products-section .product-cart-btn::after {
        width: 14px;
        height: 14px;
        background:
            linear-gradient(#fff,#fff) center/100% 2.5px no-repeat,
            linear-gradient(#fff,#fff) center/2.5px 100% no-repeat;
    }
}

@media (max-width: 480px) {
    .add-to-cart-main { width: min(100%, 300px); }
    .related-products-section .products-grid { grid-template-columns: 1fr; }
    .product-thumbnails { flex-wrap: wrap; }
}
