/* =========================================
   PANDA THEME - PRODUCT PAGE FIX
   Fix for Saltica SPhone 30000 product page
   ========================================= */

/* Reset & Base untuk halaman produk */
body.product #page {
    background: #fff;
}

body.product #center_column {
    padding: 0 15px;
}

/* =========================================
   PRODUCT PRIMARY BLOCK
   ========================================= */
.primary_block {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
}

/* Product Name */
h1.product_name {
    font-size: 28px;
    font-weight: 700;
    color: #1a2c3a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Stock & Availability */
.product_available {
    margin: 10px 0;
}

.available {
    display: inline-block;
    background: #4cbb6c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.available-now {
    color: #4cbb6c;
    font-weight: 600;
}

/* Price Block */
.content_prices {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #eef2f6;
}

#our_price_display {
    font-size: 32px;
    font-weight: 800;
    color: #e67e22;
    letter-spacing: -0.5px;
}

.old-price {
    font-size: 18px;
    color: #95a5a6;
    text-decoration: line-through;
    margin-left: 12px;
}

.tax-shipping-delivery-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 8px;
    display: block;
}

/* Points Info */
.points-info {
    background: #eef2fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    color: #2c3e50;
    border-left: 3px solid #e67e22;
}

.points-info strong {
    color: #e67e22;
}

/* =========================================
   PRODUCT INFO & SHORT DESCRIPTION
   ========================================= */
.product-info {
    margin: 20px 0;
}

.short_description_content {
    line-height: 1.7;
    color: #4a5b6e;
    margin: 15px 0;
}

/* Product Description */
.product-desc {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.rte {
    line-height: 1.7;
    color: #4a5b6e;
}

.rte h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2c3a;
    margin: 20px 0 12px 0;
}

.rte ul, .rte ol {
    margin: 12px 0;
    padding-left: 24px;
}

.rte li {
    margin: 8px 0;
    line-height: 1.6;
}

.rte p {
    margin: 12px 0;
}

/* =========================================
   FLAVOR LIST (Aroma List)
   ========================================= */
.flavor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin: 20px 0;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}

.flavor-item {
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #2c3e50;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}

.flavor-item:hover {
    border-color: #e67e22;
    transform: translateX(4px);
}

/* =========================================
   DATA SHEET (Product Details Table)
   ========================================= */
.table-data-sheet {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.table-data-sheet tr {
    border-bottom: 1px solid #eef2f6;
}

.table-data-sheet tr:last-child {
    border-bottom: none;
}

.table-data-sheet th {
    width: 40%;
    padding: 14px 16px;
    background: #f8fafc;
    font-weight: 600;
    color: #1a2c3a;
    text-align: left;
}

.table-data-sheet td {
    padding: 14px 16px;
    color: #4a5b6e;
    text-align: left;
}

/* =========================================
   TABS SECTION
   ========================================= */
.product-tabs {
    margin: 40px 0;
}

.product-tabs .tabs {
    border-bottom: 2px solid #eef2f6;
    margin-bottom: 25px;
}

.product-tabs .tabs li {
    display: inline-block;
    margin-bottom: -2px;
}

.product-tabs .tabs a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.product-tabs .tabs a:hover {
    color: #e67e22;
}

.product-tabs .tabs .active a {
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
}

.tab-content {
    padding: 20px 0;
}

/* =========================================
   REVIEWS SECTION
   ========================================= */
.reviews {
    margin-top: 20px;
}

.comments-note {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.average-grade {
    text-align: center;
    min-width: 100px;
}

.grade {
    font-size: 42px;
    font-weight: 800;
    color: #f5b042;
    line-height: 1;
}

.stars {
    margin: 8px 0;
}

.stars i {
    color: #f5b042;
    font-size: 14px;
}

.nb-comments {
    color: #7f8c8d;
    font-size: 13px;
}

.comment-list {
    margin-top: 20px;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid #eef2f6;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: 700;
    color: #1a2c3a;
}

.comment-date {
    font-size: 12px;
    color: #95a5a6;
}

.comment-content {
    color: #4a5b6e;
    line-height: 1.6;
    margin: 12px 0;
}

/* Review Form */
.review-form {
    margin-top: 30px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.review-form h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a2c3a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-submit-review {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-review:hover {
    background: #d35400;
}

/* =========================================
   RELATED PRODUCTS
   ========================================= */
.related-products {
    margin: 50px 0 30px;
}

.related-products h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
    color: #1a2c3a;
}

.product_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product_list .ajax_block_product {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product_list .ajax_block_product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #e67e22;
}

.product_list .product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product_list .product-info {
    padding: 12px;
    text-align: center;
}

.product_list .product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    color: #1a2c3a;
}

.product_list .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #e67e22;
}

/* =========================================
   QUANTITY & ADD TO CART
   ========================================= */
.product-quantity {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.qty {
    display: flex;
    align-items: center;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
}

.qty .btn {
    width: 40px;
    height: 44px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.2s;
}

.qty .btn:hover {
    background: #eef2f6;
}

.qty input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e6ed;
    border-right: 1px solid #e0e6ed;
    font-size: 16px;
    font-weight: 600;
}

.btn-add-to-cart {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-to-cart:hover {
    background: #d35400;
}

/* Wishlist Button */
.btn-wishlist {
    background: #fff;
    border: 1px solid #e0e6ed;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #7f8c8d;
}

.btn-wishlist:hover {
    border-color: #e67e22;
    color: #e67e22;
}

/* =========================================
   LEFT COLUMN (SIDEBAR)
   ========================================= */
#left_column .block {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

#left_column .block .title_block {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f6;
    font-weight: 700;
    color: #1a2c3a;
    margin: 0;
}

#left_column .block .block_content {
    padding: 15px 20px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .product_list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    h1.product_name {
        font-size: 22px;
    }
    
    #our_price_display {
        font-size: 26px;
    }
    
    .content_prices {
        padding: 15px;
    }
    
    .product-tabs .tabs a {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .flavor-list {
        grid-template-columns: 1fr;
    }
    
    .product_list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comments-note {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-quantity {
        flex-direction: column;
        align-items: stretch;
    }
    
    .qty {
        justify-content: center;
    }
    
    .btn-add-to-cart {
        width: 100%;
    }
    
    .product_list {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-orange {
    color: #e67e22;
}

.bg-orange-light {
    background: #fff8f0;
}

.mt-3 {
    margin-top: 15px;
}

.mb-3 {
    margin-bottom: 15px;
}

.p-3 {
    padding: 15px;
}

.rounded {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}