/*
Theme Name: Today
Theme URI: https://eslamdev.com/
Author: EsLaM Hamed
Author URI: https://eslamdev.com/
*/

:root {
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --primary-color: #0284c7;
    --secondary-color: #0d9488;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background-color: #ffffff !important;
    color: #0f172a !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    box-sizing: border-box !important;
}

body {
    background-color: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    box-sizing: border-box !important;
}

img, svg, video, iframe {
    max-width: 100%;
}

html.admin-bar,
html:has(#wpadminbar) {
    margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
    html.admin-bar,
    html:has(#wpadminbar) {
        margin-top: 46px !important;
    }
}

#page,
#page.site,
.site {
    background-color: #ffffff !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Screen Reader Text - Required by WordPress */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Required Classes */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    padding: 0.5em 0;
}

.sticky {
    display: block;
}

.gallery-caption {
    display: block;
    font-size: 0.875em;
    color: var(--text-color);
}

.bypostauthor {
    display: block;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #fff;
}

.woocommerce span.onsale {
    background-color: var(--primary-color);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

/* Light SaaS Cart/Checkout Tables & Forms */
.woocommerce table.shop_table {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.woocommerce table.shop_table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px;
}

.woocommerce table.shop_table td {
    border-bottom: 1px solid #f1f5f9;
    padding: 15px;
    color: #0f172a;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    color: #0f172a;
    transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.woocommerce form .form-row label {
    color: #475569;
    font-weight: 500;
}

.woocommerce-checkout #payment {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.woocommerce-checkout #payment div.payment_box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #ffffff;
}

/* Fix Notices & WooCommerce Broken Icons */
/* Fix Notices & WooCommerce Broken Icons */
/* Fix Notices & WooCommerce Broken Icons (Bulletproof Grid Layout) */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
    padding: 15px 20px !important;
    /* Uniform padding */
    font-weight: 500 !important;
    list-style: none !important;
    margin-bottom: 25px !important;

    /* Bulletproof Layout Engine */
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* For errors which are UL lists, stack the LIs as a column inside the flex */
.woocommerce-error {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

/* Treat ::before as a dedicated flex child */
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    font-family: 'remixicon' !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Remove default WC pseudo elements so we don't duplicate icons */
.woocommerce-error li::before,
.woocommerce-info li::before,
.woocommerce-message li::before {
    display: none !important;
    content: none !important;
}

/* Ensure text inside wrappers or LIs takes the remaining width and won't wrap under the icon */
.woocommerce-error li,
.woocommerce-info p,
.woocommerce-message p {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    /* Allows truncation or proper wrapping */
    margin: 0 !important;
}

/* Fix Action Buttons inside Notices (like "View Cart") */
.woocommerce-error a.button,
.woocommerce-info a.button,
.woocommerce-message a.button {
    flex: 0 0 auto !important;
    /* Do NOT stretch to full width! */
    order: 2 !important;
    /* Push it to the END of the box (after the text!) */
    margin-left: auto !important;
    /* Push against the right edge */
    padding: 8px 16px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    border: 1px solid #cbd5e1 !important;
}

.woocommerce-error a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-message a.button:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}


/* Align list items safely */
.woocommerce-error li {
    flex-basis: 100% !important;
    /* Force each error onto a new line if using flex wrap */
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

/* Styling by Type */
.woocommerce-error {
    border-left-color: #ef4444 !important;
}

.woocommerce-error::before {
    content: "\eb96";
    color: #ef4444;
}

/* ri-error-warning-fill */

.woocommerce-info {
    border-left-color: #3b82f6 !important;
}

.woocommerce-info::before {
    content: "\ee58";
    color: #3b82f6;
}

/* ri-information-fill */

.woocommerce-message {
    border-left-color: #10b981 !important;
}

.woocommerce-message::before {
    content: "\ea60";
    color: #10b981;
}

/* ri-checkbox-circle-fill */

/* Hide WooCommerce native injected added_to_cart link under buttons */
.added_to_cart.wc-forward,
a.added_to_cart {
    display: none !important;
}

/* ==========================================================================
   WooCommerce Review Stars & Form Styling (Eshhan Theme)
   ========================================================================== */
#reviews #reply-title,
.comment-reply-title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    font-family: 'Cairo', sans-serif !important;
    margin-bottom: 18px !important;
    display: block !important;
}

#reviews .comment-form-rating {
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

#reviews .comment-form-rating label {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Hide raw select dropdown */
#reviews select#rating,
.comment-form-rating select#rating {
    display: none !important;
}

/* Star Rating Selector in Review Form */
#reviews p.stars,
.comment-form-rating p.stars {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    direction: ltr !important;
    font-size: 0 !important;
}

#reviews p.stars span,
.comment-form-rating p.stars span {
    display: inline-flex !important;
    gap: 4px !important;
}

#reviews p.stars a,
.comment-form-rating p.stars a {
    display: inline-block !important;
    position: relative !important;
    width: 26px !important;
    height: 26px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    font-size: 0 !important;
    cursor: pointer !important;
}

#reviews p.stars a::before,
.comment-form-rating p.stars a::before {
    content: "★" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 26px !important;
    line-height: 26px !important;
    text-indent: 0 !important;
    color: #cbd5e1 !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
    text-align: center !important;
}

#reviews p.stars:hover a::before,
.comment-form-rating p.stars:hover a::before {
    color: #f59e0b !important;
}

#reviews p.stars:hover a:hover ~ a::before,
.comment-form-rating p.stars:hover a:hover ~ a::before {
    color: #cbd5e1 !important;
}

#reviews p.stars a.active::before,
.comment-form-rating p.stars a.active::before {
    color: #f59e0b !important;
}

/* Single Existing Reviews Star Rating Display */
.star-rating {
    overflow: hidden !important;
    position: relative !important;
    height: 1.2em !important;
    line-height: 1.2 !important;
    font-size: 1.05rem !important;
    width: 5.4em !important;
    font-family: sans-serif !important;
    color: #f59e0b !important;
    letter-spacing: 2px !important;
    display: inline-block !important;
}

.star-rating::before {
    content: "★★★★★" !important;
    color: #cbd5e1 !important;
    top: 0 !important;
    right: 0 !important;
    position: absolute !important;
    letter-spacing: 2px !important;
}

.star-rating span {
    overflow: hidden !important;
    top: 0 !important;
    right: 0 !important;
    position: absolute !important;
    padding-top: 1.5em !important;
}

.star-rating span::before {
    content: "★★★★★" !important;
    top: 0 !important;
    position: absolute !important;
    right: 0 !important;
    color: #f59e0b !important;
    letter-spacing: 2px !important;
}

/* Review Form Inputs */
#reviews .comment-form-comment label,
#reviews .comment-form-author label,
#reviews .comment-form-email label {
    display: block !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 0.92rem !important;
    margin-bottom: 8px !important;
    font-family: 'Cairo', sans-serif !important;
}

#reviews textarea,
#reviews input[type="text"],
#reviews input[type="email"] {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    background: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important;
}

#reviews textarea:focus,
#reviews input[type="text"]:focus,
#reviews input[type="email"]:focus {
    border-color: #0070f3 !important;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.12) !important;
}

#reviews input[type="submit"],
#reviews button[type="submit"],
.comment-form .submit {
    background: linear-gradient(135deg, #0070f3 0%, #0ea5e9 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    font-family: 'Cairo', sans-serif !important;
    box-shadow: 0 6px 18px rgba(0, 112, 243, 0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

#reviews input[type="submit"]:hover,
.comment-form .submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.45) !important;
}

/* ============================================================ */
/* WORDPRESS ADMIN BAR - MOBILE & DESKTOP ALIGNMENT             */
/* ============================================================ */
body.admin-bar #wpadminbar,
#wpadminbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999999 !important;
}

#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before,
#wpadminbar .dashicons,
#wpadminbar .dashicons:before,
#wpadminbar [class*="dashicons"],
#wpadminbar [class*="dashicons"]:before,
#wpadminbar #adminbarsearch:before,
#wpadminbar .wp-admin-bar-arrow:before,
.dashicons,
.dashicons:before,
[class*="dashicons"],
[class*="dashicons"]:before {
    font-family: dashicons !important;
}

body.admin-bar .site-header,
body.admin-bar #masthead,
.admin-bar .site-header,
.admin-bar #masthead {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 32px !important;
    z-index: 999999 !important;
}

@media screen and (max-width: 782px) {
    html {
        margin-top: 0 !important;
    }

    body.admin-bar,
    html:has(#wpadminbar) {
        margin-top: 0 !important;
    }

    body.admin-bar #wpadminbar,
    #wpadminbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 46px !important;
        z-index: 9999999 !important;
    }

    body.admin-bar .site-header,
    body.admin-bar #masthead,
    .admin-bar .site-header,
    .admin-bar #masthead {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 46px !important;
        z-index: 999999 !important;
    }

    body.admin-bar .mobile-menu-overlay {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }

    body.admin-bar .site-content > section:first-of-type,
    body.admin-bar main > div > section:first-of-type,
    body.admin-bar .hero-section-wrap,
    body:not(.admin-bar) .hero-section-wrap,
    .hero-section-wrap {
        padding-top: 85px !important;
        padding-bottom: 75px !important;
    }
}

/* ============================================================ */
/* HEADER LOGO SIZING (DESKTOP & MOBILE)                        */
/* ============================================================ */
@media screen and (min-width: 769px) {
    .site-header .custom-logo,
    .site-branding-link .custom-logo {
        height: 75px !important;
        max-height: 78px !important;
        width: auto !important;
        transform: scale(1.3) !important;
        transform-origin: center center !important;
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    .site-header .custom-logo,
    .site-branding-link .custom-logo {
        height: 75px !important;
        max-height: 75px !important;
        width: auto !important;
        transform: scale(1.4) !important;
        transform-origin: center center !important;
        display: block !important;
    }
}

/* ============================================================ */
/* MOBILE BOTTOM NAVIGATION - LTR DIRECTION (REVERSED)         */
/* ============================================================ */
#iosBottomNav,
.mobile-bottom-nav {
    direction: ltr !important;
}