/* ---------------------------- konto użytkownika ---------------------------- */
.woocommerce-account .woocommerce {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 20%;
  max-width: 280px;  /* opcjonalny limit */
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 auto;
  min-width: 0;      /* zapobiega overflow (długie linki itp.) */
  margin: 0 0 0 2rem;/* jedyny odstęp między menu a treścią */
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  list-style: none;
  border-bottom: 1px solid #eee;
  padding-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li::before {
  content: '';
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex;            /* ikona + tekst w jednej linii */
  align-items: center;
  gap: 20px;
  padding: 10px 5px;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:before {
  opacity: .25;
  line-height: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a:before,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover:before {
  opacity: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a:before { content: "🔰"; font-size: 21px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a:before    { content: "🛍️"; font-size: 21px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a:before { content: "💾"; font-size: 21px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a:before { content: "📝"; font-size: 21px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--payment-methods a:before { content: "💸"; font-size: 21px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a:before { content: "👤"; font-size: 21px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:before { content: "🔐"; font-size: 21px; }

.woocommerce-account .woocommerce-MyAccount-content h2 {
  font-size: 25px;
  text-align: center;
  font-weight: 600;
}

.woocommerce p.order-again {
  text-align: right;
}

.woocommerce .woocommerce-EditAccountForm input[type="submit"] {
  margin-top: 50px;
  float: right;
}

.u-column1.col-1.woocommerce-Address,
.u-column2.col-2.woocommerce-Address {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
}

.u-column1.col-1.woocommerce-Address h2,
.u-column2.col-2.woocommerce-Address h2 {
  font-size: 24px;
  text-align: left;
  font-weight: 700;
  margin: 20px 0;
}

.u-column1.col-1.woocommerce-Address a.edit,
.u-column2.col-2.woocommerce-Address a.edit {
  font-size: 12px;
  padding: 10px 17px;
  border: 1px solid #eee;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .woocommerce-account .woocommerce-MyAccount-navigation { flex-basis: 24%; }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce { display: block; }
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    max-width: none;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    margin-left: 0;
  }
}














/* ---------------------------- lista produktów ---------------------------- */

.woocommerce ul.products,
.woocommerce-page ul.products {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0 auto;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    margin: 0 2.5% 2.992em 0;
    width: 23.125%;
}

ul.products li.product:nth-child(4n) {
  margin-right: 0;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    border: 2px solid #E2E4EE;
    border-radius: 8px;
    padding: 15px 15px 30px 15px;
    box-sizing: border-box;
}

.woocommerce ul.products li.product a img {
    border-radius: 8px;
}

.woocommerce div.product div.images img {
    border-radius: 8px;
}

.woocommerce ul.products li::before,
.woocommerce-page ul.products li::before {
    content: none;
}


.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 20px;
    color: #666;
    min-height: 35px;
    margin-bottom: 5px !important;
    font-family: "Poppins", sans-serif;
}

.woocommerce ul.products li.product .price {
    color: #000;
    font-size: 33px;
    font-weight: 800;
}

.woocommerce ul.products li.product .button {
    display: inline-block;
    padding: 15px;
    background-color: #EAFAFF;
    border: 2px solid #000;
    border-radius: 8px;
    color: #000;
    font-weight: 700;

}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    font-size: .8em;
    color: #999;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 10px;
}

.woocommerce nav.woocommerce-pagination ul {
    list-style: none;
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li::before {
    content: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border-right: 0;
    margin: 0 4px;
}

a.added_to_cart.wc-forward {
    padding: 10px 18px;
    border: 1px solid #eee;
    margin-left: 10px;
    border-radius: 10px;
}

.woocommerce .woocommerce-ordering select {
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 10px;
}

.woocommerce ul.products li.product .price del {
    color: inherit;
    opacity: .3;
}

.woocommerce .woocommerce-pagination ul.page-numbers li, .woocommerce-page .woocommerce-pagination ul.page-numbers li {
    border: 2px solid #ccc;
    border-radius: 8px;
}

/* ---------------------------- produkt ---------------------------- */

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000;
    font-size: 3.25em;
    font-weight: 200;
}

.woocommerce div.product form.cart .button, .wp-block-button__link {
    display: inline-block;
    padding: 15px;
    background-color: #EAFAFF;
    border: 2px solid #000;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
}

.woocommerce div.product form.cart .variations label {
    margin-right: 20px;
    font-size: 16px;
}

.related h2 {
    margin-bottom: 40px;
}

.woocommerce-Price-amount {
    font-size: 33px;
    color: #000;
    font-weight: 800;
    margin-bottom: 30px;
}

.woocommerce-product-details__short-description {
    margin: 50px 0;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
    color: #888;
    margin: 20px 0;
}

.product_meta {
    margin: 50px 0;
}

.woocommerce ul.products li.product .onsale {
    margin: -.9em -.9em 0 0;
}
.woocommerce span.onsale {
    min-height: 5.236em;
    min-width: 3.236em;
    padding: .202em;
    font-size: 1em;
    font-weight: 500;
    line-height: 5.236;
    top: -.5em;
    left: -.5em;
    margin: 0;
    border-radius: 100%;
    border: 2px solid #E2E4EE;
    background-color: #ffedea;
    color: red;
    font-size: .857em;
    rotate: 30deg;
    z-index: 9;
}

/* --------------------------------- koszyk ------------------------------------ */

.woocommerce-message {
    border-radius: 10px;
    background-color: #faffe7;
    border: 1px solid #8fae1b;
}

.woocommerce-message::before {
    top: 1.2em;
}

.woocommerce-cart .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.woocommerce-cart .shop_table thead th:first-child {
    border-top-left-radius: 10px;
}

.woocommerce-cart .shop_table thead th:last-child {
    border-top-right-radius: 10px;
}

.woocommerce-cart .shop_table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.woocommerce-cart .shop_table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.woocommerce-cart .shop_table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.woocommerce-cart .shop_table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

.woocommerce-cart .shop_table tbody tr:hover {
    background-color: #f1f1f1;
}

.woocommerce-cart .shop_table input.qty {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woocommerce-cart .cart_totals {
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #f9f9f9;
    margin-top: 20px;
    border-radius: 15px;
}

.woocommerce-cart .cart_totals h2 {
    margin-top: 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #3a5f3d;
}

#add_payment_method table.cart td.actions .coupon .input-text,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout table.cart td.actions .coupon .input-text {
    min-width: 250px;
    padding: 10px 20px;
}

.coupon label {
    float: left;
    margin-right: 10px;
    vertical-align: middle;
}

a.remove {
    color: red;
    font-size: 40px;
    font-weight: 200;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    float: right;
    width: 40%;
    border-radius: 15px;
}

#add_payment_method table.cart img,
.woocommerce-cart table.cart img,
.woocommerce-checkout table.cart img {
    width: 55px;
}

#add_payment_method .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button {
    font-size: 1.1em;
}

.woocommerce-cart .shop_table tbody tr:last-child td:last-child {
    background-color: #f1f1f1;
}

.coupon label {
    margin-top: 9px;
    margin-bottom: 0;
}

h2.wp-block-heading.has-text-align-center.with-empty-cart-icon.wc-block-cart__empty-cart__title {
    text-align: center;
}

.wc-block-grid__product {
  display: block !important;
    padding: 20px !important;
}

/* Wycentrowanie przycisku "Dodaj do koszyka" w kartach Woo Blocks */
.wc-block-grid__product .wc-block-grid__product-add-to-cart{
  display: flex;              /* kontener flex */
  justify-content: center;    /* wyśrodkuj poziomo */
  margin: 0 auto 12px;        /* zachowaj dotychczasowy dół */
}

/* Gdyby motyw rozciągał link na 100% szerokości – przywróć naturalną */
.wc-block-grid__product .wc-block-grid__product-add-to-cart .wp-block-button__link{
  width: auto;
  max-width: 100%;
}


.wc-block-cart__submit-button, .wc-block-components-checkout-return-to-cart-button {
    background-color: #EAFAFF;
    border: 2px solid #000;
    border-radius: 8px;
	padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
	color: #000 !important;
    text-decoration: none;
}

.wc-block-components-checkout-return-to-cart-button svg  {
    left: 5px !important;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    background-color: #EAFAFF !important;
    border: 2px solid #000 !important;
    border-radius: 8px !important;
	padding: 1px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
	color: #000 !important;
    text-decoration: none !important;
}

.wc-block-components-formatted-money-amount {
    font-size: 19px;
    color: #000;
    font-weight: 900;
}


/* ------------------------ button -------------------- */


.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    background-color: #000;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 10px;
    color: #fff;
    border: 0;
    display: inline-block;
}




.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}



/* ------------------------ badge koszyka i listy życzeń ---------------- */

.topicon-link {
    position: relative;
}

.mgk-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 999px;
    background: #FFFF00;
    font: 700 12px/16px "Poppins", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}


/* --------------------------  Lista życzeń --------------------------- */

.mgk-wishlist-btn {
    background: transparent;
    border: 2px solid #000;
    cursor: pointer;
    line-height: 1;
    padding: 13px;
}

.mgk-wishlist-btn .mgk-heart {
    font-size: 18px;
    transition: transform .15s, opacity .15s
}

.mgk-wishlist-btn[aria-pressed="true"] .mgk-heart {
    color: red;
}

.mgk-wishlist-btn:hover .mgk-heart {
    transform: scale(1.1)
}

.mgk-wishlist-wrap {
    margin: 2rem auto
}

.mgk-wishlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem
}

.mgk-wishlist-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: center;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: .5rem
}

a.mgk-thumb img {
    width: 150px;
    height: auto;
}

.mgk-wishlist-main {
    margin-left: 100px;
}

.mgk-price {
    margin: 25px 0;
}

.mgk-actions {
    display: flex;
    gap: .5rem;
    align-items: center
}