/* =============================================================================
   MK-SINGLE.CSS — Michael Kors Product Page Overrides (Clean Rewrite)
   Flatsome child theme: michaelkors
   Container setting: 1600px (set in Flatsome Customizer — we do NOT override it)
   ============================================================================= */


/* -----------------------------------------------------------------------------
   1. HIDE UNWANTED FLATSOME DEFAULTS
   ----------------------------------------------------------------------------- */

/* Breadcrumbs */
.woocommerce-breadcrumb {
    display: none !important;
}

/* Product navigation arrows */
.product-nav {
    display: none !important;
}

/* Divider line under product title */
.product-info .is-divider,
.product-info hr,
.product-info .product-title~.is-divider,
.product-info .product-title~div[class*='divider'] {
    display: none !important;
}

/* Quantity field */
.product-info form.cart div.quantity {
    display: none !important;
}

/* Border-top on all footer/section elements */
.product-footer,
h3.product-section-title,
.related.products,
.up-sells,
#reviews,
.woocommerce-tabs,
.product-page-wrapper,
.product-section {
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* Section title decorations (line, bold dot) */
.product-section-title b,
.product-section-title .line,
.section-title-normal .line,
.section-title-normal b {
    display: none !important;
}


/* -----------------------------------------------------------------------------
   2. PRODUCT INFO — RIGHT COLUMN (Sticky sidebar)
   ----------------------------------------------------------------------------- */

.product-info {
    padding: 0 40px !important;
    position: sticky !important;
    top: 20px !important;
    height: max-content !important;
}

/* Product title */
.product-info .product-title {
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #111 !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    letter-spacing: 0.3px !important;
}

/* Price */
.product-info .price-wrapper .price,
.product-info .price {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #111 !important;
    margin-bottom: 25px !important;
}


/* -----------------------------------------------------------------------------
   3. VARIATIONS (Colors swatches)
   ----------------------------------------------------------------------------- */

.product-info table.variations {
    margin-bottom: 0 !important;
    border: none !important;
}

.product-info table.variations th {
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    vertical-align: middle !important;
    color: #111 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
}

.product-info table.variations td {
    padding-bottom: 0 !important;
    vertical-align: middle !important;
}

/* "Xóa" reset link */
.product-info .reset_variations {
    position: static !important;
    display: inline-block !important;
    font-size: 11px !important;
    margin-left: 10px !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transform: none !important;
}


/* -----------------------------------------------------------------------------
   4. CART FORM & BUTTONS (Add to Cart + Buy Now)
   ----------------------------------------------------------------------------- */

/* The form wraps both variations AND buttons — keep it block so they stack */
.product-info form.cart {
    display: block !important;
    padding-bottom: 25px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    margin-bottom: 25px !important;
}

/* The button container only — flex row for side-by-side buttons */
.product-info .woocommerce-variation-add-to-cart,
.product-info form.cart:not(.variations_form) {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 25px !important;
}

/* Shared button styles */
.product-info form.cart button,
.product-info form.cart .button {
    flex: 1 1 50% !important;
    width: 50% !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    cursor: pointer !important;
}

/* "THÊM VÀO GIỎ HÀNG" — black background */
.product-info form.cart .single_add_to_cart_button {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

.product-info form.cart .single_add_to_cart_button:hover {
    background-color: #333 !important;
}

/* "MUA NGAY" — white background, black border */
.product-info form.cart .ux-buy-now-button,
.product-info form.cart button[name="ux-buy-now"],
.product-info form.cart .buy-now-button {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

.product-info form.cart .ux-buy-now-button:hover,
.product-info form.cart button[name="ux-buy-now"]:hover,
.product-info form.cart .buy-now-button:hover {
    background-color: #f5f5f5 !important;
    color: #000 !important;
}


/* -----------------------------------------------------------------------------
   5. DETAILS & REVIEWS BUTTONS (below cart)
   ----------------------------------------------------------------------------- */

.mk-product-extra-buttons {
    margin-top: 0 !important;
    border-top: none !important;
}

.mk-btn-outline {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 20px 0 !important;
    font-size: 13px !important;
    color: #333 !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #e5e5e5 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    background: transparent !important;
}

.mk-btn-outline span {
    font-size: 18px !important;
    font-weight: 300 !important;
}

.mk-btn-outline:hover {
    color: #000 !important;
}


/* -----------------------------------------------------------------------------
   6. OFF-CANVAS DETAILS PANEL
   ----------------------------------------------------------------------------- */

.mk-offcanvas-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background: #fff;
    z-index: 999999;
    transition: right 0.4s ease, visibility 0.4s;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    visibility: hidden;
}

.mk-offcanvas-right.active {
    right: 0;
    visibility: visible;
}

.mk-offcanvas-header {
    position: relative;
    padding: 30px 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mk-offcanvas-header h3 {
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mk-offcanvas-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    color: #000;
    transition: opacity 0.3s;
}

.mk-offcanvas-close:hover {
    opacity: 0.6;
}

.mk-offcanvas-content {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.8;
}

/* Overlay */
.mk-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.mk-offcanvas-overlay.active {
    display: block;
    opacity: 1;
}


/* -----------------------------------------------------------------------------
   7. PRODUCT GALLERY (stacked images)
   ----------------------------------------------------------------------------- */

.product-gallery .woocommerce-product-gallery__image {
    margin-bottom: 10px !important;
}

.product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
}


/* -----------------------------------------------------------------------------
   8. RELATED PRODUCTS & REVIEWS SECTION
   ----------------------------------------------------------------------------- */

.up-sells,
.related.products {
    margin-top: 80px;
    padding-top: 40px;
}

#reviews {
    margin-top: 30px;
    padding-top: 0px;
    margin-bottom: 30px;
}

/* Related products typography */
.product-small .product-title,
.product-small .product-title a {
    font-size: 15px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: #111 !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

.product-small .price-wrapper .price,
.product-small .price {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111 !important;
}

.product-small .category {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* Section title alignment */
.related h3.product-section-title {
    padding-left: 10px !important;
    border: none !important;
}

/* Make slider row fill the container width */
.related .row {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Prevent 5th item from peeking */
.related .flickity-viewport {
    overflow: hidden !important;
}


/* -----------------------------------------------------------------------------
   9. SLIDER NAVIGATION ARROWS (Custom MK-style chevrons)
   ----------------------------------------------------------------------------- */

/* Arrow button base */
.related .flickity-prev-next-button {
    margin-top: 0px !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Position */
.related .flickity-prev-next-button.previous {
    left: -10px !important;
}

.related .flickity-prev-next-button.next {
    right: -10px !important;
}

/* Hide Flatsome's default SVG icon */
.related .flickity-button-icon {
    display: none !important;
}

/* Custom CSS chevron arrows */
.related .flickity-prev-next-button::after {
    content: '' !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    border-top: 2px solid #555 !important;
    border-left: 2px solid #555 !important;
    position: absolute !important;
    top: 50% !important;
    transition: border-color 0.2s !important;
}

.related .flickity-prev-next-button.previous::after {
    transform: translateY(-50%) rotate(-45deg) !important;
    left: 20px !important;
}

.related .flickity-prev-next-button.next::after {
    transform: translateY(-50%) rotate(135deg) !important;
    right: 20px !important;
}

.related .flickity-prev-next-button:hover::after {
    border-color: #000 !important;
}