@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* =============================================================
   Imionki — PrestaShop 9 Classic child-theme "Dark Premium"
   Cosmetic override layer loaded on top of Classic compiled CSS.
   ============================================================= */

:root {
    --navy: #1A1A2E;
    --navy-2: #16213E;
    --card: #222244;
    --gold: #D4A843;
    --gold-2: #E8D5B5;
    --red: #C0392B;
    --text: #F5F5F5;
    --body: #4a4a55;

    --gold-dark: #b58c2f;
    --radius: 14px;
    --radius-lg: 16px;
    --shadow: 0 6px 20px rgba(26, 26, 46, 0.10);
    --shadow-hover: 0 14px 34px rgba(26, 26, 46, 0.20);
    --heading-font: 'Baloo 2', 'Segoe UI', sans-serif;
    --body-font: 'Inter', 'Segoe UI', sans-serif;
}

/* ---------- Typography ---------- */
body {
    font-family: var(--body-font);
    color: var(--body);
    letter-spacing: 0.1px;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.2px;
}
a {
    color: var(--navy);
    transition: color 0.2s ease;
}
a:hover,
a:focus {
    color: var(--gold-dark);
    text-decoration: none;
}

/* ---------- Top bar & Header ---------- */
.header-top {
    background: var(--navy) !important;
}
.header-nav {
    background: var(--navy) !important;
    border-bottom: 1px solid rgba(212, 168, 67, 0.25);
}
.header-top a,
.header-nav a,
.header-top .material-icons,
.header-nav .material-icons,
#_desktop_user_info a,
#_desktop_cart a,
.header-top .expand-more,
#header .header-top .position-static {
    color: var(--text) !important;
}
.header-top a:hover,
.header-nav a:hover,
#_desktop_user_info a:hover,
#_desktop_cart a:hover {
    color: var(--gold) !important;
}
#header {
    box-shadow: 0 3px 14px rgba(26, 26, 46, 0.18);
}

/* ---------- Main navigation ---------- */
#_desktop_top_menu,
.header .menu {
    background: transparent;
}
#_desktop_top_menu .top-menu a.dropdown-item,
.header .menu > ul > li > a,
.top-menu .sub-menu a.dropdown-item {
    color: var(--text) !important;
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}
.header .menu > ul > li > a:hover,
#_desktop_top_menu .top-menu a.dropdown-item:hover,
.header .menu > ul > li:hover > a {
    color: var(--gold) !important;
}

/* Mega-menu / dropdown */
.top-menu .sub-menu,
.top-menu .popover,
.js-top-menu .sub-menu {
    background: var(--card) !important;
    border: 1px solid rgba(212, 168, 67, 0.3) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 14px 6px;
}
.top-menu .sub-menu a,
.top-menu .popover a {
    color: var(--text) !important;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.top-menu .sub-menu a:hover,
.top-menu .popover a:hover {
    background: rgba(212, 168, 67, 0.15) !important;
    color: var(--gold) !important;
}

/* ---------- Name-search HERO widget ---------- */
.imionki-search {
    text-align: center;
    margin: 32px auto;
    max-width: 640px;
    position: relative;
}
.imionki-search__input {
    width: 100%;
    padding: 18px 26px;
    font-size: 1.25rem;
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--navy);
    background: #ffffff;
    border: 3px solid var(--gold);
    border-radius: 999px;
    box-shadow: 0 8px 26px rgba(26, 26, 46, 0.12);
    text-align: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.imionki-search__input::placeholder {
    color: #9a8a5c;
    font-weight: 500;
    opacity: 1;
}
.imionki-search__input:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.28), 0 8px 26px rgba(26, 26, 46, 0.16);
}
.imionki-search__results {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 40;
    margin-top: 10px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    text-align: left;
}
.imionki-search__item {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    font-weight: 500;
    border-bottom: 1px solid #f0f0f2;
    transition: background 0.15s ease, color 0.15s ease;
}
.imionki-search__item:last-child {
    border-bottom: none;
}
.imionki-search__item:hover {
    background: var(--navy);
    color: #ffffff;
}

/* ---------- Homepage sections ---------- */
h2.h2,
.featured-products .h2,
.products-section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--navy);
    margin: 10px auto 34px;
    position: relative;
    padding-bottom: 14px;
}
h2.h2::after,
.featured-products .h2::after,
.products-section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    margin: 12px auto 0;
}
.featured-products,
.page-home .products-section {
    padding: 56px 0;
}
.featured-products:nth-of-type(even),
.page-home > section:nth-of-type(even) {
    background: #f7f6f2;
}

/* ---------- Product cards / listings ---------- */
.product-miniature .thumbnail-container,
.js-product-miniature .thumbnail-container {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eceae4;
}
.product-miniature:hover .thumbnail-container,
.js-product-miniature:hover .thumbnail-container {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}
.thumbnail-container .product-thumbnail img {
    border-radius: var(--radius) var(--radius) 0 0;
}
.product-miniature .product-description,
.js-product-miniature .product-description {
    padding: 14px 16px 18px;
}
.product-title a {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--navy);
    font-size: 1.02rem;
}
.product-title a:hover {
    color: var(--gold-dark);
}
.product-price-and-shipping .price {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 1.15rem;
}
.product-price-and-shipping .regular-price {
    color: #a0a0a8;
    text-decoration: line-through;
    font-weight: 500;
}

/* Badges / flags */
.product-flags .product-flag {
    border-radius: 999px;
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 5px 14px;
    text-transform: uppercase;
    font-size: 0.72rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.product-flags .product-flag.new {
    background: var(--gold) !important;
    color: var(--navy) !important;
}
.product-flags .product-flag.on-sale,
.product-flags .product-flag.discount {
    background: var(--red) !important;
    color: #ffffff !important;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-primary:focus {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--navy) !important;
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: var(--radius);
    padding: 11px 26px;
    box-shadow: 0 5px 16px rgba(212, 168, 67, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover {
    background: var(--gold-dark) !important;
    border-color: var(--gold-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
.btn-secondary,
.btn-secondary:focus {
    background: transparent !important;
    border: 2px solid var(--navy) !important;
    color: var(--navy) !important;
    font-family: var(--heading-font);
    font-weight: 600;
    border-radius: var(--radius);
}
.btn-secondary:hover {
    background: var(--navy) !important;
    color: #ffffff !important;
}
.add-to-cart,
.product-add-to-cart .add-to-cart {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--navy) !important;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius);
    padding: 14px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 6px 18px rgba(212, 168, 67, 0.32);
    transition: background 0.2s ease, transform 0.15s ease;
}
.add-to-cart:hover {
    background: var(--gold-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ---------- Product page ---------- */
.product-information {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}
.product-prices .current-price,
.product-prices .current-price .price {
    color: var(--gold-dark) !important;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 2rem;
}
.product-prices .regular-price {
    color: #a0a0a8;
    text-decoration: line-through;
}
.product-add-to-cart {
    margin-top: 20px;
}
.product-tabs .nav-tabs {
    border-bottom: 2px solid #ece9e0;
}
.product-tabs .nav-tabs .nav-link {
    color: var(--body);
    font-family: var(--heading-font);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
}
.product-tabs .nav-tabs .nav-link.active {
    color: var(--navy) !important;
    background: transparent !important;
    border-bottom: 3px solid var(--gold) !important;
}

/* ---------- Configurator block (imionki) ---------- */
.imionki-cfg {
    background: #ffffff;
    border: 1px solid #ece9e0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
    margin: 20px 0;
}
.imionki-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 999px;
    background: #f3f1ea;
    border: 2px solid transparent;
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}
.imionki-chip:hover {
    border-color: var(--gold);
    background: #faf6ec;
}
.imionki-chip.is-active {
    background: var(--gold);
    border-color: var(--gold-dark);
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.35);
}
.imionki-cfg__preview {
    background: var(--navy);
    color: var(--gold);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    margin-top: 16px;
    box-shadow: inset 0 0 0 2px rgba(212, 168, 67, 0.35);
}
.imionki-cfg__flash {
    background: rgba(212, 168, 67, 0.14);
    border-left: 4px solid var(--gold);
    color: var(--navy);
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 12px;
    font-weight: 500;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: transparent;
    padding-left: 0;
}
.breadcrumb ol {
    padding: 0;
}
.breadcrumb a {
    color: var(--body);
}
.breadcrumb a:hover {
    color: var(--gold-dark);
}
.breadcrumb li:last-child a,
.breadcrumb .active {
    color: var(--navy);
    font-weight: 600;
}

/* ---------- Forms ---------- */
.form-control {
    border-radius: 10px;
    border: 1px solid #d9d6cd;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.25);
    outline: none;
}

/* ---------- Cart ---------- */
.cart-grid-body,
.cart-summary,
.cart-item {
    border-radius: var(--radius);
}
.cart-summary .cart-summary-line .value,
.cart-total .value {
    color: var(--gold-dark);
    font-weight: 700;
}
.blockcart.cart-preview .header a {
    color: var(--text);
}

/* ---------- Footer ---------- */
.footer-container {
    background: var(--navy) !important;
    color: var(--text);
    box-shadow: none;
    margin-top: 40px;
    padding-top: 44px;
}
.footer-container li a,
.footer-container p,
.footer-container .block-contact,
.footer-container .block-contact a {
    color: var(--gold-2) !important;
    transition: color 0.2s ease;
}
.footer-container li a:hover,
.footer-container .block-contact a:hover {
    color: var(--gold) !important;
}
.footer-container .links .h3,
.footer-container .h3,
.footer-container .block-contact .h3 {
    color: var(--gold) !important;
    font-family: var(--heading-font);
    font-weight: 700;
}
.footer-container .block_newsletter {
    background: var(--navy-2);
    border-radius: var(--radius-lg);
    padding: 26px;
    border: 1px solid rgba(212, 168, 67, 0.25);
}
.footer-container .block_newsletter p,
.footer-container .block_newsletter .h3 {
    color: var(--text) !important;
}
.footer-container .block_newsletter input[type="email"] {
    border-radius: 999px 0 0 999px;
    border: none;
}
.footer-container .block_newsletter .btn {
    border-radius: 0 999px 999px 0;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

/* ---------- Responsive tweaks (mobile-first refinements) ---------- */
@media (max-width: 767px) {
    .imionki-search__input {
        font-size: 1.05rem;
        padding: 14px 20px;
    }
    h2.h2,
    .featured-products .h2,
    .products-section-title {
        font-size: 1.55rem;
    }
    .product-prices .current-price,
    .product-prices .current-price .price {
        font-size: 1.6rem;
    }
    .add-to-cart,
    .product-add-to-cart .add-to-cart {
        max-width: 100%;
    }
    .featured-products,
    .page-home .products-section {
        padding: 36px 0;
    }
}
