/* =====================================================================
   ORIGAMI PROCUREMENT THEME — child of PrestaShop Classic
   A clean, professional B2B design system for indirect procurement.
   One coherent palette. Restrained typography. Calm surfaces,
   elevated with a confident indigo → blue → cyan gradient identity.
   ===================================================================== */

/* Inter — display + body face.
   NOTE: for production (esp. EU/RGPD), prefer self-hosting this font
   rather than loading it from Google. Kept as @import here for the demo. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Brand */
    --proc-primary:        #2563eb;   /* blue-600 — actions, links, accents */
    --proc-primary-dark:   #1d4ed8;   /* blue-700 — hover */
    --proc-primary-darker: #1e3a8a;   /* blue-900 — header bar */
    --proc-primary-soft:   #eff6ff;   /* blue-50  — soft fills */
    --proc-indigo:         #4f46e5;   /* indigo-600 — gradient start */
    --proc-sky:            #0ea5e9;   /* sky-500   — gradient end */

    /* Signature gradients */
    --proc-gradient:      linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #0ea5e9 100%);
    --proc-gradient-deep: linear-gradient(125deg, #312e81 0%, #1e3a8a 28%, #2563eb 62%, #0ea5e9 100%);

    /* Ink & text */
    --proc-ink:    #0f172a;           /* slate-900 — headings, prices */
    --proc-text:   #334155;           /* slate-700 — body */
    --proc-muted:  #64748b;           /* slate-500 — secondary */

    /* Surfaces */
    --proc-bg:      #f5f7fa;          /* page background */
    --proc-surface: #ffffff;
    --proc-border:  #e2e8f0;          /* slate-200 */

    /* Feedback */
    --proc-success: #059669;          /* emerald-600 */

    /* Shape */
    --proc-radius:   10px;
    --proc-radius-sm: 8px;
    --proc-radius-lg: 22px;
    --proc-shadow:    0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.08);
    --proc-shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.06);
    --proc-shadow-lg: 0 12px 24px -8px rgba(15,23,42,.18);
    --proc-glow:      0 34px 64px -26px rgba(37,99,235,.55), 0 12px 26px -14px rgba(15,23,42,.28);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
body {
    font-family: "Inter", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--proc-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#wrapper {
    background-color: var(--proc-bg);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
    color: var(--proc-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--proc-primary);
    transition: color .15s ease;
}
a:hover,
a:focus {
    color: var(--proc-primary-dark);
    text-decoration: none;
}

/* Visible focus ring for keyboard users (accessibility) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--proc-primary-soft), 0 0 0 1px var(--proc-primary);
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
#header {
    background: var(--proc-surface);
    box-shadow: 0 1px 0 var(--proc-border), 0 6px 18px -12px rgba(15,23,42,.25);
    border-bottom: 1px solid var(--proc-border);
}

#header .header-top {
    padding: 1.25rem 0 !important;
}

/* Top utility bar — gradient instead of flat navy */
#header .header-nav {
    background: linear-gradient(90deg, #312e81 0%, #1e3a8a 45%, #2563eb 100%);
    border: none;
}
#header .header-nav a,
#header .header-nav .dropdown,
#header .header-nav .expand-more {
    color: #e6edf9;
}
#header .header-nav a:hover {
    color: #ffffff;
}

#_desktop_logo {
    text-align: left;
    margin-bottom: 0;
}
#_desktop_logo img {
    max-height: 52px;
    width: auto;
}

/* Cart preview pill in the nav */
#header .header-nav .cart-preview.active {
    background: var(--proc-primary);
    border-radius: var(--proc-radius-sm);
}

/* Search */
#search_widget {
    margin-bottom: 0;
    order: 1;
    width: 300px;
    max-width: 340px;
    margin-left: auto;
}
#search_widget form {
    position: relative;
}
/* Magnifier sits inside the field on the left; input text is padded to clear it */
#search_widget form .material-icons.search,
#search_widget form .search {
    left: 14px;
    right: auto;
    color: var(--proc-muted);
}
#search_widget form input[type="text"] {
    border: 1px solid var(--proc-border);
    border-radius: 999px;
    padding: 11px 18px 11px 44px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#search_widget form input[type="text"]:focus {
    border-color: var(--proc-primary);
    box-shadow: 0 0 0 3px var(--proc-primary-soft);
    outline: none;
}
#search_widget form button[type="submit"] {
    color: var(--proc-muted);
}
#search_widget form button[type="submit"]:hover {
    color: var(--proc-primary);
}

/* ---------------------------------------------------------------------
   Main menu
   --------------------------------------------------------------------- */
/* Header-top right block: search sits top-right, menu drops to its own
   full-width row below — keeps everything on one tidy line. */
.header-top .row {
    align-items: center;
}
.header-top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

#_desktop_top_menu {
    background: transparent;
    border: none;
    order: 2;
    flex: 0 0 120%;
    width: 120%;
    max-width: 120%;
    margin-top: 10px;
    margin-left: -20%;          /* pull left under the logo (= the col-md-2 logo width) so the bar spans the full content width */
    border-top: 1px solid var(--proc-border);
    padding-top: 2px;
}

.top-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    padding: 0 15px;
    margin: 0;
}
.top-menu > li {
    position: relative;
    display: inline-block;
}

/* Top-level links: clean nav-bar look with an animated underline on hover */
.top-menu a[data-depth="0"] {
    position: relative;
    display: block;
    padding: 13px 8px;
    color: var(--proc-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: color .15s ease;
}
.top-menu a[data-depth="0"]::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--proc-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.top-menu a[data-depth="0"]:hover {
    color: var(--proc-primary-dark);
}
.top-menu a[data-depth="0"]:hover::after,
.top-menu a[data-depth="0"]:focus-visible::after {
    transform: scaleX(1);
}

/* In the dark nav bar, top-level links read light */
#header .header-nav .top-menu a[data-depth="0"] {
    color: #e6edf9;
}
#header .header-nav .top-menu a[data-depth="0"]:hover {
    background: rgba(255,255,255,.12);
    color: #ffffff;
}

/* Sub-menu */
.top-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 220px;
    padding: 8px;
    margin-top: 6px;
    background: var(--proc-surface);
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius);
    box-shadow: var(--proc-shadow-lg);
}
.top-menu .sub-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}
.top-menu .sub-menu li { width: 100%; padding: 0; }
.top-menu .sub-menu a {
    display: block;
    padding: 9px 12px;
    color: var(--proc-text);
    white-space: nowrap;
    border-radius: var(--proc-radius-sm);
    transition: background .15s ease, color .15s ease;
}
.top-menu .sub-menu a:hover {
    background: var(--proc-primary-soft);
    color: var(--proc-primary-dark);
}
.top-menu > li:hover .sub-menu {
    display: block;
}

/* ---------------------------------------------------------------------
   Hero / home slider
   --------------------------------------------------------------------- */
#carousel,
.carousel {
    border-radius: var(--proc-radius-lg);
    overflow: hidden;
    margin-top: 12px;
    box-shadow: var(--proc-glow);
    transition: transform .5s ease, box-shadow .5s ease;
}
#carousel:hover {
    transform: translateY(-3px);
    box-shadow: 0 42px 74px -26px rgba(37,99,235,.6);
}
#carousel .carousel-control {
    opacity: 1;
}
#carousel .carousel-control .icon-next,
#carousel .carousel-control .icon-prev {
    background: rgba(255,255,255,.92);
    border-radius: 999px;
    color: var(--proc-primary-darker);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15,23,42,.25);
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn-primary,
.btn-primary:visited,
.product-add-to-cart .add-to-cart,
.btn.add-to-cart,
.block_newsletter .btn {
    background: var(--proc-primary);
    border: 1px solid var(--proc-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--proc-radius-sm);
    box-shadow: 0 8px 18px -8px rgba(37,99,235,.45);
    transition: transform .12s ease, box-shadow .2s ease, background .15s ease;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.product-add-to-cart .add-to-cart:hover,
.btn.add-to-cart:hover,
.block_newsletter .btn:hover {
    background: var(--proc-primary-dark);
    border-color: var(--proc-primary-dark);
    box-shadow: 0 12px 24px -10px rgba(37,99,235,.55);
    color: #fff;
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary,
.btn-outline-secondary,
.btn-tertiary {
    border-radius: var(--proc-radius-sm);
    font-weight: 600;
}

/* "Add to cart" / call to actions inherit the primary look */
.product-add-to-cart .add-to-cart,
.btn.add-to-cart {
    border-radius: var(--proc-radius-sm);
    font-weight: 600;
}

/* Compare button — bring it into the palette */
.addtocompare {
    margin-top: 10px !important;
    margin-bottom: 5px;
    background: var(--proc-surface) !important;
    color: var(--proc-muted) !important;
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius-sm);
}
.addtocompare:hover {
    color: var(--proc-primary) !important;
    border-color: var(--proc-primary);
}

/* ---------------------------------------------------------------------
   Section titles
   --------------------------------------------------------------------- */
h2.products-section-title,
.featured-products .products-section-title,
.h2.products-section-title {
    color: var(--proc-ink);
    font-weight: 800 !important;
    text-transform: none;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 38px;
    position: relative;
    display: inline-block;
}
/* Gradient accent bar under the title */
h2.products-section-title::after,
.featured-products .products-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 64px;
    height: 5px;
    border-radius: 5px;
    background: var(--proc-gradient);
}
.featured-products {
    padding: 30px 0 14px;
}

.block-category h1,
.block-category h2,
.block-category .h1,
.block-category .h2 {
    color: var(--proc-ink);
}

/* ---------------------------------------------------------------------
   Product cards (catalog grid)
   --------------------------------------------------------------------- */
.product-miniature .thumbnail-container,
.js-product-miniature .thumbnail-container {
    background: var(--proc-surface);
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius);
    box-shadow: var(--proc-shadow);
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.product-miniature .thumbnail-container:hover,
.js-product-miniature .thumbnail-container:hover {
    box-shadow: 0 26px 44px -20px rgba(15,23,42,.3);
    border-color: #bfdbfe;
    transform: translateY(-6px);
}
/* Subtle image zoom on hover */
.product-miniature .thumbnail-container .thumbnail {
    display: block;
    overflow: hidden;
}
.product-miniature .thumbnail-container img {
    transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.product-miniature .thumbnail-container:hover img {
    transform: scale(1.08);
}
/* Keep a centred row when the line isn't full */
.featured-products .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.product-miniature .product-description {
    padding: 14px 14px 16px;
}
.product-miniature .product-title a {
    color: var(--proc-ink);
    font-weight: 600;
}
.product-miniature .product-title a:hover {
    color: var(--proc-primary);
}

/* Prices — confident, not loud */
.product-price,
.product-price-and-shipping .price,
.current-price,
.current-price span,
.product-prices .current-price {
    color: var(--proc-ink) !important;
    font-weight: 700;
}
.regular-price {
    color: var(--proc-muted);
}
.discount,
.product-flags .discount-percentage,
.has-discount .discount {
    background: var(--proc-success);
    border-radius: 6px;
}

/* Product flags / badges — gradient pill */
.product-flags li.product-flag {
    background: var(--proc-gradient);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 5px 12px;
    box-shadow: 0 8px 16px -6px rgba(37,99,235,.55);
}
.product-flags li.product-flag.on-sale,
.product-flags li.product-flag.discount {
    background: var(--proc-success);
}

/* Product page accessories */
.product-accessories {
    margin-top: 20px;
}

/* ---------------------------------------------------------------------
   Product page
   --------------------------------------------------------------------- */
/* Cover image */
.product-cover img,
.product-cover .js-qv-product-cover {
    border-radius: var(--proc-radius);
    border: 1px solid var(--proc-border);
    background: #fff;
    box-shadow: 0 22px 44px -22px rgba(15,23,42,.28);
}

/* Thumbnail gallery */
.product-images .thumb-container .thumb {
    border-radius: var(--proc-radius-sm);
    border: 2px solid transparent;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.product-images .thumb-container .thumb:hover {
    transform: translateY(-2px);
}
.product-images .thumb-container .thumb.selected,
.product-images img.thumb.js-thumb-selected {
    border-color: var(--proc-primary) !important;
    box-shadow: 0 0 0 3px var(--proc-primary-soft);
}

/* Price (product page) */
.product-prices .current-price .price {
    color: var(--proc-ink) !important;
    font-weight: 800;
    font-size: 2rem;
}
.product-prices .tax-shipping-delivery-label {
    color: var(--proc-muted);
}

/* Colour / attribute swatches */
.product-variants .input-color,
.product-variants .color {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 1px solid var(--proc-border) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: transform .12s ease, box-shadow .12s ease;
}
.product-variants .input-container input:checked + span.color,
.product-variants .input-color:checked,
.product-variants .color.selected {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--proc-primary) !important;
    transform: scale(1.08);
}

/* Quantity + add to cart */
#quantity_wanted {
    border-radius: var(--proc-radius-sm);
    border: 1px solid var(--proc-border);
    font-weight: 700;
}
.product-add-to-cart .add-to-cart {
    padding: 12px 26px;
    font-weight: 700;
}

/* Reassurance block */
#block-reassurance,
.blockreassurance {
    background: var(--proc-surface);
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius);
    padding: 4px 18px;
    box-shadow: var(--proc-shadow);
}
#block-reassurance li,
.blockreassurance li {
    border: none !important;
    padding: 12px 0;
}

/* Description / details tabs */
.tabs {
    background: var(--proc-surface);
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius);
    padding: 22px 24px;
    box-shadow: var(--proc-shadow);
}
.tabs .nav-tabs {
    border-bottom: 1px solid var(--proc-border);
}
.tabs .nav-tabs .nav-link {
    color: var(--proc-muted);
    font-weight: 700;
    border: none;
    background: transparent;
}
.tabs .nav-tabs .nav-link.active {
    color: var(--proc-primary);
    border-bottom: 3px solid var(--proc-primary);
    background: transparent;
}

/* ---------------------------------------------------------------------
   Home feature band (custom HTML module "#custom-text")
   --------------------------------------------------------------------- */
#custom-text {
    background: var(--proc-gradient-deep);
    border-radius: 24px;
    padding: 72px 48px;
    text-align: center;
    box-shadow: 0 34px 60px -24px rgba(37,99,235,.6);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
#custom-text * {
    color: #fff !important;
    position: relative;
    z-index: 2;
}
#custom-text h2 {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 14px;
}
#custom-text p {
    color: #dbeafe !important;
    font-size: 1.1rem;
    max-width: 660px;
    margin: 12px auto 0;
}
/* Soft floating halos for depth */
#custom-text::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
    z-index: 1;
    animation: procFloat 9s ease-in-out infinite;
}
#custom-text::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,.35), transparent 70%);
    z-index: 1;
    animation: procFloat 11s ease-in-out infinite reverse;
}
@keyframes procFloat {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(0, -22px); }
}
@media (prefers-reduced-motion: reduce) {
    #custom-text::before,
    #custom-text::after { animation: none; }
}

/* ---------------------------------------------------------------------
   Cards, panels, forms
   --------------------------------------------------------------------- */
.card,
.page-content.card,
#main .card {
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius);
    box-shadow: var(--proc-shadow);
}

.form-control,
.input-group .form-control {
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius-sm);
    color: var(--proc-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
    border-color: var(--proc-primary);
    box-shadow: 0 0 0 3px var(--proc-primary-soft);
}

/* Newsletter — pill inputs */
.block_newsletter input[type="email"],
.block_newsletter input[type="text"] {
    border-radius: 999px !important;
    padding: 13px 20px !important;
    border: 1px solid var(--proc-border) !important;
}
.block_newsletter .btn {
    border-radius: 999px !important;
}

/* Account / dashboard links blocks */
.links a:hover,
#footer .links a:hover {
    color: var(--proc-primary);
}

/* My-account dashboard tiles (incl. procurement modules: Projects, Inbox) */
#main .page-content.page-customer-account .links .link-item,
.page-my-account #content .links .link-item,
.links .link-item {
    display: block;
    height: 100%;
    background: var(--proc-surface);
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius);
    box-shadow: var(--proc-shadow);
    padding: 26px 18px;
    color: var(--proc-text);
    font-weight: 600;
    text-align: center;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease, color .15s ease;
}
.links .link-item:hover {
    box-shadow: var(--proc-shadow-lg);
    border-color: var(--proc-primary);
    transform: translateY(-2px);
    color: var(--proc-primary-dark);
}
.links .link-item i.material-icons {
    display: block;
    margin: 0 auto 12px;
    font-size: 2.25rem;
    color: var(--proc-primary);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer-container {
    border-top: 1px solid var(--proc-border);
    background: var(--proc-surface);
}
.footer-container li a {
    color: var(--proc-muted);
}
.footer-container li a:hover {
    color: var(--proc-primary);
}

/* ---------------------------------------------------------------------
   Procurement-specific tweaks (carried over)
   --------------------------------------------------------------------- */
/* Hide the marketing category block in the left column */
#left-column .block-categories {
    display: none;
}

/* Project actions bar (quote / cart actions) */
.ew-project-actions {
    background: var(--proc-surface);
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius);
    box-shadow: var(--proc-shadow);
    padding: 16px 20px;
    margin-bottom: 20px;
    line-height: 35px;
    font-weight: 600;
}

#content-hook-order-confirmation-footer {
    display: none;
}

/* Hide promo banner */
a.banner {
    display: none !important;
}

/* ---------------------------------------------------------------------
   CHECKOUT — carrier / warehouse (functional, tied to custom.js)
   --------------------------------------------------------------------- */
.warehouse_carriers_wrapper {
    margin-bottom: 30px;
}
.warehouse_title {
    margin: 25px 0;
    text-align: center;
}
.warehouse_title .carrier-seller-title {
    font-size: 15px;
    text-align: center;
    border-bottom: 2px solid var(--proc-border);
    position: relative;
}
.warehouse_title .carrier-seller-title span {
    background-color: var(--proc-bg);
    position: relative;
    top: 10px;
    padding: 0 15px;
    font-weight: 700;
    color: var(--proc-ink);
}
.warehouse_title .carrier-shipped-by {
    font-size: 13px;
    margin-bottom: -5px;
    color: var(--proc-muted);
}

/* delivery option */
body#checkout section.checkout-step .delivery-option {
    cursor: pointer;
    display: block !important;
    padding: 10px 12px !important;
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius-sm);
    margin-bottom: 10px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
body#checkout section.checkout-step .delivery-options .delivery-option.selected,
.checkout-step .delivery-option:hover {
    border-color: var(--proc-primary) !important;
    background: var(--proc-primary-soft);
    box-shadow: 0 0 0 3px var(--proc-primary-soft);
}
body#checkout section.checkout-step .delivery-options .delivery-option:not(.selected):hover {
    background: #f1f5f9;
}
body#checkout section.checkout-step .delivery-option label {
    cursor: pointer;
}

.ori-carrier-extra-content {
    margin-top: 20px;
}

/* warehouse products summary */
.summary-product-item {
    display: flex;
    align-items: flex-start;
    border: 1px solid var(--proc-border);
    border-radius: var(--proc-radius-sm);
    margin-bottom: 15px;
    padding: 10px;
    background: var(--proc-surface);
}
.summary-product-item .product-image {
    max-width: 40px;
    margin-right: 1rem;
    align-self: center !important;
}
.summary-product-item .product-infos {
    align-self: center !important;
}
