/**
 * Product Detail Styles - PhÃ¡p Phá»¥c Tu SÄ©
 */

/* ===========================
 * PRODUCT MAIN
 * =========================== */
.product-main {
    padding: 48px 0;
    background: transparent;
}

.product-main .product-gallery,
.product-main .summary,
.product-main .product-info {
    background: var(--pp-bg-card); /* Dark gray card background */
    border: 1px solid var(--pp-border); /* Subtle border */
    border-radius: var(--pp-radius-lg, 8px);
    padding: 30px;
    box-shadow: var(--pp-shadow);
}

@media (max-width: 768px) {
    .product-main .product-gallery,
    .product-main .summary,
    .product-main .product-info {
        padding: 15px;
    }
}

.product_title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pp-sale);
    margin-bottom: 24px;
}

.price del {
    font-size: 1.25rem;
    color: var(--pp-muted);
    margin-right: 12px;
}

/* ===========================
 * PRODUCT GALLERY
 * =========================== */
.woocommerce-product-gallery {
    margin-bottom: 32px;
}

.woocommerce-product-gallery__image {
    border-radius: var(--pp-radius);
    overflow: hidden;
}

.woocommerce-product-gallery__trigger {
    background: var(--pp-gold-orange);
    color: var(--pp-red-deep);
    border-radius: 4px;
}

/* ===========================
 * PRODUCT META
 * =========================== */
.product_meta {
    padding-top: 24px;
    border-top: 1px solid var(--pp-border);
    margin-top: 24px;
}

.product_meta > span {
    display: block;
    margin-bottom: 8px;
    color: var(--pp-muted);
}

.product_meta a {
    color: var(--pp-gold-orange);
}

/* ===========================
 * ADD TO CART
 * =========================== */
.single_add_to_cart_button {
    background: var(--pp-gold-orange) !important;
    color: var(--pp-red-deep) !important;
    padding: 16px 32px !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: var(--pp-radius) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.single_add_to_cart_button:hover {
    background: var(--pp-gold-orange-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(242, 193, 92, 0.28);
}

.quantity input {
    border-color: var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 8px 12px;
}

/* ===========================
 * PRODUCT TABS
 * =========================== */
.woocommerce-tabs {
    margin-top: 48px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--pp-border);
    margin-bottom: 32px;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    color: var(--pp-text);
    font-weight: 600;
    border-radius: var(--pp-radius) var(--pp-radius) 0 0;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li:hover a,
.woocommerce-tabs ul.tabs li.active a {
    background: var(--pp-gold-orange);
    color: var(--pp-white);
}

.woocommerce-tabs .panel {
    padding: 24px;
    background: transparent;
    border-radius: var(--pp-radius);
}

/* ===========================
 * VARIATIONS
 * =========================== */
.variations select {
    border-color: var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 8px 12px;
}

.variations label {
    font-weight: 600;
    color: #ffffff;
}

.reset_variations {
    color: var(--pp-gold-orange);
}

/* ===========================
 * RELATED PRODUCTS
 * =========================== */
.related.products {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--pp-border);
}

.related.products h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pp-white);
    text-align: center;
    margin-bottom: 48px;
}

/* ===========================
 * ACF PRODUCT INFO
 * =========================== */
.pp-product-info {
    margin-top: 32px;
    padding: 24px;
    background: transparent;
    border-radius: var(--pp-radius);
}

.pp-product-info__row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--pp-border);
}

.pp-product-info__row:last-child {
    border-bottom: none;
}

.pp-product-info__label {
    flex: 0 0 180px;
    font-weight: 600;
    color: #ffffff;
}

.pp-product-info__value {
    flex: 1;
    color: var(--pp-text);
}

/* Fix: Single product wrapper background */
.single-product .shop-container {
    background-color: var(--pp-bg-section) !important;
}


.single-product #main,
.single-product #wrapper {
    background-color: var(--pp-bg-section) !important;
}


/* Sidebar Product List Widget Fix (S?n Ph?m Ðã Xem) */
ul.product_list_widget li {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pp-border);
}

ul.product_list_widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

ul.product_list_widget li img {
    width: 30px !important;
    height: 30px !important;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 !important;
    float: none !important;
    box-shadow: none !important;
}

ul.product_list_widget li > a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    color: var(--pp-text-light);
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 500;
}

ul.product_list_widget li > a:hover {
    color: var(--pp-gold);
}

ul.product_list_widget li .amount {
    display: none; /* Hide price in recently viewed if needed, or adjust */
}


/* Pro Vertical List for Sidebar Products */
.pro-vertical-list .row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pro-vertical-list .col {
    padding-bottom: 0 !important;
}

.pro-vertical-list .product-small.box {
    display: flex !important;
    align-items: center;
    flex-direction: row !important;
    gap: 15px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding-bottom: 15px !important;
    border-radius: 0 !important;
}

.pro-vertical-list .col:last-child .product-small.box {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.pro-vertical-list .box-image {
    width: 40px !important; /* using 40px as 30px is a bit too small for product images, but let me use 40px */
    flex: 0 0 40px;
    height: 40px !important;
    overflow: hidden;
    border-radius: 4px;
}

.pro-vertical-list .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: static !important;
}

.pro-vertical-list .box-text {
    flex: 1;
    text-align: left !important;
    padding: 0 !important;
}

.pro-vertical-list .box-text .title-wrapper {
    margin: 0 !important;
}

.pro-vertical-list .box-text .product-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
    color: var(--pp-text-light) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pro-vertical-list .box-text .price-wrapper {
    display: none !important; /* Hide price or add custom style */
}

/* Fix width to 30px per user request exactly */
.pro-vertical-list .box-image {
    width: 30px !important;
    flex: 0 0 30px;
    height: 30px !important;
}



/* Fix white background behind product gallery */
.single-product .product-gallery,
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a,
.single-product .product-gallery-slider .flickity-slider .col {
    background-color: transparent !important;
}

.single-product .product-gallery-slider .flickity-slider .col {
    background: transparent !important;
}

