/*
Custom Css
*/

/* GE SS Arabic Font */
@font-face {
    font-family: 'GE SS';
    src: url('../webfonts/GE-SS.woff2') format('woff2'),
         url('../webfonts/GE-SS.woff') format('woff'),
         url('../webfonts/GE-SS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* RTL Support for Arabic */
body {
    font-family: 'GE SS', 'Cairo', 'Roboto', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Apply GE SS font to all text elements */
body, ul, li, p, a, label, input, div, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'GE SS', 'Cairo', 'Roboto', 'Arial', sans-serif !important;
}

/* WPC Catalogue Styles */
.wpc-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}

.wpc-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.wpc-swatch {
    aspect-ratio: 1/1;
    background: #f3f4f6;
}

.wpc-door {
    aspect-ratio: 2/3;
    background: #f8f9fa;
}

.wpc-badge {
    background: #f3f4f6;
    border-radius: .375rem;
    padding: .125rem .5rem;
    font-size: .75rem;
}

.wpc-shadow-sm {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.wpc-door-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.wpc-door-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.wpc-door-img:not([src]),
.wpc-door-img[src=""] {
    opacity: 0;
}

.modal-header {
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header .btn-close {
    margin: 0;
    padding: 0.5rem;
}

.wpc-card {
    cursor: pointer;
}

.wpc-card:active {
    transform: scale(0.98);
}

.wpc-card .wpc-badge {
    white-space: nowrap;
}

.navbar-nav {
    direction: rtl;
}

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

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

.input-group-text {
    border-left: 0;
    border-right: 1px solid #ced4da;
}

.carousel-control-prev {
    left: auto;
    right: 0;
}

.carousel-control-next {
    right: auto;
    left: 0;
}

.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

.me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

/* About Hero Image Styling */
.about-hero-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .about-hero-img {
        max-width: 100%;
        max-height: 250px;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .about-hero-img {
        max-height: 200px;
    }
}

/* Map Container Styling */
.map-container {
    width: 100%;
    height: 450px;
    z-index: 1;
}

/* Custom Color Override - Change Green to #f8ae40 */
.text-success {
    color: #f8ae40 !important;
}

.bg-success {
    background-color: #f8ae40 !important;
}

.btn-success {
    background-color: #f8ae40;
    border-color: #f8ae40;
    color: #3d2817 !important;
}

.btn-success:hover {
    background-color: #e6a03a;
    border-color: #e6a03a;
    color: #ffffff !important;
}

.btn-success:hover,
.btn-success:hover * {
    color: #ffffff !important;
}

.btn-success:focus {
    background-color: #e6a03a;
    border-color: #e6a03a;
    box-shadow: 0 0 0 0.2rem rgba(248, 174, 64, 0.5);
}

.btn-success:active {
    background-color: #e6a03a;
    border-color: #e6a03a;
}

.border-success {
    border-color: #f8ae40 !important;
}

.navbar-brand.text-success {
    color: #f8ae40 !important;
}

/* Override Bootstrap success color variables */
:root {
    --bs-success: #f8ae40;
    --bs-success-rgb: 248, 174, 64;
}

/* Custom Hover Effects with New Color #f8ae40 */
.nav-link:hover {
    color: #f8ae40 !important;
}

.navbar-brand:hover {
    color: #f8ae40 !important;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(248, 174, 64, 0.2);
    transition: box-shadow 0.3s ease;
}

.product-wap:hover .card .product-overlay {
    background: rgba(248, 174, 64, 0.8);
}

.brand-img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.services-icon-wap:hover {
    background: #f8ae40 !important;
    color: #fff !important;
}

.services-icon-wap:hover i {
    color: #fff !important;
}

#tempaltemo_footer a:hover {
    color: #f8ae40 !important;
}

#tempaltemo_footer ul.footer-icons li:hover {
    background-color: #f8ae40;
    border-color: #f8ae40;
}

#tempaltemo_footer ul.footer-icons li:hover i {
    color: #fff !important;
}

/* Navigation hover effects */
#templatemo_main_nav a:hover {
    color: #f8ae40 !important;
}

.shop-top-menu a:hover {
    color: #f8ae40 !important;
}

/* Pagination hover */
.pagination .page-link:hover {
    background-color: #f8ae40;
    color: #fff;
}

.pagination .page-link:hover,
.pagination .page-link.active {
    background-color: #f8ae40;
    color: #fff;
}

/* Accordion hover */
.templatemo-accordion a:hover {
    color: #f8ae40 !important;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Link hover effects */
a:hover {
    color: #f8ae40 !important;
    text-decoration: none;
}

/* Image hover effects */
img:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Card hover effects */
.card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Input focus effects */
.form-control:focus {
    border-color: #f8ae40;
    box-shadow: 0 0 0 0.2rem rgba(248, 174, 64, 0.25);
}

/* Footer Section Styling */
.footer-section {
    padding: 60px 0 40px 0;
    background: #ffffff;
}

.footer-section .footer-logo {
    font-size: 24px;
    font-weight: 600;
    color: #555555;
    text-decoration: none;
}

.footer-section .footer-logo:hover {
    color: #66B077;
}

.footer-section .custom-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section .custom-social li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DDE4E4;
    color: #555555;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section .custom-social li a:hover {
    background: #66B077;
    color: #ffffff;
}

.footer-section .copyright {
    padding-top: 20px;
    margin-top: 20px;
}

.footer-section .copyright p {
    font-size: 14px;
    margin: 0;
}

.footer-section .copyright a {
    color: #555555;
    text-decoration: none;
}

.footer-section .copyright a:hover {
    color: #66B077;
}

/* Carousel Text Color */
#template-mo-zay-hero-carousel h1,
#template-mo-zay-hero-carousel h2,
#template-mo-zay-hero-carousel h3 {
    color: #f7b432 !important;
    font-weight: bold !important;
}

#template-mo-zay-hero-carousel p {
    color: #ffffff !important;
}

#template-mo-zay-hero-carousel .text-success {
    color: #f7b432 !important;
}

/* Carousel Arrows and Indicators Color */
#template-mo-zay-hero-carousel .carousel-control-next i,
#template-mo-zay-hero-carousel .carousel-control-prev i {
    color: #f7b432 !important;
}

#template-mo-zay-hero-carousel .carousel-indicators li {
    background-color: #f7b432 !important;
}