/* Во светот на Гоц — small theme rules on top of the exported stylesheet, for screens the static export
   never had to design (checkout, account, WooCommerce notices) or where a real form field replaces a
   static span/placeholder. Colours, spacing units and type all reuse the design's own tokens. */

/* WordPress core gives <figure> a bottom margin the design's reset does not expect. */
figure { margin: 0; }

/* The design's .brand and .footer-brand held plain text (Italiana wordmark); they now hold the site's
   logo image instead. */
.brand img { display: block; height: 64px; width: auto; }
@media (max-width: 767px) { .brand img { height: 51px; } }
@media (max-width: 380px) { .brand img { height: 45px; } }
.footer-brand img { display: block; height: 40px; width: auto; }

/* Footer: fourth column „Информации“ (inc/legal.php) + support contact and company line under the logo.
   main.css styles the delivery note as `.footer-grid>div:last-child p:last-child`, which is now the
   Информации column — the delivery column (third) keeps that look explicitly. */
.footer-grid > div:nth-child(3) p:last-child { color: var(--muted); font-size: 13px; }
.site-footer .footer-contact { margin: 18px 0 0; font-size: 13px; line-height: 1.8; }
.site-footer .footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-company { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr .6fr .9fr .8fr; gap: 60px; } }
@media (min-width: 768px) and (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* Policy pages (Контакт, Приватност, Достава, Поврат) — full container width, like the rest of the site.
   Only the page's own text (direct children of .page-content): the cart, checkout and account pages render
   WooCommerce's forms inside the same wrapper and must not pick these up. */
.page-content > h2 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 42px 0 14px; }
.page-content > p, .page-content > ul > li, .page-content > ol > li { font-size: 15px; line-height: 1.75; }
.page-content > ul, .page-content > ol { padding-left: 20px; margin: 0 0 18px; }
.page-content > ul > li + li, .page-content > ol > li + li { margin-top: 6px; }
.page-content > p a, .page-content > ul a, .page-content > ol a, .goc-info-table a { text-decoration: underline; text-underline-offset: 3px; }
.goc-info-list { list-style: none; padding-left: 0 !important; }
.goc-info-table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 14px; }
.goc-info-table th, .goc-info-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.goc-info-table th { width: 42%; font-weight: 500; }
.goc-info-table thead th { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
/* Empty company field — shown to administrators only (inc/legal.php). */
mark.goc-missing { background: #fff1b8; color: #6b5300; padding: 1px 5px; font-size: .9em; }
.goc-policy-links { margin-top: 12px; font-size: 12px; color: var(--muted); }
.goc-policy-links a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .goc-info-table th { width: 46%; }
  .page-content > h2 { margin-top: 32px; }
}

/* Project support notice — a quiet full-width line above the bottom bar, in the footer's muted text. */
.site-footer .footer-support-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 55px; }
.site-footer .footer-support { max-width: 820px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
/* Card logos on the right end of the notice — each sized by height to its own shape so they read as equals. */
.site-footer .footer-cards { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.site-footer .footer-cards img { display: block; width: auto; max-width: none; }
.site-footer .footer-cards .card-visa { height: 18px; }
.site-footer .footer-cards .card-mastercard { height: 30px; }
/* Copyright + agency credit share the bottom bar's left side; the credit wraps under it on small screens. */
.site-footer .footer-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.site-footer .footer-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color .2s, opacity .2s; }
.site-footer .footer-credit:hover { color: var(--foreground); }
.site-footer .footer-credit img { display: block; height: 20px; width: auto; max-width: none; opacity: .85; transition: opacity .2s; }
.site-footer .footer-credit:hover img { opacity: 1; }
@media (max-width: 767px) {
  .site-footer .footer-support-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 35px; }
  .site-footer .footer-support { font-size: 11px; }
  .site-footer .footer-meta { display: flex; }
}
[hidden] { display: none !important; }

/* WordPress/WooCommerce screen-reader-only text (e.g. the price's „Price range: … through …“). WooCommerce's
   own stylesheet hides it only on its own pages — on the homepage it showed as visible text. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; word-wrap: normal !important; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; }

/* WooCommerce's `.woocommerce-page img { height:auto }` overrides the design's fixed aspect boxes. This
   also matches the logo (also a .site-header img) — restated right after at equal specificity + later
   source order so it keeps the sizing above instead of stretching to the header's full height. */
body.woocommerce-page .site-header img, body.woocommerce .site-header img { height: 100%; width: auto; }
body.woocommerce-page .brand img, body.woocommerce .brand img { height: 64px; }
@media (max-width: 767px) { body.woocommerce-page .brand img, body.woocommerce .brand img { height: 51px; } }
@media (max-width: 380px) { body.woocommerce-page .brand img, body.woocommerce .brand img { height: 45px; } }
body.woocommerce-page .product-image img, body.woocommerce .product-image img,
body.woocommerce-page .product-main-image img, body.woocommerce .product-main-image img,
body.woocommerce-page .cart-item img, body.woocommerce .cart-item img,
body.woocommerce-page .collection-image img, body.woocommerce .collection-image img,
body.woocommerce-page .showcase img, body.woocommerce .showcase img,
body.woocommerce-page .thumbnails img, body.woocommerce .thumbnails img { height: 100%; width: 100%; }

/* -------------------------------------------------------------------------- notices */
body .woocommerce-message, body .woocommerce-error, body .woocommerce-info, body .woocommerce-notice {
  list-style: none; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 0;
  background: var(--secondary); color: var(--foreground); font-size: 13px; line-height: 1.6;
}
body .woocommerce-error { border-color: #8b3e36; color: #8b3e36; background: #f8ece9; }
body .woocommerce-message::before, body .woocommerce-error::before, body .woocommerce-info::before { content: none; }
body .woocommerce-message a.button, body .woocommerce-error a.button { margin-top: 10px; }
.container > .woocommerce-notices-wrapper:empty, .page-generic > .woocommerce-notices-wrapper:empty { display: none; }

/* -------------------------------------------------------------------- product page additions */

/* the real WooCommerce <input class="qty"> replaces the static's read-only <span>; matched to it visually. */
.quantity input.qty {
  width: 40px; border: 0; background: none; text-align: center; font: inherit; color: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.quantity input.qty::-webkit-inner-spin-button, .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product-buy-form { display: contents; } /* WooCommerce's <form class="cart"> itself carries no visual box */

.product-price del { color: var(--muted); font-weight: 400; margin-right: 8px; }
.product-price ins { text-decoration: none; }

/* -------------------------------------------------------------------------------- cart page */
.cart-empty a.button { margin-top: 22px; display: inline-flex; }
.cart-summary .shipping-methods ul { list-style: none; margin: 6px 0 0; padding: 0; text-align: right; font-size: 12px; }
.cart-summary .shipping-methods label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.cart-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; }
.cart-summary > div + div { margin-top: 10px; }
.cart-summary .order-total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; font-size: 15px; }
.cart-summary a.button { display: flex; margin-top: 18px; }
.cart-summary .link-button { margin-top: 16px; display: inline-flex; }
.cart-summary button.link-button { display: block; margin-top: 10px; }
.cart-summary p { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* --------------------------------------------------------------------------- checkout page */
body.woocommerce-checkout .page-generic { max-width: 1180px; }
/* Every section gets a named area — auto-placement by DOM order breaks as soon as WooCommerce inserts its
   error notice group at the top of the form (it took the left cell and pushed the details into the narrow
   right column). Left: notices, customer details, payment; right: the order summary. Row gaps are margins,
   so the notices row collapses to nothing when there are none. */
body.woocommerce-checkout form.checkout {
  display: grid; column-gap: 60px; margin-top: 20px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "notices" "details" "review" "payment";
}
@media (min-width: 900px) {
  body.woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "notices notices" "details review" "payment review";
  }
}
body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
body.woocommerce-checkout form.checkout > .woocommerce-notices-wrapper { grid-area: notices; margin-bottom: 30px; }
body.woocommerce-checkout form.checkout > #customer_details { grid-area: details; }
body.woocommerce-checkout form.checkout > .checkout-group--payment { grid-area: payment; }
body.woocommerce-checkout form.checkout > #order_review { grid-area: review; margin-top: 40px; }
@media (min-width: 900px) { body.woocommerce-checkout form.checkout > #order_review { margin-top: 0; } }
body.woocommerce-checkout .col2-set, body.woocommerce-checkout #customer_details { display: block; width: auto; }
body.woocommerce-checkout .col2-set .col-1, body.woocommerce-checkout .col2-set .col-2 { float: none; width: auto; max-width: none; padding: 0; }
body.woocommerce-checkout .col2-set::before, body.woocommerce-checkout .col2-set::after { content: none; }
/* Labels already say "(по желба)" — WooCommerce's own English "(optional)" suffix is redundant. */
body.woocommerce-checkout form.checkout label .optional { display: none; }
/* The order note sits under the details as part of the same form, not as a separate "Additional information" box. */
body.woocommerce-checkout .woocommerce-additional-fields > h3 { display: none; }
body.woocommerce-checkout .woocommerce-additional-fields { margin-top: 20px; }
body.woocommerce-checkout .woocommerce-additional-fields label { display: block; margin-bottom: 8px; }
body.woocommerce-checkout .woocommerce-additional-fields .form-row { margin: 0; padding: 0; }
body.woocommerce-checkout .woocommerce-additional-fields textarea {
  display: block; width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 0; background: var(--card);
  padding: 11px; font: inherit; font-size: 14px; outline: 0; color: var(--foreground); resize: vertical;
}
body.woocommerce-checkout .woocommerce-additional-fields textarea:focus { border-color: var(--accent); }
body.woocommerce-checkout #order_review_heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Checkout design: two numbered cards on the left („1 Податоци за нарачката“, „2 Плаќање“) and the order
   summary on the right, sticky on desktop. Fields sit in pairs (Име | Презиме, Телефон | Е-пошта,
   Град | Поштенски број — classes set in inc/checkout.php) with the design's small-caps labels. */
@media (min-width: 900px) {
  body.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 48px; }
  body.woocommerce-checkout form.checkout > #order_review { position: sticky; top: 24px; }
}
body.woocommerce-checkout #customer_details,
.checkout-group--payment { background: var(--card); border: 1px solid var(--line); padding: 34px 36px; }
.checkout-group--payment { margin-top: 24px; }
.checkout-step-title { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font-family: Italiana, serif; font-size: 26px; font-weight: 400; line-height: 1.2; }
.checkout-step-no { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: #fff; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; }

.order-form .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
body.woocommerce-checkout .order-form .form-row { margin: 0; padding: 0; float: none; width: auto; }
body.woocommerce-checkout .order-form .form-row-wide, body.woocommerce-checkout .order-form .form-row-full { grid-column: 1 / -1; }
body.woocommerce-checkout #billing_country_field { display: none; }
.order-form label,
body.woocommerce-checkout .woocommerce-additional-fields label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.order-form label .required { color: #8b3e36; text-decoration: none; border: 0; }
/* Prefixed with body/form: WooCommerce's own `.woocommerce form .form-row .input-text` (rounded, dark border)
   is more specific than a plain `.order-form input`. */
.order-form input:not([type=checkbox]), .order-form select, .order-form textarea,
body.woocommerce-checkout form .form-row .input-text, body.woocommerce-checkout form .form-row select,
body.woocommerce-checkout .woocommerce-additional-fields textarea {
  display: block; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 0; background: var(--background);
  padding: 12px 14px; font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; outline: 0; color: var(--foreground);
  transition: border-color .2s, box-shadow .2s;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus,
body.woocommerce-checkout form .form-row .input-text:focus, body.woocommerce-checkout form .form-row select:focus,
body.woocommerce-checkout .woocommerce-additional-fields textarea:focus { border-color: var(--dark); box-shadow: 0 0 0 3px rgba(47, 43, 39, .07); }
/* WooCommerce marks valid fields with a green border — the design keeps them neutral; only errors are red. */
body.woocommerce-checkout form .form-row.woocommerce-validated input.input-text,
body.woocommerce-checkout form .form-row.woocommerce-validated select { border-color: var(--line); }
body.woocommerce-checkout form .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout form .form-row.woocommerce-invalid select { border-color: #8b3e36; }
body.woocommerce-checkout .woocommerce-additional-fields { margin-top: 22px; }
body.woocommerce-checkout .woocommerce-additional-fields textarea { min-height: 96px; resize: vertical; }
.order-form label.checkbox { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.select2-container .select2-selection--single { height: auto !important; border: 1px solid var(--line) !important; border-radius: 0 !important; background: var(--background) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 12px 14px !important; font-size: 14px; line-height: 1.4 !important; color: var(--foreground) !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; }

/* WooCommerce's own grey, rounded payment box and its inner padding — the card around it is the design's. */
body.woocommerce-checkout #payment { background: none; border-radius: 0; }
body.woocommerce-checkout #payment ul.payment_methods { padding: 0; border: 0; }
body.woocommerce-checkout #payment div.form-row { padding: 0; margin: 0; }
body.woocommerce-checkout #payment ul.payment_methods li { line-height: 1.5; }
/* Payment methods as selectable tiles (WooCommerce hides the radio when there is only one method). */
ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.wc_payment_methods li.wc_payment_method { padding: 16px 18px; border: 1px solid var(--line); background: var(--background); transition: border-color .2s; }
ul.wc_payment_methods li.wc_payment_method:has(input:checked), ul.wc_payment_methods li.wc_payment_method:only-child { border-color: var(--dark); }
ul.wc_payment_methods li.wc_payment_method > input { margin: 0 10px 0 0; accent-color: var(--dark); }
ul.wc_payment_methods label { display: inline; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; cursor: pointer; }
.payment_box { margin-top: 12px; padding: 0; background: none; font-size: 13px; line-height: 1.7; color: var(--muted); }
.payment_box::before { content: none; }
.payment_box p:last-child { margin-bottom: 0; }
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { margin: 18px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.woocommerce-privacy-policy-text p { margin: 0; }
.woocommerce-privacy-policy-text a { text-decoration: underline; text-underline-offset: 3px; }

/* „Се согласувам“ — required consent checkbox (inc/checkout.php). */
.goc-terms { margin: 16px 0 0 !important; padding: 16px 18px !important; border: 1px solid var(--line); background: var(--background); transition: border-color .2s; }
.goc-terms.woocommerce-invalid { border-color: #8b3e36; }
.goc-terms-label { display: flex !important; align-items: flex-start; gap: 12px; margin: 0 !important; font-size: 13px !important; line-height: 1.6 !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 400 !important; cursor: pointer; }
.goc-terms-label a { text-decoration: underline; text-underline-offset: 3px; }
.goc-terms-label .required { color: #8b3e36; text-decoration: none; border: 0; }
.goc-terms input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--dark);
  background: var(--card) center / 13px no-repeat; cursor: pointer; transition: background-color .15s;
}
.goc-terms input[type=checkbox]:checked {
  background-color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.goc-terms input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#place_order { min-height: 56px; width: 100%; margin-top: 18px; font-size: 11px; letter-spacing: .18em; }
/* WooCommerce floats the button right, which squeezed the line after it to zero width. */
body.woocommerce-checkout #payment #place_order { float: none; display: flex; }
.checkout-secure { clear: both; display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.checkout-secure svg { flex-shrink: 0; width: 16px; height: 16px; }
.checkout-secure-cards { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.checkout-secure-cards img { display: block; width: auto; max-width: none; }
.checkout-secure-cards img[alt="Visa"] { height: 13px; }
.checkout-secure-cards img[alt="Mastercard"] { height: 22px; }

/* Order summary card. */
body.woocommerce-checkout #order_review { background: var(--secondary); padding: 30px 28px; }
.checkout-summary-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 22px; font-family: Italiana, serif; font-size: 24px; font-weight: 400; }
.checkout-summary-title a { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
body.woocommerce-checkout #order_review .cart-items { margin: 0; }
body.woocommerce-checkout #order_review .cart-item { grid-template-columns: 64px 1fr auto; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; }
body.woocommerce-checkout #order_review .cart-item img { width: 64px; height: 80px; }
body.woocommerce-checkout #order_review .cart-item h2 { font-size: 13px; line-height: 1.45; margin: 0 0 4px; }
body.woocommerce-checkout #order_review .cart-item .cart-meta { margin: 0; }
body.woocommerce-checkout #order_review .cart-summary { background: none; padding: 0; height: auto; }
body.woocommerce-checkout #order_review .cart-summary .order-total { font-size: 17px; }

@media (max-width: 899px) {
  body.woocommerce-checkout #order_review { margin-top: 24px; }
}
@media (max-width: 767px) {
  body.woocommerce-checkout #customer_details, .checkout-group--payment { padding: 24px 18px; }
  body.woocommerce-checkout #order_review { padding: 24px 18px; }
  .order-form .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; gap: 16px; }
  body.woocommerce-checkout .order-form .form-row { grid-column: 1 / -1; }
  .checkout-step-title { font-size: 22px; margin-bottom: 20px; }
  .checkout-secure { flex-wrap: wrap; }
  .checkout-secure-cards { margin-left: 26px; }
}

/* ----------------------------------------------------------------------- order received / thank you */
.thankyou-page { padding-block: 70px; max-width: 760px; }
.thankyou h1 { margin-top: 10px; }
.thankyou p { max-width: 520px; }
.thankyou-links { margin-top: 26px; display: flex; gap: 20px; }
.woocommerce-order-overview.order_details { list-style: none; margin: 46px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 12px; color: var(--muted); }
.woocommerce-order-overview.order_details strong { display: block; margin-top: 4px; color: var(--foreground); font-weight: 400; font-size: 14px; }
.order-message .message-box button { min-height: auto; padding: 9px 16px; }

/* -------------------------------------------------------------------------------- account page */
.woocommerce-account .page-generic { max-width: 640px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.woocommerce-MyAccount-navigation .is-active a { text-decoration: underline; text-underline-offset: 4px; }
.woocommerce-MyAccount-content table.shop_table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 13px; }
.woocommerce-MyAccount-content table.shop_table th, .woocommerce-MyAccount-content table.shop_table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-form-row, .woocommerce-form .form-row { margin-bottom: 18px; }
.woocommerce-form input:not([type=checkbox]), .woocommerce-form select { display: block; width: 100%; max-width: 380px; border: 1px solid var(--line); background: var(--card); padding: 11px; font: inherit; outline: 0; }
.woocommerce-form button.button { margin-top: 6px; }

/* ------------------------------------------------------------------------------- newsletter plugin form */
/* Contact Form 7 (or any plugin) pasted into Customize > Формулари > Шорткод за е-пошта листа renders
   inside .plugin-form (inc/forms.php); restyled here to match .newsletter-form's own look instead of the
   plugin's default white-box appearance, since the newsletter section has a dark background. */
.newsletter .plugin-form .wpcf7-form { max-width: 520px; margin: 38px auto 0; }
.newsletter .plugin-form .wpcf7-form p { margin: 0; display: flex; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.newsletter .plugin-form .wpcf7-form input[type="email"],
.newsletter .plugin-form .wpcf7-form input[type="text"] {
  flex: 1; padding: 13px 5px; border: 0; background: transparent; color: #fff; outline: 0; font: inherit;
}
.newsletter .plugin-form .wpcf7-form input[type="email"]::placeholder,
.newsletter .plugin-form .wpcf7-form input[type="text"]::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter .plugin-form .wpcf7-form input[type="submit"] {
  border: 0; background: none; color: #fff; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; font-family: inherit;
}
/* Contact Form 7 wraps the e-mail input in a <span> (and adds <br>s and a spinner) — so the span, not the
   input, is the flex item: without this the input kept its size="40" width and pushed the button and the
   spinner past the screen on mobile (horizontal scroll). */
.newsletter .plugin-form .wpcf7-form p { position: relative; align-items: center; }
.newsletter .plugin-form .wpcf7-form p > br { display: none; }
.newsletter .plugin-form .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; }
.newsletter .plugin-form .wpcf7-form-control-wrap input { width: 100%; }
.newsletter .plugin-form .wpcf7-form input[type="submit"] { flex-shrink: 0; padding: 13px 0 13px 12px; }
.newsletter .plugin-form .wpcf7-spinner { position: absolute; right: 0; top: 100%; margin: 6px 0 0; }
.newsletter .plugin-form .wpcf7-response-output { margin: 14px auto 0; max-width: 520px; border-radius: 0; font-size: 12px; color: #fff; border-color: rgba(255, 255, 255, .5) !important; }
.newsletter .plugin-form .wpcf7-not-valid-tip { color: #e7b4ac; font-size: 11px; margin-top: 6px; }

/* ------------------------------------------------------------------------------ personalization */
.personalization .file-button { display: inline-flex; }

/* WooCommerce's own bundled stylesheet resets every element with class "button" (`.woocommerce
   button.button{...display:inline-block…}`) at higher specificity than main.css's plain `.filter-toggle`
   selector, since this button also carries class "button" — same breakpoint as main.css's own
   `.filter-toggle{display:inline-flex}` (max-width:1023px), just written specific enough to win. */
/* Product collection ("Малиот принц", "Ван Гог" …) — a short line under the name that tells apart
   products sharing a name, in the design's accent colour (not an attribute table). */
.product-info .product-title { min-width: 0; flex: 1 1 auto; }

/* Product grids (homepage rows + shop): a grid column can't shrink below its widest unbreakable content,
   so one long price ("300 ден – 450 ден", main.css `.product-info span{white-space:nowrap}`) stretched the
   whole row past the screen. Cards may shrink; the name takes the free width; a price range may break after
   the dash while each amount stays on one line. */
.product-grid > *, .shop-grid > * { min-width: 0; }
.product-info > div > span { white-space: normal; text-align: right; flex-shrink: 0; }
.product-info .woocommerce-Price-amount { white-space: nowrap; }
@media (min-width: 768px) { .product-info > div > span { max-width: 48%; } }
@media (max-width: 767px) { .product-info > div > span { display: block; text-align: left; margin-top: 2px; } }
.product-info .product-collection { margin: 2px 0 0; color: var(--accent); font-size: 12px; line-height: 1.4; }
.product-detail .product-collection-line { margin: -4px 0 20px; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 767px) {
  .product-info .product-collection { font-size: 11px; }
  .product-detail .product-collection-line { margin-bottom: 16px; font-size: 10px; }
}

/* Sub-categories of the active main category — a second, quieter row in the same style as the main filters. */
.sub-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sub-filters button { border: 0; background: transparent; padding: 7px 11px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s, background .2s; }
.sub-filters button:hover { color: var(--foreground); }
.sub-filters button.active { background: var(--secondary); color: var(--foreground); }
.shop-toolbar button.filter-toggle { display: none; }
@media (max-width: 1023px) { .shop-toolbar button.filter-toggle { display: inline-flex; } }
