/* Product Detail Page Styles */
.product-detail-page {
    /* padding: 3rem 0; */
    background: var(--color-stone, #FAF8F5);
}

.product-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Breadcrumbs */
.product-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin: 10px 0px;
    padding: 0px;
}

.product-breadcrumbs li:not(:last-child):after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--color-muted, #85827D);
}

.product-breadcrumbs a {
    color: var(--color-muted, #85827D);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumbs a:hover {
    color: var(--color-gold, #C5A880);
}

.product-breadcrumbs li[aria-current="page"] {
    color: var(--rose-deep);
}

/* Product Main Grid */
.product-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 2rem;
}

.gallery-sticky {
    position: sticky;
    top: 100px;
}

@media (max-width: 600px) {
    .product-gallery {
        position: relative;
        top: 0em;
    }
}

.gallery-main {
    background: #ffffff;
    border: 1px solid rgba(197, 168, 128, 0.22);
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.gallery-thumb-item {
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(197, 168, 128, 0.22);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-thumb-item.active {
    border-color: var(--color-gold, #C5A880);
}

.gallery-thumb-item:hover {
    border-color: var(--color-gold, #C5A880);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-category a {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold, #C5A880);
    text-decoration: none;
}

.product-title {
    font-weight: bold;
    color: var(--rose-deep);
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2.5rem;
    }
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    width: 1rem;
    height: 1rem;
}

.star-full {
    color: #FFB800;
}

.star-half {
    color: #FFB800;
}

.star-empty {
    color: var(--rose-deep);
}

.rating-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rose-deep);
}

.reviews-count {
    font-size: 0.75rem;
    color: var(--color-muted, #85827D);
}

/* Pricing */
.product-pricing-detail {
    padding: 1rem 0;
    border-top: 1px solid rgba(197, 168, 128, 0.22);
    border-bottom: 1px solid rgba(197, 168, 128, 0.22);
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-original {
    font-size: 1rem;
    color: var(--color-muted, #85827D);
    text-decoration: line-through;
}

.price-current {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-gold-dark, #A3845B);
}

.price-discount {
    background: var(--color-gold, #C5A880);
    color: var(--rose-deep);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0;
}

.price-note {
    font-size: 0.7rem;
    color: var(--color-muted, #85827D);
    margin-top: 0.5rem;
}

/* Features */
.product-features {
    padding: 0.5rem 0;
}

.features-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 0.75rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 2px 0px;
    position: relative;
    font-size: 0.85rem;
    color: var(--rose-deep);
}

/* Variants */
.product-variants {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variant-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rose-deep);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(197, 168, 128, 0.22);
    background: #ffffff;
    color: var(--rose-deep);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.variant-btn:hover {
    border-color: var(--color-gold, #C5A880);
}

.variant-btn.active {
    background: var(--rose-deep);
    border-color: var(--rose-deep);
    color: #ffffff;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    position: sticky;
    bottom: 0;
    top: 0;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-add-cart {
    background: #fff;
    border: 1px solid var(--rose-deep);
    color: var(--rose-deep);
}

.btn-add-cart:hover {
    background: var(--rose-deep);
    color: #ffffff;
}

.btn-buy-now {
    background: var(--rose-deep);
    color: var(--white);
}

.btn-buy-now:hover {
    background: var(--color-gold-dark, #A3845B);
    transform: translateY(-2px);
}

/* Share Buttons */
.product-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(197, 168, 128, 0.22);
}

.share-label {
    font-size: 0.7rem;
    color: var(--color-muted, #85827D);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: 1px solid rgba(197, 168, 128, 0.22);
    color: var(--rose-deep);
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--color-gold, #C5A880);
    border-color: var(--color-gold, #C5A880);
    color: #ffffff;
}

/* Description Tabs */
.product-description-section {
    max-width: 1300px;
    margin: 0 auto;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0px 0px 20px 2px #0000000f;
    border-radius: 10px;
}

.description-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.22);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted, #85827D);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--color-gold, #C5A880);
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gold, #C5A880);
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-muted, #85827D);
}

.product-description p {
    margin-bottom: 1rem;
}

.product-details-table table {
    width: 100%;
    border-collapse: collapse;
}

.product-details-table tr {
    border-bottom: 1px solid rgba(197, 168, 128, 0.22);
}

.product-details-table th,
.product-details-table td {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.85rem;
}

.product-details-table th {
    font-weight: 600;
    color: var(--rose-deep);
    width: 30%;
}

.product-details-table td {
    color: var(--color-muted, #85827D);
}

.shipping-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--rose-deep);
}

.shipping-info p {
    font-size: 0.85rem;
    color: var(--color-muted, #85827D);
    margin-bottom: 1rem;
}

/* Related Products */
.related-products-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 168, 128, 0.22);
    margin-bottom: 4rem;
}

.related-title {
    font-family: var(--font-serif, "Cormorant Garamond", serif);
    font-size: 1.75rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--rose-deep);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-container {
        padding: 0 1rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .price-current {
        font-size: 1.5rem;
    }

    .product-actions {
        gap: 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .description-tabs {
        gap: 0.5rem;
        overflow-x: auto;
    }

    .tab-btn {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .bc-cart-input>button {
        padding: 0px 10px;
    }

    .bc-cart-input {
        border-right: 1px solid #fff;
    }
}

/* Print Styles */
@media print {

    .product-actions,
    .product-share,
    .related-products-section,
    .description-tabs {
        display: none;
    }

    .tab-content {
        display: block !important;
    }
}

.product-seller {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.product-seller>a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    align-self: start;
    background-color: #fff;
    box-shadow: 0px 0px 3px 0px #00000040;
    padding: 0px 10px;
    border-radius: 10px;
    font-weight: bold;
}

.product-seller>a>img {
    max-height: 30px;
    width: auto;
}

.product-seller>span {
    font-size: 12px;
}

/* PACKAGE DETAIL */
.product-package-customizer {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 3px #00000003;
    padding: 10px;
    max-width: 500px;
    margin: auto;
    width: 100%;
}

.product-package-customizer>span {
    font-weight: bold;
    font-size: 18px;
}

.package-products {
    display: flex;
    flex-direction: column;
}

.package-products>div {
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.package-products>div>span {
    display: inline-flex;
    border-bottom: 2px solid orange;
    font-weight: 500;
    font-size: 15px;
    align-self: flex-start;
    padding-right: 10px;
    margin-bottom: 5px;
}

.package-products>div>label {
    display: flex;
    flex-direction: row;
    font-size: 12px;
    margin-bottom: 5px;
}

.package-products>div>label>span {
    display: flex;
    flex: 1;
}

.package-products>div>label>div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.package-header {
    display: flex;
    flex-direction: column;
}

.package-header>span {
    font-size: 12px;
}

/* PACKAGE EDITOR */
.product-package-card {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-package-card * {
    box-sizing: border-box;
}

.product-package-body {
    padding: 18px;
}

.product-package-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.product-package-title {
    font-size: 12px;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-package-subtitle {
    font-size: 11px;
    color: #8e99a8;
}

.product-package-badge-waxing {
    display: inline-block;
    background-color: #eaecff;
    color: #373bc0;
    font-weight: 800;
    font-size: 18px;
    padding: 6px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.product-package-service-box {
    border-bottom: 1px solid #e5e8f0;
    border-radius: 5px;
    padding: 5px;
    background-color: #ffffff;
    margin-bottom: 5px;
}

.product-package-service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #121826;
}

.product-package-service-header>label>input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.product-package-service-header>label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-package-service-header>select {
    margin-left: auto;
    padding: 5px 40px 5px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all .2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.product-package-service-header>select:hover {
    border-color: #bdbdbd;
}

.product-package-service-header>select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.product-package-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-package-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
    background-color: #fafdff;
    cursor: pointer;
}

.product-package-option:hover {
    background-color: #f9f3f3;
}

.product-package-option.selected {
    border: 1.5px solid #ff3366;
    background-color: #fff0f3;
}

.product-package-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-package-label {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-package-option.selected .product-package-label {
    color: #c0083e;
}

.product-package-tag-best {
    background-color: #fff3c4;
    color: #7a5800;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-package-price {
    font-size: 15px;
    font-weight: 800;
    color: #121826;
}

.product-package-footer {
    background-color: #0b1122;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    top: 0;
}

.product-package-total-price {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.product-package-btn-book {
    background: linear-gradient(90deg, #e72e6b 0%, #7d31f4 100%);
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}