/*
Theme Name: Vinapet
Theme URI: https://yourwebsite.com
Author: EsightStudio
Author URI: https://esightstudio.vn/
Description: Custom WordPress theme integrated with ERPNext
Version: 1.2.5
License: GNU General Public License v2 or later
Text Domain: vinapet
*/


/* Header & Footer Styles for ViNaPet Theme */

body{
    font-family: 'SVN-Gilroy', sans-serif !important;
}

/* ===== HEADER STYLES ===== */

/* ===== INDEX.PHP STYLES ===== */

:root {
    --primary-color: #2E86AB;
    --secondary-color: #19457B;
    --accent-color: #F18F01;
    --text-primary: #19457B;
    --text-secondary: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --warning-color: #F59E0B;
    --success-color: #10B981;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'SVN-Gilroy', sans-serif;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0 40px;
    margin-bottom: 50px;
    border-bottom: 1px solid #dee2e6;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.archive-description {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Posts Container */
.posts-container {
    padding: 0 0 80px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Post Item */
.post-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Post Thumbnail */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Post Content */
.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-date {
    color: #6c757d;
    font-weight: 500;
}

.post-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.post-category:hover {
    background: #1976d2;
    color: #fff;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #2196F3;
}

.post-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    color: #1976d2;
    gap: 12px;
}

.read-more-btn svg {
    transition: transform 0.2s ease;
}

.read-more-btn:hover svg {
    transform: translateX(4px);
}

/* Pagination */
.navigation.pagination {
    margin-top: 60px;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-numbers .page-link,
.page-numbers .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    color: #6c757d;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers .page-numbers:hover,
.page-numbers .page-link:hover {
    color: #fff;
    background: #2196F3;
    border-color: #2196F3;
}

.page-numbers .current {
    color: #fff;
    background: #2196F3;
    border-color: #2196F3;
}

.page-numbers .dots {
    color: #adb5bd;
    padding: 0 5px;
}

/* No Posts Found */
.no-posts-found {
    padding: 100px 0;
    text-align: center;
}

.no-posts-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts-icon {
    color: #adb5bd;
    margin-bottom: 30px;
}

.no-posts-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.no-posts-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.no-posts-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-form-wrapper {
    margin: 30px 0;
}

.search-form-wrapper .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form-wrapper .search-field {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 0;
    font-size: 1rem;
}

.search-form-wrapper .search-submit {
    padding: 15px 25px;
    background: #2196F3;
    color: #fff;
    border: 1px solid #2196F3;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.search-form-wrapper .search-submit:hover {
    background: #1976d2;
}

/* Sidebar */
#secondary {
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .post-content {
        padding: 25px 20px;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .no-posts-found {
        padding: 60px 0;
    }
    
    .no-posts-title {
        font-size: 1.6rem;
    }
    
    .no-posts-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .posts-container {
        padding: 0 0 50px 0;
    }
    
    .post-content {
        padding: 20px 15px;
    }
    
    .page-numbers .page-link,
    .page-numbers .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/* Fix cho Elementor */
.entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.elementor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   CART PAGE LAYOUT
   ======================================== */
.cart-page-container {
    padding: 40px 0;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
}

.cart-content {
    margin-top: 30px;
}

/* ========================================
   EMPTY CART
   ======================================== */
.cart-empty-message {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.empty-cart-icon {
    color: #d1d5db;
    margin-bottom: 24px;
}

.cart-empty-message h2 {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.cart-empty-message p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

.cart-empty-message .btn {
    min-width: 200px;
}

/* ========================================
   CART LAYOUT
   ======================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* ========================================
   CART ITEMS SECTION
   ======================================== */
.cart-items-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cart-items-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.cart-items-header .btn-link {
    padding: 6px 12px;
    font-size: 14px;
    text-decoration: none;
    background: linear-gradient(90deg, #19457B 0%, #0F6B87 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    border: none;
}

.cart-items-list {
    padding: 0;
}

/* ========================================
   CART ITEM
   ======================================== */
.cart-item {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.cart-item:hover {
    background: #f9fafb;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-name strong {
    color: var(--text-primary);
}

.cart-item-name .text-muted {
    font-size: 14px;
    font-weight: normal;
    color: #6b7280;
}

.cart-item-actions {
    display: flex;
    gap: 12px;
}

.cart-item-actions .btn {
    padding: 6px 12px;
    font-size: 14px;
    text-decoration: none;
    background: #FFFFFF;
    color: #19457B;
    border: 1.2px solid var(--color-info-200, #B4EFFD);
    box-shadow: -1px -1px 8px 0px #79E9E4B2 inset;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item-actions .btn i {
    margin-right: 4px;
}

/* ========================================
   SPECIFICATIONS
   ======================================== */
.cart-item-specifications {
    margin-bottom: 16px;
}

.specifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
}

.spec-item i {
    color: #6b7280;
    font-size: 16px;
    width: 18px;
    flex-shrink: 0;
}

.spec-item strong {
    color: #374151;
    margin-right: 4px;
}

/* ========================================
   CART ITEM DETAILS ROW
   ======================================== */
.cart-item-details-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: center;
}

.cart-item-price,
.cart-item-quantity-wrapper,
.cart-item-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-price label,
.cart-item-quantity-wrapper label,
.cart-item-total label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.cart-item-price .price {
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

.cart-item-total .total {
    font-size: 20px;
    color: #dc2626;
    font-weight: 700;
}

/* ========================================
   QUANTITY CONTROLS
   ======================================== */
.cart-item-quantity-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.cart-item-quantity-wrapper label {
    min-width: 70px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.quantity-controls button {
    background: #f9fafb;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}

.quantity-controls button:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.quantity-controls button:active {
    background: #d1d5db;
}

.quantity-controls input {
    width: 80px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    height: 36px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.quantity-controls input:focus {
    outline: none;
    background: #f9fafb;
}

.quantity-unit {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}
.primary-button, .secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.primary-button {
    flex: 50%;
    background: linear-gradient(90deg, #19457B 0%, #0F6B87 100%);
    color: var(--white);
    border: none;
    box-shadow: 0px 0px 0px 1px #39C3ED;

}


.secondary-button {
    flex: 50%;
    background: #FFFFFF;
    color: #19457B;
    border: 1.2px solid var(--color-info-200, #B4EFFD);
    box-shadow: -3px -3px 8px 0px #79E9E4B2 inset;
}

.secondary-button:hover {
    background-color: rgba(46, 134, 171, 0.1);
}

/* ========================================
   CART SUMMARY
   ======================================== */
.cart-summary-section {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1f2937;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
}

.summary-row span:first-child {
    color: #6b7280;
}

.summary-row span:last-child {
    color: #1f2937;
    font-weight: 500;
}

.summary-row.subtotal-row {
    font-size: 16px;
    padding: 16px 0;
}

.summary-row.total-row {
    font-size: 18px;
    padding: 16px 0;
}

.summary-row.total-row strong {
    font-size: 24px;
    color: #dc2626;
}

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.cart-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
a.btn {
    text-decoration: none;
}
.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #19457B 0%, #0F6B87 100%);
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-outline-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* ========================================
   COUPON SECTION
   ======================================== */
.coupon-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.coupon-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #1f2937;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group .form-control {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.coupon-input-group .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.coupon-input-group .btn-secondary {
    padding: 10px 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.coupon-input-group .btn-secondary:hover {
    background: #4b5563;
}
.btn-sm {
    padding: 12px 24px!important;
    border-radius: var(--border-radius);
    margin-right: 16px;
    margin-bottom: 0!important;
    display: flex;
    align-items: center;
}
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.message-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.message-popup.success { background: #10B981; color: white; }
.message-popup.error { background: #EF4444; color: white; }
.message-popup.warning { background: #F59E0B; color: white; }
.message-popup.info { background: #3B82F6; color: white; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .cart-item-details-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cart-item-quantity-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .specifications {
        grid-template-columns: 1fr;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cart-page-container {
        padding: 20px 0;
    }

    .cart-item {
        padding: 16px;
    }

    .cart-summary {
        padding: 16px;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .coupon-input-group .btn-secondary {
        width: 100%;
    }
}
/* ========================================
   MIX GROUP STYLING
   ======================================== */
.cart-item-mix-group {
    background:  rgba(217, 246, 245, 0.4);
    border-left: 4px solid var(--text-primary);
}

.cart-item-name-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mix-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--text-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.mix-items-detail {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    border: 1px solid var(--text-primary);
}

.mix-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #B4EFFD;
}

.mix-item-row:last-child {
    border-bottom: none;
}

.mix-item-name {
    font-weight: 600;
    color:var(--text-primary);
    flex: 1;
}

.mix-item-percent {
    font-weight: 700;
    color: #10bcb4;
    min-width: 60px;
    text-align: center;
}

.mix-item-color {
    color: #6b7280;
    font-size: 13px;
    flex: 1;
    text-align: right;
}
