/* 
 Theme Name:   Fabrics-in-the-Gorge
 Theme URI:    
 Description:  images via URL, FAQs, product fractions, colors
 Author:       director
 Author URI:   
 Template:     lz-fashion-ecommerce-pro
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* =========================================================================
   PERMANENT POSITION #2 ACCORDION/RELATED KILL-SWITCH
   ========================================================================= */
.related .lz-custom-file-gallery, 
.upsells .lz-custom-file-gallery, 
.products .lz-custom-file-gallery, 
.article + div .lz-custom-file-gallery,
#innerpage-box article + div .lz-custom-file-gallery,
.innerpage-whitebox > div .lz-custom-file-gallery {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* =========================================================================
   PRECISION MPC FIELD STYLING (Isolated Exclusively From Standard Cart Fields)
   ========================================================================= */
body .wc-measurement-price-calculator input.qty,
body .wc-measurement-price-calculator input[type="number"],
body div.wc-measurement-price-calculator input,
body table.calculator-table input,
body #innerpage-box .calculator-table input,
body input[name*="measurement"],
body input[id*="calculator"] {
    width: 85px !important;       /* Compact 85px constraint locked strictly to fabric inputs */
    min-width: 85px !important;
    max-width: 85px !important;
    padding: 8px 12px !important;
    font-size: 16px !important;    /* Keeps mobile layout stable and blocks automatic iOS zoom constraints */
    display: inline-block !important;
    box-sizing: border-box !important;
    height: 42px !important;
    text-align: left !important;
}


/* UNIVERSAL ARROW STRIPPER FOR ALL ENGINES */
body input[type="number"]::-webkit-inner-spin-button, 
body input[type="number"]::-webkit-outer-spin-button,
body .wc-measurement-price-calculator input::-webkit-inner-spin-button,
body .wc-measurement-price-calculator input::-webkit-outer-spin-button { 
    -webkit-appearance: none !important; 
    margin: 0 !important; 
}

body input[type="number"],
body .wc-measurement-price-calculator input {
    -moz-appearance: textfield !important; /* Firefox layout shield */
}

/* SPACING REGULATION: STACKS INSTRUCTIONS DIRECTLY OVER THE FIELD */
body table.calculator-table,
body table.calculator-table tr,
body table.calculator-table td {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    border: none !important;
    background: none !important;
}

body table.calculator-table td.label {
    margin-bottom: 6px !important;
    padding-bottom: 2px !important;
    font-weight: 700 !important;
    text-align: left !important;
    display: block !important;
    font-size: 15px !important;
    color: #333 !important;
}



/* =========================================================================
   6. TRUE SIDEBAR ACCORDION FOR FABRIC PRODUCT ATTRIBUTES
   ========================================================================= */
.lz-attribute-accordion-nav {
    width: 100%;
    box-sizing: border-box;
}

.lz-attribute-search-container {
    position: relative;
    margin-bottom: 15px;
}

.lz-attribute-search-container input {
    width: 100% !important;
    padding: 10px 35px 10px 12px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    height: 40px !important;
}

.lz-attr-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #999;
    display: none;
    user-select: none;
}

.lz-attr-main-tree, .lz-attr-main-tree ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lz-attr-parent-node {
    border-bottom: 1px solid #e0e0e0;
}

.lz-attr-parent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.lz-attr-parent-row:hover {
    background: #fdfdfd;
}

.lz-attr-heading-text {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lz-attr-arrow {
    font-size: 11px;
    color: #7f8c8d;
    transition: transform 0.2s;
}

.lz-attr-child-submenu {
    background: #fafafa;
    padding: 5px 15px 10px 15px !important;
    border-top: 1px solid #f0f0f0;
}

.lz-attr-child-node a {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px dashed #eaeaea;
    transition: color 0.15s;
}

.lz-attr-child-node:last-child a {
    border-bottom: none;
}

.lz-attr-child-node a:hover {
    color: #c0392b; /* Matches your core notice red styling accent line */
    padding-left: 2px;
}



/* =========================================================================
   8. THREE-TIER UNIFIED CATEGORY ACCORDION PRESENTATION OVERRIDES
   ========================================================================= */
.lz-category-accordion-unified {
    margin-bottom: 30px;
}

.lz-category-accordion-unified .lz-attr-parent-row {
    position: relative;
}

.lz-cat-direct-link-node {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
}

/* Tier 2 Deep Formatting Match */
.lz-tier2-row-inner {
    padding: 8px 5px 8px 10px !important;
    border-bottom: none !important;
}

.lz-tier2-link-node {
    font-size: 13px !important;
    color: #444 !important;
    font-weight: 600 !important;
    flex-grow: 1;
}

/* Tier 3 Sub-sub-category Deep Indentation Line */
.lz-tier3-submenu-inner {
    padding-left: 15px !important;
    border-left: 2px solid #ccc !important;
    background: #fdfdfd !important;
    margin-top: 2px !important;
    margin-bottom: 5px !important;
}

.lz-category-accordion-unified .lz-attr-child-node a {
    font-size: 13px !important;
    color: #666 !important;
}

.lz-category-accordion-unified .lz-attr-child-node a:hover,
.lz-tier2-link-node:hover {
    color: #c0392b !important;
}

/* Styled View All Links Embedded Seamlessly */
.lz-view-all-node a {
    font-style: italic !important;
    color: #7f8c8d !important;
    font-weight: 500 !important;
}


/* =========================================================================
   12. ACCORDION SPACE OPTIMIZATION (Tightens Vertical Padding Height)
   ========================================================================= */
#innerpage-box .faq-content {
    background: #fff !important;
    overflow: hidden !important;
    margin-bottom: 8px !important; /* Brought down from 14px to stack the cards closer together */
}

/* TIGHTEN HEADER ROW: Reduced top/bottom padding to make the headers shorter */
#innerpage-box h6.faq-title {
    position: relative !important;
    padding: 8px 40px 8px 12px !important; /* Compacted height padding; reserves 40px right room for indicators */
    font-size: 15px !important; /* Slightly normalized for a cleaner multi-section text layout */
}

/* Fixes the parent theme's overlapping border bug when a panel opens */
#innerpage-box .faq-content.active-container h6.faq-title {
    border-bottom: 1px solid #dedede !important;
    background: #eeeeee !important; 
}

/* TIGHTEN ANSWER TEXT PANELS: Cuts down the interior padding height */
#innerpage-box .faq-description p {
    padding: 10px 12px !important; /* Tightens text height; prevents text lines from floating inside dead white space */
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Native CSS directional layout indicator overrides the giant parent FontAwesome icon hook */
#innerpage-box h6.faq-title::before {
    display: none !important; /* Force deletes the theme's default bloated icon attachment layout entirely */
}

#innerpage-box h6.faq-title::after {
    content: "❯" !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(90deg);
    font-size: 10px !important;
    color: #7f8c8d !important;
    transition: transform 0.2s ease;
}

#innerpage-box h6.faq-title.active::after {
    transform: translateY(-50%) rotate(-90deg) !important; /* Smooth flip animation on click selection passes */
}


/* =========================================================================
   13. NAVIGATION HIGH-CONTRAST HIGHLIGHTS (Balanced, Shift-Free Padding)
   ========================================================================= */
/* UNIVERSAL BASE PADDING: Force all menu links to share the exact same spacing dimensions */
.ht-main-navigation ul li > a,
#main-nav li > a {
    padding: 6px 12px !important;         /* Consistent horizontal and vertical spacing bounds */
    display: inline-block !important;
    font-weight: 500 !important;          /* Crisp, un-blurred weight profile */
    transition: all 0.2s ease !important;
}

/* ACTIVE HIGHLIGHT STATE: Simply floods the pre-existing padding footprint with color */
.ht-main-navigation ul li.current-menu-item > a,
.ht-main-navigation ul li.current_page_item > a,
.ht-main-navigation ul li.active > a,
#main-nav li.current-menu-item > a,
#main-nav li.current_page_item > a {
    background-color: #f9eb6e !important; /* Swaps cleanly to your preferred color tint */
    border-radius: 4px !important;
}

/* HOVER STATE: Soft visual feedback indicator for inactive options */
.ht-main-navigation ul li a:hover,
#main-nav li a:hover {
    background-color: #cfcbf7 !important;
    color: #333 !important;
    border-radius: 4px !important;
}


#main-nav li.current-menu-item > a,
#main-nav li.current_page_item > a {
    background-color: #f9eb6e !important; /* Swaps cleanly to your preferred color tint */
    border-radius: 4px !important;
}

/* HOVER STATE: Soft visual feedback indicator for inactive options */
.ht-main-navigation ul li a:hover,
#main-nav li a:hover {
    background-color: #cfcbf7 !important;
    color: #333 !important;
    border-radius: 4px !important;
}



/* =========================================================================
   14. LOGO BOX & TAGLINE BALANCE ADJUSTMENTS
   ========================================================================= */
/* Expand the parent column container height bounds to let the tagline sit comfortably */
div.header-left.col-md-3.col-sm-3 {
    height: auto !important;
    min-height: 70px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important; /* Aligns text left to match your square block layout */
}

/* Adjust your main logo container spacing to make room for the new row */
.logobox, .logobox img {
    margin-top: 5px !important; /* Shifted down from 10px to reduce top white space */
    margin-bottom: 2px !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}