/*
 Theme Name:   Edubin Child
 Theme URI:    https://themeforest.net/item/edubin-education-lms-wordpress-theme/24037792
 Description:  Education LMS WordPress Theme Edubin Child Theme
 Author:       Pixelcurve
 Author URI:   https://themeforest.net/user/pixelcurve
 Template:     edubin
 Version:      1.0.2
 License:      GNU General Public License v2 or later
 License URI:  LICENSE
 Tags:         custom-header, custom-logo, blog, theme-options
 Text Domain:  edubin-child
 */

/* 
 * NOTE: ProDerma specific styling has been moved to functions.php 
 * and is now conditional. It will only apply to sites where the 
 * ProDerma Ecosystem plugin is active.
 */

/* Performance Visual Fixes - Prevent layout shifts */
img {
    height: auto;
    max-width: 100%;
}

/* Fix large white space under header on Shop and WooCommerce pages */
.post-type-archive-product .tpc-site-content,
.woocommerce-page .tpc-site-content {
    display: block !important;
    padding-top: 10px !important;
}
.post-type-archive-product .tpc-site-content-inner,
.woocommerce-page .tpc-site-content-inner {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   Souq Delivery Custom Header (Sticky, Glassmorphism, Responsive)
   ========================================================================== */
.sd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 15, 27, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.sd-header.scrolled {
    background: rgba(11, 11, 23, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-header.sd-hidden {
    transform: translateY(-100%);
}

.sd-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    gap: 10px;
    transition: height 0.3s ease;
}

.sd-header.scrolled .sd-header-inner {
    height: 46px;
}

/* Logo */
.sd-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.sd-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

.sd-header.scrolled .sd-logo-text {
    font-size: 0.95rem;
}

.sd-logo-text span {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Links */
.sd-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.sd-nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sd-header.scrolled .sd-nav-link {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.sd-nav-link:hover,
.sd-nav-link.active {
    color: #fff;
    background: rgba(255, 107, 53, 0.15);
}

.sd-nav-link i {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Action Buttons */
.sd-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sd-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.sd-header.scrolled .sd-btn-wa {
    padding: 4px 10px;
    font-size: 0.72rem;
}

.sd-btn-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.sd-btn-app {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.sd-header.scrolled .sd-btn-app {
    padding: 4px 10px;
    font-size: 0.72rem;
}

.sd-btn-app:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* Hamburger */
.sd-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.sd-hamburger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sd-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.sd-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sd-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.sd-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.sd-mobile-menu {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 23, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9998;
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    transition: top 0.3s ease;
}

.sd-header.scrolled + .sd-mobile-menu {
    top: 46px;
}

.sd-mobile-menu.open {
    display: flex;
}

.sd-mobile-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.sd-mobile-link:hover,
.sd-mobile-link.active {
    background: rgba(255, 107, 53, 0.12);
    color: #FF6B35;
    border-color: rgba(255, 107, 53, 0.2);
}

.sd-mobile-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sd-mobile-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-mobile-actions a {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .sd-nav {
        display: none;
    }
    .sd-header-actions .sd-btn-wa,
    .sd-header-actions .sd-btn-app {
        display: none;
    }
    .sd-hamburger {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .sd-mobile-menu {
        display: none !important;
    }
}

/* ==========================================================================
   Souq Delivery Custom Footer Styling
   ========================================================================== */
.sd-footer {
    background: linear-gradient(180deg, #0F0F1E 0%, #1A1A2E 100%);
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    padding: 50px 0 0;
    position: relative;
    overflow: hidden;
}

.sd-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #E55A2B, #FF6B35);
}

.sd-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.sd-footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.sd-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    border-radius: 2px;
}

/* About Column */
.sd-footer-about {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.sd-footer-logo img {
    height: 38px;
    width: auto;
    border-radius: 8px;
}

.sd-footer-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.sd-footer-logo span span {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sd-footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

.sd-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.sd-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sd-footer-social a:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    color: #FF6B35;
    transform: translateY(-2px);
}

/* Links */
.sd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sd-footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.sd-footer-links li a:hover {
    color: #FF6B35;
    transform: translateX(-4px);
}

.sd-footer-links li a i {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Contact */
.sd-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sd-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.sd-footer-contact-item i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B35;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sd-footer-contact-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s ease;
}

.sd-footer-contact-item a:hover {
    color: #FF6B35;
}

/* Bottom Bar */
.sd-footer-bottom {
    margin-top: 40px;
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.sd-footer-bottom a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .sd-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .sd-footer { padding: 35px 0 0; }
    .sd-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sd-footer-col h4 { font-size: 0.95rem; margin-bottom: 14px; }
    .sd-footer-bottom { font-size: 0.78rem; padding: 14px 15px; }
}