﻿/* ============================================
   Main Stylesheet - Stone Building System
   Professional Stone Industry Website
   ============================================ */

/* ========== Vazirmatn Font - All Weights ========== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #2C3E50;
    --secondary-color: #C8956C;
    --accent-color: #8B7355;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --light-color: #F5F5F5;
    --dark-color: #1A1A1A;
    --gray-color: #7F8C8D;
    --white-color: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #FAFAFA;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ========== RTL/LTR Support ========== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* ========== Grid System ========== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-lg-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-lg-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-md-5 {
    flex: 0 0 41.666%;
    max-width: 41.666%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* ========== Header ========== */
.main-header {
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.top-bar {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.contact-info-top {
    display: flex;
    gap: 15px;
}

.top-bar a {
    color: var(--white-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 12px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector {
    display: flex;
    gap: 5px;
}

.language-selector a {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 12px;
}

.language-selector a.active {
    border-color: var(--secondary-color);
    background: rgba(200, 149, 108, 0.2);
}

.language-selector a:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}

/* ========== Auth Links ========== */
.auth-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-auth {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-login {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.btn-login:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.btn-register {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-register:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* ========== User Menu ========== */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.user-dropdown-btn:hover {
    background: rgba(255,255,255,0.2);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    padding: 8px 0;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.2s;
}

.user-dropdown-menu a:hover {
    background: #f5f5f5;
    color: #C8956C;
}

.logout-link {
    color: #E74C3C !important;
}

/* ========== Navbar ========== */
.navbar {
    padding: 8px 0;
    background: var(--white-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-brand {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 20px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
    border-radius: 8px;
}

.nav-link:hover {
    background: #f5f5f5;
    color: var(--secondary-color);
}

.nav-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-icons a {
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-icons a:hover {
    color: var(--secondary-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #E74C3C;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========== Breadcrumb ========== */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495E 100%);
    padding: 25px 0;
    color: white;
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 5px;
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 8px;
    color: rgba(255,255,255,0.5);
}

/* ========== Sections ========== */
.section {
    padding: 20px 0 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray-color);
    font-size: 15px;
}

/* ========== Buttons ========== */
.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-add-to-cart {
    display: block;
    width: 100%;
    background: #C8956C;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    text-align: center;
}

.btn-add-to-cart:hover {
    background: #b07d56;
}

/* ========== Product Grid ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-body {
    padding: 15px;
}

.product-category {
    font-size: 11px;
    color: #C8956C;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-body h3 {
    font-size: 15px;
    margin: 0 0 5px;
    line-height: 1.4;
}

.product-body h3 a {
    color: #2C3E50;
    text-decoration: none;
}

.product-body h3 a:hover {
    color: #C8956C;
}

.product-specs {
    font-size: 12px;
    color: #888;
    margin: 5px 0;
}

.price {
    margin: 10px 0;
}

.price strong {
    font-size: 18px;
    color: #C8956C;
}

.price .old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E74C3C;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F39C12;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.wishlist-btn:hover {
    background: #E74C3C;
    color: white;
    transform: scale(1.1);
}

/* ========== Sidebar ========== */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.sidebar h5 {
    color: #2C3E50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C8956C;
}

.cat-link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
    margin-bottom: 3px;
}

.cat-link:hover,
.cat-link.active {
    background: #C8956C;
    color: white;
}

.filter-sidebar {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.filter-sidebar h4 {
    color: #2C3E50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C8956C;
}

.filter-link {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
    margin-bottom: 3px;
}

.filter-link:hover,
.filter-link.active {
    background: #C8956C;
    color: white;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-info p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* ========== Footer ========== */
.main-footer {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 50px 0 0;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget h5 {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.footer-widget p {
    line-height: 1.9;
    font-size: 14px;
    opacity: 0.85;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 30px;
}

/* ========== Chat Widget ========== */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.chat-toggle {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(200, 149, 108, 0.4);
    transition: var(--transition);
    font-family: inherit;
}

.chat-toggle:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.chat-avatar {
    font-size: 30px;
}

.chat-header-info h6 {
    margin: 0;
    font-size: 14px;
}

.chat-header-info small {
    font-size: 11px;
    opacity: 0.8;
}

.chat-close {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.chat-close:hover {
    background: rgba(255,255,255,0.3);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #F9F9F9;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid #E0E0E0;
    background: white;
}

.chat-input {
    flex: 1;
    border: 1px solid #E0E0E0;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.chat-input:focus {
    border-color: var(--secondary-color);
}

.chat-send-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: var(--accent-color);
}

/* ========== Scroll to Top ========== */
.scroll-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 20px;
}

.scroll-top.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top:hover {
    background: var(--primary-color);
}

/* ========== Pagination ========== */
.pagination-nav {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    background: white;
    font-size: 14px;
    transition: 0.3s;
}

.page-link:hover {
    background: #f5f5f5;
}

.page-link.active {
    background: #C8956C;
    color: white;
    border-color: #C8956C;
}

/* ========== Utilities ========== */
.w-100 { width: 100% !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }
.mt-5 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.text-center { text-align: center; }
.text-muted { color: #888; }
.py-5 { padding-top: 60px; padding-bottom: 60px; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-15 { gap: 15px; }

/* ========== Mobile Navigation ========== */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 8px 12px;
    color: #2C3E50;
    border-radius: 8px;
    transition: 0.3s;
    line-height: 1;
}
.navbar-toggler:hover {
    background: #f0f0f0;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.12);
        margin-top: 12px;
        padding: 15px;
        max-height: 75vh;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        display: flex;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block !important;
        padding: 13px 16px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        margin-bottom: 3px;
        color: #2C3E50 !important;
    }
    
    .nav-link:hover {
        background: #f5f5f5;
        color: #C8956C !important;
    }
    
    .nav-icons {
        display: flex;
        justify-content: center;
        gap: 25px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        width: 100%;
    }
    
    .nav-icons a {
        font-size: 22px;
    }
    
    .nav-search-form {
        width: 100%;
        margin: 8px 0;
    }
    
    .nav-search-input {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-4, .col-md-5, .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .chat-window {
        width: 320px;
    }
}

@media (max-width: 767px) {
    .navbar-brand {
        font-size: 17px;
    }
    
    .navbar-logo {
        height: 38px;
    }
    
    .row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-lg-3, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-9,
    .col-md-4, .col-md-5, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .chat-window {
        width: 92vw;
        right: 4vw;
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 15px;
    }
    
    .navbar-logo {
        height: 32px;
        margin-left: 5px;
    }
    
    .nav-link {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    
    .nav-icons {
        gap: 18px;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-body {
        padding: 10px;
    }
    
    .product-body h3 {
        font-size: 13px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .chat-notification {
        width: 260px;
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}