/* ========================================
   CHI TIẾT SẢN PHẨM - PRODUCT DETAIL PAGE
   ======================================== */

/* HERO BANNER WITH BREADCRUMB */
.ctsp-hero {
    position: relative;
    padding: 40px 0;
    text-align: center;
    overflow: hidden;
}

/*.ctsp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a6f28 0%, #6b8f3c 50%, #8ab052 100%);
    z-index: 0;
}

.ctsp-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/mountain-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
}*/

.ctsp-hero .container {
    position: relative;
    z-index: 1;
}

.ctsp-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.ctsp-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ctsp-breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.ctsp-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.ctsp-breadcrumb .separator {
    color: rgba(255,255,255,0.7);
    font-size: 10px;
}

.ctsp-breadcrumb .current {
    color: #fff;
    font-size: 14px;
}

/* MAIN PRODUCT SECTION */
.ctsp-main {
    padding: 30px 0;
    background: #f5f5f5;
}

.ctsp-main .row {
    align-items: flex-start;
}

/* NEW STRUCTURE - Content Box & Sidebar Box */
.ctsp-content-box {
    /* Main content box containing gallery, info, and tabs */
}

.ctsp-product-top {
    margin-bottom: 20px;
}

.ctsp-product-top .row {
    align-items: stretch;
}

.ctsp-tabs-wrapper {
    /* Wrapper for tabs section */
}

.ctsp-sidebar-box {
    /* Sidebar box - sticky on desktop */
    position: sticky;
    top: 100px;
}

/* PRODUCT GALLERY */
.ctsp-gallery {
/*    background: #fff;*/
    border-radius: 10px;
/*    padding: 15px;*/
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.05);*/
}

.ctsp-gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ctsp-gallery-main a {
    display: block;
    position: relative;
}

.ctsp-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.ctsp-gallery-main:hover img {
    transform: scale(1.02);
}

.ctsp-zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6f28;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.ctsp-gallery-main:hover .ctsp-zoom-icon {
    opacity: 1;
}

.ctsp-gallery-hidden {
    display: none !important;
}

.ctsp-gallery-thumbs {
    display: flex;
    gap: 10px;
}

.ctsp-thumb {
    flex: 1;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ctsp-thumb.active,
.ctsp-thumb:hover {
    border-color: #4a6f28;
}

.ctsp-thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* PRODUCT INFO */
.ctsp-info {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctsp-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctsp-organic-icon {
    color: #4a6f28;
    font-size: 20px;
}

.ctsp-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.ctsp-status .in-stock {
    color: #4a6f28;
}

.ctsp-status .out-of-stock {
    color: #dc3545;
}

/* COUNTDOWN TIMER */
.ctsp-countdown {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ctsp-countdown-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.ctsp-countdown-label i {
    margin-right: 5px;
}

.ctsp-countdown-timer {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ctsp-time-box {
    background: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    min-width: 35px;
    text-align: center;
}

.ctsp-time-box span {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.ctsp-time-sep {
    color: #fff;
    font-weight: 700;
}

/* PRICE */
.ctsp-price-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ctsp-price-current {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

.ctsp-price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.ctsp-price-save {
    font-size: 14px;
    color: #666;
}

.ctsp-price-save strong {
    color: #e74c3c;
}

/* WEIGHT OPTIONS */
.ctsp-options {
    margin-bottom: 20px;
}

.ctsp-options-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ctsp-options-label strong {
    color: #4a6f28;
}

.ctsp-option-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ctsp-option-btn {
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
}

.ctsp-option-btn:hover {
    border-color: #4a6f28;
}

.ctsp-option-btn.active {
    border-color: #4a6f28;
    background: #f0f7e6;
}

.ctsp-option-btn .weight {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ctsp-option-btn .price {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 3px;
}

/* QUANTITY */
.ctsp-quantity-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ctsp-quantity-label {
    font-size: 14px;
    color: #666;
}

.ctsp-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.ctsp-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctsp-qty-btn:hover {
    background: #e5e5e5;
}

.ctsp-qty-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

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

/* ADD TO CART BUTTON */
.ctsp-actions {
    margin-bottom: 20px;
}

.ctsp-btn-cart {
    width: 100%;
    background: linear-gradient(135deg, #4a6f28 0%, #6b8f3c 100%);
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ctsp-btn-cart:hover {
    background: linear-gradient(135deg, #3d5c21 0%, #5a7832 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,111,40,0.3);
}

.ctsp-btn-cart i {
    margin-right: 8px;
}

.ctsp-btn-sub {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

/* SPECIAL OFFERS */
.ctsp-offers {
    background: #fff8f0;
    border: 1px solid #ffe0c0;
    border-radius: 8px;
    padding: 15px;
}

.ctsp-offers-title {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ctsp-offers-title i {
    margin-right: 5px;
}

.ctsp-offers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctsp-offers-list li {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ctsp-offers-list li:last-child {
    margin-bottom: 0;
}

.ctsp-offers-list li i {
    color: #4a6f28;
    margin-top: 3px;
}

/* SIDEBAR */
.ctsp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ctsp-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctsp-sidebar-title i {
    color: #4a6f28;
}

/* POLICIES */
.ctsp-policies {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctsp-policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctsp-policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ctsp-policy-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ctsp-policy-list li:first-child {
    padding-top: 0;
}

.ctsp-policy-list li img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ctsp-policy-list li div {
    flex: 1;
}

.ctsp-policy-list li strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.ctsp-policy-list li span {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* PROMO CODES */
.ctsp-promo-codes {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctsp-promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ctsp-promo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.ctsp-promo-info {
    flex: 1;
}

.ctsp-promo-code {
    display: inline-block;
    background: #4a6f28;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ctsp-promo-desc {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.ctsp-promo-date {
    display: block;
    font-size: 11px;
    color: #999;
}

.ctsp-promo-copy {
    background: #fff;
    border: 1px solid #4a6f28;
    color: #4a6f28;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.ctsp-promo-copy:hover {
    background: #4a6f28;
    color: #fff;
}

/* RECOMMENDED PRODUCTS */
.ctsp-recommended {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctsp-recommended-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ctsp-recommended-header .ctsp-sidebar-title {
    margin-bottom: 0;
}

.ctsp-recommended-nav {
    display: flex;
    gap: 5px;
}

.ctsp-rec-nav {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ctsp-rec-nav:hover {
    border-color: #4a6f28;
    color: #4a6f28;
}

.ctsp-recommended-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ctsp-rec-item {
    display: flex;
    gap: 12px;
    position: relative;
}

.ctsp-rec-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #e74c3c;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

.ctsp-rec-image {
    width: 80px;
    flex-shrink: 0;
}

.ctsp-rec-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.ctsp-rec-info {
    flex: 1;
}

.ctsp-rec-info h5 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.ctsp-rec-info h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.ctsp-rec-info h5 a:hover {
    color: #4a6f28;
}

.ctsp-rec-price {
    margin-bottom: 8px;
}

.ctsp-rec-price .current {
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
}

.ctsp-rec-price .old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.ctsp-rec-actions {
    display: flex;
    gap: 5px;
}

.ctsp-rec-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
}

.ctsp-rec-btn:hover {
    border-color: #4a6f28;
    background: #4a6f28;
    color: #fff;
}

/* PRODUCT TABS SECTION */
.ctsp-tabs-section {
    padding: 0 0 30px 0;
    background: #f5f5f5;
}

.ctsp-tabs {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctsp-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.ctsp-tab-btn {
    padding: 12px 25px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.ctsp-tab-btn:hover {
    border-color: #4a6f28;
    color: #4a6f28;
}

.ctsp-tab-btn.active {
    background: #4a6f28;
    border-color: #4a6f28;
    color: #fff;
}

.ctsp-tab-pane {
    display: none;
}

.ctsp-tab-pane.active {
    display: block;
}

/* DESCRIPTION TAB */
.ctsp-description {
    max-height: 600px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.ctsp-description.expanded {
    max-height: none;
}

.ctsp-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.ctsp-desc-image {
    text-align: center;
    margin: 20px 0;
}

.ctsp-desc-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ctsp-desc-box {
    background: linear-gradient(135deg, #f5f0e6 0%, #e8e0d0 100%);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.ctsp-desc-box h4 {
    font-size: 24px;
    color: #4a6f28;
    margin-bottom: 5px;
}

.ctsp-desc-subtitle {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px !important;
}

.ctsp-desc-info p {
    margin-bottom: 10px;
}

.ctsp-desc-info ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}

.ctsp-desc-info ul li {
    margin-bottom: 5px;
}

.ctsp-desc-benefits ol {
    margin: 10px 0 0 20px;
    padding: 0;
}

.ctsp-desc-benefits ol li {
    margin-bottom: 5px;
}

.ctsp-desc-more {
    text-align: center;
    margin-top: 20px;
}

.ctsp-btn-more {
    padding: 10px 30px;
    border: 2px solid #4a6f28;
    background: #fff;
    color: #4a6f28;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ctsp-btn-more:hover {
    background: #4a6f28;
    color: #fff;
}

/* GUIDE TAB */
.ctsp-guide h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
}

.ctsp-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ctsp-guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a6f28 0%, #6b8f3c 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px 0;
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* RELATED PRODUCTS */
.ctsp-related {
    padding: 30px 0;
    background: #fff;
}

.ctsp-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ctsp-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctsp-section-title i {
    color: #4a6f28;
}

.ctsp-related-nav {
    display: flex;
    gap: 8px;
}

.ctsp-rel-nav {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ctsp-rel-nav:hover {
    border-color: #4a6f28;
    background: #4a6f28;
    color: #fff;
}

.ctsp-related-slider {
    overflow: hidden;
}

.ctsp-related-list {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.ctsp-related-item {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.ctsp-related-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.ctsp-related-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.ctsp-related-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ctsp-related-info {
    padding: 15px;
}

.ctsp-related-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.ctsp-related-info h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.ctsp-related-info h5 a:hover {
    color: #4a6f28;
}

.ctsp-related-price {
    margin-bottom: 5px;
}

.ctsp-related-price .current {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
}

.ctsp-related-price .old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.ctsp-related-sold {
    font-size: 12px;
    color: #888;
}

/* PRODUCT REVIEWS */
.ctsp-reviews {
    padding: 30px 0;
    background: #f5f5f5;
}

.ctsp-reviews-box {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctsp-reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.ctsp-reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ctsp-rating-big {
    text-align: center;
}

.ctsp-rating-big .rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    display: block;
}

.ctsp-rating-big .rating-stars {
    color: #ffc107;
    font-size: 18px;
}

.ctsp-rating-big .rating-stars .far {
    color: #ddd;
}

.ctsp-rating-bars {
    flex: 1;
    min-width: 200px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-bar-item:last-child {
    margin-bottom: 0;
}

.star-label {
    width: 40px;
    font-size: 13px;
    color: #666;
}

.star-label i {
    color: #ffc107;
    font-size: 11px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #4a6f28 0%, #6b8f3c 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.bar-percent {
    width: 35px;
    font-size: 12px;
    color: #888;
    text-align: right;
}

.ctsp-reviews-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ctsp-btn-review {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ctsp-btn-review.outline {
    background: #fff;
    border: 2px solid #ddd;
    color: #666;
}

.ctsp-btn-review.outline:hover {
    border-color: #4a6f28;
    color: #4a6f28;
}

.ctsp-btn-review.primary {
    background: linear-gradient(135deg, #4a6f28 0%, #6b8f3c 100%);
    border: none;
    color: #fff;
}

.ctsp-btn-review.primary:hover {
    background: linear-gradient(135deg, #3d5c21 0%, #5a7832 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,111,40,0.3);
}

/* === Rec Actions Buttons === */
.ctsp-rec-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ctsp-rec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ctsp-rec-btn:hover {
    background: #4a6f28;
    color: #fff;
    transform: scale(1.1);
}

/* Wishlist active state */
.ctsp-rec-wishlist.active {
    background: #e74c3c;
    color: #fff;
}

/* Add to cart success state */
.ctsp-rec-cart.added {
    background: #4CAF50;
    color: #fff;
}

/* Loading state */
.ctsp-rec-cart.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Ẩn nút "Xem giỏ hàng" WooCommerce tự thêm */
.ctsp-rec-actions .added_to_cart,
.ctsp-rec-item .added_to_cart {
    display: none !important;
}


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

/* Tablet */
@media (max-width: 991px) {
    .ctsp-hero-title {
        font-size: 26px;
    }
    
    .ctsp-title {
        font-size: 20px;
    }
    
    .ctsp-price-current {
        font-size: 24px;
    }
    
    .ctsp-sidebar {
        margin-top: 20px;
    }
    
    .ctsp-related-item {
        flex: 0 0 calc(33.333% - 14px);
    }
    
    .ctsp-tab-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Small Tablet */
@media (max-width: 767px) {
    .ctsp-hero {
        padding: 30px 0;
    }
    
    .ctsp-hero-title {
        font-size: 22px;
    }
    
    .ctsp-breadcrumb {
        font-size: 12px;
    }
    
    .ctsp-main {
        padding: 20px 0;
    }
    
    .ctsp-gallery {
        margin-bottom: 20px;
    }
    
    .ctsp-thumb img {
        height: 50px;
    }
    
    .ctsp-countdown {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .ctsp-option-btn {
        min-width: 70px;
        padding: 8px 12px;
    }
    
    .ctsp-related-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .ctsp-related-image img {
        height: 150px;
    }
    
    .ctsp-tab-nav {
        flex-wrap: wrap;
    }
    
    .ctsp-reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .ctsp-reviews-actions {
        flex-direction: column;
    }
    
    .ctsp-btn-review {
        width: 100%;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .ctsp-hero-title {
        font-size: 20px;
    }
    
    .ctsp-title {
        font-size: 18px;
    }
    
    .ctsp-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .ctsp-price-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ctsp-price-current {
        font-size: 22px;
    }
    
    .ctsp-option-list {
        flex-direction: column;
    }
    
    .ctsp-option-btn {
        width: 100%;
    }
    
    .ctsp-quantity-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ctsp-related-item {
        flex: 0 0 100%;
    }
    
    .ctsp-related-image img {
        height: 200px;
    }
    
    .ctsp-tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .ctsp-guide-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .ctsp-rec-item {
        flex-direction: column;
    }
    
    .ctsp-rec-image {
        width: 100%;
    }
    
    .ctsp-rec-image img {
        height: 150px;
    }
    
    .ctsp-promo-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 399px) {
    .ctsp-hero-title {
        font-size: 18px;
    }
    
    .ctsp-time-box {
        padding: 4px 8px;
        min-width: 30px;
    }
    
    .ctsp-time-box span {
        font-size: 14px;
    }
}

/* ========================================
   HÌNH ẢNH MINH HỌA - PRODUCT DESCRIPTION IMAGES
   ======================================== */

/* Gallery 3 loại gạo */
.ctsp-desc-gallery {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9f0 0%, #f0f4e8 100%);
    border-radius: 12px;
    border: 1px solid #e8eedd;
}

.ctsp-desc-gallery-item {
    text-align: center;
    margin-bottom: 15px;
}

.ctsp-desc-gallery-item a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 111, 40, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ctsp-desc-gallery-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 111, 40, 0.25);
}

.ctsp-desc-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.ctsp-gallery-caption {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4a6f28;
}

/* Phần hướng dẫn nấu */
.ctsp-desc-cooking {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #4a6f28;
}

.ctsp-desc-cooking h5 {
    font-size: 18px;
    font-weight: 700;
    color: #4a6f28;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctsp-desc-cooking h5 i {
    font-size: 20px;
}

.ctsp-cooking-step {
    background: #f9faf6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ctsp-cooking-step a {
    display: block;
}

.ctsp-cooking-step img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.ctsp-cooking-step a:hover img {
    transform: scale(1.05);
}

.ctsp-cooking-text {
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ctsp-cooking-text .step-num {
    width: 28px;
    height: 28px;
    background: #4a6f28;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.ctsp-cooking-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Grid lợi ích sức khỏe */
.ctsp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.ctsp-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7e6 0%, #e8f2dc 100%);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ctsp-benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 111, 40, 0.15);
}

.ctsp-benefit-icon {
    width: 50px;
    height: 50px;
    background: #4a6f28;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ctsp-benefit-icon i {
    font-size: 20px;
    color: #fff;
}

.ctsp-benefit-text h6 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.ctsp-benefit-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Phần nguồn gốc xuất xứ */
.ctsp-desc-origin {
    margin: 30px 0 0;
    padding: 25px;
    background: linear-gradient(135deg, #4a6f28 0%, #6b8f3c 100%);
    border-radius: 12px;
}

.ctsp-desc-origin h5 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctsp-desc-origin h5 i {
    font-size: 20px;
}

.ctsp-origin-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.ctsp-origin-image a {
    display: block;
}

.ctsp-origin-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.ctsp-origin-image:hover img {
    transform: scale(1.05);
}

.ctsp-origin-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.ctsp-origin-overlay p {
    color: #fff;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Responsive cho hình ảnh minh họa */
@media (max-width: 991px) {
    .ctsp-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .ctsp-desc-gallery-item img {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .ctsp-desc-gallery {
        padding: 15px;
    }
    
    .ctsp-desc-cooking {
        padding: 15px;
    }
    
    .ctsp-benefit-item {
        padding: 15px;
    }
    
    .ctsp-benefit-icon {
        width: 40px;
        height: 40px;
    }
    
    .ctsp-benefit-icon i {
        font-size: 16px;
    }
    
    .ctsp-origin-image img {
        height: 200px;
    }
    
    .ctsp-desc-origin {
        padding: 15px;
    }
}

@media (max-width: 575px) {
    .ctsp-desc-gallery-item img {
        height: 120px;
    }
    
    .ctsp-cooking-step img {
        height: 140px;
    }
    
    .ctsp-benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ctsp-origin-image img {
        height: 180px;
    }
}