/* تصميم قسم تسوق حسب القسم - بني صحراوي شتوي */

/* حاوية القسم الرئيسية */
.special-cats-with-bg {
    margin-top: 0;
    margin-bottom: 0;
    padding: 3rem 0;
}

/* الخلفية الرئيسية - شفافة مع إطار صحراوي */
.special-cats-with-bg .bg-gray-900 {
    background: transparent !important;
    border-radius: 24px;
    padding: 3rem 2rem;
    position: relative;
    overflow: visible;
    box-shadow: none;
    border: 4px solid #a67c52;
}

/* تأثير نسيج رملي - إزالة الخلفية */
.special-cats-with-bg .bg-gray-900::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    border-radius: 24px;
}

/* زخرفة ثلجية */
.special-cats-with-bg .bg-gray-900::after {
    content: '❄ ❄ ❄ ❄ ❄';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 1.5rem;
    color: rgba(166, 124, 82, 0.4);
    letter-spacing: 20px;
}

/* تصميم العنوان - خلفية رمادية */
.special-cats-with-bg .leading-tight,
.special-cats-with-bg h2.text-3xl {
    background: #ededed !important;
    background-image: none !important;
    padding: 30px 40px !important;
    border-radius: 16px !important;
    color: #1a1a1a !important;
    text-align: center;
    font-size: 2rem !important;
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(139, 111, 71, 0.3);
}

/* الدائرة الزخرفية تحت العنوان */
.special-cats-with-bg .enhanced-title-border {
    display: block;
    border: 2px solid #8b6f47;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    position: relative;
    margin: 15px auto;
    background: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(139, 111, 71, 0.3);
}

.special-cats-with-bg .enhanced-title-border::before {
    content: " ";
    width: 110px;
    height: 3px;
    right: 251%;
    background: #8b6f47;
    position: absolute;
    top: 45%;
}

.special-cats-with-bg .enhanced-title-border::after {
    content: " ";
    width: 110px;
    height: 3px;
    left: 251%;
    background: #8b6f47;
    position: absolute;
    top: 45%;
}

/* تعديل padding للخلفية */
.special-cats-with-bg .inset-0 + .py-32 {
    padding-top: 2rem;
    padding-bottom: 0rem;
}

/* إزالة التدرج من الصور */
.special-cats-with-bg section .to-black {
    --tw-gradient-to: unset;
}

/* تصميم البطاقات */
.special-cats-with-bg section .bg-white {
    background: linear-gradient(135deg, #fffaf0 0%, #fdf5e6 100%) !important;
    border-radius: 20px !important;
    overflow: hidden;
    border: 3px solid #d4af78;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(193, 154, 107, 0.3);
    position: relative;
}

.special-cats-with-bg section .bg-white:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(193, 154, 107, 0.5);
    border-color: #b08968;
}

/* تأثير بريق على البطاقات */
.special-cats-with-bg section .bg-white::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(245, 222, 179, 0.4) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.special-cats-with-bg section .bg-white:hover::before {
    left: 100%;
}

/* طبقة التغطية عند الهوفر */
.special-cats-with-bg section .bg-white::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.85) 0%, rgba(160, 124, 82, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.special-cats-with-bg section .bg-white:hover::after {
    opacity: 1;
}

/* النصوص داخل البطاقات */
.special-cats-with-bg h3 a {
    position: relative;
    z-index: 2;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(255, 248, 220, 0.9);
    transition: all 0.3s ease;
    display: block;
}

.special-cats-with-bg section .bg-white:hover h3 a {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

/* إخفاء النصوص الإضافية */
.special-cats-with-bg h3 a p {
    display: none;
}

/* الشبكة */
.special-cats-with-bg section .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

/* الصور */
.special-cats-with-bg section div:has(> img) {
    opacity: 1 !important;
    transition: transform 0.5s ease;
    position: relative;
}

.special-cats-with-bg section .bg-white:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* أيقونة القلب */
.special-cats-with-bg .wishlist-btn,
.special-cats-with-bg .favorite-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #fdf5e6 0%, #f5deb3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #d4af78;
    box-shadow: 0 4px 15px rgba(212, 175, 120, 0.4);
}

.special-cats-with-bg .wishlist-btn:hover,
.special-cats-with-bg .favorite-icon:hover {
    background: linear-gradient(135deg, #d4af78 0%, #b08968 100%);
    transform: scale(1.2) rotate(12deg);
}

/* responsive للموبايل */
@media only screen and (max-width: 768px) {
    .special-cats-with-bg .pb-36 {
        padding-bottom: 5.75rem;
    }
    
    .special-cats-with-bg--1 .bg-storeBG {
        height: 0rem;
    }
    
    .special-cats-with-bg--3 .bg-storeBG {
        height: 9.25rem;
    }
    
    .special-cats-with-bg .bg-gray-900 {
        padding: 2rem 1rem;
        border-radius: 16px;
    }
    
    .special-cats-with-bg .leading-tight,
    .special-cats-with-bg h2.text-3xl {
        font-size: 1.5rem !important;
        padding: 20px 15px !important;
    }
    
    .special-cats-with-bg .relative .relative.py-32 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .special-cats-with-bg section {
        margin-top: -17rem;
    }
    
    .special-cats-with-bg section .bg-white {
        height: auto;
        aspect-ratio: 149 / 200;
        border-radius: 16px !important;
    }
    
    .special-cats-with-bg h3 a {
        font-size: 1.25rem;
    }
    
    .special-cats-with-bg section .grid-cols-3 {
        gap: 1.25rem;
    }
    
    .special-cats-with-bg .bg-gray-900::after {
        font-size: 1rem;
        letter-spacing: 10px;
    }
}

@media only screen and (min-width: 640px) {
    .special-cats-with-bg--1 .bg-transoarent {
        height: 0;
    }
    
    .special-cats-with-bg--3 .bg-transoarent {
        height: 6rem;
    }
    
    .special-cats-with-bg section .bg-white {
        height: auto;
        aspect-ratio: 149 / 200;
    }
}

/* تأثير الإضاءة الدافئة على الإطار */
@keyframes warmGlow {
    0%, 100% {
        border-color: #a67c52;
        box-shadow: 0 0 20px rgba(166, 124, 82, 0.3);
    }
    50% {
        border-color: #b8915f;
        box-shadow: 0 0 30px rgba(184, 145, 95, 0.5);
    }
}

.special-cats-with-bg .bg-gray-900 {
    animation: warmGlow 4s ease-in-out infinite;
}