/*
Theme Name: Offerandum Demo Shop
Theme URI: https://offerandum.com/sklep
Description: Motyw sklepu pokazowego Offerandum (sklep-demo.offerandum.com): wygląd offerandum.com w sklepie z działami, każdy z konfiguratorem, którego wynik trafia do koszyka. Motyw potomny Twenty Twenty-Five.
Author: Offerandum
Author URI: https://offerandum.com
Template: twentytwentyfive
Version: 1.0.13
Requires at least: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: offerandum-demo-theme
*/

/* ---- Tokens: the same ones offerandum.com uses (apps/frontend/src/styles.css) ---- */
:root {
    --od-ink: #0f172a;
    --od-ink-soft: #3f4a5f;
    --od-ink-faint: #64748b;
    --od-bg: #ffffff;
    --od-bg-soft: #f7f9fc;
    --od-border: #e4e9f0;
    --od-border-strong: #cdd6e1;
    --od-primary: #2563eb;
    --od-primary-deep: #1d4ed8;
    --od-primary-soft: #eff4ff;
    --od-radius-sm: 8px;
    --od-radius-md: 12px;
    --od-radius-lg: 16px;
    --od-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 3px 10px rgba(15, 23, 42, 0.04);
    --od-shadow-md: 0 2px 4px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.07);
}

body {
    -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.od-header {
    border-bottom: 1px solid var(--od-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.od-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.od-brand a {
    display: block;
    line-height: 0;
}

.od-brand img {
    display: block;
    height: 24px;
    width: auto;
}

.od-brand .od-brand__tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--od-primary-soft);
    color: var(--od-primary-deep);
    font-family: var(--wp--preset--font-family--inter);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.od-nav .wp-block-navigation-item__content {
    font-size: 15px;
    font-weight: 500;
    color: var(--od-ink-soft);
}

.od-nav .wp-block-navigation-item__content:hover {
    color: var(--od-ink);
}

.wc-block-mini-cart__button {
    color: var(--od-ink);
}

/* ---- Buttons: the site's primary button ---- */
.wp-block-button__link,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.single_add_to_cart_button,
.wc-block-components-product-button__button,
button.wp-element-button {
    border-radius: var(--od-radius-sm) !important;
    font-weight: 600 !important;
    box-shadow: var(--od-shadow-sm);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    box-shadow: none;
}

/* ---- Hero ---- */
.od-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(37, 99, 235, 0.14), transparent 60%),
        radial-gradient(700px 380px at 90% 0%, rgba(124, 58, 237, 0.10), transparent 60%),
        var(--od-bg-soft);
}

.od-hero h1 {
    font-family: var(--wp--preset--font-family--source-serif-4);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.od-hero .od-hero__lead {
    color: var(--od-ink-soft);
    font-size: 19px;
    line-height: 1.55;
}

/* ---- Page headings and leads (shop, department, group, product) ---- */
.od-page-title,
.od-section-title {
    font-family: var(--wp--preset--font-family--source-serif-4);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.od-section-title {
    font-size: 30px;
    margin-bottom: 8px;
}

.od-lead {
    color: var(--od-ink-soft);
    font-size: 17px;
    line-height: 1.55;
    margin-top: 10px;
}

.od-dept__actions,
.od-cat__actions {
    margin-top: 18px;
}

/* ---- Breadcrumbs ---- */
.od-crumbs.wc-block-breadcrumbs {
    font-size: 14px;
    color: var(--od-ink-faint);
    margin-bottom: 18px;
}

.od-crumbs.wc-block-breadcrumbs a {
    color: var(--od-ink-soft);
    text-decoration: none;
}

.od-crumbs.wc-block-breadcrumbs a:hover {
    color: var(--od-primary);
}

/* ---- Category cards ([od_categories]: departments on the front and shop pages, groups on a department page) ---- */
.od-cats {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.od-cat {
    display: flex;
    flex-direction: column;
    background: var(--od-bg);
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    box-shadow: var(--od-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.od-cat:hover {
    box-shadow: var(--od-shadow-md);
    transform: translateY(-2px);
}

.od-cat--soon {
    opacity: 0.72;
}

.od-cat--soon:hover {
    box-shadow: var(--od-shadow-sm);
    transform: none;
}

.od-cat__media {
    display: block;
    background: var(--od-bg-soft);
}

/* The ratio sits on the picture itself: a portrait photo (a door) is cropped to the same 4:3 as the others. */
.od-cat__media img,
.od-cat__blank {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.od-cat__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 22px 22px;
}

.od-cat__count,
.od-cat__badge {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--od-bg-soft);
    border: 1px solid var(--od-border);
    color: var(--od-ink-faint);
    font-size: 12px;
    font-weight: 600;
}

.od-cat__title {
    margin: 0 0 6px;
    font-family: var(--wp--preset--font-family--source-serif-4);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
}

.od-cat__title a {
    color: var(--od-ink);
    text-decoration: none;
}

.od-cat__title a:hover {
    color: var(--od-primary);
}

.od-cat__text {
    margin: 0;
    color: var(--od-ink-soft);
    font-size: 15px;
    line-height: 1.5;
}

.od-cat__actions {
    margin-top: auto;
    padding-top: 18px;
}

/* ---- Steps ---- */
.od-steps .wp-block-column {
    padding: 22px 24px;
    border-radius: var(--od-radius-md);
    background: var(--od-bg-soft);
    border: 1px solid var(--od-border);
}

.od-steps .od-step__no {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--od-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.od-steps h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

.od-steps p {
    margin: 0;
    color: var(--od-ink-soft);
    font-size: 15px;
}

/* ---- Configurator page: the form takes the width it needs, so the 3D model stands beside the steps.
   No frame of its own: the widget draws edge to edge and the page only gives it the column. ---- */
.od-configurator {
    background: var(--od-bg);
}

.od-configurator offerandum-form {
    display: block;
    /* The constrained group hands every child its block gap; the widget is the only visible child. */
    margin-block-start: 0;
}

/* ---- Classic shop: category tree beside the product grid ---- */
.od-shop__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}

.od-shop__layout > * {
    margin-block-start: 0;
}

@media (max-width: 900px) {
    .od-shop__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

.od-tree__title {
    margin: 0 0 12px;
    font-family: var(--wp--preset--font-family--inter);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--od-ink-faint);
}

.od-tree__list,
.od-tree__groups {
    list-style: none;
    margin: 0;
    padding: 0;
}

.od-tree__groups {
    margin: 4px 0 8px 14px;
    padding-left: 12px;
    border-left: 1px solid var(--od-border);
}

.od-tree__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--od-radius-sm);
    font-size: 15px;
    color: var(--od-ink-soft);
}

.od-tree__item--department > .od-tree__row {
    font-weight: 600;
    color: var(--od-ink);
}

.od-tree__row a {
    color: inherit;
    text-decoration: none;
}

.od-tree__row a:hover {
    color: var(--od-primary);
}

.od-tree__row.is-current {
    background: var(--od-primary-soft);
    color: var(--od-primary-deep);
}

.od-tree__count,
.od-tree__soon {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--od-ink-faint);
}

.od-tree__row.is-current > .od-tree__count {
    color: var(--od-primary-deep);
}

.od-tree__label {
    color: var(--od-ink-faint);
    font-weight: 500;
}

/* ---- Results bar and product grid ---- */
.od-group__bar {
    margin: 28px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--od-border);
    color: var(--od-ink-faint);
    font-size: 14px;
}

.od-group__bar .woocommerce-result-count {
    margin: 0;
}

.od-group__bar .wc-block-catalog-sorting select,
.od-group__bar .woocommerce-ordering select {
    border: 1px solid var(--od-border-strong);
    border-radius: var(--od-radius-sm);
    padding: 6px 32px 6px 10px;
    font: inherit;
    font-size: 14px;
    color: var(--od-ink);
    background-color: var(--od-bg);
}

/* WooCommerce sizes the columns for its own 1.25em gap; with a wider gap the fourth column would not fit. */
.od-products .wc-block-product-template {
    gap: 24px;
}

.od-products .wc-block-product-template__responsive.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(max(200px, calc(33.333% - 17px)), 1fr));
}

.od-products .wc-block-product-template__responsive.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(max(200px, calc(25% - 19px)), 1fr));
}

.od-products .wc-block-product {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 0 18px;
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    background: var(--od-bg);
    box-shadow: var(--od-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.od-products .wc-block-product:hover {
    box-shadow: var(--od-shadow-md);
    transform: translateY(-2px);
}

.od-products .wc-block-components-product-image {
    margin: 0 0 14px;
    background: var(--od-bg-soft);
}

.od-products .wc-block-components-product-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.od-products .od-product__title {
    margin: 0 18px 6px;
    font-family: var(--wp--preset--font-family--inter);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.od-products .od-product__title a {
    color: var(--od-ink);
    text-decoration: none;
}

.od-products .od-product__title a:hover {
    color: var(--od-primary);
}

.od-products .od-product__price {
    margin: 0 18px 12px;
    font-size: 17px;
}

.od-products .od-product__button {
    margin: auto 18px 0;
}

.od-products .od-product__button .wp-block-button__link {
    width: 100%;
    font-size: 14px;
    padding: 10px 14px;
}

.od-products .wp-block-query-pagination {
    margin-top: 32px;
    font-size: 15px;
}

.od-products .wp-block-query-pagination .page-numbers {
    padding: 6px 10px;
    border-radius: var(--od-radius-sm);
    text-decoration: none;
    color: var(--od-ink-soft);
}

.od-products .wp-block-query-pagination .page-numbers.current {
    background: var(--od-primary-soft);
    color: var(--od-primary-deep);
    font-weight: 600;
}

.od-products--related {
    margin-top: 56px;
}

.od-products--related .od-section-title {
    margin-bottom: 20px;
}

/* ---- Product page ---- */
.od-product-page__columns {
    margin-top: 8px;
}

.od-product-page__gallery .wc-block-product-gallery,
.od-product-page__gallery .woocommerce-product-gallery {
    border: 1px solid var(--od-border);
    border-radius: var(--od-radius-lg);
    overflow: hidden;
    background: var(--od-bg-soft);
}

.od-product-page__gallery img {
    width: 100%;
    display: block;
}

.od-product-page__cats {
    font-size: 14px;
    color: var(--od-ink-faint);
    margin-bottom: 8px;
}

.od-product-page__cats a {
    color: var(--od-ink-soft);
    text-decoration: none;
}

.od-product-page__info .od-page-title {
    font-size: 34px;
    margin: 0 0 12px;
}

.od-product-page__price {
    font-size: 26px;
    margin-bottom: 14px;
}

.od-product-page__summary {
    color: var(--od-ink-soft);
    font-size: 16px;
    line-height: 1.6;
}

.od-product-page__info .cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
}

/* Variable product: the height and colour selects, then the chosen variation's price and the add-to-cart row. */
.od-product-page__info .variations {
    width: 100%;
    margin: 0 0 8px;
    border-collapse: collapse;
}

.od-product-page__info .variations th,
.od-product-page__info .variations td {
    padding: 0 0 12px;
    text-align: left;
    vertical-align: middle;
    border: 0;
}

.od-product-page__info .variations th {
    width: 160px;
    font-size: 15px;
    font-weight: 500;
    color: var(--od-ink-soft);
}

/* Outweighs WooCommerce's `.woocommerce table.variations tr td select` (3em tall, inherited 32 px line height), which clipped the text. */
.od-product-page__info table.variations tr td select {
    min-width: 240px;
    height: auto;
    line-height: 1.3;
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--od-border-strong);
    border-radius: var(--od-radius-sm);
    font: inherit;
    font-size: 15px;
    color: var(--od-ink);
    background-color: var(--od-bg);
}

.od-product-page__info .reset_variations {
    font-size: 13px;
    color: var(--od-ink-faint);
    margin-left: 10px;
}

.od-product-page__info .single_variation_wrap {
    flex-basis: 100%;
}

.od-product-page__info .woocommerce-variation-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.od-product-page__info .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 12px;
    align-items: center;
}

.od-product-page__info .quantity .input-text {
    width: 72px;
    padding: 10px 12px;
    border: 1px solid var(--od-border-strong);
    border-radius: var(--od-radius-sm);
    font: inherit;
}

.od-product-page__meta {
    font-size: 14px;
    color: var(--od-ink-faint);
    padding-top: 14px;
    border-top: 1px solid var(--od-border);
}

.od-product-page__details {
    margin-top: 48px;
}

/* ---- Order confirmation (the test order) ---- */
.od-order__intro .wp-block-buttons {
    margin-top: 20px;
}

.od-order__details {
    margin-top: 40px;
}

.od-order__details .wc-block-order-confirmation-summary {
    margin-bottom: 24px;
}

.od-order__details .wc-block-order-confirmation-totals table {
    font-size: 15px;
}

/* ---- WooCommerce bits ---- */
.wc-block-components-product-price,
.price {
    color: var(--od-ink);
    font-weight: 600;
}

.wc-block-components-notice-banner {
    border-radius: var(--od-radius-md);
}

/* No accounts in the demo: the icon WooCommerce hooks into headers stays out even where the hook filter is bypassed. */
.wp-block-woocommerce-customer-account {
    display: none !important;
}

/* ---- Footer ---- */
.od-footer {
    border-top: 1px solid var(--od-border);
    color: var(--od-ink-faint);
    font-size: 14px;
}

.od-footer a {
    color: var(--od-ink-soft);
}
