/**
 * RNR Rakor - Main Stylesheet
 * Brand Colors: Red (#B22222) & Blue (#4A90D9)
 */

:root {
    --primary-red: #B22222;
    --primary-red-dark: #8B0000;
    --primary-blue: #4A90D9;
    --primary-blue-dark: #2E6DB4;
    --primary-blue-light: #6BA3E0;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #F8F9FA;
    --bg-gray: #E9ECEF;
    --white: #FFFFFF;
    --border-color: #DEE2E6;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 15px;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-red);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== HEADER ==================== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: var(--white);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.top-bar-right a:hover {
    background: var(--primary-red);
}

/* Main Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    max-height: 60px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-blue);
    color: var(--white);
}

.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.main-nav .dropdown-menu a:last-child {
    border-bottom: none;
}

.header-cta {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-red-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 50%, var(--primary-red) 100%);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-form h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

/* ==================== FEATURES BAR ==================== */
.features-bar {
    background: var(--bg-light);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.feature-item h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-blue .section-header h2 {
    color: var(--white);
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== ABOUT SECTION ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content .subtitle {
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary-red);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius);
    text-align: center;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.experience-badge span {
    font-size: 0.9rem;
}

/* Image Comparison Slider */
.image-compare {
    position: relative;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-compare img {
    display: block;
    width: 100%;
}

/* ==================== PRODUCTS ==================== */
.products-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.products-tabs button {
    padding: 12px 25px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.products-tabs button:hover,
.products-tabs button.active {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: var(--white);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    padding: 30px;
    background: var(--bg-light);
    text-align: center;
}

.product-image img {
    max-height: 200px;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-content {
    padding: 25px;
}

.product-category {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-content h3 a {
    color: var(--text-dark);
}

.product-content h3 a:hover {
    color: var(--primary-blue);
}

.product-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.product-gallery {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.product-gallery .main-image {
    margin-bottom: 20px;
}

.product-gallery .main-image img {
    max-height: 400px;
    object-fit: contain;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-nav button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-nav button:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.product-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.product-info-card .logo {
    text-align: center;
    margin-bottom: 20px;
}

.product-info-card .logo img {
    max-height: 50px;
}

.product-info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-buttons .btn {
    justify-content: center;
    padding: 15px 20px;
}

.btn-mail {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-mail:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-call {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-call:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Product Specs Table */
.specs-section {
    margin-top: 40px;
}

.specs-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table th {
    background: var(--bg-light);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

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

.specs-table tr:nth-child(even) {
    background: var(--bg-light);
}

.specs-table .group-header {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    text-align: center;
}

.specs-table .group-header td {
    border-bottom: none;
}

/* ==================== WHY CHOOSE US ==================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.why-item .number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.why-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.why-image {
    text-align: center;
}

.why-image img {
    max-width: 400px;
    border-radius: var(--radius-lg);
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-content p {
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* ==================== NEWS/BLOG ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--radius);
    font-size: 0.85rem;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--text-dark);
}

.news-content h3 a:hover {
    color: var(--primary-blue);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.news-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 500;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-card .quote {
    font-size: 3rem;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--text-dark);
    margin-bottom: 3px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo img {
    max-height: 50px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-blue);
}

.footer h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-blue);
    width: 20px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== FLOATING BUTTONS ==================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.phone {
    background: var(--primary-red);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background: var(--bg-light);
    padding: 20px 0;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.breadcrumb li::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* ==================== CONTACT PAGE ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info-item i {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-info-item p {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.map-section {
    margin-top: 60px;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--radius-lg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1001;
        padding: 20px;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .why-grid,
    .contact-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==================== ADMIN PANEL STYLES ==================== */
.admin-body {
    background: var(--bg-light);
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--text-dark);
    color: var(--white);
    z-index: 1000;
    overflow-y: auto;
}

.admin-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo img {
    max-height: 40px;
    filter: brightness(0) invert(1);
}

.admin-nav {
    padding: 20px 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left: 3px solid var(--primary-blue);
}

.admin-nav i {
    width: 20px;
}

.admin-main {
    margin-left: 260px;
    padding: 20px;
}

.admin-header {
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.admin-card h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--bg-light);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card i {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.red i {
    background: var(--primary-red);
}

.stat-card.green i {
    background: var(--success);
}

.stat-card.orange i {
    background: var(--warning);
}

.stat-card h4 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn.edit {
    background: #e3f2fd;
    color: var(--primary-blue);
}

.action-btn.delete {
    background: #ffebee;
    color: var(--danger);
}

.action-btn:hover {
    opacity: 0.8;
}

/* ==================== MOBILE OVERFLOW FIX - CRITICAL ==================== */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    * {
        max-width: 100vw;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden;
    }
    
    /* Breadcrumb Fix */
    .breadcrumb ul {
        flex-wrap: wrap;
        font-size: 12px;
        gap: 5px;
    }
    
    .breadcrumb li {
        gap: 5px;
    }
    
    /* Product Detail Page Fix */
    .product-detail {
        overflow: hidden;
    }
    
    .product-detail-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px;
    }
    
    .product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        box-sizing: border-box;
    }
    
    .main-image {
        width: 100% !important;
        text-align: center;
    }
    
    .main-image img,
    #mainProductImage {
        max-width: 100% !important;
        width: auto !important;
        max-height: 300px !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }
    
    .gallery-nav {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
    
    .gallery-nav button {
        width: 45px;
        height: 45px;
    }
    
    /* Product Info Card Fix */
    .product-info-card {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: 0 !important;
        padding: 20px !important;
        box-sizing: border-box;
    }
    
    .product-info-card .logo img {
        max-height: 40px !important;
    }
    
    /* Admin Card Fix */
    .admin-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* Title Fix */
    h1, h2, h3, h4,
    .product_title,
    .entry-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
    
    h1 {
        font-size: 22px !important;
    }
    
    /* Specs Table Fix */
    .specs-section {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
    }
    
    .specs-table {
        min-width: 500px;
        font-size: 13px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
    
    /* Contact Buttons Fix */
    .contact-buttons {
        width: 100% !important;
    }
    
    .contact-buttons .btn {
        width: 100% !important;
        font-size: 13px !important;
        padding: 12px 15px !important;
        box-sizing: border-box;
    }
    
    /* Description Fix */
    .product-description {
        width: 100% !important;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .product-description img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Table General Fix */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Image Fix */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .breadcrumb ul {
        font-size: 11px;
    }
    
    h1 {
        font-size: 20px !important;
    }
    
    .product-gallery {
        padding: 15px !important;
    }
    
    .specs-table {
        font-size: 12px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 8px 10px;
    }
}

/* ==================== TABLE SCROLL FIX FINAL ==================== */
.admin-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.admin-card table,
.product-description table,
table {
    min-width: 500px;
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .admin-card,
    .product-description {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100vw;
    }
    
    .admin-card table,
    .product-description table,
    article table,
    .news-content-body table,
    table {
        display: table !important;
        min-width: 500px !important;
        width: max-content !important;
    }
    
    /* Scrollbar görünümü */
    .admin-card::-webkit-scrollbar,
    .product-description::-webkit-scrollbar {
        height: 6px;
    }
    
    .admin-card::-webkit-scrollbar-thumb,
    .product-description::-webkit-scrollbar-thumb {
        background: #4A90D9;
        border-radius: 3px;
    }
}

/* ==================== ADMIN PANEL MOBİL FIX ==================== */
@media (max-width: 992px) {
    /* Sidebar'ı gizle */
    .admin-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 9999;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    /* Main content full width */
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
    }
    
    /* Header düzelt */
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
    
    /* Stats grid */
    .admin-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .stat-card h4 {
        font-size: 1.5rem;
        writing-mode: horizontal-tb !important;
    }
    
    .stat-card p {
        writing-mode: horizontal-tb !important;
    }
    
    /* Card başlıkları düzelt */
    .admin-card h3 {
        font-size: 1rem;
        word-wrap: break-word;
        writing-mode: horizontal-tb !important;
    }
    
    /* Dashboard grid düzelt */
    .dashboard-grid,
    .admin-grid {
        display: block !important;
    }
    
    .dashboard-grid > div,
    .admin-grid > div {
        margin-bottom: 20px;
    }
    
    /* Tüm yazıları yatay yap */
    .admin-main * {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
    
    /* Tablo scroll */
    .admin-card {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 500px;
    }
}

@media (max-width: 576px) {
    .admin-stats {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
    }
    
    .admin-header h1 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}
