/* ==========================================================================
   Theme 2 - "STYLI" storefront skin (modelled on stylishop.com/ae/en)
   Loaded only when the admin selects Theme 2 in Settings > Storefront Theme.
   Presentation only: existing markup, scripts, sliders and admin-managed
   content are untouched.
   ========================================================================== */

html.theme-styli {
    --st-dark: var(--theme-primary, #1b1b1b);
    --st-text: #2d2d2d;
    --st-muted: #6b6b6b;
    --st-band: #f1f1f1;
    --st-soft: #f9f9f9;
    --st-line: #e5e5e5;
    --st-input: #d8d8d8;
    --st-accent: var(--theme-accent, #189044);
    --st-width: 1250px;
    --st-font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

html.theme-styli body {
    font-family: var(--st-font);
    color: var(--st-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

html.theme-styli button,
html.theme-styli input,
html.theme-styli select,
html.theme-styli textarea {
    font-family: var(--st-font);
}

/* ---------- 1. Top USP bar (44px, near-black) ---------- */
html.theme-styli .top-banner {
    background-color: var(--st-dark);
    color: #fff;
    padding: 0 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
    letter-spacing: 0.5px;
}

html.theme-styli .top-banner .banner-content {
    width: 100%;
    max-width: var(--st-width);
}

html.theme-styli .banner-msg {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

html.theme-styli .banner-msg strong,
html.theme-styli .lang-active {
    color: #fff;
    font-weight: 700;
}

html.theme-styli .language-globe-selector {
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 4px 8px;
}

html.theme-styli .top-usp,
html.theme-styli .top-country {
    display: none;
}

@media (min-width: 769px) {
    html.theme-styli .top-banner .banner-center {
        display: none;
    }
    html.theme-styli .top-usp {
        display: flex;
        align-items: center;
        gap: 28px;
        margin: 0;
        padding: 0;
        list-style: none;
        order: 1;
    }
    html.theme-styli .top-usp li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }
    html.theme-styli .top-country {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        order: 2;
        font-size: 15px;
        font-weight: 400;
        white-space: nowrap;
        position: relative;
    }
    html.theme-styli .top-country-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 0;
        background: transparent;
        border: 0;
        color: inherit;
        font: inherit;
        cursor: pointer;
    }
    html.theme-styli .top-country-btn[hidden],
    html.theme-styli .top-country-flag-img[hidden],
    html.theme-styli .top-country-flag-svg[hidden] {
        display: none;
    }
    html.theme-styli .top-country-flag-img {
        object-fit: cover;
    }
    html.theme-styli .top-country-caret {
        transition: transform .2s;
    }
    html.theme-styli .top-country.open .top-country-caret {
        transform: rotate(180deg);
    }
    html.theme-styli .top-country-menu {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 3000;
        min-width: 220px;
        margin: 6px 0 0;
        padding: 6px 0;
        list-style: none;
        background: #111;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 6px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    }
    html.theme-styli .top-country-menu[hidden] {
        display: none;
    }
    html.theme-styli .top-country-menu li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 16px;
        cursor: pointer;
    }
    html.theme-styli .top-country-menu li:hover {
        background: rgba(255, 255, 255, .1);
    }
    html.theme-styli .top-country-menu li[aria-selected="true"] {
        font-weight: 700;
    }
    html.theme-styli .top-banner .country-flag-top {
        order: 3;
        margin-left: 24px;
    }
    html.theme-styli .language-globe-selector .globe-icon {
        display: none;
    }
    html.theme-styli .language-globe-selector .lang-current-label {
        font-size: 15px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 1100px) {
    html.theme-styli .top-usp {
        gap: 16px;
    }
    html.theme-styli .top-usp li {
        font-size: 13px;
    }
    html.theme-styli .top-country {
        font-size: 13px;
    }
}

/* ---------- 2. Header band ---------- */
html.theme-styli .header {
    background-color: var(--st-band);
    border-bottom: 0;
}

html.theme-styli .header-main-row {
    max-width: var(--st-width);
    padding: 0;
    min-height: 56px;
    gap: 0;
}

html.theme-styli .logo {
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0 8px 0 0;
    padding: 0 16px 0 12px;
    background: var(--st-soft);
}

html.theme-styli .logo:hover {
    transform: none;
}

html.theme-styli .logo a {
    font-family: var(--st-font);
    font-style: normal;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0;
    color: var(--st-dark);
    display: inline-flex;
    align-items: center;
}

/* Text tabs: image tabs are replaced by uppercase labels */
html.theme-styli .header-nav {
    gap: 0;
    align-self: stretch;
    align-items: stretch;
}

html.theme-styli .nav-tab {
    padding: 0 14px;
    color: var(--st-text);
    font-family: var(--st-font);
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.48px !important;
    text-transform: uppercase;
    opacity: 1;
    transition: background-color 0.15s ease;
}

html.theme-styli .nav-tab:hover {
    opacity: 1;
    background: var(--st-soft);
}

html.theme-styli .nav-tab-active {
    background: var(--st-soft);
}

html.theme-styli .nav-tab img {
    display: none;
}

html.theme-styli .nav-tab[data-tab]:not([data-tab="all-products"])::after {
    content: attr(data-tab);
}

html.theme-styli .nav-tab[data-tab="outlet"]::after {
    color: var(--st-accent);
}

/* Search + icons */
html.theme-styli .header-right-section {
    gap: 14px;
    padding-left: 12px;
}

html.theme-styli .search-bar {
    width: 300px;
    background: #fff;
    border-radius: 0;
}

html.theme-styli .search-bar input {
    height: 42px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232d2d2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
    border: 1px solid var(--st-input);
    border-radius: 2px;
    padding: 0 14px 0 44px;
    font-size: 14px;
    color: var(--st-text);
    box-shadow: none;
}

html.theme-styli .search-bar input::placeholder {
    color: #6b6b6b;
}

html.theme-styli .search-bar input:focus {
    border-color: var(--st-dark);
    background-color: #fff;
    box-shadow: none;
}

html.theme-styli .header-icons {
    gap: 6px;
}

html.theme-styli .icon-btn {
    color: var(--st-text);
    font-size: 14px;
}

html.theme-styli .icon-btn:hover {
    color: var(--st-dark);
}

html.theme-styli .icon-btn > svg:first-child {
    width: 24px;
    height: 24px;
}

html.theme-styli .dropdown-chevron {
    display: none;
}

html.theme-styli .icon-count {
    background-color: var(--st-dark);
    font-family: var(--st-font);
}

html.theme-styli .user-dropdown {
    border-radius: 0;
    border-color: var(--st-line);
}

html.theme-styli .user-dropdown-login {
    background: var(--st-dark);
    border-radius: 0;
}

html.theme-styli .user-dropdown-login:hover {
    background: var(--st-text);
}

/* ---------- 3. Category link row (mega menus keep working) ---------- */
html.theme-styli .secondary-nav {
    background: var(--st-soft);
    border-bottom: 1px solid var(--st-line);
}

html.theme-styli .secondary-nav-container {
    max-width: var(--st-width);
    padding: 0;
    gap: 0;
}

html.theme-styli .category-dropdown {
    font-family: var(--st-font);
    color: var(--st-text);
    letter-spacing: 0.64px;
}

html.theme-styli .category-links {
    gap: 24px;
}

html.theme-styli .category-links a {
    font-family: var(--st-font);
    color: var(--st-text);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.64px;
    padding: 16px 0;
}

html.theme-styli .category-links a:hover {
    opacity: 1;
    color: var(--st-dark);
    text-decoration: underline;
    text-underline-offset: 6px;
}

html.theme-styli .category-links .sale-link {
    color: var(--st-text);
    font-weight: 600;
}

html.theme-styli .mega-col h4 {
    font-family: var(--st-font);
    letter-spacing: 0.64px;
}

html.theme-styli .mega-col ul li a {
    font-family: var(--st-font);
}

/* ---------- 4. Hero slider: contained banner, white pill CTA ---------- */
html.theme-styli .hero-slider {
    width: calc(100% - 32px);
    max-width: var(--st-width);
    margin: 10px auto 0;
    height: auto;
    max-height: none;
    aspect-ratio: 1250 / 386;
    background: var(--st-band);
}

html.theme-styli .hero-slide img {
    filter: none;
}

html.theme-styli .hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
    z-index: 1;
}

html.theme-styli .hero-content {
    left: 0;
    right: 0;
    top: auto;
    bottom: 9%;
    width: max-content;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
}

html.theme-styli .hero-content h1 {
    font-family: var(--st-font);
    font-size: clamp(22px, 3.8vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

html.theme-styli .hero-content p {
    font-size: clamp(13px, 1.6vw, 20px);
    font-weight: 600;
    margin-bottom: 16px;
}

html.theme-styli .hero-content .btn-primary {
    background: #fff;
    color: #000;
    border-radius: 999px;
    padding: 12px 46px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

html.theme-styli .hero-content .btn-primary:hover {
    background: var(--st-dark);
    color: #fff;
    transform: none;
}

html.theme-styli .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

html.theme-styli .slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.theme-styli .slider-prev { left: 14px; }
html.theme-styli .slider-next { right: 14px; }

html.theme-styli .slider-dots {
    bottom: 10px;
    gap: 6px;
}

html.theme-styli .slider-dot {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
}

html.theme-styli .slider-dot:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.85);
}

html.theme-styli .slider-dot.active {
    width: 22px;
    border-radius: 2px;
    background: #fff;
}

/* ---------- 5. Category tiles ---------- */
html.theme-styli .category-grid-section {
    padding: 24px 0 4px;
    border-bottom: 0;
}

html.theme-styli .category-grid-container {
    max-width: var(--st-width);
    padding: 0 16px;
}

html.theme-styli .category-image {
    border-radius: 6px;
    background-color: var(--st-band);
}

html.theme-styli .category-item:hover {
    transform: none;
}

html.theme-styli .category-label {
    font-family: var(--st-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--st-text);
    letter-spacing: 0.4px;
}

html.theme-styli .category-slider-arrow {
    width: 36px;
    height: 36px;
    box-shadow: none;
    border-color: var(--st-line);
}

/* ---------- 6. Promo banners: rounded, white pill CTA ---------- */
html.theme-styli .ad-banner-section {
    width: calc(100% - 32px);
    max-width: var(--st-width);
    margin: 14px auto 0;
    padding: 0;
    min-height: 170px;
    display: flex;
    align-items: center;
    border-radius: 12px;
}

html.theme-styli .ad-banner-content {
    width: 100%;
    max-width: none;
    padding: 24px 48px;
}

html.theme-styli .ad-title {
    font-family: var(--st-font);
    font-size: clamp(22px, 3.4vw, 46px);
    font-weight: 600;
    letter-spacing: 0;
    text-shadow: none;
}

html.theme-styli .ad-btn {
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 14px 48px;
}

html.theme-styli .ad-btn:hover {
    background: var(--st-dark);
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* ---------- 7. Product rails & cards ---------- */
html.theme-styli .products-section {
    max-width: var(--st-width);
    padding: 0 16px;
    margin: 20px auto 8px;
}

html.theme-styli .section-header {
    margin-bottom: 12px;
}

html.theme-styli .section-header h2 {
    font-family: var(--st-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    color: var(--st-text);
}

html.theme-styli .section-header h2::before {
    content: '\2726';
    margin-right: 8px;
}

html.theme-styli .view-all {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.64px;
    text-decoration: none;
    color: var(--st-text);
}

html.theme-styli .view-all:hover {
    color: var(--st-dark);
    text-decoration: underline;
}

html.theme-styli .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 12px;
    margin-bottom: 36px;
}

html.theme-styli .product-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

html.theme-styli .product-card:hover,
html.theme-styli .product-card:active {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent;
}

html.theme-styli .product-image {
    aspect-ratio: 10 / 13;
    background-color: var(--st-band);
    border-radius: 0;
}

html.theme-styli .product-image::after {
    display: none;
}

html.theme-styli .product-info {
    padding: 8px 2px 4px;
}

html.theme-styli .product-brand {
    order: 0;
    font-family: var(--st-font);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #000;
    text-transform: none;
    letter-spacing: 0.64px;
    margin-bottom: 1px;
}

html.theme-styli .product-name {
    order: 1;
    font-family: var(--st-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: var(--st-text);
    letter-spacing: 0.64px;
    height: auto;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.theme-styli .product-price {
    order: 2;
    flex-wrap: wrap;
    gap: 2px 8px;
}

html.theme-styli .current-price {
    font-size: 16px;
    font-weight: 600;
    color: #424242;
}

html.theme-styli .original-price {
    font-size: 14px;
    color: #8a8a8a;
}

html.theme-styli .discount {
    background: transparent;
    color: var(--st-accent);
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.32px;
    text-transform: uppercase;
}

/* ---------- 8. Footer: soft grey blocks ---------- */
html.theme-styli .popular-searches-section {
    background: var(--st-soft);
    border-top: 0;
}

html.theme-styli .footer {
    background-color: var(--st-soft);
    border-top: 1px solid var(--st-line);
    padding-top: 40px;
}

html.theme-styli .footer-container,
html.theme-styli .popular-searches-inner {
    max-width: var(--st-width);
    padding: 0 16px;
}

html.theme-styli .footer-columns {
    border-bottom-color: var(--st-line);
}

html.theme-styli .footer-col-heading {
    font-family: var(--st-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.64px;
    color: var(--st-text);
}

html.theme-styli .footer-col-list li a,
html.theme-styli .popular-searches-links a {
    font-family: var(--st-font);
    font-size: 14px;
    letter-spacing: 0.3px;
    color: var(--st-text);
}

html.theme-styli .footer-col-list li a:hover,
html.theme-styli .popular-searches-links a:hover {
    color: var(--st-dark);
}

html.theme-styli .footer-app-badge,
html.theme-styli .footer-social-icon {
    background: var(--st-dark);
}

html.theme-styli .footer-app-badge {
    border-radius: 6px;
}

html.theme-styli .footer-copyright {
    border-top: 1px solid var(--st-line);
}

/* ---------- 9. Responsive ---------- */
@media (min-width: 769px) {
    html.theme-styli .category-dropdown {
        margin-right: 24px;
    }
}

@media (max-width: 1280px) {
    html.theme-styli .header-main-row {
        padding: 0 12px;
    }
    html.theme-styli .secondary-nav-container {
        padding: 0 12px;
    }
    html.theme-styli .search-bar {
        width: 240px;
    }
}

@media (max-width: 1100px) {
    html.theme-styli .search-bar {
        width: 190px;
    }
    html.theme-styli .nav-tab {
        padding: 0 10px;
        font-size: 13px !important;
    }
    html.theme-styli .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    html.theme-styli .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html.theme-styli .top-banner {
        padding: 6px 12px;
        min-height: 36px;
    }
    html.theme-styli .header-main-row {
        padding: 0 8px;
        min-height: 52px;
    }
    html.theme-styli .logo {
        padding: 0 10px;
    }
    html.theme-styli .logo a {
        font-size: 22px;
    }
    html.theme-styli .search-bar {
        width: auto;
        flex: 1;
    }
    html.theme-styli .secondary-nav-container,
    html.theme-styli .category-grid-container,
    html.theme-styli .footer-container,
    html.theme-styli .popular-searches-inner {
        padding: 0 12px;
    }
    html.theme-styli .hero-slider {
        width: calc(100% - 16px);
        margin-top: 8px;
        aspect-ratio: 16 / 10;
    }
    html.theme-styli .products-section {
        padding: 0 8px;
    }
    html.theme-styli .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 8px;
    }
    html.theme-styli .product-brand,
    html.theme-styli .product-name,
    html.theme-styli .current-price {
        font-size: 14px;
    }
    html.theme-styli .ad-banner-section {
        width: calc(100% - 16px);
        min-height: 120px;
    }
    html.theme-styli .ad-banner-content {
        padding: 16px 20px;
    }
    html.theme-styli .ad-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    html.theme-styli .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
