/* =========================================
   GLOBAL FONT
========================================= */

/* =========================================
   GLOBAL FONT - ARIAL
========================================= */
/* su dung arial cho text */

/* su dung fontawesome cho icon */
i,
.fa,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 7 Free", "Font Awesome 7 Brands" !important;
}
/* =========================================
   PRODUCT DETAIL PAGE
========================================= */

.product-detail-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 70px 60px;
    box-sizing: border-box;
    color: #333333;
}

.product-detail-container,
.product-detail-container * {
    box-sizing: border-box;
}

/* =========================================
   BREADCRUMB
========================================= */

.product-breadcrumb {
    width: 100%;
    min-height: 100px;
    margin: 0;
    padding: 20px max(70px, calc((100% - 1300px) / 2));

    background-color: #F9F1E7;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;

    font-size: 16px;
}

.product-breadcrumb a {
    color: #9F9F9F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: #B88E2F;
}

.breadcrumb-arrow {
    color: #9F9F9F;
    font-size: 25px;
    line-height: 1;
}

.breadcrumb-divider {
    width: 1px;
    height: 37px;
    background-color: #9F9F9F;
}

.breadcrumb-current {
    color: #000000;
}

/* =========================================
   PRODUCT INFORMATION
========================================= */

.product-information {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;

    padding: 50px 30px 35px;
}

.product-gallery {
    min-width: 0;
}

.product-main-image {
    width: 100%;
    min-height: 450px;
    aspect-ratio: 1 / 1;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    border-radius: 10px;

    background-color: #F9F1E7;
}

.product-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-image-placeholder {
    padding: 30px;
    color: #9F9F9F;
    text-align: center;
}

/* =========================================
   PRODUCT DETAILS
========================================= */

.product-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-name {
    margin: 0 0 12px;
    color: #000000;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* =========================================
   PRICE
========================================= */

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.current-price {
    color: #9F9F9F;
    font-size: 24px;
    font-weight: 500;
}

.original-price {
    color: #B0B0B0;
    font-size: 18px;
    text-decoration: line-through;
}

.discount-badge {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #E97171;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}

/* =========================================
   PRODUCT RATING
========================================= */

.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 8px;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-stars .star {
    color: #D8D8D8;
    font-size: 20px;
}

.rating-stars .star.active {
    color: #FFC700;
}

.rating-divider {
    width: 1px;
    height: 22px;
    background: #DDDDDD;
}

.rating-text {
    font-size: 13px;
    color: #888888;
}

/* =========================================
   INTERACTIVE RATING
========================================= */

.submit-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 20px;
}

.rating-prompt {
    font-size: 14px;
    color: #555555;
}

.interactive-stars {
    display: flex;
    flex-direction: row;
    gap: 3px;
}

.rating-button {
    border: none;
    background: none;
    padding: 0;
    color: #CCCCCC;
    font-size: 25px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.interactive-stars:hover .rating-button {
    color: #FFC700;
}

.interactive-stars .rating-button:hover ~ .rating-button {
    color: #CCCCCC;
}

/* =========================================
   REVIEWS SUMMARY
========================================= */

.review-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 20px 0;
}

.review-average {
    font-size: 42px;
    font-weight: 600;
    color: #333333;
}

.review-count {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #888888;
}

/* =========================================
   DESCRIPTION
========================================= */

.product-description {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    color: #000000;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* =========================================
   QUANTITY AND ACTION BUTTONS
========================================= */

.product-actions {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-top: 25px;
}

.quantity-selector {
    width: 120px;
    min-width: 120px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    border: 1px solid #616161;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-selector button {
    width: 30px;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-selector button:hover {
    background-color: #F5F5F5;
}

.quantity-selector input {
    width: 40px;
    min-width: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #000000;
    font-size: 16px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product-action-button {
    min-height: 60px;
    padding: 0 24px;
    border: 1px solid #000000;
    border-radius: 12px;
    background-color: transparent;
    color: #000000;
    font-size: 16px;
    white-space: nowrap;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.product-action-button:hover {
    border-color: #B88E2F;
    background-color: #B88E2F;
    color: #FFFFFF;
}

/* =========================================
   PRODUCT METADATA
========================================= */

.product-divider {
    width: 100%;
    height: 1px;
    margin: 35px 0 20px;
    border: none;
    background-color: #D9D9D9;
}

.product-metadata {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    color: #9F9F9F;
    font-size: 15px;
}

.metadata-item {
    display: grid;
    grid-template-columns: 90px 15px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.metadata-label,
.metadata-colon {
    color: #9F9F9F;
}

.metadata-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.share-links a {
    color: #000000;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.share-links a:hover {
    color: #B88E2F;
}

/* =========================================
   SECTION DIVIDER
========================================= */

.section-divider {
    width: 100%;
    height: 1px;
    margin: 30px 0;
    border: none;
    background-color: #D9D9D9;
}

/* =========================================
   DESCRIPTION TABS
========================================= */

.product-description-section {
    padding: 10px 0 30px;
}

.description-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-bottom: 35px;
}

.description-tab {
    padding: 10px 0;
    border: none;
    background: transparent;
    color: #9F9F9F;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
}

.description-tab:hover,
.description-tab.active {
    color: #000000;
}

.description-tab.active {
    font-weight: 500;
}

.description-content {
    width: 100%;
    max-width: 1026px;
    margin: 0 auto;
}

.description-panel {
    display: none;
    color: #9F9F9F;
    font-size: 15px;
    line-height: 1.9;
}

.description-panel.active {
    display: block;
}

.description-panel p {
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.additional-info-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #E5E5E5;
}

/* =========================================
   RELATED PRODUCTS
========================================= */

.related-products {
    width: 100%;
    padding: 10px 0 0;
    margin: 0;
}

.related-products-title {
    margin: 20px 0 35px;
    color: #333333;
    font-size: 36px;
    font-weight: 400;
    text-align: center;
}

.related-products-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Shared product card overrides */

.related-products-grid > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.related-products-grid .product_card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.related-products-grid .product_card .display_content {
    width: 100%;
    height: 100%;
}

.related-products-grid .product_card .card_content {
    width: 100%;
    min-width: 0;
}

.related-products-grid .product_card .card_content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.related-products-more {
    display: flex;
    justify-content: center;
    margin: 45px 0 20px;
}

.show-more-button {
    min-width: 245px;
    min-height: 48px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 10px 25px;
    border: 1px solid #B88E2F;

    background-color: transparent;
    color: #B88E2F;

    font-size: 16px;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.show-more-button:hover {
    background-color: #B88E2F;
    color: #FFFFFF;
}

/* =========================================
   VIRTUAL TRY-ON
========================================= */

.virtual-tryon {
    width: 100%;
    max-width: 100%;
    margin: 60px 0;
    box-sizing: border-box;
}

.virtual-tryon * {
    box-sizing: border-box;
}

.tryon-heading {
    text-align: center;
    margin-bottom: 45px;
}

.tryon-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #B88E2F;
}

.tryon-heading h2 {
    font-size: 32px;
    margin: 12px 0;
    color: #333333;
}

.tryon-heading p {
    color: #777777;
    font-size: 15px;
}

.tryon-container {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Upload panel */

.tryon-upload-panel,
.tryon-preview-panel {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    padding: 25px;
}

.tryon-upload-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tryon-upload-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #F9F1E7;
    color: #B88E2F;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    margin-bottom: 15px;
}

.tryon-upload-panel h3 {
    font-size: 18px;
    margin: 5px 0;
}

.tryon-upload-panel p {
    color: #888888;
    font-size: 13px;
    line-height: 1.6;
}

.tryon-upload-button {
    margin-top: 15px;
    padding: 12px 22px;
    background: #B88E2F;
    color: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;

    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.tryon-upload-button:hover {
    background: #967324;
}

.tryon-file-name {
    margin-top: 12px;
    color: #888888;
    font-size: 12px;
    word-break: break-word;
}

.tryon-tips {
    margin-top: auto;
    padding-top: 35px;

    display: flex;
    gap: 10px;

    text-align: left;
    color: #999999;
    font-size: 12px;
    line-height: 1.6;
}

.tryon-tips i {
    color: #B88E2F;
}

/* Preview panel */

.tryon-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.tryon-preview-header h3 {
    font-size: 17px;
    margin: 0;
}

.tryon-demo-badge {
    background: #FFF4DC;
    color: #B88E2F;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Preview canvas */

.tryon-canvas {
    position: relative;
    width: 100%;
    height: 430px;
    background: #F5F5F5;
    border-radius: 8px;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

.tryon-empty {
    text-align: center;
    color: #BBBBBB;
    padding: 20px;
}

.tryon-empty i {
    font-size: 55px;
    margin-bottom: 15px;
}

.tryon-empty p {
    font-size: 13px;
}

.room-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
}

.furniture-overlay {
    display: none;
    position: absolute;
    width: 40%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.furniture-overlay:active {
    cursor: grabbing;
}

/* Try-on controls */

.tryon-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 22px;
}

.tryon-size-control {
    flex: 1;
    min-width: 0;
}

.tryon-size-control label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.tryon-size-control input {
    width: 100%;
    accent-color: #B88E2F;
}

.tryon-action-button {
    border: none;
    background: #B88E2F;
    color: #FFFFFF;
    padding: 14px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    white-space: nowrap;
}

.tryon-action-button:hover:not(:disabled) {
    background: #967324;
}

.tryon-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tryon-disclaimer {
    margin-top: 15px;
    color: #999999;
    font-size: 11px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .product-detail-container {
        padding-right: 35px;
        padding-left: 35px;
    }

    .product-information {
        gap: 35px;
        padding-right: 0;
        padding-left: 0;
    }

    .product-name {
        font-size: 34px;
    }

    .product-actions {
        gap: 10px;
    }

    .product-action-button {
        padding-right: 16px;
        padding-left: 16px;
    }

    .related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .product-detail-container {
        padding: 0 20px 40px;
    }

    .product-breadcrumb {
        min-height: 75px;
        padding: 15px 20px;
        gap: 12px;
        font-size: 13px;
    }

    .breadcrumb-arrow {
        font-size: 20px;
    }

    .breadcrumb-divider {
        height: 25px;
    }

    .product-information {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-top: 30px;
    }

    .product-main-image {
        min-height: 0;
        max-height: 500px;
    }

    .product-name {
        font-size: 32px;
    }

    .current-price {
        font-size: 22px;
    }

    .product-actions {
        margin-top: 15px;
    }

    .product-action-button {
        flex: 1;
    }

    .description-tabs {
        gap: 20px;
    }

    .description-tab {
        font-size: 17px;
    }

    .related-products-title {
        font-size: 28px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .tryon-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .tryon-upload-panel {
        min-height: 300px;
    }

    .virtual-tryon {
        margin: 40px 0;
    }
}

@media (max-width: 480px) {

    .product-detail-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .product-breadcrumb {
        padding-right: 15px;
        padding-left: 15px;
        gap: 8px;
        font-size: 12px;
    }

    .product-name {
        font-size: 28px;
    }

    .product-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quantity-selector {
        width: 100%;
        min-width: 0;
        grid-column: 1 / -1;
    }

    .product-action-button {
        width: 100%;
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }

    .description-tabs {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .description-tab {
        font-size: 17px;
    }

    .additional-info-row {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 10px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tryon-upload-panel,
    .tryon-preview-panel {
        padding: 16px;
    }

    .tryon-canvas {
        height: 300px;
    }

    .tryon-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .tryon-action-button {
        width: 100%;
    }

    .tryon-heading h2 {
        font-size: 25px;
    }
}
/* Use Arial throughout the product detail page */
.product-detail-container,
.product-detail-container *:not(i):not([class^="fa"]):not([class*=" fa"]),
body {
    font-family: Arial, Helvetica, sans-serif !important;
}
