.bwt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bwt-btn i {
    font-size: 16px;
    line-height: 1;
}

.bwt-btn span {
    line-height: 1;
}

/* Icon only - make it square */
.bwt-btn-icon-only {
    padding: 10px;
    width: 40px;
    height: 40px;
    gap: 0;
}

/* Text only - standard padding */
.bwt-btn-text-only {
    gap: 0;
}

/* Icon + Text - has gap already defined */
.bwt-btn-icon-text {
    gap: 6px;
}

.bwt-btn.is-active {
    background: #101828;
    color: #fff;
    border-color: #101828;
}

.bwt-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.bwt-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bwt-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

.bwt-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bwt-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.bwt-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.bwt-thumb:hover img {
    transform: scale(1.05);
}

.bwt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bwt-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #101828;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bwt-title:hover {
    color: #667085;
}

.bwt-price {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #475467;
}

.bwt-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.bwt-empty {
    padding: 16px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    text-align: center;
    color: #667085;
}

/* Responsive */
@media (max-width: 991px) {
    .bwt-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .bwt-list {
        grid-template-columns: 1fr !important;
    }
    
    .bwt-item {
        padding: 12px;
    }
}

/* Offcanvas */
body.bwt-offcanvas-open {
    overflow: hidden;
}

.bwt-offcanvas-wrapper {
    position: relative;
}

.bwt-offcanvas-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    background: #fff;
    color: #101828;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bwt-offcanvas-trigger:hover {
    background: #f9fafb;
    border-color: #d0d5dd;
}

.bwt-offcanvas-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #101828;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

.bwt-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.bwt-offcanvas.is-open {
    pointer-events: auto;
}

.bwt-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 9998;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bwt-offcanvas.is-open .bwt-offcanvas-overlay {
    opacity: 1;
    pointer-events: auto;
}

.bwt-offcanvas-content {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--offcanvas-width, 400px);
    max-width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.3, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.bwt-offcanvas-right .bwt-offcanvas-content {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

.bwt-offcanvas-left .bwt-offcanvas-content {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

.bwt-offcanvas.is-open.bwt-offcanvas-right .bwt-offcanvas-content {
    transform: translateX(0);
}

.bwt-offcanvas.is-open.bwt-offcanvas-left .bwt-offcanvas-content {
    transform: translateX(0);
}

.bwt-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e4e7ec;
}

.bwt-offcanvas-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.bwt-offcanvas-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #667085;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.bwt-offcanvas-close:hover {
    background: #f9fafb;
    color: #101828;
}

.bwt-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.bwt-offcanvas-footer {
    padding: 16px 24px;
    border-top: 1px solid #e4e7ec;
    background: #f9fafb;
}

.bwt-btn-compare-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bwt-btn-compare-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: #fff !important;
}

.bwt-btn-compare-now i {
    font-size: 16px;
}

.bwt-btn-wishlist-view {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.bwt-btn-wishlist-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
    color: #fff !important;
}

.bwt-btn-wishlist-view i {
    font-size: 16px;
}

.bwt-offcanvas-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bwt-offcanvas-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

.bwt-offcanvas-item:hover {
    border-color: #d0d5dd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bwt-offcanvas-thumb {
    display: block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
}

.bwt-offcanvas-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bwt-offcanvas-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bwt-offcanvas-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bwt-offcanvas-item-title:hover {
    color: #667085;
}

.bwt-offcanvas-price {
    font-size: 14px;
    font-weight: 600;
    color: #475467;
}

.bwt-offcanvas-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #f9fafb;
    color: #667085;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.bwt-offcanvas-remove:hover {
    background: #fee;
    color: #d92d20;
}

/* Offcanvas Responsive */
@media (max-width: 575px) {
    .bwt-offcanvas-content {
        width: 100% !important;
    }
    
    .bwt-offcanvas-header,
    .bwt-offcanvas-body {
        padding: 16px 20px;
    }
    
    .bwt-offcanvas-footer {
        padding: 12px 20px;
    }
    
    .bwt-btn-compare-now,
    .bwt-btn-wishlist-view {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .bwt-offcanvas-item {
        grid-template-columns: 60px 1fr auto;
    }
    
    .bwt-offcanvas-thumb {
        width: 60px;
        height: 60px;
    }
}

/* Account Page Styles */
.bwt-account-container {
    margin: 20px 0;
}

.bwt-account-container h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    color: #101828;
}

.bwt-list-account {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bwt-item-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bwt-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d0d5dd;
}

.bwt-item-card .bwt-thumb {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    overflow: hidden;
    background: #f9fafb;
}

.bwt-item-card .bwt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bwt-item-card:hover .bwt-thumb img {
    transform: scale(1.05);
}

.bwt-item-card .bwt-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.bwt-item-card .bwt-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #101828;
}

.bwt-item-card .bwt-title a {
    color: #101828;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bwt-item-card .bwt-title a:hover {
    color: #7f56d9;
}

.bwt-item-card .bwt-price {
    color: #475467;
    font-size: 14px;
    margin-bottom: 8px;
}

.bwt-item-card .bwt-price span {
    font-weight: 600;
    color: #101828;
}

.bwt-item-card .bwt-rating {
    margin: 8px 0;
    font-size: 13px;
}

.bwt-item-card .bwt-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #e4e7ec;
    margin-top: auto;
    padding-top: 12px;
}

.bwt-item-card .bwt-btn-view {
    flex: 1;
    min-width: 100px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #101828;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.bwt-item-card .bwt-btn-view:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.bwt-item-card .bwt-btn-remove {
    padding: 8px 12px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
}

.bwt-item-card .bwt-btn-remove:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.bwt-item-card .bwt-btn-remove.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.bwt-item-card .bwt-wishlist-btn,
.bwt-item-card .bwt-compare-btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bwt-item-card .bwt-wishlist-btn {
    background: #fff5f7;
    color: #dc2626;
    border: 1px solid #fbcfe8;
}

.bwt-item-card .bwt-wishlist-btn:hover {
    background: #ffe4e6;
    border-color: #f97316;
}

.bwt-item-card .bwt-wishlist-btn.is-active {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.bwt-item-card .bwt-compare-btn {
    background: #f0f4ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.bwt-item-card .bwt-compare-btn:hover {
    background: #e0e7ff;
    border-color: #4f46e5;
}

.bwt-item-card .bwt-compare-btn.is-active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bwt-list-account {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .bwt-item-card {
        border-radius: 6px;
    }

    .bwt-item-card .bwt-thumb {
        height: 180px;
    }

    .bwt-item-card .bwt-content {
        padding: 12px;
    }

    .bwt-item-card .bwt-actions {
        padding: 8px 12px 12px;
        gap: 6px;
    }

    .bwt-item-card .bwt-title {
        font-size: 14px;
    }

    .bwt-item-card .bwt-price {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bwt-list-account {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }

    .bwt-item-card .bwt-thumb {
        height: 140px;
    }

    .bwt-item-card .bwt-content {
        padding: 8px;
    }

    .bwt-item-card .bwt-actions {
        padding: 6px 8px 8px;
        gap: 4px;
        flex-direction: column;
    }

    .bwt-item-card .bwt-btn-view,
    .bwt-item-card .bwt-wishlist-btn,
    .bwt-item-card .bwt-compare-btn,
    .bwt-item-card .bwt-btn-remove {
        flex: 1;
        min-width: unset;
        padding: 6px 8px;
        font-size: 12px;
    }

    .bwt-item-card .bwt-btn-remove {
        padding: 6px;
    }

    .bwt-item-card .bwt-title {
        font-size: 12px;
    }

    .bwt-item-card .bwt-price {
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .bwt-offcanvas,
    .bwt-offcanvas-overlay {
        display: none !important;
    }
}

/* Comparison Table Styles */
.bwt-comparison-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bwt-comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: table;
}

.bwt-comparison-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    display: table-header-group;
}

.bwt-comparison-table tbody {
    display: table-row-group;
}

.bwt-comparison-table tr {
    display: table-row;
}

.bwt-comparison-table th,
.bwt-comparison-table td {
    display: table-cell;
}

.bwt-comparison-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid #eee;
    vertical-align: top;
}

.bwt-comparison-table th:last-child {
    border-right: none;
}

.bwt-comparison-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.bwt-comparison-table tbody tr:hover {
    background: #f9f9f9;
}

.bwt-comparison-table td {
    padding: 16px;
    border-right: 1px solid #eee;
    vertical-align: top;
}

.bwt-comparison-table td:last-child {
    border-right: none;
}

.bwt-spec-name {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    background: #f5f5f5;
    font-weight: 600;
    vertical-align: top;
}

.bwt-product-col {
    min-width: 220px;
    width: auto;
    max-width: 300px;
}

.bwt-product-header {
    text-align: center;
}

.bwt-product-image {
    margin-bottom: 12px;
}

.bwt-product-image img {
    max-width: 150px;
    height: auto;
}

.bwt-product-name {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.bwt-product-name a {
    color: #0373f3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bwt-product-name a:hover {
    color: #0252b3;
    text-decoration: underline;
}

.bwt-spec-value {
    text-align: center;
    vertical-align: middle;
}

.bwt-price {
    font-size: 16px;
    font-weight: 600;
    color: #27ae60;
}

.bwt-in-stock {
    color: #27ae60;
    font-weight: 500;
}

.bwt-out-stock {
    color: #e74c3c;
    font-weight: 500;
}

.bwt-no-rating {
    color: #999;
    font-style: italic;
}

.bwt-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.bwt-actions-row {
    background: #f5f5f5;
    border-top: 2px solid #ddd;
}

.bwt-actions-row td {
    width: auto;
    min-width: 180px;
    display: table-cell !important;
}

.bwt-actions-row .bwt-spec-value {
    vertical-align: middle;
    text-align: center;
}

.bwt-compare-actions {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    padding: 8px 4px;
    min-width: 180px;
}

.bwt-compare-actions .bwt-btn {
    font-size: 13px;
    padding: 8px 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bwt-compare-actions .bwt-btn i {
    font-size: 14px;
}

.bwt-btn-primary {
    background: #0373f3;
    color: #fff;
    border-color: #0373f3;
    width: 100%;
    justify-content: center;
}

.bwt-btn-primary:hover {
    background: #0252b3;
    border-color: #0252b3;
}

.bwt-btn-cart {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
    width: 100%;
    justify-content: center;
}

.bwt-btn-cart:hover {
    background: #1e8449;
    border-color: #1e8449;
}

.bwt-btn-remove-compare {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    width: 100%;
    justify-content: center;
    min-width: auto;
    padding: 8px;
}

.bwt-btn-remove-compare:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.bwt-btn-remove-compare i {
    font-size: 16px;
}

.bwt-compare-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.bwt-compare-empty h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 20px;
}

.bwt-compare-empty p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Responsive Comparison Table */
@media (max-width: 1024px) {
    .bwt-product-col {
        width: 180px;
        min-width: 180px;
    }

    .bwt-spec-name {
        width: 150px;
        min-width: 150px;
    }

    .bwt-comparison-table th,
    .bwt-comparison-table td {
        padding: 12px;
    }

    .bwt-product-image img {
        max-width: 120px;
    }

    .bwt-product-name {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .bwt-comparison-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bwt-comparison-table {
        min-width: 600px;
    }

    .bwt-spec-name {
        width: 120px;
        min-width: 120px;
    }

    .bwt-product-col {
        width: 140px;
        min-width: 140px;
    }

    .bwt-comparison-table th,
    .bwt-comparison-table td {
        padding: 10px;
        font-size: 12px;
    }

    .bwt-product-image img {
        max-width: 100px;
    }

    .bwt-product-name {
        font-size: 11px;
    }

    .bwt-price {
        font-size: 14px;
    }

    .bwt-compare-actions .bwt-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .bwt-compare-actions .bwt-btn i {
        font-size: 12px;
    }
}
