/* ==========================================================================
   DORINA MELE — Stilim i dyqanit WooCommerce
   --------------------------------------------------------------------------
   Ndërtuar për një katalog PA FOTO: kartat rrotullohen rreth emrit të
   produktit, markës dhe çmimit. Placeholder-i gri i WooCommerce fshihet
   dhe zëvendësohet me një bllok tipografik me emrin e markës.

   Temë: twentytwentyfour (block theme) + Product Collection blocks.
   ========================================================================== */

:root {
  --dm-ink: #14201a;
  --dm-body: #4a564f;
  --dm-line: #e6ebe4;
  --dm-soft: #f5f8f3;
  --dm-accent: #5aa326;
  --dm-accent-strong: #48831e;
  --dm-radius: 14px;
}

/* ==========================================================================
   1. RRJETI I PRODUKTEVE
   Tema e nxjerr si "is-layout-flow" — e kthejmë në grid të vërtetë.
   ========================================================================== */

.wc-block-product-template,
ul.wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   2. KARTA E PRODUKTIT
   ========================================================================== */

li.wc-block-product {
  display: flex !important;
  flex-direction: column;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  box-shadow: 0 8px 24px rgba(31, 31, 44, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

li.wc-block-product:hover {
  transform: translateY(-5px);
  border-color: rgba(90, 163, 38, 0.35);
  box-shadow: 0 20px 42px rgba(57, 99, 31, 0.14);
}

/* ==========================================================================
   3. BLLOKU I MARKËS — zëvendëson foton që nuk ekziston
   ========================================================================== */

/* Fshih placeholder-in gri të WooCommerce */
li.wc-block-product img.woocommerce-placeholder,
li.wc-block-product .wc-block-components-product-image__inner-container {
  display: none !important;
}

/* Kontejneri i imazhit bëhet bllok tipografik */
li.wc-block-product .wc-block-components-product-image {
  position: relative;
  margin: 0;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, #1b2a22 0%, #24382c 55%, #2c4434 100%);
  overflow: hidden;
}

/* Teksturë e lehtë diagonale */
li.wc-block-product .wc-block-components-product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 11px
  );
  pointer-events: none;
}

/* Emri i markës — vjen nga klasa product_cat-* te <li> (rregullat më poshtë) */
li.wc-block-product .wc-block-components-product-image::after {
  content: "DORINA MELE";
  position: relative;
  z-index: 1;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  padding: 0 16px;
  line-height: 1.3;
}

/* Linku brenda bllokut mbulon gjithë sipërfaqen */
li.wc-block-product .wc-block-components-product-image > a {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  font-size: 0;
}

/* --- Emrat e markave sipas kategorisë --- */
li.product_cat-ivoclar    .wc-block-components-product-image::after { content: "IVOCLAR"; }
li.product_cat-komet      .wc-block-components-product-image::after { content: "KOMET"; }
li.product_cat-renfert    .wc-block-components-product-image::after { content: "RENFERT"; }
li.product_cat-gerho      .wc-block-components-product-image::after { content: "GERHO"; }
li.product_cat-bego       .wc-block-components-product-image::after { content: "BEGO"; }
li.product_cat-kavo       .wc-block-components-product-image::after { content: "KAVO"; }
li.product_cat-rhein-83   .wc-block-components-product-image::after { content: "RHEIN 83"; }
li.product_cat-sunstar    .wc-block-components-product-image::after { content: "SUNSTAR"; }
li.product_cat-scheu      .wc-block-components-product-image::after { content: "SCHEU"; }
li.product_cat-fino       .wc-block-components-product-image::after { content: "FINO"; }
li.product_cat-asa-dental .wc-block-components-product-image::after { content: "ASA DENTAL"; }
li.product_cat-ceka       .wc-block-components-product-image::after { content: "CEKA"; }
li.product_cat-kettenbach .wc-block-components-product-image::after { content: "KETTENBACH"; }
li.product_cat-ems        .wc-block-components-product-image::after { content: "EMS"; }
li.product_cat-max-stir   .wc-block-components-product-image::after { content: "MAX STIR"; }
li.product_cat-waterpik   .wc-block-components-product-image::after { content: "WATERPIK"; }
li.product_cat-dentalfarm .wc-block-components-product-image::after { content: "DENTALFARM"; }
li.product_cat-amann      .wc-block-components-product-image::after { content: "AMANN"; }
li.product_cat-kerr       .wc-block-components-product-image::after { content: "KERR"; }
li.product_cat-carl-martin .wc-block-components-product-image::after { content: "CARL MARTIN"; }
li.product_cat-med-faktor .wc-block-components-product-image::after { content: "MED FAKTOR"; }
li.product_cat-erkodent   .wc-block-components-product-image::after { content: "ERKODENT"; }
li.product_cat-melag      .wc-block-components-product-image::after { content: "MELAG"; }
li.product_cat-vivadent   .wc-block-components-product-image::after { content: "VIVADENT"; }
li.product_cat-te-tjera   .wc-block-components-product-image::after { content: "DORINA MELE"; }

/* Nuanca të ndryshme sfondi për markat kryesore — rrjeti të mos duket monoton */
li.product_cat-komet   .wc-block-components-product-image { background: linear-gradient(135deg, #1e2b33 0%, #263a45 55%, #2d4653 100%); }
li.product_cat-renfert .wc-block-components-product-image { background: linear-gradient(135deg, #2b2620 0%, #3a3229 55%, #473d31 100%); }
li.product_cat-bego    .wc-block-components-product-image { background: linear-gradient(135deg, #2a2130 0%, #382c40 55%, #43354d 100%); }
li.product_cat-kavo    .wc-block-components-product-image { background: linear-gradient(135deg, #1d2a2e 0%, #27383d 55%, #2f444a 100%); }
li.product_cat-gerho   .wc-block-components-product-image { background: linear-gradient(135deg, #2e2422 0%, #3d302c 55%, #4a3a35 100%); }

/* ==========================================================================
   4. EMRI I PRODUKTIT
   ========================================================================== */

li.wc-block-product .wp-block-post-title {
  margin: 18px 20px 0 !important;
  padding: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.45 !important;
  text-align: left !important;
  /* emrat janë teknikë dhe të gjatë — 3 rreshta, pastaj … */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

li.wc-block-product .wp-block-post-title a {
  color: var(--dm-ink);
  text-decoration: none;
  transition: color 0.25s ease;
}

li.wc-block-product:hover .wp-block-post-title a {
  color: var(--dm-accent-strong);
}

/* ==========================================================================
   5. ÇMIMI — elementi kryesor i kartës
   ========================================================================== */

li.wc-block-product .wp-block-woocommerce-product-price {
  margin: 12px 20px 0 !important;
  text-align: left !important;
  font-size: inherit !important;
}

li.wc-block-product .wc-block-components-product-price {
  display: block;
  text-align: left;
}

/* WooCommerce e nxjerr çmimin si .woocommerce-Price-amount > bdi */
li.wc-block-product .woocommerce-Price-amount,
li.wc-block-product .wc-block-components-product-price__value {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dm-accent-strong);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

li.wc-block-product .woocommerce-Price-currencySymbol {
  font-size: 0.62em;
  font-weight: 600;
  margin-left: 1px;
  vertical-align: baseline;
}

/* çmimi i vjetër kur ka ofertë */
li.wc-block-product .wc-block-components-product-price del,
li.wc-block-product .wc-block-components-product-price del .woocommerce-Price-amount,
li.wc-block-product .wc-block-components-product-price__regular {
  font-size: 14px !important;
  font-weight: 500;
  color: #9aa49c !important;
  margin-right: 8px;
  text-decoration: line-through;
}

li.wc-block-product .wc-block-components-product-price ins {
  text-decoration: none;
}

/* ==========================================================================
   6. BUTONI "SHTO NË SHPORTË"
   ========================================================================== */

li.wc-block-product .wc-block-components-product-button {
  margin: 16px 20px 20px !important;
  text-align: left !important;
}

li.wc-block-product .wc-block-components-product-button__button,
li.wc-block-product .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px !important;
  border: 0;
  border-radius: 50px !important;
  background: var(--dm-accent) !important;
  color: #fff !important;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 13.5px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(90, 163, 38, 0.24);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

li.wc-block-product .wc-block-components-product-button__button:hover,
li.wc-block-product .wp-block-button__link:hover {
  background: var(--dm-accent-strong) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(72, 131, 30, 0.32);
}

li.wc-block-product .wc-block-components-product-button__button.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ==========================================================================
   7. SHENJAT E GJENDJES (stok / ofertë)
   ========================================================================== */

li.wc-block-product.outofstock::before,
li.wc-block-product.onsale::before {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

li.wc-block-product.onsale::before {
  content: "Ofertë";
  background: var(--dm-accent);
}

li.wc-block-product.outofstock::before {
  content: "Pa stok";
  background: rgba(20, 32, 26, 0.8);
}

li.wc-block-product.outofstock {
  opacity: 0.72;
}

/* ==========================================================================
   8. KOKA E FAQES SË DYQANIT
   ========================================================================== */

.woocommerce-products-header,
.wp-block-query-title,
.wp-block-term-description {
  text-align: center;
}

.wc-block-product-results-count,
.woocommerce-result-count {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--dm-soft);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dm-body);
}

/* renditja */
.wc-block-catalog-sorting select,
.woocommerce-ordering select {
  padding: 10px 16px;
  border: 1px solid var(--dm-line);
  border-radius: 50px;
  background: #fff;
  font-size: 14px;
  color: var(--dm-ink);
  cursor: pointer;
}

/* ==========================================================================
   9. FAQOSJA (pagination)
   ========================================================================== */

.wp-block-query-pagination {
  gap: 8px;
  margin-top: 40px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--dm-line);
  border-radius: 50px;
  background: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dm-ink);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.wp-block-query-pagination a:hover {
  border-color: var(--dm-accent);
  background: rgba(90, 163, 38, 0.07);
  color: var(--dm-accent-strong);
}

.wp-block-query-pagination .page-numbers.current {
  background: var(--dm-accent);
  border-color: var(--dm-accent);
  color: #fff;
}

/* ==========================================================================
   10. FAQJA E PRODUKTIT TË VETËM
   --------------------------------------------------------------------------
   Struktura reale:
     .wp-block-woocommerce-product-image-gallery
       └ .woocommerce-product-gallery.woocommerce-product-gallery--without-images
           └ .woocommerce-product-gallery__wrapper
               └ .woocommerce-product-gallery__image--placeholder
                   └ img.wp-post-image
   ========================================================================== */

/* Fshih placeholder-in gri — img-ja ka klasën wp-post-image, jo woocommerce-placeholder */
.single-product .woocommerce-product-gallery__image--placeholder,
.single-product .woocommerce-product-gallery--without-images img,
.single-product .woocommerce-product-gallery img.woocommerce-placeholder {
  display: none !important;
}

/* WooCommerce e nis galerinë me opacity:0 dhe e ngre me JS.
   Pa foto, JS-i mund të mos e ngrejë kurrë — e detyrojmë. */
.single-product .woocommerce-product-gallery {
  opacity: 1 !important;
}

/* Blloku i markës — VETËM te kontejneri i jashtëm, që teksti të mos dyfishohet */
.single-product .wp-block-woocommerce-product-image-gallery {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dm-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1b2a22 0%, #24382c 55%, #2c4434 100%);
}

.single-product .wp-block-woocommerce-product-image-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 14px
  );
}

.single-product .wp-block-woocommerce-product-image-gallery::after {
  content: "DORINA MELE";
  position: relative;
  z-index: 1;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 0 20px;
}

/* Emri i markës sipas kategorisë së produktit (klasa është te <body>) */
body.product_cat-ivoclar   .wp-block-woocommerce-product-image-gallery::after { content: "IVOCLAR"; }
body.product_cat-komet     .wp-block-woocommerce-product-image-gallery::after { content: "KOMET"; }
body.product_cat-renfert   .wp-block-woocommerce-product-image-gallery::after { content: "RENFERT"; }
body.product_cat-gerho     .wp-block-woocommerce-product-image-gallery::after { content: "GERHO"; }
body.product_cat-bego      .wp-block-woocommerce-product-image-gallery::after { content: "BEGO"; }
body.product_cat-kavo      .wp-block-woocommerce-product-image-gallery::after { content: "KAVO"; }
body.product_cat-rhein-83  .wp-block-woocommerce-product-image-gallery::after { content: "RHEIN 83"; }
body.product_cat-sunstar   .wp-block-woocommerce-product-image-gallery::after { content: "SUNSTAR"; }
body.product_cat-scheu     .wp-block-woocommerce-product-image-gallery::after { content: "SCHEU"; }
body.product_cat-fino      .wp-block-woocommerce-product-image-gallery::after { content: "FINO"; }
body.product_cat-komet     .wp-block-woocommerce-product-image-gallery { background: linear-gradient(135deg, #1e2b33 0%, #263a45 55%, #2d4653 100%); }
body.product_cat-renfert   .wp-block-woocommerce-product-image-gallery { background: linear-gradient(135deg, #2b2620 0%, #3a3229 55%, #473d31 100%); }
body.product_cat-bego      .wp-block-woocommerce-product-image-gallery { background: linear-gradient(135deg, #2a2130 0%, #382c40 55%, #43354d 100%); }
body.product_cat-kavo      .wp-block-woocommerce-product-image-gallery { background: linear-gradient(135deg, #1d2a2e 0%, #27383d 55%, #2f444a 100%); }
body.product_cat-gerho     .wp-block-woocommerce-product-image-gallery { background: linear-gradient(135deg, #2e2422 0%, #3d302c 55%, #4a3a35 100%); }

/* --- Titulli dhe çmimi --- */

.single-product .wp-block-post-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dm-ink);
}

.single-product .wp-block-woocommerce-product-price .woocommerce-Price-amount,
.single-product .price .woocommerce-Price-amount,
.single-product .wc-block-components-product-price__value {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 30px !important;
  font-weight: 700;
  color: var(--dm-accent-strong);
}

.single-product .woocommerce-Price-currencySymbol {
  font-size: 0.6em;
  font-weight: 600;
}

/* --- Sasia dhe butoni --- */

.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.single-product .quantity input.qty {
  width: 76px;
  height: 50px;
  padding: 0 10px;
  border: 1px solid var(--dm-line);
  border-radius: 50px;
  text-align: center;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dm-ink);
  background: #fff;
}

.single-product button.single_add_to_cart_button,
.single-product .wp-block-add-to-cart-form button {
  height: 50px;
  padding: 0 34px !important;
  border: 0;
  border-radius: 50px !important;
  background: var(--dm-accent) !important;
  color: #fff !important;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(90, 163, 38, 0.26);
  transition: background 0.25s ease, transform 0.25s ease;
}

.single-product button.single_add_to_cart_button:hover,
.single-product .wp-block-add-to-cart-form button:hover {
  background: var(--dm-accent-strong) !important;
  transform: translateY(-2px);
}

/* --- Meta (Kodi / Kategoria / Marka) --- */

.single-product .product_meta,
.single-product .wp-block-woocommerce-product-sku,
.single-product .wp-block-post-terms {
  font-size: 14px;
  color: var(--dm-body);
}

.single-product .product_meta a,
.single-product .wp-block-post-terms a {
  color: var(--dm-accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.single-product .product_meta a:hover { text-decoration: underline; }

/* --- Skedat (Informacion shtesë / Vlerësime) --- */

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0 0 2px;
  list-style: none;
  border-bottom: 1px solid var(--dm-line);
}

.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 20px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dm-body);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--dm-accent-strong);
  border-bottom-color: var(--dm-accent);
}

.single-product .shop_attributes th {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  color: var(--dm-ink);
  padding: 12px 16px 12px 0;
  text-align: left;
}

.single-product .shop_attributes td {
  padding: 12px 0;
  color: var(--dm-body);
}

.single-product .shop_attributes tr + tr th,
.single-product .shop_attributes tr + tr td {
  border-top: 1px solid var(--dm-line);
}

/* ==========================================================================
   10b. PRODUKTE TË NGJASHME
   Përdorin të njëjtin bllok, por me klasat is-flex-container / columns-5,
   të cilat i bëjnë kartat shirita të ngushtë. I neutralizojmë.
   ========================================================================== */

.wc-block-product-template.is-flex-container,
ul.wc-block-product-template.columns-2,
ul.wc-block-product-template.columns-3,
ul.wc-block-product-template.columns-4,
ul.wc-block-product-template.columns-5,
ul.wc-block-product-template.columns-6 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 22px !important;
}

/* Kartat të mos ngushtohen nga rregullat e WooCommerce */
li.wc-block-product {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
}

/* Blloku i markës të mbushë gjerësinë e kartës */
li.wc-block-product .wc-block-components-product-image {
  width: 100% !important;
  align-self: stretch;
  box-sizing: border-box;
}

/* Teksti i markës të mos dalë jashtë kur karta është e ngushtë */
li.wc-block-product .wc-block-components-product-image::after {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   10c. SHPORTA ME BLLOQE (wc-block-cart)
   --------------------------------------------------------------------------
   Shporta renderohet nga React. Kontrollet e sasisë dhe linku "Hiqe"
   duhet të mbeten të dukshme dhe të klikueshme — CSS-i i faqes kryesore
   ka një reset global (* { margin:0; padding:0 }) që i rrafshon.
   Prandaj këtu i ri-përcaktojmë shprehimisht.
   ========================================================================== */

/* --- Rreshti i artikullit --- */

.wc-block-cart-items__row {
  border-bottom: 1px solid var(--dm-line);
}

.wc-block-cart-item__wrap {
  padding: 18px 0;
}

.wc-block-components-product-name {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dm-ink);
  text-decoration: none;
  line-height: 1.45;
}

.wc-block-components-product-name:hover {
  color: var(--dm-accent-strong);
}

/* Fotoja mungon gjithsesi — e zvogëlojmë, por NUK e fshehim,
   që struktura e tabelës të mbetet e paprekur. */
.wc-block-cart-item__image {
  width: 1px;
  padding: 0 !important;
}

.wc-block-cart-item__image img {
  display: none !important;
}

/* --- ZGJEDHËSI I SASISË (+ / −) --- */

.wc-block-components-quantity-selector {
  display: flex !important;
  align-items: center;
  width: auto !important;
  min-width: 118px;
  max-width: 140px;
  margin: 8px 0 !important;
  border: 1px solid var(--dm-line) !important;
  border-radius: 50px !important;
  background: #fff;
  overflow: hidden;
}

.wc-block-components-quantity-selector::after {
  display: none !important;
}

.wc-block-components-quantity-selector__button {
  display: grid !important;
  place-items: center;
  width: 38px !important;
  min-width: 38px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dm-ink) !important;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 19px !important;
  font-weight: 600;
  line-height: 1;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background: rgba(90, 163, 38, 0.12) !important;
  color: var(--dm-accent-strong) !important;
}

.wc-block-components-quantity-selector__button:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
}

.wc-block-components-quantity-selector__input {
  flex: 1;
  width: 42px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--dm-ink);
  -moz-appearance: textfield;
}

.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- LINKU "HIQE" --- */

.wc-block-cart-item__remove-link {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin-top: 6px !important;
  padding: 4px 0 !important;
  border: 0 !important;
  background: none !important;
  font-family: "Rubik", sans-serif;
  font-size: 13px !important;
  font-weight: 500;
  color: #c0392b !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  cursor: pointer !important;
}

.wc-block-cart-item__remove-link:hover {
  color: #96271a !important;
}

/* --- Çmimet në shportë --- */

.wc-block-components-product-price__value,
.wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-price__value {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  color: var(--dm-ink);
}

.wc-block-cart-item__prices .wc-block-components-product-price__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--dm-body);
}

/* --- Totalet --- */

.wc-block-components-totals-wrapper {
  padding: 14px 0 !important;
  border-top: 1px solid var(--dm-line);
}

.wc-block-components-totals-item__label {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: var(--dm-body);
}

.wc-block-components-totals-item__value {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  color: var(--dm-ink);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--dm-accent-strong);
}

/* --- Butonat kryesorë --- */

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained,
.woocommerce .checkout-button,
.woocommerce .cart .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 30px !important;
  border: 0 !important;
  border-radius: 50px !important;
  background: var(--dm-accent) !important;
  color: #fff !important;
  font-family: "Poppins", system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.woocommerce .checkout-button:hover {
  background: var(--dm-accent-strong) !important;
  transform: translateY(-2px);
}

/* butoni "Vazhdo blerjen" — dytësor */
.wc-block-cart__submit-container + a,
.wc-block-components-button.outlined {
  background: transparent !important;
  color: var(--dm-accent-strong) !important;
  border: 1.5px solid rgba(90, 163, 38, 0.4) !important;
}

/* --- Shporta bosh --- */

.wc-block-cart__empty-cart__title {
  font-family: "Poppins", system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700;
  color: var(--dm-ink);
  text-align: center;
}

.wp-block-woocommerce-empty-cart-block {
  text-align: center;
  padding: 20px 0 40px;
}

/* --- Fushat e checkout-it --- */

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-select__container select {
  padding: 14px 16px !important;
  border: 1px solid var(--dm-line) !important;
  border-radius: 10px !important;
  background: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  color: var(--dm-ink);
}

.wc-block-components-text-input input:focus {
  border-color: var(--dm-accent) !important;
  outline: 2px solid rgba(90, 163, 38, 0.18);
  outline-offset: 0;
}

/* ==========================================================================
   10d. BUTONI "KONTAKTO PËR TË BLERË"
   ========================================================================== */

.dm-contact-buy {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 28px;
  border: 1.5px solid rgba(20, 32, 26, 0.16);
  border-radius: 50px;
  background: transparent;
  color: var(--dm-ink) !important;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease;
}

.dm-contact-buy i { font-size: 14px; }

.dm-contact-buy:hover {
  background: var(--dm-ink);
  border-color: var(--dm-ink);
  color: #fff !important;
  transform: translateY(-2px);
}

.dm-buy-note {
  width: 100%;
  margin-top: 10px;
  font-family: "Rubik", sans-serif;
  font-size: 13.5px;
  color: var(--dm-body);
}

@media (max-width: 575px) {
  .dm-contact-buy { width: 100%; }
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (max-width: 781px) {
  .wc-block-product-template,
  ul.wc-block-product-template {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
  }

  li.wc-block-product .wp-block-post-title {
    margin: 14px 15px 0 !important;
    font-size: 14px !important;
  }

  li.wc-block-product .wp-block-woocommerce-product-price { margin: 10px 15px 0 !important; }
  li.wc-block-product .woocommerce-Price-amount { font-size: 19px; }
  li.wc-block-product .wc-block-components-product-button { margin: 12px 15px 15px !important; }
  li.wc-block-product .wc-block-components-product-image { min-height: 84px; }
  li.wc-block-product .wc-block-components-product-image::after { font-size: 14px; }
}

@media (max-width: 420px) {
  .wc-block-product-template,
  ul.wc-block-product-template {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ==========================================================================
   12. AKSESUESHMËRIA
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  li.wc-block-product,
  li.wc-block-product .wc-block-components-product-button__button,
  li.wc-block-product .wp-block-button__link {
    transition: none;
  }
  li.wc-block-product:hover { transform: none; }
}

li.wc-block-product a:focus-visible,
.wp-block-query-pagination a:focus-visible {
  outline: 2px solid var(--dm-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   10e. CHECKOUT KLASIK (shortcode [woocommerce_checkout])
   --------------------------------------------------------------------------
   Shporta është me blloqe, por checkout-i përdor shortcode-in klasik.
   Prandaj i duhen selektorë të tjerë nga ata të bllokut.
   ========================================================================== */

.woocommerce-checkout .woocommerce {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Dy kolona: të dhënat majtas, porosia djathtas --- */

.woocommerce-checkout #customer_details {
  display: block;
}

@media (min-width: 900px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: start;
  }
  .woocommerce-checkout #customer_details { grid-column: 1; }
  .woocommerce-checkout h3#order_review_heading,
  .woocommerce-checkout #order_review { grid-column: 2; }
}

/* --- Titujt --- */

.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--dm-ink);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dm-line);
}

/* --- Fushat --- */

.woocommerce-checkout .form-row {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
  padding: 0;
}

.woocommerce-checkout .form-row label {
  margin-bottom: 7px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dm-ink);
}

.woocommerce-checkout .form-row .required {
  color: #c0392b;
  text-decoration: none;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .select2-container .select2-selection--single {
  width: 100%;
  height: 48px;
  padding: 12px 15px !important;
  border: 1px solid var(--dm-line) !important;
  border-radius: 10px !important;
  background: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  color: var(--dm-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-checkout textarea {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  border-color: var(--dm-accent) !important;
  box-shadow: 0 0 0 3px rgba(90, 163, 38, 0.15);
  outline: none;
}

/* select2 (zgjedhja e shtetit) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
}

.woocommerce-checkout .select2-container--default .select2-selection--single
  .select2-selection__rendered {
  padding: 0;
  line-height: normal;
  color: var(--dm-ink);
}

/* dy fusha krah për krah (emri / mbiemri) */
@media (min-width: 600px) {
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    display: inline-flex;
    width: calc(50% - 7px);
    vertical-align: top;
  }
  .woocommerce-checkout .form-row-first { margin-right: 12px; }
}

/* --- Përmbledhja e porosisë --- */

.woocommerce-checkout #order_review {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(31, 31, 44, 0.05);
}

.woocommerce-checkout #order_review_heading {
  margin-top: 0;
}

.woocommerce-checkout table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--dm-line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.woocommerce-checkout table.shop_table th {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dm-body);
}

.woocommerce-checkout table.shop_table .product-name {
  font-weight: 500;
  color: var(--dm-ink);
}

.woocommerce-checkout table.shop_table .product-total,
.woocommerce-checkout table.shop_table td:last-child,
.woocommerce-checkout table.shop_table th:last-child {
  text-align: right;
}

.woocommerce-checkout table.shop_table tfoot .order-total th,
.woocommerce-checkout table.shop_table tfoot .order-total td {
  padding-top: 16px;
  border-bottom: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dm-ink);
}

.woocommerce-checkout table.shop_table tfoot .order-total .woocommerce-Price-amount {
  color: var(--dm-accent-strong);
  font-size: 22px;
}

/* --- Pagesa --- */

.woocommerce-checkout #payment {
  background: var(--dm-soft);
  border-radius: 12px;
  padding: 18px;
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
  margin-bottom: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
  border-color: rgba(90, 163, 38, 0.45);
}

.woocommerce-checkout #payment ul.payment_methods label {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dm-ink);
  cursor: pointer;
}

.woocommerce-checkout #payment .payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--dm-soft);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dm-body);
}

.woocommerce-checkout #payment .payment_box::before {
  display: none !important;
}

/* --- Butoni i porosisë --- */

.woocommerce-checkout #place_order,
.woocommerce-checkout button.button.alt {
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border: 0 !important;
  border-radius: 50px !important;
  background: var(--dm-accent) !important;
  color: #fff !important;
  font-family: "Poppins", system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(90, 163, 38, 0.26);
  transition: background 0.25s ease, transform 0.25s ease;
}

.woocommerce-checkout #place_order:hover {
  background: var(--dm-accent-strong) !important;
  transform: translateY(-2px);
}

/* --- Kushtet --- */

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.woocommerce-checkout input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--dm-accent);
  flex: 0 0 auto;
}

/* --- Kupon --- */

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon {
  margin-bottom: 20px;
}

.woocommerce-checkout .checkout_coupon {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
}

@media (max-width: 899px) {
  .woocommerce-checkout #order_review { margin-top: 26px; }
}
