/* تعریف فونت زیبای ایرانی وزیر متن */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;800&display=swap');

:root {
    --primary-color: #0f172a;
    --accent-color: #ef4444;
    --text-color: #334155;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea {
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* هدر لوکس با لوگو در وسط */
.shop-header {
    width: 100%;
    max-width: 100%;
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.header-right {
    display: flex;
    align-items: center;
    width: 30%;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
}

.header-left {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 30%;
}

.shop-logo {
    font-size: 20px;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.shop-logo svg {
    fill: #38bdf8;
}

.desktop-nav {
    display: none;
    gap: 20px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: #38bdf8;
}

.menu-toggle-btn, .action-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    text-decoration: none;
}

.menu-toggle-btn:hover, .action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* بدنه اصلی سایت */
.main-layout-container {
    max-width: 1200px;
    width: 100%;
    margin: 16px auto;
    padding: 0 12px;
    display: flex;
    gap: 24px;
    box-sizing: border-box;
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* سایدبار دسکتاپ */
.desktop-sidebar {
    display: none;
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-right: 3px solid #3b82f6;
    padding-right: 10px;
}

.sidebar-categories {
    list-style: none;
}

.sidebar-categories li {
    padding: 8px 0;
    font-size: 13px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-categories li.active, .sidebar-categories li:hover {
    color: #2563eb;
    font-weight: bold;
}

.cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.sidebar-categories li.active .cat-dot {
    background-color: #2563eb;
    box-shadow: 0 0 8px #2563eb;
}

.sort-select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    background-color: white;
}

/* اسلایدر بنر */
.slider-section {
    width: 100%;
    margin-bottom: 24px;
}

.hero-slider {
    width: 100%;
    height: 52vw;
    min-height: 180px;
    max-height: 240px;
    border-radius: 16px;
    position: relative;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
    .hero-slider {
        height: 220px;
        max-height: none;
        border-radius: 20px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    z-index: 1;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .slide {
        padding: 24px;
    }
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 85%;
    z-index: 5;
}

@media (min-width: 640px) {
    .slide-content {
        max-width: 65%;
    }
}

.slide-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.35;
    word-break: break-word;
}

.slide-subtitle {
    font-size: 11.5px;
    opacity: 0.95;
    margin-bottom: 10px;
    line-height: 1.45;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-btn {
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
}

@media (min-width: 640px) {
    .slide-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .slide-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
        -webkit-line-clamp: 3;
    }
    .slide-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}

.slide-image {
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .slide-image {
        display: none;
    }
    .slide-content {
        max-width: 100%;
    }
}

/* دسته‌بندی‌های موبایل */
.mobile-categories-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 2px 15px 2px;
    scroll-behavior: smooth;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 65px;
    cursor: pointer;
}

.category-icon {
    width: 58px;
    height: 58px;
    background-color: var(--card-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.category-item:hover .category-icon {
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.category-name {
    font-size: 11px;
    color: var(--text-color);
    text-align: center;
}

/* گرید محصولات اصلی */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #3b82f6;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    direction: ltr;
    z-index: 5;
}

.product-image-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background-color: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
}

.product-image-placeholder {
    width: 65px;
    height: 65px;
}

.product-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    height: 36px;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #eab308;
    font-weight: bold;
}

.product-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

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

.current-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.current-price span {
    font-size: 10px;
    font-weight: normal;
}

.add-to-cart-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn:hover {
    background-color: #1d4ed8;
}

/* ========================================================
   صفحه تک محصول (Product Details Page)
   ======================================================== */
.product-detail-container {
    width: 100%;
}

.breadcrumbs {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #2563eb;
}

.product-essential {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-view {
    height: 250px;
    background-color: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-svg {
    width: 150px;
    height: 150px;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumb {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 5px;
    cursor: pointer;
}

.thumb.active, .thumb:hover {
    border-color: #2563eb;
}

.product-info-buying {
    width: 100%;
}

.product-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.product-rating-box {
    margin-bottom: 20px;
}

.stars {
    color: #eab308;
}

.rating-text {
    font-size: 12px;
    color: #64748b;
}

.product-price-section {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
}

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

.new-price-large {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.product-selectors {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 24px;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.color-options {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #cbd5e1;
}

.color-dot.active {
    box-shadow: 0 0 0 2px #2563eb;
}

.color-blue { background-color: #3b82f6; }
.color-red { background-color: #ef4444; }
.color-green { background-color: #10b981; }

/* کنترل کننده تعداد */
.quantity-controller {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: #f1f5f9;
}

.quantity-controller input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
}

.add-to-cart-large-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

/* تب‌های توضیحات */
.product-tabs-container {
    margin-top: 24px;
    background-color: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    background-color: white;
}

.tab-content {
    display: none;
    padding: 20px;
    font-size: 13px;
}

.tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.specs-table td:first-child {
    font-weight: bold;
    color: #64748b;
    width: 35%;
}

/* ========================================================
   صفحه سبد خرید (Shopping Cart Page)
   ======================================================== */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.cart-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-item-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    gap: 15px;
    position: relative;
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title a {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.cart-item-variant {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}

.cart-item-price-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
}

.remove-cart-item-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
}

.remove-cart-item-btn:hover {
    color: #ef4444;
}

/* خلاصه صورتحساب */
.summary-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 90px;
}

.summary-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
}

.discount-text {
    color: #ef4444;
}

.shipping-text {
    color: #10b981;
}

.summary-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

.total-row {
    font-size: 15px;
    font-weight: 800;
}

.coupon-section {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.coupon-section input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}

.coupon-section button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.checkout-btn {
    width: 100%;
    background-color: #10b981;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.checkout-btn:hover {
    background-color: #059669;
}

/* ========================================================
   کشوی کناری موبایل
   ======================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background-color: white;
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-drawer-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}

.drawer-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
}

.drawer-link:hover, .drawer-link.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ناوبری چسبان پایینی موبایل */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(65px + env(safe-area-inset-bottom, 0px));
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 5px);
    z-index: 999;
}

@media (max-width: 1023px) {
    body {
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    width: 20%;
}

.nav-item.active {
    color: #2563eb;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* فوتر دسکتاپ */
.desktop-footer {
    display: none;
    width: 100%;
    max-width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 40px 16px 20px 16px;
    margin-top: 60px;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

.footer-col h3 {
    color: #38bdf8;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 13px;
    color: #94a3b8;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* اعلان سبد خرید */
.toast {
    position: fixed;
    bottom: -60px;
    right: 50%;
    transform: translateX(50%);
    background-color: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 0;
}

.toast.show {
    bottom: 80px;
    opacity: 1;
}

/* ========================================================
   قوانین ریسپانسیو دسکتاپ
   ======================================================== */
@media (min-width: 1024px) {
    .menu-toggle-btn, .mobile-categories-section, .bottom-nav {
        display: none !important;
    }

    .desktop-sidebar, .desktop-footer {
        display: block;
    }

    .desktop-nav {
        display: flex;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-subtitle {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* جزئیات محصول در دسکتاپ دو ستونه */
    .product-essential {
        flex-direction: row;
        align-items: flex-start;
    }

    .product-gallery {
        width: 45%;
    }

    .product-info-buying {
        width: 55%;
    }

    /* سبد خرید در دسکتاپ دو ستونه */
    .cart-layout-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Dynamic Slider Backgrounds */
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 2; }
.slide-bg-mobile { display: none; }
@media (max-width: 768px) { .hide-on-mobile { display: none; } .slide-bg-mobile { display: block; } }

/* Responsive Content Containment */
.product-description-content {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    word-break: break-word;
}
.product-description-content img,
.product-description-content video,
.product-description-content iframe {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}
.product-description-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

