/* ============================================
   تحسينات احترافية شاملة لمتجر Update Aden
   Professional Enhancements for Update Aden Store
   ============================================ */

/* ===== Professional Header Styling ===== */
.main-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #5D4037, #8D6E63, #6D4C41) 1;
    transition: all 0.3s ease;
}

.main-header:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Enhanced Logo */
.logo-link {
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.smart-logo .logo-brand {
    background: linear-gradient(135deg, #5D4037, #4E342E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.smart-logo .logo-tagline {
    color: #667;
    font-size: 11px;
    font-weight: 600;
}

/* Premium Search Bar */
.search-form-enhanced {
    flex: 1;
    max-width: 650px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: #5D4037;
    box-shadow: 0 0 0 4px rgba(93, 64, 55, 0.1),
                0 4px 20px rgba(93, 64, 55, 0.2);
    transform: translateY(-2px);
}

.search-input {
    border: none;
    padding: 14px 50px 14px 50px;
    width: 100%;
    font-size: 15px;
    color: #3E2723;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 18px;
    pointer-events: none;
}

.search-btn {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #5D4037, #4E342E);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(93, 64, 55, 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.4);
}

/* Premium Header Buttons */
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.header-btn:hover::before {
    left: 100%;
}

.header-btn:hover {
    border-color: #5D4037;
    color: #5D4037;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.2);
}

.btn-admin {
    background: linear-gradient(135deg, #8D6E63, #6D4C41);
    border-color: transparent;
    color: white !important;
}

.btn-admin:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-cart {
    position: relative;
    background: linear-gradient(135deg, #5D4037, #4E342E);
    border-color: transparent;
    color: white !important;
}

.btn-cart:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #5D4037;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 106, 61, 0.5);
    animation: pulse 2s infinite;
}

/* Professional Product Cards */
.product-card-hybrid {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #f3f4f6;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card-hybrid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.1), rgba(141, 110, 99, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card-hybrid:hover {
    transform: translateY(-8px);
    border-color: #5D4037;
    box-shadow: 0 12px 40px rgba(93, 64, 55, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-hybrid:hover::after {
    opacity: 1;
}

/* Product Image Container */
.product-image-hybrid {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    overflow: hidden;
    border-radius: 12px;
    margin: 12px;
    width: calc(100% - 24px);
    padding-top: calc(100% - 24px);
}

.product-image-hybrid img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-hybrid:hover .product-image-hybrid img {
    transform: scale(1.15) rotate(3deg);
}

/* Premium Badges */
.discount-badge-hybrid {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #5D4037, #8D6E63);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.4);
    animation: pulse 2s infinite;
}

.new-badge-hybrid {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #8D6E63, #6D4C41);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.4);
    animation: float 3s ease-in-out infinite;
}

/* Wishlist Button */
.wishlist-btn-hybrid {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.wishlist-btn-hybrid:hover {
    background: #5D4037;
    border-color: #5D4037;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(255, 106, 61, 0.4);
}

.wishlist-btn-hybrid:hover i {
    color: white;
}

.wishlist-btn-hybrid i {
    font-size: 18px;
    color: #6b7280;
    transition: color 0.3s ease;
}

/* Product Info */
.product-info-hybrid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-name-hybrid {
    font-size: 15px;
    font-weight: 700;
    color: #3E2723;
    margin: 0;
    line-height: 1.4;
    min-height: 42px;
}

.product-name-hybrid a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name-hybrid a:hover {
    color: #5D4037;
}

/* Premium Pricing */
.product-price-hybrid {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.price-new-hybrid {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #5D4037, #4E342E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-old-hybrid {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-current-hybrid {
    font-size: 20px;
    font-weight: 800;
    color: #5D4037;
}

/* Delivery Info */
.delivery-info-hybrid {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 13px;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.delivery-info-hybrid i {
    font-size: 16px;
}

/* Premium Add to Cart Button */
.btn-add-cart-hybrid {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #5D4037, #4E342E);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
    margin-top: auto;
}

.btn-add-cart-hybrid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-cart-hybrid:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-cart-hybrid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
}

.btn-add-cart-hybrid:active {
    transform: translateY(0);
}

/* Login Button */
.btn-login-hybrid {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8D6E63, #6D4C41);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-login-hybrid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Out of Stock Button */
.btn-out-of-stock-hybrid {
    width: 100%;
    padding: 12px;
    background: #f3f4f6;
    color: #9ca3af;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: not-allowed;
}

/* Professional Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card .card {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.category-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.05), rgba(141, 110, 99, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card .card:hover::before {
    opacity: 1;
}

.category-card .card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #5D4037;
    box-shadow: 0 12px 40px rgba(93, 64, 55, 0.2);
}

.category-card .card-body {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.category-card i {
    transition: all 0.4s ease;
}

.category-card:hover i {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 4px 10px rgba(93, 64, 55, 0.3));
}

/* Professional Footer */
.support-footer {
    background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.support-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5D4037, #8D6E63, #6D4C41, #5D4037);
    background-size: 200% 100%;
    animation: gradient-shift 5s ease infinite;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .search-form-enhanced {
        max-width: 100%;
    }
    
    .header-btn span {
        display: none;
    }
    
    .header-btn {
        padding: 10px 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* Loading States */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Success States */
.success-animation {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Professional Topbar */
.topbar {
    background: linear-gradient(135deg, #5D4037 0%, #4E342E 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(93, 64, 55, 0.3);
}

.topbar a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.topbar a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 30px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.trust-badge i {
    font-size: 24px;
    color: #5D4037;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
}

.trust-badge-title {
    font-weight: 700;
    font-size: 14px;
    color: #3E2723;
}

.trust-badge-subtitle {
    font-size: 12px;
    color: #6b7280;
}





