/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    caret-color: transparent;
}
:focus {
    outline: none;
}

body {
    font-family: 'Marhey', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
    font-size: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #8B9B8B;
}

button {
    cursor: pointer;
    font-family: 'Marhey', sans-serif;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    background-color: #000;
    color: #fff;
    padding: 8px 0;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icons a:hover {
    background-color: #8B9B8B;
    color: #000;
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #8B9B8B;
    position: relative;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: #8B9B8B;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li i {
    margin-left: 8px;
    color: #8B9B8B;
}

.footer-section .social-icons {
    margin-top: 20px;
}

.footer-section .social-icons a {
    background-color: #333;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 0 4px 4px 0;
    outline: none;
    font-family: 'Marhey', sans-serif;
}

.newsletter-form button {
    background-color: #8B9B8B;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 4px 0 0 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #8B9B8B;
}

.payment-methods {
    margin-top: 20px;
}

.payment-methods img {
    height: 30px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #999;
}

/*@keyframes fadeIn {*/
/*    from {*/
/* Header Styles */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    width: 100px;
    height: 100px;
    margin-left: 100px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.search-bar {
    flex: 0 0 40%;
    position: relative;
}

.search-bar form {
    display: flex;
    width: 100%;
}

.search-bar input {
    margin-right: 0;
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.search-bar input:focus {
    border-color: #8B9B8B;
    box-shadow: 0 0 0 2px rgba(247, 184, 1, 0.2);
}

.search-bar button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.search-bar button:hover {
    color: #8B9B8B;
}

.account-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-link {
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.account-link:before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
}

.account-link:hover {
    color: #8B9B8B;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #8B9B8B;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Navigation */
.main-nav {
    background-color: #fff;
    padding: 0;
    border-bottom: 1px solid #e1e1e1;
}

.nav-links {
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color:#8B9B8B;
}

.nav-links li a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20px;
    left: 20px;
    height: 3px;
    background-color: #8B9B8B;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #8B9B8B;
}

.fa-chevron-down {
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Page Header */
.page-header {
    background-color: #f5f5f5;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-header h1 {
    font-size: 2rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.page-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: #8B9B8B;
}

/* Products Section Styles */
.products-section {
    padding: 40px 0;
}
/* الحاوية */
.filters-container {
    display: flex;
    justify-content: center; /* خليها على اليمين */
    margin-bottom: 20px;
}

/* الغلاف */
.filter-dropdown {
    position: relative;
    display: flex;
    justify-content: center; /* محاذاة أفقية في المنتصف */
    margin: 0 auto;
}

/* القائمة */
.filter-dropdown select {
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    appearance: none; /* إزالة الشكل الافتراضي */
    font-family: inherit;
}

/* أيقونة السهم المخصص */
.filter-dropdown::after {
    /* أيقونة Font Awesome chevron-down */

    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #555;
}

/* تأثير عند التركيز */
.filter-dropdown select:focus {
    border-color: #888;
}


.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    min-width: 180px;
    /* إزالة السهم الافتراضي */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* إضافة سهم مخصص */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px !important;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.sort-select option {
    padding: 8px;
}

/* تحسينات متجاوبة للقائمة المنسدلة */
@media (max-width: 768px) {
    .filter-dropdown select {
        max-width: 200px;
        min-width: 150px;
        font-size: 13px;
        padding: 6px 10px;
        padding-right: 25px;
        background-size: 14px;
    }
}

@media (max-width: 576px) {
    .filter-dropdown select {
        max-width: 180px;
        min-width: 120px;
        font-size: 12px;
        padding: 5px 8px;
        padding-right: 22px;
        background-size: 12px;
    }

    .filters-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .filter-dropdown select {
        max-width: 160px;
        min-width: 100px;
        font-size: 11px;
        padding: 4px 6px;
        padding-right: 20px;
        background-size: 11px;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px #8b9b8b;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 250px;       /* ارتفاع ثابت للعنصر الأب */
    overflow: hidden;    /* إخفاء الأجزاء الزائدة إن وجدت */
    display: flex;       /* لتحسين المحاذاة */
    align-items: center; /* توسيط الصورة عمودياً */
    justify-content: center; /* توسيط الصورة أفقياً */
    background: #f5f5f5; /* لون خلفية (اختياري) */
}

.product-image img {
    /* منع تجاوز عرض الصورة للعنصر الأب */
    max-height: 100%;    /* منع تجاوز ارتفاع الصورة للعنصر الأب */
    width: 100%;         /* عرض الصورة يتكيف مع أبعادها الأصلية */
    height: auto;        /* ارتفاع الصورة يتكيف مع أبعادها الأصلية */
    object-fit: contain; /* عرض الصورة كاملة دون اقتصاص */
    transition: transform 0.3s ease;
}


.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay a {
    padding: 10px 20px;
    background-color: #8B9B8B;
    color: #000;
    border-radius: 25px;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-overlay .view-product {
    transition-delay: 0.1s;
}

.product-overlay .add-to-cart {
    transition-delay: 0.2s;
}

.product-card:hover .product-overlay a {
    transform: translateY(0);
    opacity: 1;
}

.product-overlay a:hover {
    background-color: #fff;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
}

.product-price:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #8B9B8B;
    margin: 10px auto 0;
}


.end{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Slab", serif;
    height: 100vh;
    background:url('../image/hhh.png')center center/cover no-repeat ;
    position: relative;
    /*background: linear-gradient(135deg, #8B9B8B 0%, #8B9B8B 100%);*/
    color: #6D4534;
    line-height: 1.6;
    min-height: 100vh;


}
.container3 {
    max-width: 1200px;
    width: 90%; /* يجعل العنصر متجاوبًا */
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(109, 69, 52, 0.05);

    /* محاذاة في المنتصف */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    max-width: 120px;
    height: auto;
}

/* Main Content Section */
.main-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Newsletter Section */
.newsletter-section {
    flex: 1;
    text-align: left;
    max-width: 500px;
    font-family: 'Marhey', sans-serif;
}

.newsletter-content h4 {
    color: #6D4534;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.newsletter-content p4 {
    color: #6D4534;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.signup-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.email-input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-bottom: 2px solid #6D4534;
    background: transparent;
    color: #6D4534;
    font-size: 1rem;
    text-align: left;
    font-family: 'Marhey', sans-serif;
    font-weight: 400;
    outline: none;
}

.signup-button {
    background-color: #6D4534;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Marhey', sans-serif;
}

.signup-button:hover {
    background-color: #8B9B8B;
}


.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    color: #6d4534;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #8B9B8B;
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: right;
    font-family: 'Marhey', sans-serif;
}

.footer-column h5 {
    color: #6D4534;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #6D4534;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-column ul li a:hover {
    color: #8B9B8B;
}

/* Bottom Footer */
.bottom-footer {
    border-top: 1px solid #6D4534;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6D4534;
    font-size: 0.9rem;
}

.legal-links a {
    color: #6D4534;
    text-decoration: none;
    margin-right: 2rem;
    transition: color 0.3s ease;
    font-weight: 400;
    font-family: 'Marhey', sans-serif;
}

.legal-links a:hover {
    color: #8B9B8B;
}

.copyright {
    color: #6D4534;
    font-weight: 400;
    font-family: 'Marhey', sans-serif;
}
/* صندوق الاقتراحات */
.suggestions-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}

/* عنصر الاقتراح */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #fafafa;
}

/* صورة المنتج */
.suggestion-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* اسم المنتج */
.suggestion-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
}

/* سعر المنتج */
.suggestion-price {
    font-weight: 600;
    color: #1b7a77;
    white-space: nowrap;
}

.price-wrap { margin-top: 8px; text-align: center; }

.old-price {
    text-decoration: line-through;
    color: #9a9a9a;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

.new-price-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.new-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;      /* لو بدكها يسار استخدمي left بدل right */
    background: #e63946;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 2;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 2rem;
    }

    .newsletter-section {
        text-align: center;
    }

    .signup-form {
        flex-direction: column;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .bottom-footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .legal-links {
        margin-bottom: 1rem;
    }

    .legal-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .newsletter-section {
        max-width: 100%;
    }

    .signup-form {
        flex-direction: column;
        align-items: stretch;
    }

    .signup-button {
        width: 100%;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column ul {
        padding: 0;
    }

    .social-icons {
        justify-content: center;
    }

    .bottom-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links a {
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .container3 {
        width: 95%;
        padding: 1.5rem;
    }

    .newsletter-content h4 {
        font-size: 1.5rem;
    }

    .newsletter-content p4 {
        font-size: 0.95rem;
    }

    .email-input {
        font-size: 0.95rem;
    }

    .signup-button {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }

    .social-icon {
        font-size: 1.3rem;
    }

    .footer-column h5 {
        font-size: 0.95rem;
    }

    .footer-column ul li a {
        font-size: 0.9rem;
    }

    .legal-links a {
        font-size: 0.85rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}
@media (max-width: 768px) {
    .container3 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 2rem auto;
    }
}
/* Responsive Styles */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .nav-links li a {
        padding: 15px 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .header-content {
        flex-wrap: wrap;
        font-family: 'Marhey', sans-serif;
    }

    .logo {
        order: 1;
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .search-bar {
        order: 2;
        flex: 1;
    }

    .account-cart {
        order: 3;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li a {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .dropdown-content {
        right: auto;
        left: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-section {
        flex: 0 0 calc(50% - 20px);
    }
}

/* Mobile (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        margin: 15px 0;
        flex: 0 0 100%;
    }

    .account-cart {
        display: flex;
        justify-content: space-between;
    }

    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        justify-content: flex-start;
    }

    .nav-links::-webkit-scrollbar {
        height: 3px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background-color: #F7B801;
    }

    .filters-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 15px 10px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .footer-section {
        flex: 0 0 100%;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 180px;
    }

    .product-overlay a {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .product-title {
        font-size: 0.8rem;
        height: 36px;
    }

    .product-price {
        font-size: 0.9rem;
    }
}

/* Navigation Adjustments for Mobile */
@media (max-width: 767px) {
    .dropdown:hover .dropdown-content {
        display: none;
    }
}

/* Additional Animation for Mobile */
@media (max-width: 767px) {
    @keyframes slideInFromRight {
        from {
            transform: translateX(20px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .products-grid {
        animation: slideInFromRight 0.5s ease;
    }
}
.user-dropdown2 {
    position: relative;
    display: inline-block;
}
.user-profile2 {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.dropdown-content2 {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    border-radius: 4px;
    overflow: hidden;
}
.dropdown-content2 form {
    width: 100%;
}
.logout-btn {
    width: 100%;
    padding: 10px 15px;
    text-align: right;
    background: none;
    border: none;
    color: #333;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}
.logout-btn:hover {
    background-color: #f5f5f5;
    color: #8B9B8B;
}
.user-dropdown2:hover .dropdown-content2 {
    display: block;
}