/**
 * IPOOLGO Website Styles
 * Professional Pool Manufacturer Website
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00a8e8;
    --accent-color: #ff6b35;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --dark-bg: #0a0a0a;
    --dark-bg-light: #1a1a1a;
    --dark-bg-lighter: #2a2a2a;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --text-dark: #333333;
    
    --gradient-blue: linear-gradient(135deg, #0066cc 0%, #00a8e8 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.search-btn,
.user-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover,
.user-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 1;
    transform: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 1;
    transform: none;
    text-shadow: 0 2px 18px rgba(0,0,0,.5);
}

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    opacity: 1;
    transform: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.9s;
}

.hero-slide.active .hero-subtitle,
.hero-slide.active .hero-title,
.hero-slide.active .hero-description,
.hero-slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--primary-color);
    border-color: var(--text-light);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
    pointer-events: none;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
    color: var(--text-light);
}

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

.btn-outline:hover {
    background: var(--text-light);
    color: var(--dark-bg);
}

.btn-white {
    background: var(--text-light);
    color: var(--dark-bg);
}

.btn-white:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-lg {
    padding: 18px 45px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 25px;
    font-size: 12px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

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

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

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

.section-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 30px;
}

/* ============================================
   PRODUCT CATEGORIES
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.category-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-card-link {
    font-size: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-card-link:hover {
    gap: 15px;
}

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

.product-card {
    background: var(--dark-bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 204, 0.3);
}

.product-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.product-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    background: var(--accent-color);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
}

.product-card-content {
    padding: 25px;
}

.product-card-category {
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-card-price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card-price-old {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

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

.product-card-actions .btn {
    flex: 1;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--dark-bg-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 204, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-light);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 15px;
}

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

.about-images {
    position: relative;
}

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

.about-img-main img {
    width: 100%;
    height: auto;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 5px solid var(--dark-bg);
    box-shadow: var(--shadow-lg);
}

.about-img-secondary img {
    width: 100%;
    height: auto;
}

.about-content {
    padding-right: 50px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.about-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

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

.testimonial-item {
    text-align: center;
    padding: 40px;
}

.testimonial-quote {
    font-size: 24px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.testimonial-author-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-author-info {
    text-align: left;
}

.testimonial-author-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.testimonial-author-company {
    font-size: 14px;
    color: var(--text-muted);
}

.testimonial-rating {
    color: var(--warning-color);
    font-size: 18px;
    margin-top: 10px;
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.partner-item {
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-item img {
    max-height: 50px;
    width: auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 120px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-bg-light);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
}

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

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark-bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.footer-newsletter {
    margin-top: 25px;
}

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

.footer-newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    background: var(--dark-bg-lighter);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 14px;
}

.footer-newsletter-form input::placeholder {
    color: var(--text-muted);
}

.footer-newsletter-form button {
    padding: 15px 25px;
    background: var(--gradient-blue);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 25px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    position: relative;
    padding: 180px 0 80px;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.page-header-content {
    position: relative;
    z-index: 10;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

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

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    background: var(--dark-bg-light);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
}

.form-label span {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: var(--dark-bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-info-content p {
    color: var(--text-muted);
    font-size: 15px;
}

.contact-form {
    background: var(--dark-bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

/* ============================================
   LOGIN/REGISTER
   ============================================ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 30px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background: var(--dark-bg-light);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

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

.auth-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary-color);
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    padding: 15px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.flash-message.success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--success-color);
}

.flash-message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--danger-color);
}

.flash-message.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--warning-color);
}

.flash-message.info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: var(--info-color);
}

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

.pagination a,
.pagination span {
    padding: 12px 20px;
    background: var(--dark-bg-light);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
}

.pagination .current {
    background: var(--gradient-blue);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-blue);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.5);
}

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

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

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--dark-bg-light);
        flex-direction: column;
        padding: 100px 40px;
        transition: var(--transition);
        gap: 20px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 15px 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        padding: 30px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 32px;
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slideIn {
    animation: slideIn 0.5s ease forwards;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

/* ============================================
   EXTRA RESPONSIVE POLISH (small phones)
   ============================================ */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
img, video, iframe, table {
    max-width: 100%;
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-description {
        font-size: 14px;
    }
    .section-title {
        font-size: 26px;
    }
    .page-title {
        font-size: 26px;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .floating-btn {
        width: 48px;
        height: 48px;
    }
    /* Any wide table on public pages scrolls rather than breaking layout */
    .cms-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================================
   RESPONSIVE LAYOUT FIXES (products + inner pages)
   ============================================ */
/* Products page: sidebar + grid stacks on tablets/phones */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}
@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* Sort/filter bar wraps instead of pushing the dropdown off-screen */
@media (max-width: 600px) {
    .products-toolbar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .products-toolbar > div {
        width: 100%;
    }
    .products-toolbar select {
        flex: 1;
        width: 100%;
    }
}
/* Any hard-coded two-column inner grids collapse on small screens.
   Targets product detail, about, custom, production, account. */
@media (max-width: 768px) {
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 480px) {
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}
/* Related products: 4-up grid must not overflow on phones */
@media (max-width: 768px) {
    .products-grid[style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .products-grid[style*="repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}
/* Floating WhatsApp/quote buttons: smaller and clear of content on phones */
@media (max-width: 600px) {
    .floating-buttons {
        bottom: 16px !important;
        right: 12px !important;
    }
    .floating-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}
