/* ==========================================================================
   PRODUCT DETAIL PAGE SPECIFIC STYLES (product-detail.css)
   ========================================================================== */

/* Layout structure adjustments */
.product-detail-page .shop-grid.section-padding {
    background-color: #fafafa;
    padding-top: 30px;
    padding-bottom: 50px;
}

.product-details-img {
    background-color: var(--tl-color-common-white);
    border: 1px solid var(--tl-color-border-1) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
    height: auto;
}

.product-details-img:hover {
    transform: scale(1.01);
}

.product-details-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
}

/* Premium H1 product title styling */
.product-detail-page .product-info .product-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--tl-color-theme-secondary);
    line-height: 1.2;
    margin-top: 2px;
    margin-bottom: 24px;
    font-family: var(--tl-ff-heading);
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 18px;
}

.product-detail-page .product-info .product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--tl-color-theme-primary) 0%, var(--tl-color-theme-secondary) 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-detail-page .product-info .product-inner:hover .product-title::after {
    width: 120px;
}

/* Category Badge Styling */
.product-category-wrap {
    margin-bottom: 14px;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tl-color-bg-1);
    background-color: rgba(202, 160, 92, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(202, 160, 92, 0.18);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.product-category-badge:hover {
    background-color: var(--tl-color-theme-primary);
    color: var(--tl-color-common-white);
    box-shadow: 0 4px 12px rgba(202, 160, 92, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   TAB NAVIGATION STYLING
   ========================================================================== */
.tab-navigation {
    display: flex;
    gap: 15px;
}

.tab-navigation .nav-item {
    margin-bottom: -2px;
}

.tab-navigation .nav-link {
    color: var(--tl-color-grey-1);
    border-bottom: 3px solid transparent !important;
    padding: 10px 20px;
    font-size: 19px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    border-radius: 0;
}

.tab-navigation .nav-link:hover {
    color: var(--tl-color-theme-primary);
}

.tab-navigation .nav-link.active {
    color: var(--tl-color-theme-secondary) !important;
    border-bottom: 3px solid var(--tl-color-theme-primary) !important;
}

/* ==========================================================================
   RICH HTML EDITORS CONTENT STYLING (Description & Details)
   ========================================================================== */

/* Rich description area styling */
.product-description-rich {
    font-size: 18px;
    line-height: 1.8;
    color: var(--tl-color-text-body);
}

.product-description-rich p {
    margin-bottom: 12px;
}

.product-description-rich p strong {
    color: var(--tl-color-heading-primary);
    font-weight: 600;
}

/* Detailed specifications wrap */
.desc-wrap {
    font-size: 18px;
    line-height: 1.8;
    color: var(--tl-color-text-body);
}

/* Headings in details editor */
.desc-wrap h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--tl-color-heading-primary);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    line-height: 1.35;
    font-family: var(--tl-ff-heading);
}

.desc-wrap h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--tl-color-heading-primary);
    margin-top: 25px;
    margin-bottom: 12px;
    position: relative;
    letter-spacing: 1.2px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 14px;
    font-family: var(--tl-ff-heading);
}

/* Add a gold color left border indicator to h3 headers */
.desc-wrap h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background-color: var(--tl-color-theme-primary);
    border-radius: 2px;
}

.desc-wrap h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tl-color-heading-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: 1.2px;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
    padding-left: 12px;
    font-family: var(--tl-ff-heading);
}

/* Add a subtle secondary colored left border to h4 FAQ headers */
.desc-wrap h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background-color: var(--tl-color-theme-secondary);
    border-radius: 1px;
}

/* Paragraph spacing inside details */
.desc-wrap p {
    margin-bottom: 12px !important;
    color: var(--tl-color-text-body);
}

.desc-wrap p strong {
    color: var(--tl-color-heading-primary);
    font-weight: 600;
}

/* Premium table styling inside details editor */
.desc-wrap figure.table {
    margin: 15px 0 20px 0;
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--tl-color-border-1);
}

.desc-wrap table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--tl-color-common-white);
}

.desc-wrap table th,
.desc-wrap table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--tl-color-border-1);
    font-size: 16.5px;
}

/* Elegant Table Header Style using Theme Indigo/Secondary Color */
.desc-wrap table th {
    background-color: var(--tl-color-theme-secondary);
    color: var(--tl-color-common-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    border-bottom: none;
}

.desc-wrap table tr:last-child td {
    border-bottom: none;
}

/* Alternating row background for clean look */
.desc-wrap table tr:nth-child(even) {
    background-color: rgba(191, 153, 107, 0.03);
}

/* Hover effect on table rows */
.desc-wrap table tr:hover {
    background-color: rgba(54, 45, 115, 0.03);
    transition: background-color 0.2s ease;
}

/* Premium list layout design (Bullet points/List items) */
.desc-wrap ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 15px;
}

.desc-wrap ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    font-size: 17.5px;
    line-height: 1.8;
    color: var(--tl-color-text-body);
}

/* Gold colored circle bullet indicators for points */
.desc-wrap ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--tl-color-theme-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.desc-wrap ul li:hover::before {
    transform: scale(1.5);
}

/* Frequently Asked Questions FAQ-specific list decoration */
/* FAQ structure: h4 (Question) followed by p (Answer) */
.desc-wrap h4 + p {
    background-color: #faf9f6;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: -6px;
    margin-bottom: 16px;
    border-left: 3px solid var(--tl-color-theme-primary);
}

/* ==========================================================================
   SCOPED SIDEBAR WIDGETS & PARAMETERS TABLE (product-detail.css)
   ========================================================================== */

/* Parameter table under main product content */
.product-detail-page .product-info .table {
    font-size: 16px;
}
.product-detail-page .product-info .table th {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--tl-color-heading-primary);
    padding: 8px 12px;
}
.product-detail-page .product-info .table td {
    font-size: 16px;
    color: var(--tl-color-text-body);
    padding: 8px 12px;
}

/* Scoped Category and Recent Products Widget Typography Scale */
.product-detail-page .shop-sidebar .sidebar-header {
    font-size: 23px;
}
.product-detail-page .category-sidebar-list .category-link {
    font-size: 16.5px;
}
.product-detail-page .category-sidebar-list .sub-category-link {
    font-size: 15px;
}
.product-detail-page .sidebar-item .content .title {
    font-size: 15.5px;
}
.product-detail-page .sidebar-item .content .price {
    font-size: 13.5px !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .tab-navigation .nav-link {
        font-size: 17px !important;
    }
    .product-description-rich,
    .desc-wrap {
        font-size: 16.5px;
        line-height: 1.75;
    }
    .desc-wrap h2 {
        font-size: 26px;
        margin-top: 20px;
    }
    .desc-wrap h3 {
        font-size: 21px;
        margin-top: 20px;
    }
    .desc-wrap h4 {
        font-size: 18px;
        margin-top: 15px;
    }
    .desc-wrap ul li {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .desc-wrap ul li::before {
        top: 9px;
    }
    .desc-wrap table th,
    .desc-wrap table td {
        padding: 10px 12px;
        font-size: 15px;
    }
    .desc-wrap table th {
        font-size: 14px;
    }
    .product-detail-page .product-info .table {
        font-size: 15px;
    }
    .product-detail-page .product-info .table th,
    .product-detail-page .product-info .table td {
        font-size: 15px;
        padding: 8px 10px;
    }
    .product-detail-page .shop-sidebar .sidebar-header {
        font-size: 21px;
    }
    .product-detail-page .category-sidebar-list .category-link {
        font-size: 15px;
    }
    .product-detail-page .category-sidebar-list .sub-category-link {
        font-size: 13.5px;
    }
    .product-detail-page .sidebar-item .content .title {
        font-size: 14px;
    }
    .product-detail-page .product-info .product-title {
        font-size: 30px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    .product-detail-page .product-info .product-title::after {
        width: 45px;
        height: 3px;
    }
}

@media (max-width: 767px) {
    .product-description-rich,
    .desc-wrap {
        font-size: 16px;
        line-height: 1.7;
    }
    .desc-wrap h2 {
        font-size: 22px;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    .desc-wrap h3 {
        font-size: 19px;
        margin-top: 15px;
        margin-bottom: 8px;
    }
    .desc-wrap h4 {
        font-size: 17px;
        margin-top: 12px;
        margin-bottom: 6px;
    }
    .desc-wrap ul li {
        font-size: 15px;
        padding-left: 24px;
        margin-bottom: 6px;
    }
    .desc-wrap ul li::before {
        top: 8px;
        left: 4px;
    }
    .desc-wrap table th,
    .desc-wrap table td {
        padding: 8px 10px;
        font-size: 14.5px;
    }
    .desc-wrap table th {
        font-size: 13.5px;
    }
    .product-detail-page .product-info .product-title {
        font-size: 24px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    .product-detail-page .product-info .product-title::after {
        width: 35px;
        height: 3px;
    }
}

/* Ensure the sidebar and its wrapper column span 100% width on tablet/mobile screens */
@media (max-width: 991px) {
  .product-detail-page .col-lg-3.col-md-12.col-12 {
    width: 100% !important;
  }
  .product-detail-page .shop-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
  }
  .product-detail-page .sidebar-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 16px !important;
    padding: 12px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background-color: rgba(191, 153, 107, 0.03) !important;
    border: 1px solid rgba(191, 153, 107, 0.15) !important;
  }
  .product-detail-page .sidebar-item .item-img {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    border-radius: 8px !important;
  }
  .product-detail-page .sidebar-item .content {
    text-align: left !important;
  }
}

