.content .container {
    padding: 10px 40px !important;
}

/* ============================================
   COMPARE PAGE - Enhanced Design
   ============================================ */

/* Compare Page Header */
.compare-page-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.compare-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.compare-page-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.compare-page-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    animation: compareIconRotate 20s linear infinite;
}

@keyframes compareIconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.compare-page-icon i {
    font-size: 32px;
    color: #fff;
}

.compare-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    position: relative;
}

.compare-page-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    position: relative;
}

.compare-count {
    color: var(--primary-bg, #1a1a2e);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 4px 12px;
    border-radius: 20px;
}

/* Compare Actions Bar */
.compare-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.compare-actions-left,
.compare-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #fecaca;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-clear-all:hover {
    background: #fecaca;
    border-color: #fca5a5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #374151;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-continue-shopping:hover {
    border-color: var(--primary-bg, #667eea);
    color: var(--primary-bg, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Compare Table Container */
.compare-table-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.compare-table thead {
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
}

.compare-table thead th {
    padding: 16px 20px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table thead th:last-child {
    border-right: none;
}

.compare-table thead th i {
    margin-right: 8px;
    opacity: 0.9;
    font-size: 14px;
}

/* Table Header Column Widths */
.compare-th-image {
    width: 150px;
    min-width: 150px;
}

.compare-th-name {
    width: 250px;
    min-width: 250px;
}

.compare-th-price {
    width: 150px;
    min-width: 150px;
}

.compare-th-model {
    width: 120px;
    min-width: 120px;
}

.compare-th-stock {
    width: 140px;
    min-width: 140px;
}

.compare-th-weight {
    width: 120px;
    min-width: 120px;
}

.compare-th-dimensions {
    width: 180px;
    min-width: 180px;
}

.compare-th-rating {
    width: 150px;
    min-width: 150px;
}

.compare-th-summary {
    width: 250px;
    min-width: 250px;
}

.compare-th-attribute {
    width: 150px;
    min-width: 150px;
}

.compare-th-action {
    width: 180px;
    min-width: 180px;
    text-align: center;
}

/* Table Body - Product Rows */
.compare-table tbody {
    background: #fff;
}

.compare-product-row {
    border-bottom: 2px solid #f1f5f9;
    transition: all 0.2s ease;
}

.compare-product-row:hover {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.compare-product-row:last-child {
    border-bottom: none;
}

.compare-product-row td {
    padding: 20px;
    vertical-align: middle;
    border-right: 1px solid #f1f5f9;
}

.compare-product-row td:last-child {
    border-right: none;
}

/* Alternating row colors for better readability */
.compare-product-row:nth-child(even) {
    background: #fafbfc;
}

.compare-product-row:nth-child(even):hover {
    background: #f1f5f9;
}

/* Image Cell */
.compare-td-image {
    text-align: center;
}

.compare-product-image-cell {
    position: relative;
    display: inline-block;
    width: 100%;
}

.btn-remove-compare {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-remove-compare:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.compare-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    padding: 12px;
    transition: transform 0.3s ease;
}

.compare-image-link:hover {
    transform: scale(1.05);
}

.compare-image-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Name Cell */
.compare-td-name {
    font-weight: 600;
}

.compare-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.compare-product-name a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.compare-product-name a:hover {
    color: var(--primary-bg, #667eea);
}

/* Price Cell */
.compare-td-price {
    text-align: center;
}

.compare-product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.price-new {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
}

.price-old {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* Value Cells */
.compare-value-content {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.compare-td-name .compare-value-content {
    text-align: left;
}

.compare-td-image .compare-value-content,
.compare-td-action .compare-value-content {
    text-align: center;
}

.compare-summary {
    text-align: left;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.5;
}

/* Action Cell */
.compare-td-action {
    text-align: center;
}

.btn-add-to-cart-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.btn-add-to-cart-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-add-to-cart-compare:active {
    transform: translateY(0);
}

.btn-add-to-cart-compare i {
    font-size: 12px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #dcfce7;
    color: #166534;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.compare-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.compare-rating i.fa-star {
    color: #fbbf24;
    font-size: 14px;
}

.compare-rating i.far.fa-star {
    color: #e2e8f0;
    font-size: 14px;
}

.rating-text {
    margin-left: 8px;
    font-size: 12px;
    color: #94a3b8;
}

/* Compare Mobile Cards (Hidden on desktop) */
.compare-mobile-cards {
    display: none;
}

/* Empty Compare State */
.compare-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    margin: 30px 0;
}

.compare-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.compare-empty-icon i {
    font-size: 48px;
    color: var(--primary-bg, #667eea);
}

.compare-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.compare-empty-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.compare-empty-actions {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .compare-table-container {
        display: none;
    }

    .compare-mobile-cards {
        display: block;
    }

    .compare-mobile-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid #e2e8f0;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .compare-mobile-header {
        position: relative;
        padding: 20px;
        text-align: center;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-bottom: 1px solid #e2e8f0;
    }

    .compare-mobile-header .btn-remove-compare {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(220, 38, 38, 0.1);
        color: #dc2626;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .compare-mobile-header .btn-remove-compare:hover {
        background: #fee2e2;
        transform: scale(1.1);
    }

    .compare-mobile-image {
        margin-bottom: 16px;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        padding: 12px;
    }

    .compare-mobile-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .compare-mobile-name {
        font-size: 18px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 12px;
    }

    .compare-mobile-name a {
        color: #1e293b;
        text-decoration: none;
    }

    .compare-mobile-name a:hover {
        color: var(--primary-bg, #667eea);
    }

    .compare-mobile-price {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .compare-mobile-body {
        padding: 20px;
    }

    .compare-mobile-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

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

    .compare-mobile-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #374151;
        font-size: 14px;
    }

    .compare-mobile-label i {
        color: var(--primary-bg, #667eea);
        font-size: 12px;
    }

    .compare-mobile-value {
        color: #64748b;
        font-size: 14px;
        text-align: right;
    }

    .compare-mobile-footer {
        padding: 20px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .compare-mobile-footer .btn-add-to-cart-compare {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .compare-page-header {
        padding: 30px 16px 24px;
        margin-bottom: 20px;
    }

    .compare-page-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .compare-page-icon i {
        font-size: 24px;
    }

    .compare-page-title {
        font-size: 22px;
    }

    .compare-page-subtitle {
        font-size: 14px;
    }

    .compare-actions-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

    .compare-actions-left,
    .compare-actions-right {
        width: 100%;
        justify-content: center;
    }

    .btn-clear-all,
    .btn-continue-shopping {
        width: 100%;
        justify-content: center;
    }

    .compare-empty-state {
        padding: 40px 20px;
    }

    .compare-empty-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }

    .compare-empty-icon i {
        font-size: 40px;
    }

    .compare-empty-title {
        font-size: 20px;
    }

    .compare-empty-message {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .compare-actions-bar,
    .btn-remove-compare,
    .btn-add-to-cart-compare {
        display: none;
    }

    .compare-table-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
