/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ========================================
   PRODUCT CATEGORIES SIDEBAR - MODERN STYLE
   ======================================== */

.widget_product_categories .widget-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 15px;
    margin-bottom: 0;
    border-bottom: 2px solid #f15a00;
    color: #1a1a1a;
}

.widget_product_categories ul.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_product_categories ul.product-categories > li {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.widget_product_categories ul.product-categories > li:last-child {
    border-bottom: none;
}

.widget_product_categories ul.product-categories > li > a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.widget_product_categories ul.product-categories > li > a:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
    transform: rotate(-45deg);
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.widget_product_categories ul.product-categories > li > a:hover,
.widget_product_categories ul.product-categories > li.current-cat > a {
    color: #f15a00;
    background: #fff8f3;
    border-left-color: #f15a00;
    padding-left: 20px;
}

.widget_product_categories ul.product-categories > li > a:hover:before,
.widget_product_categories ul.product-categories > li.current-cat > a:before {
    border-color: #f15a00;
    transform: rotate(-45deg) translateX(2px);
}

/* Subcategory children */
.widget_product_categories ul.product-categories ul.children {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
}

.widget_product_categories ul.product-categories ul.children li a {
    display: flex;
    align-items: center;
    padding: 9px 15px 9px 30px;
    color: #555;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

.widget_product_categories ul.product-categories ul.children li a:before {
    content: '–';
    margin-right: 8px;
    color: #ccc;
    font-size: 12px;
    transition: all 0.25s ease;
}

.widget_product_categories ul.product-categories ul.children li a:hover,
.widget_product_categories ul.product-categories ul.children li.current-cat > a {
    color: #f15a00;
    background: #fff5ee;
    border-left-color: #f15a00;
    padding-left: 35px;
}

.widget_product_categories ul.product-categories ul.children li a:hover:before,
.widget_product_categories ul.product-categories ul.children li.current-cat > a:before {
    color: #f15a00;
}

/* Category count badge */
.widget_product_categories ul.product-categories li .count,
.widget_product_categories ul.product-categories li a .count {
    margin-left: auto;
    background: #f0f0f0;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.widget_product_categories ul.product-categories li > a:hover .count,
.widget_product_categories ul.product-categories li.current-cat > a .count {
    background: #f15a00;
    color: #fff;
}

/* Hide Uncategorized */
.widget_product_categories ul.product-categories > li.cat-item-176 {
    display: none;
}

/* Woodmart accordion toggle arrow override */
.widget_product_categories .wd-nav-opener {
    right: 10px;
    color: #999;
    transition: color 0.25s ease;
}

.widget_product_categories li:hover > .wd-nav-opener,
.widget_product_categories li.current-cat > .wd-nav-opener {
    color: #f15a00;
}

/* ========================================
   SPEC / FITMENT IMAGES
   ======================================== */

.srr-spec-images {
    margin: 40px 0;
    padding: 30px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
}

.srr-spec-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f15a00;
    color: #1a1a1a;
}

.srr-spec-image-wrap {
    margin-bottom: 15px;
    overflow-x: auto;
}

.srr-spec-image-wrap img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ========================================
   VEHICLE FITMENT FINDER
   ======================================== */

.srr-fitment-finder {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    color: #fff;
}

.srr-fit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #f15a00;
}

.srr-fit-header svg { color: #f15a00; flex-shrink: 0; }

.srr-fit-selects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.srr-fitment-finder select,
.srr-float-fit-panel select,
.srr-fit-selects select {
    width: 100% !important;
    border: 2px solid #333 !important;
    border-radius: 8px !important;
    background-color: #2a2a2a !important;
    color: #fff !important;
    font-size: 15px !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
}

.srr-fit-selects select option {
    background: #1a1a1a !important;
    color: #fff !important;
}

.srr-fit-selects select optgroup {
    background: #1a1a1a !important;
    color: #fff !important;
}

.srr-fitment-finder select:focus,
.srr-float-fit-panel select:focus,
.srr-fit-selects select:focus {
    border-color: #f15a00 !important;
    outline: none !important;
}

.srr-fitment-finder select:disabled,
.srr-float-fit-panel select:disabled,
.srr-fit-selects select:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed;
}

.srr-fitment-finder select option,
.srr-float-fit-panel select option {
    background-color: #1a1a1a !important;
    color: #fff !important;
    padding: 8px !important;
}

#srr-fit-search {
    width: 100%;
    padding: 14px 28px;
    background: #f15a00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

#srr-fit-search:hover { background: #d94e00; }
#srr-fit-search:disabled { opacity: 0.4; cursor: not-allowed; }

/* Results */
.srr-fit-results { margin-top: 20px; }

.srr-fit-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.srr-fit-count {
    font-size: 15px;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 15px;
}

.srr-fit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.srr-fit-product {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.srr-fit-product:hover { transform: translateY(-3px); }

.srr-fit-product a {
    text-decoration: none;
    color: #fff;
}

.srr-fit-product-img {
    background: #fff;
    padding: 10px;
}

.srr-fit-product-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.srr-fit-product-info {
    padding: 12px;
}

.srr-fit-badge {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.srr-fit-product-info h4 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.srr-fit-cats {
    font-size: 11px;
    color: #888;
}

.srr-fit-cats a { color: #888 !important; }

/* No results - category fallback */
.srr-fit-no-results {
    text-align: center;
    padding: 20px;
}

.srr-fit-no-results p {
    color: #ccc;
    margin-bottom: 15px;
}

.srr-fit-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.srr-fit-cat-link {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #f15a00 !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.srr-fit-cat-link:hover { background: #444; }

/* Verified Fit badge on product page */
.srr-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff5ee;
    color: #f15a00;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #f15a00;
    margin-bottom: 10px;
}

/* ========================================
   DYNAMIC MEGA MENU
   ======================================== */

.srr-megamenu {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.srr-megamenu.srr-mega-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.srr-mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    min-height: 420px;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #f15a00;
    font-family: 'Poppins', sans-serif;
}

/* Left panel - parent categories */
.srr-mega-cats {
    width: 290px;
    flex-shrink: 0;
    background: #f9f9f9;
    border-right: 1px solid #eee;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 520px;
}

.srr-mega-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    text-decoration: none !important;
}

.srr-mega-cat-item:hover,
.srr-mega-cat-item.srr-mega-active {
    background: #fff;
    color: #f15a00;
    border-left-color: #f15a00;
}

.srr-mega-cat-item:hover img,
.srr-mega-cat-item.srr-mega-active img {
    background: #fff5ee;
}

.srr-mega-cat-item:hover .srr-mega-count,
.srr-mega-cat-item.srr-mega-active .srr-mega-count {
    background: #f15a00;
    color: #fff !important;
}

a.srr-mega-cat-item:hover,
a.srr-mega-cat-item.srr-mega-active {
    color: #f15a00 !important;
}

.srr-mega-cat-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
    background: #f0f0f0;
    padding: 2px;
}

.srr-mega-cat-item span { flex: 1; }

.srr-mega-count {
    background: #f0f0f0;
    color: #666 !important;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
    line-height: 1.4;
}

.srr-mega-cat-item.srr-mega-empty .srr-mega-count { display: none; }

.srr-mega-arrow {
    color: #ccc;
    flex-shrink: 0;
}

.srr-mega-cat-item.srr-mega-active .srr-mega-arrow,
.srr-mega-cat-item:hover .srr-mega-arrow { color: #f15a00; }

.srr-mega-view-all {
    margin-top: auto;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #f15a00 !important;
    text-decoration: none !important;
    border-top: 1px solid #eee;
    transition: background 0.15s;
}

.srr-mega-view-all:hover { background: #fff5ee; }

/* Right panel - subcategories */
.srr-mega-subs {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 520px;
    background: #fff;
}

.srr-mega-sub-panel { display: none; }
.srr-mega-sub-panel.srr-mega-active { display: block; }

.srr-mega-sub-panel h4 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srr-mega-sub-panel h4 a {
    color: #f15a00 !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.srr-mega-sub-panel h4 a:hover { color: #d94e00 !important; }

.srr-mega-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.srr-mega-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #444 !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    border: 1px solid transparent;
}

a.srr-mega-sub-item:hover {
    background: #fff8f3;
    color: #f15a00 !important;
    border-color: #fde0cc;
}

.srr-mega-sub-item.srr-mega-sub-empty {
    color: #999 !important;
    cursor: default;
}

span.srr-mega-sub-item.srr-mega-sub-empty span {
    color: #999 !important;
}

.srr-mega-sub-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
    padding: 3px;
}

.srr-mega-sub-item span {
    flex: 1;
    line-height: 1.3;
}

.srr-mega-sub-count {
    background: #f0f0f0;
    color: #f15a00 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

a.srr-mega-sub-item:hover .srr-mega-sub-count {
    background: #f15a00;
    color: #fff !important;
}

/* Mega menu scrollbars */
.srr-mega-cats::-webkit-scrollbar,
.srr-mega-subs::-webkit-scrollbar {
    width: 4px;
}

.srr-mega-cats::-webkit-scrollbar-track,
.srr-mega-subs::-webkit-scrollbar-track {
    background: transparent;
}

.srr-mega-cats::-webkit-scrollbar-thumb,
.srr-mega-subs::-webkit-scrollbar-thumb {
    background: #f15a00;
    border-radius: 4px;
}

.srr-mega-cats::-webkit-scrollbar-thumb:hover,
.srr-mega-subs::-webkit-scrollbar-thumb:hover {
    background: #ff7b33;
}

.srr-mega-cats,
.srr-mega-subs {
    scrollbar-width: thin;
    scrollbar-color: #f15a00 transparent;
}

@media (max-width: 768px) {
    .srr-megamenu { display: none !important; }
}

/* ========================================
   FLOATING FITMENT BUTTON + PANEL
   ======================================== */

.srr-float-fit-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #f15a00;
    color: #fff;
    padding: 14px 12px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: -3px 3px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    writing-mode: horizontal-tb;
    animation: srr-btn-pulse 3s ease-in-out infinite, srr-btn-peek 8s ease-in-out infinite;
}

.srr-float-fit-btn:hover {
    padding-right: 18px;
    background: #d94e00;
    animation: none;
}

@keyframes srr-btn-pulse {
    0%, 100% { box-shadow: -3px 3px 12px rgba(0,0,0,0.25); }
    50% { box-shadow: -3px 3px 20px rgba(241,90,0,0.5), 0 0 15px rgba(241,90,0,0.3); }
}

@keyframes srr-btn-peek {
    0%, 85%, 100% { transform: translateY(-50%) translateX(0); }
    90% { transform: translateY(-50%) translateX(-8px); }
    95% { transform: translateY(-50%) translateX(0); }
}

.srr-float-fit-btn span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.srr-float-fit-btn.srr-float-hidden {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.srr-float-fit-panel {
    position: fixed;
    right: -420px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    transition: right 0.35s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.4);
}

.srr-float-fit-panel.srr-float-open {
    right: 0;
}

.srr-float-fit-panel .srr-fitment-finder {
    padding: 0;
    border-radius: 0;
}

.srr-float-fit-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
    transition: color 0.2s;
}

.srr-float-fit-close:hover { color: #fff; }

.srr-float-fit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.srr-float-fit-overlay.srr-float-open {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   INQUIRE NOW BUTTON + MODAL
   ======================================== */

.srr-inquire-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    background: #f15a00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(241, 90, 0, 0.35);
    animation: srr-inq-pulse 2.5s ease-in-out infinite;
}

.srr-inquire-btn:hover {
    background: #d94e00;
    color: #fff;
    box-shadow: 0 6px 20px rgba(241, 90, 0, 0.5);
    transform: translateY(-1px);
    animation: none;
}

@keyframes srr-inq-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(241, 90, 0, 0.35); }
    50% { box-shadow: 0 4px 25px rgba(241, 90, 0, 0.55); }
}

.srr-inquiry-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.srr-inquiry-overlay.srr-inquiry-open {
    opacity: 1;
    pointer-events: auto;
}

.srr-inquiry-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.srr-inquiry-modal.srr-inquiry-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.srr-inquiry-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.srr-inquiry-close:hover { color: #333; }

.srr-inquiry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.srr-inquiry-product {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.srr-inquiry-product-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.srr-inquiry-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.srr-inquiry-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.srr-inquiry-product-info strong {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.3;
}

.srr-inquiry-product-info span {
    font-size: 12px;
    color: #888;
}

.srr-inquiry-field {
    margin-bottom: 14px;
}

.srr-inquiry-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.srr-inquiry-field input,
.srr-inquiry-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.srr-inquiry-field input:focus,
.srr-inquiry-field textarea:focus {
    border-color: #f15a00;
    outline: none;
}

.srr-inquiry-submit {
    width: 100%;
    padding: 14px;
    background: #f15a00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.srr-inquiry-submit:hover { background: #d94e00; }
.srr-inquiry-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.srr-inq-success {
    margin-top: 12px;
    padding: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.srr-inq-error {
    margin-top: 12px;
    padding: 10px;
    background: #fbe9e7;
    color: #c62828;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .srr-fit-selects { flex-direction: column; }
    .srr-fit-selects select { min-width: 100%; }
    .srr-fit-grid { grid-template-columns: repeat(2, 1fr); }
    .srr-float-fit-panel { width: 100%; right: -100%; }
    .srr-float-fit-btn span { display: none; }
    .srr-float-fit-btn { padding: 10px; }
    .srr-inquiry-modal { padding: 20px; }
}
