/* === New Product Right Panel (preview-new) === */

.preview-new .woocommerce-product-details__short-description {
    display: block !important;
    margin-top: 1rem;
    font-size: 15px;
    line-height: 1.7;
    color: #606060;
}

/* Star Rating */
.preview-new .star-rating-row {
    margin-bottom: 0.5rem;
    margin-top: -1rem;
    padding-bottom: 0.5rem;
}

/* Title + SKU */
.preview-new .title-sku-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.preview-new .title-sku-row h1 {
    font-size: 27px;
    font-weight: 600;
    margin: 0;
}
.preview-new .sku {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Price */
.preview-new .price-row {
    margin-top: 1.5rem;
}

/* Key Benefits */
.preview-new .key-benefits {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.preview-new .key-benefits strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 10px;
    color: #282828;
}
.preview-new .benefits-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.preview-new .benefit-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    font-weight: 400;
}

/* Options Accordion */
.preview-new .options-accordion {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.preview-new .options-accordion strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.preview-new .options-accordion ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.preview-new .options-accordion li {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 8px;
    overflow: hidden;
}
.preview-new .accordion-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    user-select: none;
}
.preview-new .accordion-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.preview-new .accordion-price {
    font-size: 15px;
    color: #606060;
    margin-right: 12px;
}
.preview-new .accordion-chevron {
    transition: transform 0.3s;
    display: flex;
    align-items: center;
}
.preview-new .options-accordion li.open .accordion-chevron {
    transform: rotate(180deg);
}
.preview-new .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
}
.preview-new .options-accordion li.open .accordion-body {
    max-height: 200px;
    padding: 0 15px 12px;
}
.preview-new .accordion-body p {
    font-size: 14px;
    color: #757575;
    margin: 0;
}

/* WooCommerce Option Groups Accordion */
.preview-new .wc-options-wrap {
    margin-top: 0;
    padding-top: 0;
}
/* TC Extra Product Options — accordion groups */
.preview-new li.tm-extra-product-options-field {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 8px;
    overflow: hidden;
    list-style: none;
}
.preview-new li.tm-extra-product-options-field h3.tc-epo-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
}
.preview-new .wc-option-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    flex-shrink: 0;
}
.preview-new .wc-option-toggle .v-line {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: scaleY(0);
}
.preview-new .tc-accordion-collapsed .wc-option-toggle .v-line {
    opacity: 1;
    transform: scaleY(1);
}
.preview-new li.tm-extra-product-options-field .tc-element-container {
    padding: 0 15px 12px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.preview-new li.tc-accordion-collapsed .tc-element-container {
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}
.preview-new li.tm-extra-product-options-field .tmcp-ul-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
}
.preview-new li.tm-extra-product-options-field .tmcp-field-wrap {
    padding: 6px 0;
    font-size: 14px;
    color: #606060;
}
.preview-new #tm-extra-product-options-fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === Cart Section: Sub Total + Qty + Button === */
.preview-new .cart-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* JS creates .cart-top-row to hold subtotal + qty side by side */
.preview-new .cart-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
}

.preview-new .subtotal-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.preview-new .subtotal-label {
    font-size: 14px;
    font-weight: 400;
    color: #606060;
}
.preview-new .subtotal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme_color);
    line-height: 1.2;
}

/* Qty + Stock in cart-top-row right side */
.preview-new .cart-top-row > .flex.flex_middle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.preview-new .cart-top-row .stock-text {
    font-size: 14px;
    text-transform: capitalize;
    color: #606060;
}
.preview-new .cart-top-row .quantity-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
}
.preview-new .cart-top-row .quantity-container span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.preview-new .cart-top-row .quantity-container input[type="number"] {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 15px;
    font-weight: 500;
    -moz-appearance: textfield;
    appearance: textfield;
    height: 36px;
    margin: 0;
    padding: 0;
}
.preview-new .cart-top-row .quantity-container input::-webkit-outer-spin-button,
.preview-new .cart-top-row .quantity-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart button — full width */
.preview-new .wc-options-wrap .single_add_to_cart_button,
.preview-new .wc-options-wrap button[type="submit"] {
    width: 100%;
    display: block;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 0;
}

/* === Handypay Row (inline) === */
.preview-new .handpay-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.preview-new .handpay-row span {
    font-size: 13px;
    color: #606060;
}
.preview-new .handpay-row img {
    height: 20px;
    width: auto;
}
.preview-new .handpay-row a {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme_color);
    text-decoration: none;
}
.preview-new .handpay-row a:hover {
    text-decoration: underline;
}

/* === Also Accepts + Secure Badge === */
.preview-new .also-accepts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}
.preview-new .accepts-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.preview-new .accepts-left span {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}
.preview-new .accepts-left img {
    height: 24px;
    width: auto;
}
.preview-new .secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.preview-new .secure-badge svg {
    flex-shrink: 0;
}
.preview-new .secure-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.preview-new .secure-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}
.preview-new .secure-text small {
    font-size: 9px;
    color: #999;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* === Handypay Notice === */
.preview-new .handpay-notice {
    margin-top: 15px;
    padding: 12px 16px;
    border: 1px solid #b3d4fc;
    border-radius: 5px;
    background: #f0f7ff;
}
.preview-new .handpay-notice p {
    margin: 0;
    font-size: 13px;
    color: #1e3a5f;
    font-style: italic;
}

/* === Updated Tab Navigation === */
.product-nav-new ul {
    gap: 60px;
}
.product-nav-new {
    padding-top: 133px;
    padding-bottom: 50px;
}
.product-nav-new a {
    font-size: 22px;
    font-weight: 400;
    color: #979797;
    display: inline-block;
    padding-bottom: 26px;
    transition: all 0.3s;
    border-bottom: 4px solid transparent;
}
.product-nav-new li.active a {
    border-color: var(--theme_color);
    color: #282828;
}
.product-nav-new .tab-reviews {
    display: list-item;
}
dl.tm-extra-product-options-totals.tm-custom-price-totals {
    display: none;
}

/* ============================================
   Specifications Section Redesign (preview)
   ============================================ */

/* Override product_specificat */
.preview-content .product_specificat {
    background: #fff;
    padding: 0px 0 100px 0;
}
.preview-content .product_specificat .head {
    display: none;
}
.preview-content .product_specificat .flex {
    flex-direction: row-reverse;
}
.preview-content .product_specificat a {
    width: 47%;
}
.preview-content .product_specificat .table {
    width: 47%;
}

/* Override product_attr */
.preview-content .product_attr {
    background: #303030;
    padding: 80px 0 100px;
}
.preview-content .content {
    padding-bottom: 80px;
}
.product_feature {
    padding-bottom: 0px;
}
.preview-content .product_attr .head {
    display: none;
}
.preview-content .product_attr h2 {
    display: none;
}
.preview-content .product_attr .flex {
    flex-direction: row-reverse;
}
.preview-content .product_attr .left {
    width: 47%;
}
.preview-content .product_attr .right {
    width: 47%;
    padding-left: 0;
    padding-right: 50px;
}
.preview-content .product_attr tr td {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.preview-content .product_attr tr td:nth-of-type(1) {
    color: rgba(255, 255, 255, 0.75);
}
.preview-content .product_attr tr td:nth-of-type(2) {
    color: #fff;
}

#specs .content{
    background: #303030;
    padding: 50px 50px;
    border-radius: 20px;
}

/* === Reviews Section === */
.product-reviews {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.product-reviews .head {
    margin-bottom: 40px;
}
.product-reviews .head h2 {
    font-size: 32px;
    font-weight: 700;
    color: #282828;
    text-align: center;
}
.product-reviews .content {
    position: relative;
    max-height: 600px;
    overflow: hidden;
}
.product-reviews .content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 2;
}

.woocommerce img, .woocommerce-page img {
    border-radius: 20px;
}
.tc-row {
    gap: 0 !important;
}