/**
 * Custom CSS styles for Shahy Crafts
 */

:root {
    --color-gold-rgb: 201, 151, 88;
}

/* Categories Section Styles */
.categories-section .container {
    text-align: center;
}

/* منع التمرير الأفقي للصفحة بأكملها */
body, html {
    overflow-x: hidden;
    max-width: 100%;
}

/* منع التمرير في القسم الرئيسي */
.categories-section {
    overflow-x: hidden;
    max-width: 100%;
}

/* عنصر التمرير الأفقي */
.categories-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch; /* تجربة سلسة للتمرير على الأجهزة اللمسية */
    scrollbar-width: none; /* إخفاء شريط التمرير في فايرفوكس */
    max-width: 100%;
    position: relative;
}

/* إخفاء شريط التمرير في المتصفحات الأخرى */
.categories-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* تنسيق صف الفئات الخاص */
.categories-row {
    display: inline-block;
    white-space: nowrap;
    text-align: right;
    margin: 0;
    padding: 0 5px; /* إضافة مسافة على الجانبين */
}

@media (max-width: 576px) {
    .categories-row {
        padding: 0;
    }
}

/* تنسيق عمود الفئة */
.category-column {
    display: inline-block;
    padding: 0 6px;
    margin-bottom: 15px;
    width: auto;
    vertical-align: top;
}

@media (max-width: 576px) {
    .category-column {
        padding: 0 3px;
        margin-bottom: 10px;
    }
    
    /* تعديل مركز القسم على الشاشات الصغيرة */
    .categories-scroll-wrapper {
        text-align: center;
    }
    
    .categories-section .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Page Title Styles */
.page-title-section {
    background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.15), rgba(var(--color-gold-rgb), 0.05));
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-title-section::before,
.page-title-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(var(--color-gold-rgb), 0.2);
    border-radius: 50%;
    z-index: 0;
}

.page-title-section::before {
    top: -50px;
    right: -50px;
}

.page-title-section::after {
    bottom: -50px;
    left: -50px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-gold);
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-gold);
}

/* About Us Page Styles */
.about-content {
    line-height: 1.8;
    text-align: justify;
}

.text-gold {
    color: var(--color-gold) !important;
}

.btn-gold {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
}

.btn-gold:hover {
    background-color: #b58040;
    border-color: #b58040;
    color: #fff;
}

.btn-outline-gold {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: #fff;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(var(--color-gold-rgb), 0.1);
    color: var(--color-gold);
    transition: all 0.3s ease;
}

.feature-box:hover .circle-icon {
    background-color: var(--color-gold);
    color: #fff;
}

.value-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(var(--color-gold-rgb), 0.15);
}

.craftsmen-section {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.craftsmen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.craftsmen-content h3 {
    color: var(--color-gold);
    font-weight: 600;
    position: relative;
}

.craftsmen-placeholder {
    background: linear-gradient(135deg, #f8f8f8, #f1f1f1);
}

.about-logo {
    max-width: 250px;
    margin: 0 auto;
    transition: all 0.5s ease;
}

.about-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(var(--color-gold-rgb), 0.3);
}

.about-content {
    line-height: 1.8;
    text-align: justify;
    font-size: 1.05rem;
}

.about-content h2, 
.about-content h3 {
    color: var(--color-gold);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-right: 1rem;
    transform: translateX(30px);
    opacity: 0;
    animation: slideIn 0.8s forwards;
}

.about-content h2::before,
.about-content h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background-color: var(--color-gold);
    border-radius: 3px;
}

.about-content p {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s forwards;
    animation-delay: 0.3s;
}

.about-content ul {
    padding-right: 1.5rem;
    transform: translateX(30px);
    opacity: 0;
    animation: slideIn 1.2s forwards;
    animation-delay: 0.6s;
}

.about-content ul li {
    margin-bottom: 0.75rem;
    position: relative;
}

.about-content ul li::before {
    content: '';
    position: absolute;
    right: -18px;
    top: 12px;
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

@keyframes slideIn {
    from { 
        transform: translateX(30px);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.about-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--color-gold-rgb), 0.3);
}

.feature-section {
    background: linear-gradient(to bottom, #fff, rgba(var(--color-gold-rgb), 0.05));
    padding: 4rem 0;
}

.feature-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: featureAppear 0.8s forwards;
}

.feature-box:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-box:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-box:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(var(--color-gold-rgb), 0.25);
}

.feature-icon {
    color: var(--color-gold);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    display: inline-block;
}

.feature-box:hover .feature-icon {
    transform: scale(1.3) rotate(15deg);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(var(--color-gold-rgb), 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.5s ease;
}

.feature-box:hover .feature-icon::after {
    width: 60px;
    height: 60px;
}

.feature-title {
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.4s ease;
}

.feature-box:hover .feature-title::after {
    width: 100%;
}

@keyframes featureAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Us Page Styles */
.contact-section {
    padding: 2rem 0 4rem;
}

.contact-info-header {
    position: relative;
    margin-bottom: 2rem;
}

.contact-info-title {
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.contact-info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 3px;
}

.contact-info-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.contact-cards .contact-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-cards .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--color-gold-rgb), 0.15);
}

.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(var(--color-gold-rgb), 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--color-gold);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background-color: var(--color-gold);
    color: #fff;
    transform: scale(1.1);
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.contact-card-text {
    margin-bottom: 0;
    color: #555;
}

.animate-alert {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.submit-btn:hover::before {
    width: 300%;
    height: 300%;
}

.submit-btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(-5px);
}

.contact-info {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-right: 1rem;
}

.contact-info h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background-color: var(--color-gold);
    border-radius: 3px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    color: var(--color-gold);
    font-size: 1.2rem;
    width: 30px;
    margin-left: 10px;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form-card .card-title {
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.contact-form-card .card-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-gold-rgb), 0.25);
}

.contact-form .btn-gold {
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--color-gold-rgb), 0.4);
}

.social-media-section {
    background: linear-gradient(135deg, rgba(var(--color-gold-rgb), 0.1), rgba(var(--color-gold-rgb), 0.05));
}

.social-media-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--color-gold);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-media-icons .social-icon:hover {
    background-color: var(--color-gold);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--color-gold-rgb), 0.4);
}

/* Footer Styles */
.site-footer {
    margin-top: 4rem !important;
}

.footer-widget h4.widget-title {
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-right: 1rem;
}

.footer-widget h4.widget-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background-color: var(--color-gold);
    border-radius: 3px;
}

.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item i {
    transition: all 0.3s ease;
    margin-left: 15px;
    color: var(--color-gold);
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-text {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-social .social-icon {
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background-color: var(--color-gold);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links a {
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
}

.footer-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    padding-right: 20px;
    color: var(--color-gold) !important;
}

.footer-links a:hover::before {
    opacity: 1;
}

#back-to-top {
    background-color: var(--color-gold);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--color-gold-rgb), 0.4);
}

/* Footer Bottom Styles */
.footer-bottom p {
    color: #ffffff;
    font-weight: 500;
}

.developer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.developer-img {
    width: 60px;
    height: 60px;
    margin-left: 10px;
    border: 3px solid var(--color-gold);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.developer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.developer-info:hover .developer-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(var(--color-gold-rgb), 0.4);
}

.developer-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.developer-name {
    color: var(--color-gold);
    font-weight: bold;
    position: relative;
    padding-bottom: 2px;
}

.developer-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.developer-info:hover .developer-name::after {
    width: 100%;
}

/* User Account Styles */
.user-icon-with-name {
    display: flex;
    align-items: center;
}

.user-display-name {
    margin-right: 5px;
    color: #444;
    font-size: 0.85rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.user-icon-with-name:hover .user-display-name {
    color: var(--color-gold);
}

/* Hide user name in very small screens */
@media (max-width: 360px) {
    .user-display-name {
        max-width: 60px;
    }
}

/* Main Navigation Styles */
.main-navigation {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-navigation .navbar-nav {
    width: 100%;
    justify-content: center;
}

.main-navigation .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 0.5rem;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.main-navigation .nav-link:hover {
    color: var(--color-gold);
    transform: translateY(-2px);
}

.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.main-navigation .nav-link:hover::after {
    width: 70%;
    left: 15%;
}

.main-navigation .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.main-navigation .dropdown-item {
    padding: 0.6rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-navigation .dropdown-item:hover {
    background-color: rgba(var(--color-gold-rgb), 0.1);
    color: var(--color-gold);
}
.category-card {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: #fff;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-charcoal);
    height: 100%;
    text-align: center;
    padding: 15px 10px;
    width: 120px;
    min-width: 100px;
}

/* تعديلات للهواتف الذكية */
@media (max-width: 576px) {
    .category-card {
        width: 90px;
        padding: 10px 5px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 0.8em;
    }
    
    .category-title {
        font-size: 0.8rem;
        margin-bottom: 1px;
    }
    
    .category-count {
        font-size: 0.6rem;
    }
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--color-brown);
}

.category-icon {
    margin: 0 auto 10px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-cream);
    border-radius: 50%;
    color: var(--color-gold);
    transition: all var(--transition-speed);
}

.category-card:hover .category-icon {
    background-color: var(--color-gold);
    color: white;
}

.category-content {
    padding: 10px 0 0;
}

.category-title {
    font-size: 1rem;
    margin-bottom: 3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 0.75rem;
    color: var(--color-gold);
}
