/*
Theme Name: Planty
Theme URI: https://planty.themerex.net/
Description: Planty is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.18.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: planty
*/
/* TABLE OF CONTENTS:

1. Reset tags and predefined classes
2+ See in the active skin styles

-------------------------------------------------------------- */
/* 1. Reset tags
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, video, audio,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, input, textarea, button,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, address, section {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  font-weight: inherit;
  font-style: inherit;
  outline: 0;
  -ms-word-wrap: break-word;
  word-wrap: break-word;
}

applet, object, iframe, video, audio,
fieldset, form, label, legend, input, textarea, button,
table, caption, tbody, tfoot, thead, tr, th, td {
  border: 0;
}

html {
  font-size: 100%;
  /*62.5%;*/
                	          		/* Corrects text resizing oddly in IE6/7 when body font-size is set using em units
									   http://clagnut.com/blog/348/#c790 */
  -webkit-text-size-adjust: 100%;
  /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
  -ms-text-size-adjust: 100%;
                            	/* www.456bereastreet.com/archive/201012/
									   controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html:not(.edit-post-visual-editor) {
  height: 100%;
  overflow-y: scroll !important;
  overflow-x: hidden;
}

html:not(.edit-post-visual-editor),
body:not(.edit-post-visual-editor) {
  margin: 0;
  padding: 0;
  width: 100%;
}

div.ui-widget,
div.ui-widget .ui-widget,
div.ui-widget .ui-widget-header,
div.ui-widget .ui-widget-content,
div.ui-accordion .ui-accordion-header,
div.ui-widget button,
div.ui-widget input,
div.ui-widget select,
div.ui-widget textarea,
div.ui-state-default,
div.ui-widget-content .ui-state-default,
div.ui-widget-header .ui-state-default {
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
}

div.ui-widget,
div.ui-widget .ui-widget,
div.ui-widget .ui-widget-header,
div.ui-widget .ui-widget-content,
div.ui-accordion .ui-accordion-header,
div.ui-state-default,
div.ui-widget-content .ui-state-default,
div.ui-widget-header .ui-state-default {
  color: inherit;
  background: none;
  border-style: none;
  -webkit-border-radius: 0;
  -ms-border-radius: 0;
  border-radius: 0;
}

div.ui-datepicker {
  background-color: #fff;
}

div.ui-accordion .ui-accordion-header {
  padding: 0;
}

div.ui-accordion .ui-accordion-header-icon {
  display: none;
}

div.ui-tabs,
div.ui-tabs .ui-tabs-panel,
div.ui-tabs .ui-tabs-nav {
  padding: 0;
}

div.ui-tabs .ui-tabs-nav li {
  float: none;
  margin: 0;
}

div.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
  float: none;
}

/* Predefined classes for users
-------------------------------------------------------------- */
/* Round object corners */
.rounded_none {
  -webkit-border-radius: 0;
  -ms-border-radius: 0;
  border-radius: 0;
}

.rounded_tiny {
  -webkit-border-radius: 4px;
  -ms-border-radius: 4px;
  border-radius: 4px;
}

.rounded_small {
  -webkit-border-radius: 6px;
  -ms-border-radius: 6px;
  border-radius: 6px;
}

.rounded_medium {
  -webkit-border-radius: 10px;
  -ms-border-radius: 10px;
  border-radius: 10px;
}

.rounded_large {
  -webkit-border-radius: 15px;
  -ms-border-radius: 15px;
  border-radius: 15px;
}

.rounded {
  -webkit-border-radius: 50%;
  -ms-border-radius: 50%;
  border-radius: 50%;
}

/* Overflow hidden */
.overflow_hidden {
  overflow: hidden !important;
}

.overflow_x_hidden {
  overflow-x: hidden !important;
}

.overflow_y_hidden {
  overflow-y: hidden !important;
}

/* --- Results layout sidebar back button --- */
.results-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .results-two-col { grid-template-columns: 1fr; }
}

/* Aside */
#categories-aside {
  align-self: start;
  position: sticky;
  top: 10px;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 12px;
}
#categories-aside .aside-header {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
#back-to-lookup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem .8rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #063751;
  background: #063751;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
#back-to-lookup:hover { background: #4a7d98; border-color: #4a7d98; }
#categories-aside .aside-title {
  font-weight: 700;
  color: #063751;
  font-size: 0.95rem;
}

/* Vertical category list */
#category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#category-list .cat-btn {
  width: 100%;
  text-align: left;
  padding: .55rem .7rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  font-size: .9rem;
  transition: .15s ease;
}
#category-list .cat-btn:hover { background: #f7fbff; }
#category-list .cat-btn.active {
  background: #063751;
  border-color: #063751;
  color: #fff;
}

/* Right grid still uses #results-grid from your existing code */



/*OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIILLLLLLLLLLLLLLLLLLLLLLLLLLLL */
const style = document.createElement('style');
style.textContent = `
    /* Base Styles */
/* --- Results layout sidebar back button --- */
.results-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .results-two-col { grid-template-columns: 1fr; }
}

/* Aside */
#categories-aside {
  align-self: start;
  position: sticky;
  top: 10px;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  padding: 12px;
}
#categories-aside .aside-header {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
#back-to-lookup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem .8rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #063751;
  background: #063751;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
#back-to-lookup:hover { background: #4a7d98; border-color: #4a7d98; }
#categories-aside .aside-title {
  font-weight: 700;
  color: #063751;
  font-size: 0.95rem;
}

/* Vertical category list */
#category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#category-list .cat-btn {
  width: 100%;
  text-align: left;
  padding: .55rem .7rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  font-size: .9rem;
  transition: .15s ease;
}
#category-list .cat-btn:hover { background: #f7fbff; }
#category-list .cat-btn.active {
  background: #063751;
  border-color: #063751;
  color: #fff;
}

/* Right grid still uses #results-grid from your existing code */

    .form-step {
        margin-bottom: 1.5rem;
        position: relative;
        max-width: 800px;
        margin: 0 auto;
        padding: 1rem;
        border: 2px solid #000;
    }

    /* Grid Layout for Main Sections */
    .car-info {
        grid-area: car-info;
        text-align: center;
        margin-bottom: 2rem;
    }

    .engine-capacity {
        grid-area: engine;
        text-align: center;
        margin-bottom: 2rem;
    }

    .category-list {
        grid-area: categories;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    /* Make the first item span the entire row on desktop */
    .category-list > *:first-child {
        grid-column: 1 / span 2;
    }
    .category-list > *:last-child {
        margin-bottom: 2rem;
    }

    /* Change to vertical list on mobile devices with no gap */
    @media (max-width: 768px) {
        .category-list {
            display: flex;
            flex-direction: column;
            grid-template-columns: unset;
            gap: 1;
        }
        
        /* Reset the span for mobile view since flex doesn't need it */
        .category-list > *:first-child {
            grid-column: auto;
        }
    }

    /* Section Headers */
    h5 {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

    /* Input and Dropdown Consistency */
    #make-search, select, .category-btn {
        width: 100%;
        padding: 0.5rem 0.8rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.25rem;
        background-color: white;
        font-size: 0.8rem;
        color: #1a202c;
        transition: all 0.2s ease;
        appearance: none;
    }

    /* Search Dropdown */
    #make-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.25rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        margin-top: 0.25rem;
        padding: 0.5rem;
    }

    /* Make Options */
   .make-option {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    border-radius: 0.25rem !important;
	}

	.make-logo {
		width: 20px !important;
		height: 20px !important;
		margin-right: 0.75rem !important;
		object-fit: contain !important;
	}

	.make-name {
		flex-grow: 1 !important;
		font-size: 0.875rem !important;
		color: #1a202c !important;
	}


    /* Category Buttons */
    .category-btn {
        background-color: #063751;
        color: white;
        font-weight: 500;
        text-align: center;
        position: relative;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .category-btn.engine {
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .category-btn::after {
        content: '▼';
        position: absolute;
        right: 0.8rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7em;
        color: white;
    }

    .category-btn.active::after {
        content: '▲';
    }
		.category-btn:hover {
				background-color: #4a7d98;
			}

    /* Model Options */
    .model-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 1rem;
    }

    .model-option {
        background-color: #063751;
        color: white;
        border: none;
        padding: 0.75em 1.5em;
        font-size: 1rem;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s ease-in-out;
    }

    .model-option:hover {
        background-color: #4a7d98;
    }

    .model-option img.car-logo {
        height: 20px;
        margin-left: 8px;
        vertical-align: middle;
    }

    /* Car Type Options */
    .car-type-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 1rem;
    }

    .car-type-option {
        background-color: #063751;
        color: white;
        border: none;
        padding: 0.75em 1.5em;
        font-size: 1rem;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s ease-in-out;
    }

    .car-type-option:hover {
        background-color: #4a7d98;
    }

    /* Products Container */
    .products-container {
        padding: 0.5rem;
        background-color: #f8fafc;
        border-radius: 0.25rem;
        margin: 0.5rem 0;
        border: 1px solid #063751;
    }

    /* Product List Grid */
    .products-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .products-list li {
        padding: 0.5rem;
        background: white;
        border-radius: 0.25rem;
        border: 1px solid #e2e8f0;
        font-size: 0.8rem;
        text-align: center;
    }

    /* Category Separator */
    .category-separator {
        grid-column: 1 / -1;
        text-align: center;
        margin: 8px 0;
    }

    .separator-line {
        display: none;  /* Explicitly keeping separator line hidden */
    }

    .separator-text {
        color: #64748b;
        font-size: 0.75rem;
        padding: 0 8px;
        font-weight: 500;
        display: inline-block;
    }

    /* View Product Button */
    .view-product-button {
        display: inline-block;
        padding: 0.4rem 0.8rem;
        border: 2px solid #063751;
        color: #063751;
        background: transparent;
        border-radius: 0.25rem;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.8rem;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
   

    /* Error and Loading States */
    .error {
        padding: 0.5rem;
        background-color: #fee2e2;
        border: 1px solid #fca5a5;
        color: #dc2626;
        border-radius: 0.25rem;
        margin: 0.5rem 0;
        font-size: 0.8rem;
    }

    .loading {
        padding: 0.5rem;
        text-align: center;
        color: #64748b;
        font-style: italic;
        font-size: 0.8rem;
    }
`;
document.head.appendChild(style);
