/**
 * Schmodel Homepage Styles - BLACK BACKGROUND
 */

/* ================================
   Page Body - No Header, Black BG
   ================================ */
html, body.schmodel-homepage-body {
    background-color: #000 !important;
    margin: 0;
    padding: 0;
    width: 100% !important;
}

body.schmodel-homepage-body #site-header,
body.schmodel-homepage-body .site-header,
body.schmodel-homepage-body header.header,
body.schmodel-homepage-body .header-wrapper,
body.schmodel-homepage-body .site-footer,
body.schmodel-homepage-body #site-footer {
    display: none !important;
}

/* ================================
   Homepage Layout
   ================================ */
.schmodel-homepage {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    min-height: 100vh;
    background: #000;
    color: #fff;
    box-sizing: border-box;
}

/* ================================
   Logo - No link, centered
   ================================ */
.schmodel-homepage__logo {
    text-align: center;
    margin-bottom: 40px;
}

.schmodel-homepage__logo img {
    height: auto;
    display: inline-block;
}

/* ================================
   Hero Section
   ================================ */
.schmodel-homepage__hero {
    text-align: center;
    padding: 20px 20px 60px;
    width: 100%;
    box-sizing: border-box;
}

.schmodel-hero__title {
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 20px;
    color: #fff;
}

.schmodel-hero__line1,
.schmodel-hero__line2 {
    display: block;
}

/* ================================
   Search Widget
   ================================ */
.schmodel-homepage__search-wrapper {
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.schmodel-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.schmodel-search__input-wrapper {
    position: relative;
    width: 100%;
}

/* Input and Button - SAME HEIGHT, SAME GREY BACKGROUND */
.schmodel-search__input,
.schmodel-search__products-link {
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    background: #444 !important;
    color: #fff !important;
}

.schmodel-search__input {
    padding: 0 50px 0 20px;
    border: 1px solid #555;
    line-height: 1;
}

.schmodel-search__input:focus {
    border-color: #888;
    background: #555 !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.schmodel-search__input::placeholder {
    color: #aaa;
}

.schmodel-search__icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.schmodel-search__icon--default {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') no-repeat center;
    background-size: contain;
}

/* Search by Products Button - Full width, same grey background */
.schmodel-search__products-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #555;
}

.schmodel-search__products-link:hover {
    background: #555 !important;
    color: #fff !important;
    text-decoration: none;
}

/* Search Results Dropdown - DARK THEME */
.schmodel-search__results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #444;
    border: 1px solid #555;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.schmodel-search__results.is-visible {
    display: block;
}

.schmodel-search__result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.15s;
    border-bottom: 1px solid #555;
}

.schmodel-search__result-item:last-child {
    border-bottom: none;
}

.schmodel-search__result-item:hover,
.schmodel-search__result-item.is-active {
    background-color: #555;
}

.schmodel-search__result-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.schmodel-search__result-name {
    font-weight: 500;
    color: #fff;
}

.schmodel-search__result-handle {
    color: #aaa;
    font-size: 0.85rem;
    margin-left: auto;
}

.schmodel-search__no-results {
    padding: 20px;
    text-align: center;
    color: #aaa;
}

/* ================================
   Vendor Grid/Carousel Section
   ================================ */
.schmodel-grid-section {
    padding: 20px 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.schmodel-grid__title {
    text-align: center;
    font-weight: 500;
    margin: 0 0 30px;
    color: #fff;
}

.schmodel-grid__empty {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* Grid Container - with padding for arrows */
.schmodel-grid-container {
    position: relative;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.schmodel-grid-container.is-carousel {
    padding: 0 40px;
}

/* Carousel Arrows - Subtle dark squares OUTSIDE images */
.schmodel-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 50px;
    background: rgba(50, 50, 50, 0.6);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.schmodel-carousel__arrow:hover {
    background: rgba(70, 70, 70, 0.8);
    color: rgba(255, 255, 255, 0.9);
    outline: none !important;
    box-shadow: none !important;
}

.schmodel-carousel__arrow:focus,
.schmodel-carousel__arrow:active,
.schmodel-carousel__arrow:focus-visible {
    background: rgba(50, 50, 50, 0.6);
    color: rgba(255, 255, 255, 0.7);
    outline: none !important;
    box-shadow: none !important;
}

.schmodel-carousel__arrow--prev {
    left: 0;
}

.schmodel-carousel__arrow--next {
    right: 0;
}

/* Hide arrows until carousel initializes */
.schmodel-grid-container:not(.tns-initialized) .schmodel-carousel__arrow {
    display: none;
}

/* Vendor Items - Grid Layout */
.schmodel-vendor-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    justify-content: center;
}

.schmodel-vendor-grid .schmodel-vendor-item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .schmodel-vendor-grid .schmodel-vendor-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .schmodel-vendor-grid .schmodel-vendor-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Vendor Items - Carousel Layout */
.schmodel-vendor-carousel {
    opacity: 0;
    transition: opacity 0.3s;
}

.schmodel-vendor-carousel.tns-slider {
    opacity: 1;
}

.schmodel-vendor-carousel .schmodel-vendor-item {
    padding: 0 8px;
}

/* Vendor Item Card - Portrait aspect ratio (3:4) */
.schmodel-vendor-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.schmodel-vendor-item__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schmodel-vendor-item__link:hover .schmodel-vendor-item__image {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.schmodel-vendor-item__name {
    margin: 10px 0 0;
    font-weight: 400;
    color: #fff;
}

/* ================================
   Image Borders (Optional)
   ================================ */
.schmodel-grid-section.has-image-borders .schmodel-vendor-item__image {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ================================
   Tiny Slider - SMOOTH EASING
   ================================ */
.tns-outer {
    position: relative;
    width: 100%;
}

.tns-ovh {
    overflow: hidden;
}

/* Force smooth transitions on the slider track */
.schmodel-vendor-carousel.tns-slider {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tns-inner {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Draggable cursor */
.schmodel-vendor-carousel {
    cursor: grab;
}

.schmodel-vendor-carousel:active {
    cursor: grabbing;
}

/* ================================
   Footer
   ================================ */
.schmodel-homepage__footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.schmodel-homepage__footer-links {
    margin: 0 0 10px;
}

.schmodel-homepage__footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 5px;
}

.schmodel-homepage__footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.schmodel-homepage__copyright {
    color: #666;
    margin: 0;
}

/* Footer - Mobile responsive */
@media (max-width: 767px) {
    .schmodel-homepage__footer {
        padding: 20px 10px;
        margin-top: 20px;
    }
    
    .schmodel-homepage__footer-links {
        font-size: 12px;
        line-height: 1.8;
    }
    
    .schmodel-homepage__footer-links a {
        margin: 0 3px;
    }
    
    .schmodel-homepage__copyright {
        font-size: 11px;
    }
}
