/**
 * Univa brand — Development theme (scoped to body.theme-development)
 * Primary: #6b4182 | Dark: #0a0a0a | Accent light: #9d7ab5
 */

body.theme-development {
    --univa-plum: #6b4182;
    --univa-plum-dark: #5a3569;
    --univa-plum-deep: #4a2d58;
    --univa-plum-light: #9d7ab5;
    --univa-plum-muted: #d4c4de;
    --univa-black: #0a0a0a;
    --univa-charcoal: #141414;
    --univa-surface: #faf9fb;
    --dev-radius: 14px;
    --dev-radius-lg: 20px;
    --dev-radius-pill: 9999px;
    --dev-shadow: 0 4px 24px rgba(107, 65, 130, 0.1);
    --dev-shadow-hover: 0 14px 40px rgba(107, 65, 130, 0.18);
    --dev-header-shadow: 0 1px 0 rgba(107, 65, 130, 0.06), 0 4px 20px rgba(10, 10, 10, 0.04);
}

body.theme-development[dir="rtl"] {
    --global-font: Cairo, sans-serif;
}

body.theme-development {
    background-color: var(--univa-surface);
}

/* ── Top header — plum bar ── */
body.theme-development > section:first-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-development > section:first-of-type .layout-wrapper {
    min-height: 40px;
}

body.theme-development > section:first-of-type ul li a,
body.theme-development > section:first-of-type .lang-switch__pill,
body.theme-development > section:first-of-type .lang-switch__trigger {
    transition: opacity 0.2s ease;
}

body.theme-development > section:first-of-type ul li a:hover {
    opacity: 0.88;
}

body.theme-development .lang-switch__pill--active,
body.theme-development .lang-switch__option.is-active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* ── Main sticky header ── */
body.theme-development > section.sticky {
    box-shadow: var(--dev-header-shadow);
    backdrop-filter: blur(10px);
    background: #fff !important;
}

body.theme-development .search-border {
    border-radius: var(--dev-radius-pill) !important;
    border-color: var(--univa-plum-muted) !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(107, 65, 130, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

body.theme-development .search-border:focus-within {
    border-color: var(--univa-plum) !important;
    box-shadow: 0 0 0 3px rgba(107, 65, 130, 0.15);
}

body.theme-development .search-border input[type="search"] {
    border-radius: var(--dev-radius-pill);
}

body.theme-development .search-border input[type="search"]::placeholder {
    color: #a89bb3;
}

body.theme-development .search-btn {
    border-color: transparent !important;
}

body.theme-development .search-btn svg path {
    fill: var(--univa-plum) !important;
}

body.theme-development .custom-design-container {
    border-radius: var(--dev-radius-lg);
    overflow: hidden;
    border: 1px solid var(--univa-plum-muted);
}

body.theme-development .rev > ul > li a,
body.theme-development .open-login-modal {
    transition: transform 0.15s ease, color 0.15s ease;
}

body.theme-development .rev > ul > li a:hover,
body.theme-development .open-login-modal:hover {
    transform: translateY(-1px);
    color: var(--univa-plum) !important;
}

body.theme-development .rev > ul > li a:hover svg path,
body.theme-development .rev > ul > li a:hover svg circle {
    stroke: var(--univa-plum) !important;
}

/* ── Bottom category nav ── */
body.theme-development header.header {
    box-shadow: 0 1px 0 var(--univa-plum-muted);
    border-top-color: var(--univa-plum-muted) !important;
}

body.theme-development .group-category > div:first-child {
    border-radius: var(--dev-radius) var(--dev-radius) 0 0;
    transition: background-color 0.2s ease, filter 0.2s ease;
}

body.theme-development .group-category:hover > div:first-child {
    filter: brightness(1.05);
}

body.theme-development .category-menu-wrapper {
    border-radius: 0 0 var(--dev-radius) var(--dev-radius);
    box-shadow: var(--dev-shadow);
    border-color: var(--univa-plum-muted) !important;
}

body.theme-development .primary-bg-hover:hover {
    background-color: var(--univa-plum) !important;
    color: #fff !important;
}

/* ── Product cards ── */
body.theme-development .product-hover {
    border-color: var(--univa-plum-muted) !important;
    border-radius: var(--dev-radius-lg) !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    background: #fff;
}

body.theme-development .product-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--dev-shadow-hover);
    border-color: var(--univa-plum-light) !important;
}

body.theme-development .product-hover img {
    transition: transform 0.4s ease;
}

body.theme-development .product-hover:hover img {
    transform: scale(1.04);
}

body.theme-development .product-hover .primary-bg-color {
    background-color: var(--univa-plum) !important;
    border-radius: var(--dev-radius-pill);
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.theme-development .product-hover .semi-primary-bg-color {
    background-color: rgba(107, 65, 130, 0.12) !important;
    color: var(--univa-plum-dark) !important;
    border-radius: var(--dev-radius-pill);
    font-weight: 600;
}

body.theme-development .product-hover .hover-icon > div > a > div,
body.theme-development .product-hover .hover-icon .wishlist,
body.theme-development .product-hover .hover-icon .compare-item {
    border-radius: 50% !important;
    border-color: var(--univa-plum-muted) !important;
    box-shadow: 0 2px 10px rgba(107, 65, 130, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

body.theme-development .product-hover:hover .hover-icon > div > a > div:hover,
body.theme-development .product-hover:hover .hover-icon .wishlist:hover,
body.theme-development .product-hover:hover .hover-icon .compare-item:hover {
    transform: scale(1.08);
    background-color: var(--univa-plum) !important;
    border-color: var(--univa-plum) !important;
}

body.theme-development .product-hover:hover .hover-icon svg path {
    fill: #fff !important;
}

/* ── Footer — black + plum glow ── */
body.theme-development section.bg-gray-12 {
    background: linear-gradient(165deg, var(--univa-black) 0%, var(--univa-charcoal) 45%, #1a1220 100%) !important;
    position: relative;
    overflow: hidden;
}

body.theme-development section.bg-gray-12::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(107, 65, 130, 0.35), transparent),
        radial-gradient(ellipse 40% 30% at 90% 80%, rgba(107, 65, 130, 0.12), transparent);
    pointer-events: none;
}

body.theme-development section.bg-gray-12 footer {
    position: relative;
    z-index: 1;
}

body.theme-development section.bg-gray-12 a li {
    transition: color 0.2s ease, transform 0.15s ease;
}

body.theme-development section.bg-gray-12 a:hover li {
    color: var(--univa-plum-light) !important;
    transform: translateX(3px);
}

body.theme-development[dir="rtl"] section.bg-gray-12 a:hover li {
    transform: translateX(-3px);
}

body.theme-development section.bg-gray-12 .primary-bg-hover.hover\:text-gray-800:hover {
    background-color: var(--univa-plum) !important;
    color: #fff !important;
}

body.theme-development section.bg-gray-12 a.primary-bg-hover {
    background: rgba(107, 65, 130, 0.2) !important;
    border: 1px solid rgba(157, 122, 181, 0.3);
}

body.theme-development section.bg-gray-12 a.primary-bg-hover:hover {
    background: var(--univa-plum) !important;
    border-color: var(--univa-plum);
    transform: translateY(-2px);
}

body.theme-development .footer-bottom-bar {
    background: var(--univa-black) !important;
    border-top: 1px solid rgba(107, 65, 130, 0.25) !important;
    color: #9ca3af !important;
}

body.theme-development .footer-bottom-bar a {
    color: var(--univa-plum-light) !important;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease, color 0.2s ease;
}

body.theme-development .footer-bottom-bar a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* ── Product details ── */
body.theme-development .c-tabs-nav.d-tab {
    gap: 6px;
    border-bottom: 2px solid var(--univa-plum-muted);
    padding-bottom: 0;
}

body.theme-development .c-tabs-nav__link {
    border-radius: var(--dev-radius) var(--dev-radius) 0 0;
    padding: 10px 22px !important;
    font-weight: 500;
    color: #7c6b88 !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.theme-development .c-tabs-nav__link.is-active,
body.theme-development .c-tabs-nav__link:hover {
    color: var(--univa-plum) !important;
    background: rgba(107, 65, 130, 0.08);
    border-bottom-color: var(--univa-plum) !important;
}

body.theme-development .cart-details-page,
body.theme-development #item-add-to-cart {
    border-radius: var(--dev-radius) !important;
    font-weight: 600 !important;
    background-color: var(--univa-plum) !important;
    box-shadow: 0 4px 16px rgba(107, 65, 130, 0.35) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

body.theme-development .cart-details-page:hover,
body.theme-development #item-add-to-cart:hover {
    transform: translateY(-1px);
    background-color: var(--univa-plum-dark) !important;
    box-shadow: 0 6px 22px rgba(107, 65, 130, 0.45) !important;
}

body.theme-development .buy-now {
    border-radius: var(--dev-radius) !important;
    font-weight: 600 !important;
    border-color: var(--univa-plum) !important;
    color: var(--univa-plum) !important;
}

body.theme-development .buy-now:hover {
    background-color: var(--univa-plum) !important;
    color: #fff !important;
}

body.theme-development #item-details-section .swiper-slide img,
body.theme-development .product-image-container img {
    border-radius: var(--dev-radius-lg);
}

/* ── Buttons & badges sitewide ── */
body.theme-development .primary-bg-color {
    background-color: var(--univa-plum) !important;
    border-radius: var(--dev-radius-pill);
}

body.theme-development .primary-text-color {
    color: var(--univa-plum-dark) !important;
}

body.theme-development .text-orange-500,
body.theme-development .hover\:text-orange-500:hover {
    color: var(--univa-plum) !important;
}

/* ── Swiper / sliders ── */
body.theme-development .swiper-button-next,
body.theme-development .swiper-button-prev {
    background: #fff;
    border-radius: 50%;
    width: 42px !important;
    height: 42px !important;
    box-shadow: var(--dev-shadow);
    border: 1px solid var(--univa-plum-muted);
}

body.theme-development .swiper-button-next::after,
body.theme-development .swiper-button-prev::after {
    font-size: 15px !important;
    color: var(--univa-plum);
    font-weight: 700;
}

body.theme-development .swiper-pagination-bullet-active {
    background: var(--univa-plum) !important;
}

/* ── Pagination ── */
body.theme-development .pagination .active,
body.theme-development .page-item.active .page-link {
    background-color: var(--univa-plum) !important;
    border-color: var(--univa-plum) !important;
}

/* ── Trust badges (iconbox) ── */
body.theme-development .iconbox-fa-wrap {
    width: 56px;
    height: 56px;
    background: rgba(107, 65, 130, 0.12);
}

body.theme-development .iconbox-fa-icon {
    font-size: 24px;
    color: var(--univa-plum, #6b4182);
}

/* ── Mobile ── */
@media (max-width: 767px) {
    body.theme-development .search-border {
        border-radius: var(--dev-radius) !important;
    }

    body.theme-development .product-hover:hover {
        transform: none;
    }

    body.theme-development > section.sticky {
        background: var(--univa-charcoal) !important;
    }
}
