/*
 Theme Name:   Luman Child
 Description:  Luman Child Theme
 Author:       XTemos
 Author URI:   https://xtemos.com
 Template:     xts-luman
 Version:      1.0.0
 Text Domain:  xts-theme
*/


/* ------------------------------------------------------------
   1.  Utility & Helper Classes
   ------------------------------------------------------------ */

/* Custom benefit table container – used for product/service features. */
.your-benefit {
    background: #3ecf8e;
    padding: 9px;
    width: 100%;
    /* Removed unused properties: border-radius, overflow, display, color */
}

/* ------------------------------------------------------------
   2.  Modal Z‑Index Override
   ------------------------------------------------------------ */

/* Ensure the modal appears above almost everything else.
   Note: This extreme value may cause conflicts; use with caution. */
#atcModal {
    z-index: 9999999999999999999999999999999999999999999999999999999999999 !important;
}

/* ------------------------------------------------------------
   3.  Hidden Elements (Like / Wishlist Buttons)
   ------------------------------------------------------------ */

/* Hide specific UI buttons that are not needed in the current theme. */
.shahr-wax-btn-like,
.shahr-wax-btn-wishlist,
.sw-cc-like {
    display: none !important;
}

/* ------------------------------------------------------------
   4.  Custom Table Styling (.your-benefit)
   ------------------------------------------------------------ */

/* Style the table inside .your-benefit – white text and proper padding. */
.your-benefit th {
    color: white;
    padding-right: 10px !important;
}

.your-benefit td {
    color: white !important;
    padding-left: 10px !important;
}

/* Also target BDI elements inside table cells for consistency. */
.your-benefit td bdi {
    color: white !important;
}

/* ------------------------------------------------------------
   5.  Mobile & Desktop Header Sliders
   ------------------------------------------------------------ */

/* Hide mobile slider by default, show desktop slider. */
#mobile_header_slider {
    display: none;
}

/* On screens smaller than 600px, swap visibility. */
@media only screen and (max-width: 600px) {
    #mobile_header_slider {
        display: block;
    }
    #header_slider {
        display: none;
    }
}

/* ------------------------------------------------------------
   6.  Product Archive / Loop Items
   ------------------------------------------------------------ */

/* Container for product posts – centers and sets full width. */
.items_pro_post {
    width: 100%;
    margin: 24px auto !important;
}

/* Video inside product posts fills its container. */
.items_pro_post video {
    width: 100%;
}

/* Media images inside the product loop – rounded corners and subtle shadow. */
.items_pro_post .item .media_type img {
    width: 100%;
    border-radius: 14px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    height: 500px;
}

/* Container for product video section – two‑column grid with gap. */
div#product-video {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 92%;
}

/* ------------------------------------------------------------
   7.  Single Post Content Styling
   ------------------------------------------------------------ */

/* --- 7a. General Typography --- */

/* Headings on single posts – larger font sizes for better readability. */
body.single.single-post .xts-site-wrapper h2 {
    font-size: 26px !important;
}
body.single.single-post .xts-site-wrapper h3 {
    font-size: 20px !important;
}

/* Paragraphs within single post content – improved line-height and font size. */
.single-post .xts-single-post-content p {
    font-size: 15px;
    font-weight: 400;
    line-height: 2em;
    color: #2e303b !important;
    margin: 0px 0 0 0;
}

/* List items – same styling as paragraphs. */
.single-post .xts-single-post-content li {
    color: #2e303b !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 2em;
    margin: 0px 0 0 0;
}

/* Images inside posts – rounded corners and proper spacing. */
.single-post .xts-single-post-content img {
    border-radius: 10px;
    margin-top: 2px;
    margin-bottom: 10px !important;
}

/* Headings h2, h3, h4 – consistent sizing and color. */
.single-post .xts-single-post-content h2,
.xts-single-post-content .h2 {
    line-height: 32px;
    font-weight: 700;
    color: #464749;
    font-size: 26px;
    margin: 15px 0;
}

.single-post .xts-single-post-content h3,
.xts-single-post-content .h3 {
    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
    color: #464749;
    margin: 15px 0;
}

.single-post .xts-single-post-content h4,
.h4 {
    font-size: 17px;
    line-height: 26px;
    font-weight: 700;
    color: #464749;
    margin: 15px 0;
}

/* --- 7b. Tables --- */

/* Base table styling – clean borders and spacing. */
table {
    background-color: transparent;
    width: 100%;
    margin-block-end: 15px;
    font-size: 0.9em;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 10px 0;
    border-radius: 0px;
}

/* Alternate row background for table body (odd rows). */
.single-post .xts-single-post-content table tbody > tr:nth-child(odd) > td,
.single-post table tbody > tr:nth-child(odd) > th {
    background-color: hsla(0, 0%, 65.2%, 0.0705882353);
}

/* First row – orange background with white text (used for headers). */
.single-post .xts-single-post-content table tbody > tr:nth-child(1) > td {
    background-color: rgb(255, 102, 0);
    color: #fff !important;
}

/* Table cells – padding and borders. */
.single-post .xts-single-post-content table td,
.single-post table th {
    padding: 10px 10px;
    line-height: 1.5;
    vertical-align: center;
    border: 1px solid hsla(0, 0%, 85.2%, 0.5019607843);
}

/* --- 7c. Blockquotes --- */

/* Styled blockquotes – light background, rounded, with left accent border. */
.single-post .xts-single-post-content q,
blockquote {
    background: hsla(0, 0%, 65.2%, 0.0705882353);
    padding: 30px 35px;
    margin: 5px 0;
    display: block;
    border-radius: 10px;
    color: #fff !important;
    position: relative;
    border: 1px solid hsla(0, 0%, 90.2%, 0.5019607843);
    border-right: 4px solid rgb(255, 102, 0);
}

/* Paragraphs inside blockquotes – force black text (overrides parent). */
.single-post .xts-single-post-content blockquote p {
    color: #000 !important;
}

/* Remove any pseudo‑element content (kept for future use). */
.single-post .xts-single-post-content q::before,
.xts-single-post-content blockquote::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 25px;
    width: 60px;
    height: 60px;
    display: inline-block;
}

/* Links inside blockquotes – accent color. */
.single-post .xts-single-post-content q,
.xts-single-post-content blockquote a {
    color: rgb(255, 102, 0) !important;
}

/* ------------------------------------------------------------
   8.  Shipping Method Description
   ------------------------------------------------------------ */

/* Specific shipping method notice – red background with rounded corners. */
.shipping_method_description.shipping_method_0_wc_forehand_method_4 {
    padding: 8px !important;
    background: #f2dede !important;
    border-radius: 5px;
    margin-bottom: 3px;
}

/* ------------------------------------------------------------
   9.  Visits Count Badge
   ------------------------------------------------------------ */

/* Override the background and border of the visits count badge. */
.xts-visits-count.xts-style-with-bg::before {
    background: #3ecf8e !important;
    border-color: #3ecf8e !important;
}

.xts-visits-count.xts-style-with-bg {
    border: 2px solid #3ecf8e !important;
}

/* ------------------------------------------------------------
   10. Feature Cards (Custom Component)
   ------------------------------------------------------------ */

/* Container for the card grid. */
.feature-card-container {
    display: flex;
    flex-direction: column;
    gap: 25px !important;
    margin: 40px 0 !important;
    width: 100% !important;
    direction: rtl !important;
}

/* --- Individual Card --- */
.feature-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 0 !important;           /* Header handles spacing */
    margin-bottom: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Remove any previous pseudo‑element (neon line). */
.feature-card::before {
    display: none !important;
}

/* Add a left‑hand accent bar (gradient green). */
.feature-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px !important;
    background: linear-gradient(to bottom, #34d399, #10b981) !important;
}

/* Hover effect – lift card and add a green glow. */
.feature-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px -5px rgba(52, 211, 153, 0.15) !important;
    border-color: #34d399 !important;
}

/* --- Card Header --- */
.card-header {
    background-color: #f8fafc !important;
    padding: 20px 24px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

/* --- Card Icon --- */
.card-icon {
    width: 46px !important;
    height: 46px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: #334155 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
}

/* --- Card Title (h3) --- */
.feature-card h3 {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    letter-spacing: -0.5px;
}

/* --- Card Body (content) --- */
.card-content {
    padding: 24px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.9 !important;
    text-align: justify !important;
}

.card-content p {
    color: #475569 !important;
    margin-bottom: 16px !important;
}

/* --- Lists inside card content --- */
.card-content ul {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 15px 20px 15px 15px !important;
    margin-top: 15px !important;
    gap: 0 !important;
    display: block !important;
}

.card-content li {
    position: relative !important;
    padding-right: 26px !important;
    margin-bottom: 10px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    list-style: none !important;
}

.card-content li:last-child {
    margin-bottom: 0 !important;
}

/* Checkmark icon for list items. */
.card-content li::before {
    content: "✔";
    position: absolute !important;
    right: 0 !important;
    top: 2px !important;
    color: #34d399 !important;
    font-weight: bold !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* --- Highlighted text (inline) --- */
.txt-highlight {
    background-color: rgba(52, 211, 153, 0.15) !important;
    color: #047857 !important;
    padding: 0 6px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
}

/* ------------------------------------------------------------
   11. Web Stories Overrides
   ------------------------------------------------------------ */

/* Adjust the title font size in Web Stories overlay. */
.story-content-overlay__title {
    font-size: 13px !important;
}

/* Mobile overrides for Web Stories (circles view). */
@media only screen and (max-width: 600px) {
    :root {
        --ws-circle-size: 85px !important;
    }
    .web-stories-list.is-view-type-circles .web-stories-list__story {
        --ws-circle-size: 85px !important;
    }
    .story-content-overlay__title {
        font-size: 11px !important;
    }
    /* Remove extra padding in the overlay for certain browsers. */
    @supports (scroll-marker-group:after) {
        .web-stories-list__story-content-overlay {
            padding: 0 !important;
        }
        /* Reset carousel column sizing for better responsiveness. */
        .web-stories-list.is-carousel .web-stories-list__carousel {
            grid-auto-columns: unset !important;
        }
    }
}

/* ------------------------------------------------------------
   12. Miscellaneous / Page Layout
   ------------------------------------------------------------ */

/* Remove top padding from the main content area. */
.xts-site-content {
    padding-top: 0;
}

/* On mobile, adjust the sidebar opener button width to auto. */
@media (max-width: 768px) {
    [class*="xts-sidebar-hidden"].xts-inited + .xts-sidebar-opener {
        width: auto !important;
        padding: 0 !important;
    }
}