/* 
 * Dynamic Main Stylesheet
 * Colors and fonts are loaded from database settings
 * Generated by PHP with dynamic values
 */

:root {
    /* Dynamic colors from database */
    --primary-color: #604d5e;
    --secondary-color: #968b98;
    --footer-bg-color: #343a40;
    --footer-text-color: #ffffff;
    --footer-link-color: #adb5bd;
    --danger-color: #ff5490;
    --warning-color: #efe6ea;
    --info-color: #fbdfeb;
    --success-color: #465a62;
    
    /* Dynamic fonts from database */
    --font-family: Arial, sans-serif;
    --font-size: 16;
    --line-height: 1.6;
    --heading-font: 'Playfair Display', serif;
    --paragraph-font: 'Lora', serif;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    
    /* Layout variables */
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

/* Premium Typography Styles */
h1, h2, h3, h4, h5, h6, h7 {
    font-family: var(--heading-font) !important;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

p {
    font-family: var(--paragraph-font) !important;
    line-height: var(--line-height) !important;
    margin-bottom: 1rem;
}

/* Enhanced typography for better readability */
body {
    line-height: var(--line-height);
}

/* Import Google Fonts for selected fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;600&family=Bebas+Neue&family=Cormorant+Garamond:wght@400;600&family=Oswald:wght@400;600&family=Raleway:wght@400;600&family=Merriweather:wght@400;700&family=Poppins:wght@400;600&family=Lora:wght@400;600&family=Open+Sans:wght@400;600&family=Roboto+Slab:wght@400;600&family=Source+Sans+Pro:wght@400;600&family=Nunito:wght@400;600&family=Crimson+Text:wght@400;600&family=Inter:wght@400;600&family=PT+Serif:wght@400;600&family=Roboto:wght@400;600&family=Ubuntu:wght@400;600&family=Fira+Sans:wght@400;600&family=Source+Serif+Pro:wght@400;600&family=IBM+Plex+Sans:wght@400;600&family=Noto+Serif:wght@400;600&family=Space+Grotesk:wght@400;600&family=Literata:wght@400;600&family=Atkinson+Hyperlegible:wght@400;600&family=JetBrains+Mono:wght@400;600&family=Cabin:wght@400;600&family=Vollkorn:wght@400;600&family=Karla:wght@400;600&family=Work+Sans:wght@400;600&family=Dancing+Script:wght@400;600&family=Pacifico:wght@400&family=Great+Vibes:wght@400&family=Satisfy:wght@400&family=Allura:wght@400&family=Kalam:wght@400;600&family=Caveat:wght@400;600&family=Indie+Flower:wght@400&family=Permanent+Marker:wght@400&display=swap');

/* Dynamic color utilities */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }

/* Service Cards Hover Effects */
.hover-shadow {
    transition: var(--transition);
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.hover-shadow img {
    transition: var(--transition);
}

.hover-shadow:hover img {
    transform: scale(1.05);
}

/* Service Details Page Styles */
.service-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-long-description {
    line-height: 1.6;
}

.service-long-description h1,
.service-long-description h2,
.service-long-description h3,
.service-long-description h4,
.service-long-description h5,
.service-long-description h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-long-description ul,
.service-long-description ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.service-long-description li {
    margin-bottom: 0.5rem;
}

.related-services .card-title a {
    color: inherit;
    transition: var(--transition);
}

.related-services .card-title a:hover {
    color: var(--primary-color);
}


 .card-title a {
    color: var(--danger-color);
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-color);
}
/* Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Icon Box Styles */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
}

/* Service Info Section Icon Boxes */
.service-info-section .icon-box {
    width: auto;
    height: auto;
    min-width: 80px;
    min-height: 80px;
    margin: 0 auto;
}

.service-info-section .icon-box i {
    font-size: 3rem;
}
.bg-info { background-color: var(--info-color) !important; }

.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary { background-color: var(--secondary-color); border-color: var(--secondary-color); }
.btn-success { background-color: var(--success-color); border-color: var(--success-color); }
.btn-danger { background-color: var(--danger-color); border-color: var(--danger-color); }
.btn-warning { background-color: var(--warning-color); border-color: var(--warning-color); }
.btn-info { background-color: var(--info-color); border-color: var(--info-color); }

.btn-outline-primary { border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline-primary:hover { background-color: var(--primary-color); color: white; }
.btn-outline-secondary { border-color: var(--secondary-color); color: var(--secondary-color); }
.btn-outline-secondary:hover { background-color: var(--secondary-color); color: white; }
.btn-outline-success { border-color: var(--success-color); color: var(--success-color); }
.btn-outline-success:hover { background-color: var(--success-color); color: white; }
.btn-outline-danger { border-color: var(--danger-color); color: var(--danger-color); }
.btn-outline-danger:hover { background-color: var(--danger-color); color: white; }
.btn-outline-warning { border-color: var(--warning-color); color: var(--warning-color); }
.btn-outline-warning:hover { background-color: var(--warning-color); color: #000; }
.btn-outline-info { border-color: var(--info-color); color: var(--info-color); }
.btn-outline-info:hover { background-color: var(--info-color); color: white; }

/* Dynamic Button Hover Effects */
.btn {
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-success:hover {
    background-color: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-warning:hover {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    color: #000 !important;
    transform: translateY(-2px);
}

.btn-info:hover {
    background-color: var(--info-color);
    border-color: var(--info-color);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Dynamic Outline Button Hover Effects */
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-outline-warning:hover {
    background-color: var(--warning-color) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    color: white;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Higher specificity warning button styles */
button.btn-warning:hover,
.btn.btn-warning:hover,
a.btn-warning:hover {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
}

button.btn-outline-warning:hover,
.btn.btn-outline-warning:hover,
a.btn-outline-warning:hover {
    background-color: var(--warning-color) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg-color) !important;
    color: var(--footer-text-color) !important;
}

footer h5,
footer h6 {
    color: var(--footer-text-color) !important;
}

/* WARNING BUTTONS - FORCE OVERRIDE BOOTSTRAP */
.btn-warning {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: #000 !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

.btn-outline-warning {
    border-color: var(--warning-color) !important;
    color: var(--warning-color) !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
    background-color: var(--warning-color) !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

/* MAXIMUM SPECIFICITY OVERRIDES */
html body .btn-warning:hover,
html body .btn-warning:focus,
html body .btn-warning:active,
html body .btn-outline-warning:hover,
html body .btn-outline-warning:focus,
html body .btn-outline-warning:active {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

/* BOOTSTRAP 5 SPECIFIC OVERRIDES */
.btn.btn-warning:hover,
.btn.btn-outline-warning:hover,
a.btn.btn-warning:hover,
a.btn.btn-outline-warning:hover,
button.btn-warning:hover,
button.btn-outline-warning:hover {
    background-color: var(--warning-color) !important;
    border-color: var(--warning-color) !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
}

footer .text-muted {
    color: var(--footer-link-color) !important;
}

footer .text-muted.text-decoration-none {
    color: var(--footer-link-color) !important;
}

footer .text-muted.text-decoration-none:hover {
    color: var(--footer-text-color) !important;
}

footer .social-links a {
    color: var(--footer-link-color) !important;
    font-size: 18px;
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

footer .social-links a:hover {
    background: var(--danger-color) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Alert Styles */
.alert-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.alert-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #000;
}

.alert-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: var(--primary-color);
}

/* Hover Effects */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Navigation Styles */
.language-switcher, .currency-switcher {
    margin-left: 10px;
    position: relative;
    z-index: 1050;
}

.language-switcher .dropdown-menu,
.currency-switcher .dropdown-menu {
    z-index: 1050;
    position: absolute;
    top: 100%;
    left: 0;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
}

.navbar-nav .nav-link {
    position: relative;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

/* RTL Styles for Arabic */
[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .language-switcher, 
[dir="rtl"] .currency-switcher {
    margin-right: 10px;
    margin-left: 0;
    position: relative;
    z-index: 1050;
}

/* Navbar Dropdown z-index fixes */
.navbar .dropdown-menu {
    z-index: 1050 !important;
    position: absolute;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
}

.navbar .dropdown:hover .dropdown-menu {
    z-index: 1050 !important;
}

.language-switcher .dropdown-menu,
.currency-switcher .dropdown-menu {
    z-index: 1050;
    position: absolute;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 150px;
    right: 0;
    left: auto;
}

[dir="rtl"] .cart-badge {
    left: -8px;
    right: auto;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .me-auto {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .me-2 {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .ms-3 {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .social-links a {
    margin-left: 15px;
    margin-right: 0;
}

[dir="rtl"] .footer-widget {
    text-align: right;
}

[dir="rtl"] .row {
    direction: rtl;
}

[dir="rtl"] .text-muted.text-decoration-none {
    color: var(--footer-link-color) !important; /* Light gray for dark background */
}

[dir="rtl"] .text-muted.text-decoration-none:hover {
    border-color: var(--info-color);
    color: white;
}

/* Services Page Styles */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.service-card {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 300px;
}

@media (max-width: 768px) {
    .service-card {
        flex: 1 1 calc(50% - 1.5rem);
        min-width: 280px;
    }
}

@media (max-width: 576px) {
    .service-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Page Styles */
.thumbnail-item img.active {
    border: 2px solid var(--primary-color);
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.rating .fas {
    font-size: 14px;
}

.nav-tabs .nav-link {
    color: #6c757d;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.review-item:last-child {
    border-bottom: none !important;
}

/* Footer Styles */
.footer-link {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    width: 20px;
    text-align: center;
}

.payment-icons i {
    color: var(--footer-text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    opacity: 1;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-chat {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.search-overlay {
    backdrop-filter: blur(5px);
}

.search-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 8px;
}

.search-result-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.search-result-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .back-to-top,
    .whatsapp-chat {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .whatsapp-chat {
        left: 20px;
    }

    .back-to-top {
        right: 20px;
    }

    .footer-brand h4 {
        font-size: 1.2rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-screen.fade-out {
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .loading-screen {
        display: none !important;
    }
}

/* Homepage Image Sizing */
.banner-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
}

.banner-content {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--danger-color);
    animation: fadeInUp 1s ease-out;
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.banner-content .btn {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--info-color);
}

.banner-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
     background-color: var(--primary-color);
}

/* Carousel indicators */
.banner-slider .carousel-indicators {
    bottom: 30px;
}

.banner-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid white;
}

.banner-slider .carousel-indicators button.active {
    background-color: white;
}

/* Carousel controls */
.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

.banner-slider .carousel-control-prev:hover,
.banner-slider .carousel-control-next:hover {
    background: rgba(0,0,0,0.8);
}

/* Category Images */
.category-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Make square with rounded corners */
    margin: 0 auto 1rem auto; /* Center the square image */
    width: 200px; /* Increased from 160px for 100% normal size */
    height: 200px; /* Increased from 160px for 100% normal size */
    background: white; /* Simple white background */
    box-sizing: border-box;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 8px; /* Match wrapper border radius */
    background: white; /* White background inside */
    filter: grayscale(70%); /* 70% grayscale - less colorful but not completely black and white */
}

.category-card:hover .category-image {
    transform: scale(1.1);
    filter: grayscale(30%); /* Return to more color on hover */
}

/* Shop by Category section background */
section:has(.category-grid) {
    background-color: white !important;
    background: white !important;
}

/* Alternative targeting for Shop by Category */
section.py-5:has(h2:contains("Shop by Category")) {
    background-color: white !important;
    background: white !important;
}

/* Category Info and Name Styles */
.category-info {
    text-align: center;
    padding-top: 0.5rem; /* Decrease space between image and name */
}

.category-name {
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.category-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
    text-align: center;
}

/* Product Images */
.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Featured Categories */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* News Images */
.news-image-wrapper {
    position: relative;
    padding-top: 60%; /* 16:10 aspect ratio */
    overflow: hidden;
    margin-bottom: 1rem;
}

.news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About hero image styling */
.about-hero-image {
    max-width: 250px !important;
    height: auto !important;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-hero-image.animate {
    opacity: 1;
    transform: translateX(0);
}

/* About content text justification */
.about-content p,
.about-content .lead,
.col-lg-6 p,
.col-lg-6 .lead {
    text-align: justify !important;
}

/* Responsive square cards - Why Choose Cat Eyes Style */
.value-card-square {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card-square:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-box-square {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.icon-box-square:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.icon-box-square i {
    color: white;
}

/* Circular styling for values section images */
.values-section .text-center img {
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.values-section .text-center img.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Who is Cat Eyes For Section Styling */
.icon-box-primary {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8A2BE2, #D4AF37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.icon-box-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section Styling */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.quote-icon {
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.testimonial-card:hover .quote-icon {
    transform: scale(1.1);
    opacity: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.author-avatar .avatar-circle {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover .avatar-circle {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.testimonial-author h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .author-avatar .avatar-circle {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Cloud Shapes for Testimonials Section */
.cloud-shape-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    margin-bottom: -30px;
}

.cloud-shape-top::before {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-shape-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    margin-top: -30px;
}

.cloud-shape-bottom::before {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

/* News text justification */
.text-justify {
    text-align: justify !important;
    text-align-last: justify !important;
}

/* Ensure news cards have proper text alignment */
.news-image-wrapper + .card-body .card-text {
    text-align: justify !important;
    text-align-last: justify !important;
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .banner-slide {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .about-hero-image {
        max-width: 180px !important;
    }
    
    .banner-slider .carousel-control-prev,
    .banner-slider .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .banner-slide {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .about-hero-image {
        max-width: 160px !important;
    }
    
    .banner-overlay {
        padding: 0 15px;
    }
}
.display-4 {
    color:var(--danger-color);
}