/* ==========================================================
   YalaNext Shop & Single Product — Custom Styles
   ========================================================== */

/* ------- Page Wrapper Reset ------- */
.yxl-shop-page,
.yxl-product-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    -webkit-font-smoothing: antialiased;
}

/* Hide parent theme shop wrappers */
.woocommerce-shop .site-content > .container,
.single-product .site-content > .container {
    max-width: 100% !important;
    padding: 0 !important;
}
.woocommerce-shop .page-content,
.single-product .page-content {
    background: transparent !important;
}
.yxl-shop-page .woocommerce-result-count,
.yxl-shop-page .woocommerce-ordering,
.yxl-shop-page .woocommerce-products-header,
.yxl-shop-page nav.woocommerce-pagination,
.yxl-shop-page > h1 {
    display: none !important;
}

/* ==========================================================
   SHOP PAGE
   ========================================================== */

.yxl-shop-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.yxl-shop-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 12px;
}
.yxl-shop-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}
.yxl-shop-count {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
    margin-top: 16px;
}

/* Product Grid — 2x2 on desktop, 1 col on mobile */
.yxl-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Product Card */
.yxl-shop-card {
    position: relative;
    background: #fff;
    transition: transform 0.3s ease;
}
.yxl-shop-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
}
.yxl-shop-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}
.yxl-shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.yxl-shop-card:hover .yxl-shop-card-img img {
    transform: scale(1.05);
}

/* Sale badge */
.yxl-shop-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 12px;
    border-radius: 25px;
    z-index: 2;
}

/* Actions container — stacked icons in top-right of card image */
.yxl-shop-card-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

/* Shared circular icon button style (heart + cart) */
.yxl-shop-card-wish,
.yxl-shop-card-cart {
    position: relative;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    padding: 0;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.yxl-shop-card-wish:hover,
.yxl-shop-card-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Wishlist heart */
.yxl-shop-card-wish svg {
    width: 18px;
    height: 18px;
    stroke: #000;
    fill: none;
    stroke-width: 1.5;
    transition: fill 0.2s, stroke 0.2s;
}
.yxl-shop-card-wish.in-wishlist svg,
.yxl-shop-card-wish.is-active svg {
    fill: #991b1b;
    stroke: #991b1b;
}

/* Cart bag icon */
.yxl-shop-card-cart svg {
    width: 18px;
    height: 18px;
    stroke: #000;
    fill: none;
    stroke-width: 1.5;
    transition: opacity 0.2s, transform 0.2s;
}
.yxl-shop-card-cart .yxl-cart-icon-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    stroke: #fff;
    stroke-width: 2;
}
/* AJAX feedback: WooCommerce adds .added on success */
.yxl-shop-card-cart.loading {
    background: #f5f5f5;
}
.yxl-shop-card-cart.added {
    background: #000;
    animation: yxl-cart-pop 0.4s ease-out;
}
.yxl-shop-card-cart.added .yxl-cart-icon-bag {
    opacity: 0;
    transform: scale(0.6);
}
.yxl-shop-card-cart.added .yxl-cart-icon-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
@keyframes yxl-cart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
/* Hide WC's "View Cart" link that gets injected after .added button */
.yxl-shop-card-cart + .added_to_cart {
    display: none !important;
}

/* Card info below image */
.yxl-shop-card-info {
    padding: 18px 4px 0;
}
.yxl-shop-card-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    display: block;
    margin-bottom: 6px;
}
.yxl-shop-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: opacity 0.2s;
}
.yxl-shop-card-name:hover {
    opacity: 0.7;
    color: #000;
}
.yxl-shop-card-price {
    font-size: 14px;
    color: #000;
}
.yxl-shop-card-price ins {
    text-decoration: none;
    font-weight: 700;
    color: #000;
}
.yxl-shop-card-price del {
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}
.yxl-shop-card-price .amount,
.yxl-shop-card-price bdi {
    color: #000;
}

/* No products state */
.yxl-shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}
.yxl-shop-empty p {
    font-size: 14px;
    margin-bottom: 20px;
}
.yxl-shop-empty a {
    display: inline-block;
    background: #000;
    color: #fff;
    border-radius: 25px;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
}

/* ==========================================================
   SINGLE PRODUCT PAGE
   ========================================================== */

/* Breadcrumb (non-clickable spans) */
.yxl-product-breadcrumb {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 32px;
}
.yxl-product-breadcrumb span {
    color: #888;
}
.yxl-product-breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

/* Two-column layout */
.yxl-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

/* ------- Left: Image Gallery ------- */
.yxl-product-gallery {
    position: relative;
}
.yxl-gallery-main {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    margin-bottom: 16px;
    position: relative;
}
.yxl-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}
.yxl-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.yxl-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    padding: 0;
    outline: none;
    flex: 0 0 auto;
}
.yxl-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yxl-gallery-thumb:hover {
    opacity: 0.8;
}
.yxl-gallery-thumb.is-active {
    border-color: #000;
}

/* ------- Right: Product Info (no longer sticky — now contains description + reviews) ------- */
.yxl-product-info {
    /* Sticky removed — column now has long content (description + reviews) */
}
.yxl-product-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
    display: block;
    margin-bottom: 12px;
}
.yxl-product-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 16px;
}
.yxl-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}
.yxl-product-rating .stars {
    color: #000;
    font-size: 14px;
    letter-spacing: 2px;
}
.yxl-product-rating a {
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.yxl-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
}
.yxl-product-price ins {
    text-decoration: none;
    color: #000;
    margin-right: 12px;
}
.yxl-product-price del {
    color: #999;
    font-weight: 400;
    font-size: 18px;
}
.yxl-product-price .amount,
.yxl-product-price bdi {
    color: inherit;
}
.yxl-product-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.yxl-product-excerpt p { margin: 0 0 12px; }
.yxl-product-excerpt p:last-child { margin: 0; }

/* Add to cart form */
.yxl-product-info form.cart {
    margin: 0 0 20px;
}
/* Hide WC's standard variations table — swatches drive the form instead */
.yxl-product-info .variations {
    display: none !important;
}

/* Swatch groups */
.yxl-swatches {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.yxl-swatch-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 10px;
}
.yxl-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Shared swatch base */
.yxl-swatch {
    position: relative;
    background: #fff;
    border: 1.5px solid #ddd;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.yxl-swatch:hover {
    border-color: #000;
}

/* Text/size swatches */
.yxl-swatch-text {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.yxl-swatch-text.is-selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Color swatches */
.yxl-swatch-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    padding: 3px;
    background: #fff;
}
.yxl-swatch-color .yxl-swatch-color-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.yxl-swatch-color:hover {
    transform: scale(1.08);
    border-color: #000;
}
.yxl-swatch-color.is-selected {
    border: 2px solid #000;
    padding: 2px;
}

/* Unavailable state — diagonal strikethrough */
.yxl-swatch.is-unavailable {
    opacity: 0.45;
    cursor: not-allowed;
}
.yxl-swatch.is-unavailable:hover {
    border-color: #ddd;
    transform: none;
}
.yxl-swatch.is-unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 1.5px;
    background: #999;
    transform: rotate(-30deg);
    pointer-events: none;
}
.yxl-swatch-color.is-unavailable::after {
    transform: rotate(-45deg);
    background: #555;
}

/* Clear / reset variations link */
.yxl-product-info .reset_variations {
    font-size: 11px;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 8px;
    display: inline-block;
}
.yxl-product-info .single_variation_wrap {
    margin-bottom: 16px;
}
.yxl-product-info .woocommerce-variation-price {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
}
.yxl-product-info .woocommerce-variation-availability {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

/* Quantity wrapper (matches cart pattern) */
.yxl-product-info .yxl-qty,
.yxl-product-info .quantity {
    display: inline-flex;
    align-items: stretch;
    margin: 0 12px 0 0;
    border: 1.5px solid #000;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    height: 50px;
    box-sizing: border-box;
}
.yxl-product-info .yxl-qty-input,
.yxl-product-info .quantity input.qty {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    outline: none;
    -moz-appearance: textfield;
    padding: 0;
}
.yxl-product-info .yxl-qty-input::-webkit-outer-spin-button,
.yxl-product-info .yxl-qty-input::-webkit-inner-spin-button,
.yxl-product-info .quantity input.qty::-webkit-outer-spin-button,
.yxl-product-info .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.yxl-product-info .yxl-qty-btn {
    width: 40px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}
.yxl-product-info .yxl-qty-btn:hover {
    background: #f5f5f5;
}

/* ATC button */
.yxl-product-info button.single_add_to_cart_button,
.yxl-product-info .single_add_to_cart_button {
    flex: 1;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background 0.25s;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.yxl-product-info button.single_add_to_cart_button:hover {
    background: #222;
}
.yxl-product-info button.single_add_to_cart_button.disabled {
    background: #ccc;
    cursor: not-allowed;
}
.yxl-product-cart-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

/* Wishlist button */
.yxl-product-wishlist {
    width: 100%;
    background: transparent;
    color: #000;
    border: 1.5px solid #000;
    border-radius: 25px;
    padding: 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.yxl-product-wishlist:hover {
    background: #000;
    color: #fff;
}
.yxl-product-wishlist svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}
.yxl-product-wishlist.in-wishlist,
.yxl-product-wishlist.is-active {
    background: #000;
    color: #fff;
}
.yxl-product-wishlist.in-wishlist svg,
.yxl-product-wishlist.is-active svg {
    fill: #fff;
}

/* Meta (SKU, categories) */
.yxl-product-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 12px;
    color: #888;
    line-height: 1.8;
}
.yxl-product-meta strong {
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    margin-right: 6px;
}
.yxl-product-meta a {
    color: #888;
    text-decoration: none;
}
.yxl-product-meta a:hover {
    color: #000;
}

/* ------- Description Section ------- */
.yxl-product-section {
    max-width: 800px;
    margin: 0 auto 64px;
}
.yxl-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #000;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}
.yxl-product-description {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}
.yxl-product-description p { margin: 0 0 16px; }
.yxl-product-description h2,
.yxl-product-description h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #000;
    margin: 32px 0 12px;
}
.yxl-product-description ul,
.yxl-product-description ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.yxl-product-description li { margin-bottom: 6px; }

/* ------- Reviews Section ------- */
.yxl-reviews-wrap #reviews { margin-top: 0; }
.yxl-reviews-wrap .commentlist {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}
.yxl-reviews-wrap .comment_container {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    background: #fff;
}
.yxl-reviews-wrap .comment_container img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.yxl-reviews-wrap .comment-text {
    flex: 1;
    padding: 0;
    border: none;
    background: transparent;
}
.yxl-reviews-wrap .meta {
    margin-bottom: 8px;
    font-size: 12px;
    color: #888;
}
.yxl-reviews-wrap .meta strong {
    color: #000;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}
.yxl-reviews-wrap .star-rating {
    display: inline-block;
    font-size: 14px;
    color: #000;
}
.yxl-reviews-wrap .description {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}
.yxl-reviews-wrap .woocommerce-noreviews {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 40px 20px;
}

/* Review form */
.yxl-reviews-wrap #review_form_wrapper {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 32px;
    margin-top: 32px;
}
.yxl-reviews-wrap #review_form .comment-reply-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px;
    display: block;
}
.yxl-reviews-wrap #review_form .comment-form-rating label,
.yxl-reviews-wrap #review_form .comment-form-comment label,
.yxl-reviews-wrap #review_form .comment-form-author label,
.yxl-reviews-wrap #review_form .comment-form-email label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
    display: block;
    margin-bottom: 8px;
}
.yxl-reviews-wrap #review_form input[type="text"],
.yxl-reviews-wrap #review_form input[type="email"],
.yxl-reviews-wrap #review_form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    color: #000;
    background: #fafafa;
    border: 1.5px solid transparent;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
}
.yxl-reviews-wrap #review_form input:focus,
.yxl-reviews-wrap #review_form textarea:focus {
    border-color: #000;
    background: #fff;
}
.yxl-reviews-wrap #review_form .form-submit input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 14px 32px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background 0.2s;
}
.yxl-reviews-wrap #review_form .form-submit input[type="submit"]:hover {
    background: #222;
}

/* Toast for product page errors (reuses #yxl-toast-host from wishlist) */
.yxl-toast.yxl-error {
    background: #1a1a1a;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-top: 8px;
    transition: opacity 0.3s, transform 0.3s;
}
.yxl-toast.yxl-error .yxl-toast-title {
    font-size: 13px;
    font-weight: 500;
}
.yxl-toast.yxl-hide {
    opacity: 0;
    transform: translateX(20px);
}

/* Flash error on swatch group when user tries to add without picking */
.yxl-swatch-group.yxl-flash-error {
    animation: yxl-swatch-flash 0.4s ease-in-out 2;
    border-radius: 6px;
    padding: 4px;
    margin: -4px;
}
@keyframes yxl-swatch-flash {
    0%, 100% { background: transparent; }
    50% { background: rgba(220, 38, 38, 0.12); }
}

/* Hide Clotya parent theme's sticky add-to-cart bar (fixed bottom bar on mobile)
   — covers both simple and variable products + any nested toggle states */
.single-product-sticky,
.single-product-sticky.sticky-active,
body.single-product-sticky-enable .single-product-sticky,
.single-sticky-wrapper {
    display: none !important;
    visibility: hidden !important;
    transform: translateY(200%) !important;
    pointer-events: none !important;
}
/* Reset body padding/spacing the parent theme adds for the sticky bar */
body.single-product-sticky-enable {
    padding-bottom: 0 !important;
}

/* Hide Express Checkout (Apple Pay / Google Pay / Buy Now) on product pages */
.single-product .wcpay-express-checkout-wrapper,
.single-product #wcpay-express-checkout-element,
.single-product #wcpay-express-checkout-button-separator,
.single-product .wcpay-payment-request-button-wrapper,
.single-product .woocommerce-Buttons,
.single-product .wc-stripe-payment-request-wrapper,
.single-product .wc-stripe-express-checkout-element,
.single-product .wc-stripe-product-checkout-container,
.single-product [class*="express-checkout"],
.single-product [id*="express-checkout"],
.single-product [class*="express_checkout"],
.single-product [class*="payment-request"],
.single-product [class*="buy-now"],
.single-product [class*="buy_now"],
.single-product .yith-wcbn-buy-now-button,
.single-product .single_add_to_cart_button + .button:not(.yxl-product-wishlist),
.yxl-product-info .wcpay-product-details,
.yxl-product-info .woocommerce-Buttons {
    display: none !important;
}

/* ------- Bottom (description + reviews, full width below image+details) ------- */
.yxl-product-bottom {
    max-width: 1300px;
    margin: 32px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.yxl-product-section {
    margin: 0 0 48px;
    max-width: 900px;
}
.yxl-product-section:last-child {
    margin-bottom: 0;
}
.yxl-section-title-left {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #000;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-align: left;
}

/* ------- Related Products (smaller cards) ------- */
.yxl-related-section {
    max-width: 1300px;
    margin: 32px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.yxl-related-section .yxl-section-title {
    margin-bottom: 24px;
}
.yxl-related-section .yxl-shop-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.yxl-related-section .yxl-shop-card-name {
    font-size: 13px;
    margin-bottom: 6px;
}
.yxl-related-section .yxl-shop-card-cat {
    font-size: 10px;
    margin-bottom: 4px;
}
.yxl-related-section .yxl-shop-card-price {
    font-size: 13px;
}
.yxl-related-section .yxl-shop-card-info {
    padding: 12px 4px 0;
}
.yxl-related-section .yxl-shop-card-actions {
    top: 10px;
    right: 10px;
    gap: 6px;
}
.yxl-related-section .yxl-shop-card-wish,
.yxl-related-section .yxl-shop-card-cart {
    width: 32px;
    height: 32px;
}
.yxl-related-section .yxl-shop-card-wish svg,
.yxl-related-section .yxl-shop-card-cart svg {
    width: 15px;
    height: 15px;
}
.yxl-related-section .yxl-shop-card-badge {
    top: 10px;
    left: 10px;
    font-size: 9px;
    padding: 4px 9px;
}

/* Reduce gap between description/reviews end and related section */
.yxl-product-page {
    padding-bottom: 40px;
}
.yxl-product-layout {
    margin-bottom: 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
    .yxl-shop-page,
    .yxl-product-page {
        padding: 24px 16px 60px;
    }
    .yxl-shop-title {
        font-size: 28px;
    }
    .yxl-shop-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    /* Single product mobile — stack */
    .yxl-product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .yxl-product-info {
        position: static;
    }
    .yxl-product-title {
        font-size: 24px;
    }
    .yxl-product-price {
        font-size: 20px;
    }
    .yxl-gallery-thumb {
        width: 64px;
        height: 64px;
    }
    /* Prevent zoom on input focus */
    .yxl-product-info .yxl-qty-input,
    .yxl-product-info .quantity input.qty {
        font-size: 16px !important;
    }
    /* Related products: 2 cols on mobile */
    .yxl-related-section .yxl-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .yxl-product-bottom {
        margin-top: 24px;
        padding-top: 24px;
    }
    .yxl-product-section {
        margin-bottom: 32px;
    }
}

/* ==========================================================================
   Un-stick the parent-theme mobile sticky add-to-cart bar
   The Clotya parent theme injects inline CSS that pins the variation ATC
   form (qty + ADD TO CART) to the bottom of the viewport at <= 64rem.
   Force it back inline so it sits in the product info column like desktop.
   ========================================================================== */
@media (max-width: 64rem) {
    body.single .woocommerce-variation-add-to-cart,
    body.single .product-type-simple form.cart,
    body.single-product .woocommerce-variation-add-to-cart,
    body.single-product .product-type-simple form.cart {
        position: static !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        width: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        background: transparent !important;
    }
}

/* ============================================================
   GALLERY V2 â€” swipe carousel (mobile), arrows + dots (desktop)
   Replaces the old "main + thumb-strip click" pattern.
   ============================================================ */
.yxl-gallery-v2 { position: relative; outline: none; width: 100%; }
.yxl-gallery-v2 .yxl-gallery-stage { position: relative; }
.yxl-gallery-v2 .yxl-gallery-track {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0;
}
.yxl-gallery-v2 .yxl-gallery-track::-webkit-scrollbar { display: none; }
.yxl-gallery-v2 .yxl-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
    background: #f5f5f5;
    overflow: hidden;
}
.yxl-gallery-v2 .yxl-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Arrows â€” visible on desktop, hidden on mobile (swipe instead) */
.yxl-gallery-v2 .yxl-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.yxl-gallery-v2 .yxl-gallery-arrow:hover { background: #000; color: #fff; }
.yxl-gallery-v2 .yxl-gallery-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.yxl-gallery-v2 .yxl-gallery-arrow:disabled:hover { background: rgba(255,255,255,0.92); color: #000; }
.yxl-gallery-v2 .yxl-gallery-prev { left: 16px; }
.yxl-gallery-v2 .yxl-gallery-next { right: 16px; }

/* Dots â€” under the gallery for both desktop + mobile */
.yxl-gallery-v2 .yxl-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 0;
}
.yxl-gallery-v2 .yxl-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}
.yxl-gallery-v2 .yxl-gallery-dot.is-active {
    background: #000;
    width: 22px;
    border-radius: 999px;
}

/* Mobile: hide arrows, swipe-only navigation */
@media (max-width: 768px) {
    .yxl-gallery-v2 .yxl-gallery-arrow { display: none; }
    .yxl-gallery-v2 .yxl-gallery-slide { aspect-ratio: 3 / 4; }
}
