/* =========================================================
   PREMIUM AESTHETIC PRODUCT DETAILS PAGE DESIGN SYSTEM
   v2.0 — Emerald Luxury Edition
   ========================================================= */

html {
    scroll-behavior: smooth;
}

/* --- 1. Page & Layout Reset --- */
.main-details-page {
    background-color: transparent !important;
    padding: 30px 0 20px;
    font-family: var(--font-main);
}

.product-section {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 30px;
}

/* --- 1b. Gallery Card Wrapper (Left Column) --- */
.details-gallery-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- 1c. Product Info Panel (Right Column) --- */
.product-info-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Section Divider */
.product-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin: 8px 0;
}

/* --- 2. Premium Breadcrumbs --- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 18px;
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb ul li a {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumb ul li a:hover {
    color: var(--theme-primary);
}

.breadcrumb ul li.breadcrumb-sep {
    color: #d1d5db;
    display: flex;
    align-items: center;
}

.breadcrumb ul li.breadcrumb-sep svg {
    width: 12px;
    height: 12px;
}

.breadcrumb ul li.breadcrumb-current a {
    color: var(--theme-primary);
    font-weight: 600;
}

/* --- 3. Interactive Gallery & 1:1 Square Aspect Ratio Box --- */
.details_slider {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    aspect-ratio: 1 / 1;
    width: 100%;
}

.details_slider:not(.owl-loaded) {
    display: flex;
    overflow: hidden;
}

.details_slider:not(.owl-loaded) > :not(:first-child) {
    display: none !important;
}

.main-details-page .dimage_item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 8px;
    margin: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
    box-sizing: border-box;
    position: relative;
    border-radius: 14px;
}

.main-details-page .dimage_item img {
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px !important;
    transition: transform 0.12s ease-out;
    transform-origin: center center;
    pointer-events: none;
    will-change: transform, transform-origin;
}

.main-details-page .dimage_item.zoomed img {
    transform: scale(2.2);
}

/* Gallery Zoom Hint */
.gallery-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    z-index: 5;
}

.gallery-zoom-hint svg {
    width: 13px;
    height: 13px;
}

/* Discount Badge Overlay */
.product-details-discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
}

.sale-badge-box {
    background: var(--theme-danger-gradient, linear-gradient(135deg, #db2c2c, #a92c2c));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(219, 44, 44, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sale-badge-text p {
    margin: 0;
    display: inline-block;
    margin-right: 3px;
}

/* Thumbnails */
.indicator_thumb {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.main-details-page .indicator-item {
    width: 68px;
    height: 68px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 2px;
}

.main-details-page .indicator-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.3s;
}

.main-details-page .indicator-item:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
}

.main-details-page .indicator-item.active {
    border-color: var(--theme-primary);
    border-width: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 158, 96, 0.2);
}

/* --- 4. Product Details Right Column --- */
.main-details-page .details-left-gallery,
.main-details-page .details_right {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Name as H1 */
.product-cart .name,
.product-cart h1.name {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.product-code-row {
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.product-code {
    font-size: 0.85rem;
    color: var(--theme-text-muted, #4b5563);
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-code-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.88rem;
}

.product-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--theme-primary-soft, rgba(0, 158, 96, 0.08));
    border: 1px dashed var(--theme-primary, #009e60);
    color: var(--theme-primary, #009e60);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: all;
}

.product-code-badge:hover {
    background: var(--theme-primary, #009e60);
    color: #ffffff;
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.25);
}

.product-code-badge .copy-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 2px;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.product-code-badge:hover .copy-btn {
    opacity: 1;
}

.product-code-badge .check-icon {
    display: none;
}

.product-code-badge.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    border-style: solid !important;
}

.product-code-badge.copied .copy-icon {
    display: none !important;
}

.product-code-badge.copied .check-icon {
    display: inline-block !important;
}

/* Pricing Layout */
.details-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    line-height: 1;
    flex-wrap: wrap;
}

.details-price del {
    color: #9ca3af;
    font-size: 1.65rem;
    font-weight: 500;
    text-decoration: line-through;
}

.details-price-savings {
    font-size: 0.95rem;
    font-weight: 700;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}

/* Ratings Summary */
.details-ratting-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fffbeb;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #fde68a;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.details-ratting-wrapper span {
    font-size: 0.87rem;
    font-weight: 700;
    color: #92400e;
    margin-left: 3px;
}

.all-reviews-button {
    font-size: 0.82rem;
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s;
    margin-left: 8px;
    border-left: 1px solid #d1d5db;
    padding-left: 10px;
}

.all-reviews-button:hover {
    color: var(--theme-primary-hover);
    text-decoration: underline;
}

/* --- Notice Banner (Product Note) --- */
.product-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(220, 38, 38, 0.05);
    border-left: 4px solid #dc2626;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-notice-banner .notice-icon {
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 1px;
}

.product-notice-banner strong {
    color: #dc2626;
    font-weight: 700;
}

.product-notice-banner p {
    margin: 0;
    color: #374151;
}

/* --- Trust Badge Row --- */
.trust-badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin: 16px 0;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
}

.trust-badge-item svg {
    width: 15px;
    height: 15px;
    color: var(--theme-primary);
    flex-shrink: 0;
}

/* --- 5. Custom Attribute Selectors --- */
.product-variations-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.pro-color,
.pro-size {
    margin-bottom: 8px;
    width: 100%;
}

.color_inner p,
.size_inner p {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.color_inner p span.selected-val,
.size_inner p span.selected-val {
    font-weight: 700;
    color: var(--theme-primary, #009e60);
    background: rgba(0, 158, 96, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.size-container {
    margin-bottom: 0;
}

.size-container .selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selector-item {
    position: relative;
    display: inline-flex;
}

/* Color Radio Inputs */
.pro-color .selector-item {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.pro-color .selector-item_radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pro-color .selector-item_label {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    outline: 1.5px solid #cbd5e1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pro-color .selector-item_label:hover {
    transform: scale(1.1);
    outline-color: var(--theme-primary, #009e60);
}

.pro-color .selector-item_label span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-color .selector-item_label span img {
    width: 14px !important;
    height: 14px !important;
    opacity: 0;
    transition: all 0.25s ease;
    filter: brightness(0) invert(1);
}

.pro-color .selector-item_radio:checked+.selector-item_label {
    outline: 2.5px solid var(--theme-primary, #009e60);
    outline-offset: 2px;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.25);
}

.pro-color .selector-item_radio:checked+.selector-item_label span img {
    opacity: 1;
}

.pro-color .color-name-text {
    display: none !important;
}

/* Size Radio Buttons */
.pro-size .selector-item_radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pro-size .selector-item_label {
    padding: 7px 16px;
    background-color: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pro-size .selector-item_label:hover {
    border-color: var(--theme-primary, #009e60);
    color: var(--theme-primary, #009e60);
    transform: translateY(-1.5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.pro-size .selector-item_radio:checked+.selector-item_label {
    background-color: var(--theme-primary, #009e60);
    color: #ffffff;
    border-color: var(--theme-primary, #009e60);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(0, 158, 96, 0.3);
}

.variation-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.92rem;
    color: #4b5563;
    flex-wrap: wrap;
}

.variation-meta-row .meta-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: #4b5563;
}

.variation-meta-row .meta-item span {
    font-weight: 600;
    color: #374151;
}

.variation-meta-row .meta-item strong {
    color: #0f172a;
    font-weight: 700;
    margin-left: 4px;
}

/* --- 6. Quantity Counter & CTAs --- */
.qty-cart {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.qty-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.qty-cart .quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    height: 38px;
    background: #ffffff;
    padding: 2px 3px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.qty-cart .quantity:focus-within,
.qty-cart .quantity:hover {
    border-color: var(--theme-primary, #009e60);
    box-shadow: 0 2px 8px rgba(0, 158, 96, 0.15);
}

.quantity .minus,
.quantity .plus {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 158, 96, 0.08);
    border-radius: 50%;
    color: var(--theme-primary, #009e60);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    user-select: none;
}

.quantity .minus:hover,
.quantity .plus:hover {
    background: var(--theme-primary, #009e60);
    color: #ffffff;
    transform: scale(1.05);
}

.quantity .minus:active,
.quantity .plus:active {
    transform: scale(0.95);
}

.quantity input {
    width: 48px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
    outline: none;
    appearance: none;
    -moz-appearance: textfield;
}

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

/* CTA Button Row */
.cta-button-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 0 !important;
}

.add_cart_btn,
.order_now_btn {
    height: 48px;
    border-radius: 10px !important;
    border: none !important;
    font-size: 0.98rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    flex: 1 1 0%;
    width: 100% !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    outline: none;
    box-sizing: border-box;
}

.add_cart_btn svg,
.order_now_btn svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.add_cart_btn {
    background-color: var(--theme-primary, #009e60) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

.add_cart_btn:hover {
    background-color: var(--theme-primary-hover, #007a4a) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 158, 96, 0.3) !important;
    transform: translateY(-2px);
}

.add_cart_btn:hover svg {
    transform: scale(1.15) rotate(-5deg);
}

.add_cart_btn:active {
    transform: translateY(0) scale(0.98);
}

.order_now_btn {
    background: var(--theme-cta-gradient, linear-gradient(135deg, #f59e0b 0%, #d97706 100%)) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

.order_now_btn:hover {
    background: var(--theme-cta-gradient-hover, linear-gradient(135deg, #d97706 0%, #b45309 100%)) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35) !important;
    transform: translateY(-2px);
}

.order_now_btn:hover svg {
    transform: scale(1.15) translateX(2px);
}

.order_now_btn:active {
    transform: translateY(0) scale(0.98);
}

/* Stock Out Alert */
.stock-out-alert {
    background: rgba(220, 38, 38, 0.05);
    border: 1.5px solid #dc2626;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 10px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Hotline & WhatsApp Grid --- */
.hotline-whatsapp-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 14px;
    margin-bottom: 18px;
}

.hotline-whatsapp-grid a {
    height: 48px;
    border-radius: 10px !important;
    border: none !important;
    font-size: 0.96rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex: 1 1 0%;
    width: 100% !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    outline: none;
    box-sizing: border-box;
}

.hotline-whatsapp-grid a svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* Call Button - Deep Dark Slate */
.hotline-whatsapp-grid .btn-call {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.hotline-whatsapp-grid .btn-call:hover {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3) !important;
    transform: translateY(-2px);
}

.hotline-whatsapp-grid .btn-call:hover svg {
    transform: scale(1.15) rotate(-8deg);
}

.hotline-whatsapp-grid .btn-call:active {
    transform: translateY(0) scale(0.98);
}

/* WhatsApp Button - Emerald Green Gradient */
.hotline-whatsapp-grid .btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.hotline-whatsapp-grid .btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    transform: translateY(-2px);
}

.hotline-whatsapp-grid .btn-whatsapp:hover svg {
    transform: scale(1.15) rotate(8deg);
}

.hotline-whatsapp-grid .btn-whatsapp:active {
    transform: translateY(0) scale(0.98);
}



/* --- 7. Delivery Options Card --- */
.delivery-options-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fffe 100%);
    border: 1px solid rgba(0, 158, 96, 0.12);
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px;
}

.delivery-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 158, 96, 0.1);
}

.delivery-card-title svg {
    color: var(--theme-primary);
    width: 16px;
    height: 16px;
}

.delivery-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #4b5563;
    padding: 5px 0;
}

.delivery-option-item:not(:last-child) {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    padding-bottom: 8px;
}

.delivery-option-item .location-label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.delivery-option-item .location-label svg {
    color: var(--theme-primary);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.delivery-option-item .charge-amount {
    font-weight: 700;
    color: #111827;
    font-size: 0.9rem;
}

/* --- 8. Description Navigation & Tabs --- */
.pro_details_area {
    background-color: transparent !important;
    padding-top: 30px;
    padding-bottom: 10px;
}

.description-nav-wrapper {
    background-color: #ffffff;
    padding: 10px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 20;
}

.desc-nav-ul {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-width: 100%;
}

.desc-nav-ul::-webkit-scrollbar {
    display: none;
}

.desc-nav-ul li {
    position: relative;
    flex-shrink: 0;
}

.desc-nav-ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none !important;
    cursor: pointer;
    padding: 9px 18px;
    background: transparent;
    border-radius: 9px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.desc-nav-ul li a svg {
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desc-nav-ul li a:hover {
    color: var(--theme-primary, #009e60);
    background: rgba(255, 255, 255, 0.7);
}

.desc-nav-ul li a:hover svg {
    color: var(--theme-primary, #009e60);
    transform: scale(1.1);
}

.desc-nav-ul li.active a {
    color: var(--theme-primary, #009e60);
    background: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.desc-nav-ul li.active a svg {
    color: var(--theme-primary, #009e60);
}

/* Tab Content show/hide */
.tab-content {
    display: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.35s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-action-box {
    background: #ffffff !important;
    border-radius: 16px;
    padding: 28px !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
    margin-top: 20px !important;
    margin-bottom: 20px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.details-action-box h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-primary-soft, rgba(0, 158, 96, 0.1));
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-action-box h2 svg {
    width: 18px;
    height: 18px;
    color: var(--theme-primary);
}

.details-action-box p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}

.details-action-box ul,
.details-action-box ol {
    margin-left: 0px;
    line-height: 1.8;
}

.details-action-box li {
    font-size: 0.93rem;
    color: #374151;
    margin-bottom: 6px;
}

/* YouTube Video Wrapper */
.pro_vide {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
    padding: 24px;
    margin-top: 20px;
}

.pro_vide h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro_vide h2 svg {
    width: 18px;
    height: 18px;
    color: #dc2626;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* --- 9. Premium Reviews System --- */
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.reviews-header-left h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-header-left h2 svg {
    width: 18px;
    height: 18px;
    color: var(--theme-primary);
}

.reviews-header-left p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.reviews-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f0fdf4 100%);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 158, 96, 0.1);
}

@media (min-width: 768px) {
    .reviews-dashboard {
        grid-template-columns: 180px 1fr;
        align-items: center;
        gap: 28px;
    }
}

.rating-score-block {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .rating-score-block {
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.06);
        padding-bottom: 0;
        padding-right: 22px;
    }
}

.rating-score-block .big-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin: 0 0 6px 0;
}

.rating-score-block .score-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 6px;
}

.rating-score-block .rating-sub {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

.rating-progress-block {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rating-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: #6b7280;
}

.rating-progress-row .stars-count {
    width: 44px;
    font-weight: 600;
    color: #374151;
    font-size: 0.82rem;
}

.rating-progress-bar-wrap {
    flex: 1;
    height: 7px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.rating-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.rating-percentage {
    width: 32px;
    text-align: right;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Review Cards */
.review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.review-card:hover {
    border-color: rgba(0, 158, 96, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.reviewer-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary-soft, rgba(0, 158, 96, 0.1)), rgba(0, 158, 96, 0.15));
    color: var(--theme-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 2px solid rgba(0, 158, 96, 0.1);
}

.reviewer_name {
    margin: 0 0 2px 0;
    font-weight: 700;
    color: #111827;
    font-size: 0.93rem;
}

.review_data {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}

.review_star {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 8px 0 6px;
}

.review_content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

.details-action-btn.question-btn {
    background: var(--theme-primary);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    padding: 10px 22px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.details-action-btn.question-btn:hover {
    background: var(--theme-primary-hover);
    box-shadow: 0 6px 16px rgba(0, 158, 96, 0.35);
    transform: translateY(-1px);
}

/* Review Modal */
.modal-backdrop.show {
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.45);
}

.modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 24px;
    background: #f8f9fa;
}

.modal-header .modal-title {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.modal-body {
    padding: 24px;
}

/* Star Rating Selector */
.insert-review .rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 16px;
}

.insert-review .rating input {
    display: none;
}

.insert-review .rating label {
    font-size: 2.2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
}

.insert-review .rating label:hover,
.insert-review .rating label:hover~label,
.insert-review .rating input:checked~label {
    color: #f59e0b;
}

.insert-review .rating label:hover {
    transform: scale(1.15);
}

/* Review Form */
.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
}

.form-control.radius-lg {
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.25s;
    background-color: #f9fafb;
    resize: vertical;
}

.form-control.radius-lg:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(0, 158, 96, 0.1);
    background-color: #ffffff;
    outline: none;
}

.details-review-button {
    background: var(--theme-primary);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 0.93rem;
    font-weight: 700;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.2);
}

.details-review-button:hover {
    background: var(--theme-primary-hover);
    box-shadow: 0 6px 18px rgba(0, 158, 96, 0.3);
    transform: translateY(-1px);
}

.customer-login-redirect {
    display: block;
    text-align: center;
    background: rgba(0, 158, 96, 0.04);
    border: 2px dashed rgba(0, 158, 96, 0.3);
    padding: 24px;
    border-radius: 14px;
    color: var(--theme-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.customer-login-redirect:hover {
    background: var(--theme-primary);
    color: #ffffff;
    border-style: solid;
}

/* Empty Reviews */
.empty-content {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}

.empty-content svg {
    width: 52px;
    height: 52px;
    color: #d1d5db;
    margin-bottom: 14px;
}

.empty-text {
    font-size: 0.92rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.6;
}

/* --- 10. Related Products Carousel --- */
.related-product-section {
    padding: 30px 0 40px 0;
    background: transparent;
}

.related-title {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 12px;
}

.related-title h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.related_slider.owl-carousel .owl-stage-outer {
    padding-top: 10px !important;
    padding-bottom: 16px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-top: -10px !important;
    margin-bottom: -16px !important;
    margin-left: -6px !important;
    margin-right: -6px !important;
    overflow: hidden !important;
}

.related_slider.owl-carousel .owl-stage {
    display: flex !important;
    padding-top: 2px !important;
    padding-bottom: 4px !important;
}

.related_slider.owl-carousel .owl-item {
    display: flex !important;
    flex: 1 0 auto !important;
}

.related_slider.owl-carousel .owl-item .product_item,
.related_slider.owl-carousel .owl-item .cat-product-card {
    width: 100% !important;
    height: 100% !important;
}

/* --- 11. Mobile Sticky Bottom CTA Bar --- */
.mobile-sticky-cta-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.07);
    z-index: 999;
    padding: 10px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
    .mobile-sticky-cta-bar {
        display: flex;
    }

    .mobile-sticky-cta-bar.visible {
        bottom: 0;
    }
}

.sticky-bar-product {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sticky-bar-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-bar-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sticky-bar-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-bar-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--theme-primary);
    margin-top: 1px;
}

.sticky-bar-price del {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
    margin-right: 4px;
}

.sticky-bar-action {
    flex-shrink: 0;
}

.sticky-bar-action button {
    height: 42px;
    padding: 0 20px;
    border-radius: 22px;
    background: var(--theme-cta-gradient, linear-gradient(135deg, #d97706, #b45309));
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sticky-bar-action button:active {
    transform: scale(0.96);
}

/* --- 12. Responsive Breakpoints --- */
@media (max-width: 991px) {

    .product-info-panel,
    .main-details-page .details_right {
        margin-top: 20px;
    }

    .details-gallery-wrapper {
        margin-bottom: 0;
    }

    .main-details-page .dimage_item img {
        height: 340px;
    }

}

@media (max-width: 767px) {

    .product-cart .name,
    .product-cart h1.name {
        font-size: 1.3rem;
    }

    .details-price {
        font-size: 1.65rem;
    }

    .details-price del {
        font-size: 1.4rem;
    }

    .cta-button-row,
    .hotline-whatsapp-grid {
        gap: 10px !important;
    }

    .product_item,
    .wist_item,
    .product_item.wist_item,
    .cat-product-card {
        padding: 5px !important;
    }

    .pro_btn,
    .product_item .pro_btn,
    .cat-product-card .pro_btn {
        padding-top: 0px !important;
    }

    .add_cart_btn,
    .order_now_btn,
    .hotline-whatsapp-grid a {
        height: 40px !important;
        font-size: 0.90rem !important;
        flex: 1 1 0% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .main-details-page .dimage_item img {
        height: 280px;
    }

    .product-info-panel,
    .main-details-page .details_right {
        padding: 18px;
        margin-top: 16px;
    }

    .details-gallery-wrapper {
        padding: 12px;
    }

    .desc-nav-ul {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 3px;
    }

    .desc-nav-ul li {
        flex: 1;
    }

    .desc-nav-ul li a {
        width: 100%;
        justify-content: center;
        padding: 8px 4px;
        font-size: 0.8rem;
        gap: 4px;
    }

    .desc-nav-ul li a svg {
        width: 14px !important;
        height: 14px !important;
    }

    .desc-nav-ul li a {
        font-size: 0.88rem;
        padding: 14px 14px 12px;
    }

    .details-action-box {
        padding: 18px !important;
    }

    .trust-badge-row {
        gap: 10px;
    }

    .trust-badge-item {
        font-size: 0.73rem;
    }
}

@media (max-width: 480px) {
    .main-details-page {
        padding: 16px 0;
    }

    .reviews-dashboard {
        padding: 16px;
    }

    .review-card {
        padding: 14px 16px;
    }
}

/* --- 13. Zoom Image Overlay --- */
.zoomContainer {
    z-index: 1000 !important;
}

/* Owl Navigation Aesthetics (Related Slider - UNCHANGED) */
.related_slider .owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 40%;
    transform: translateY(-50%);
    pointer-events: none;
}

.related_slider .owl-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #dddddd !important;
    color: #111827 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem !important;
    pointer-events: auto;
    transition: all 0.3s;
}

.related_slider .owl-nav button:hover {
    background-color: var(--theme-primary) !important;
    color: #ffffff !important;
    border-color: var(--theme-primary) !important;
}