/* Custom Product Sections Styles - Avanam Toolband */
.electron-product-sections-wrapper {
    margin-top: 40px;
    padding: 0;
    max-width: 100%;
}

.electron-product-section-item {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.electron-product-section-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.electron-section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.electron-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
}

.electron-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 15px;
}

.electron-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #007cba;
    border-radius: 50%;
}

.electron-section-content {
    padding: 25px;
    line-height: 1.6;
    background: #fff;
}

.electron-section-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.electron-section-content p {
    margin-bottom: 15px;
    color: #666;
}

.electron-section-content p:last-child {
    margin-bottom: 0;
}

.electron-section-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

.electron-section-content table th,
.electron-section-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.electron-section-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
    border-right: 1px solid #e0e0e0;
}

.electron-section-content table td {
    color: #666;
}

.electron-section-content table tr:hover {
    background: #f8f9fa;
}

.electron-section-content table tr:last-child th,
.electron-section-content table tr:last-child td {
    border-bottom: none;
}

/* Styling cho product specifications */
.product-specifications {
    margin: 0;
}

.specifications-content {
    margin: 0;
}

.specifications-content table {
    margin-top: 0;
}

/* Styling cho additional information */
.woocommerce-product-attributes {
    margin: 0;
}

.woocommerce-product-attributes tr {
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-product-attributes tr:last-child {
    border-bottom: none;
}

.woocommerce-product-attributes th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
    padding: 12px 15px;
    border-right: 1px solid #e0e0e0;
}

.woocommerce-product-attributes td {
    color: #666;
    padding: 12px 15px;
}

/* Styling cho Product Policy section */
.electron-section-content .product-policy-section {
    margin: 0;
    padding: 0;
}

.electron-section-content .policy-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.electron-section-content .policy-content {
    margin: 0;
}

.electron-section-content .customer-notice {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.electron-section-content .customer-notice p {
    margin: 0;
    color: #1976d2;
    font-weight: 500;
}

.electron-section-content .sales-policy {
    margin: 0;
}

.electron-section-content .policy-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.electron-section-content .policy-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.electron-section-content .policy-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.electron-section-content .policy-list li:last-child {
    border-bottom: none;
}

.electron-section-content .policy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
}

.electron-section-content .current-product-display {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.electron-section-content .product-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.electron-section-content .product-thumb {
    flex-shrink: 0;
}

.electron-section-content .product-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.electron-section-content .product-info {
    flex-grow: 1;
}

.electron-section-content .product-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.electron-section-content .product-name a {
    color: #333;
    text-decoration: none;
}

.electron-section-content .product-name a:hover {
    color: #007cba;
}

.electron-section-content .price {
    color: #e10c00;
    font-weight: 700;
    font-size: 18px;
}

.electron-section-content .product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.electron-section-content .add-to-cart-wrapper {
    margin-bottom: 10px;
}

.electron-section-content .add-to-cart-wrapper .button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.electron-section-content .add-to-cart-wrapper .button:hover {
    background: #005a87;
    color: white;
}

.electron-section-content .add-to-cart-wrapper .button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.electron-section-content .shopee-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.electron-section-content .shopee-btn:hover {
    background: #e55a2b;
    color: white;
}

.electron-section-content .shopee-btn.shopee-hn {
    background: #ff6b35;
}

.electron-section-content .shopee-btn.shopee-hcm {
    background: #ff6b35;
}

/* Styling cho Custom Elementor template section */
.electron-section-content .elementor {
    margin: 0;
}

.electron-section-content .elementor-section {
    margin: 0;
}

.electron-section-content .elementor-container {
    max-width: 100%;
}

.electron-section-content .elementor-widget {
    margin-bottom: 0;
}

.electron-section-content .elementor-widget:last-child {
    margin-bottom: 0;
}

/* Đảm bảo Elementor template hiển thị đúng trong section */
.electron-section-content .elementor-section-wrap {
    margin: 0;
    padding: 0;
}

.electron-section-content .elementor-section-wrap .elementor-section {
    margin: 0;
    padding: 0;
}

/* Mobile-only section - ẩn trên desktop */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .electron-product-sections-wrapper {
        margin-top: 30px;
    }
    
    .electron-section-header {
        padding: 15px 20px;
    }
    
    .electron-section-content {
        padding: 20px;
    }
    
    .electron-section-title {
        font-size: 16px;
    }
    
    .electron-section-content table th,
    .electron-section-content table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .electron-section-content table th {
        width: 35%;
    }
    
    /* Product Policy responsive */
    .electron-section-content .product-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .electron-section-content .product-thumb img {
        width: 100px;
        height: 100px;
    }
    
    .electron-section-content .product-actions {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    
    .electron-section-content .add-to-cart-wrapper {
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }
    
    .electron-section-content .add-to-cart-wrapper .button {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .electron-section-header {
        padding: 12px 15px;
    }
    
    .electron-section-content {
        padding: 15px;
    }
    
    .electron-section-title {
        font-size: 15px;
    }
    
    .electron-section-content table {
        font-size: 13px;
    }
    
    .electron-section-content table th,
    .electron-section-content table td {
        padding: 8px;
    }
}

/* Animation cho sections */
.electron-product-section-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation cho multiple sections */
.electron-product-section-item:nth-child(1) { animation-delay: 0.1s; }
.electron-product-section-item:nth-child(2) { animation-delay: 0.2s; }
.electron-product-section-item:nth-child(3) { animation-delay: 0.3s; }
.electron-product-section-item:nth-child(4) { animation-delay: 0.4s; }
.electron-product-section-item:nth-child(5) { animation-delay: 0.5s; }
