/*
 * Bridge between native Odoo shop markup and the DON COCO design system.
 * Loaded only on /shop* so the rest of the site stays lean (PageSpeed).
 * Rules are additive: product data, prices and cart logic stay Odoo.
 */

#wrapwrap .o_wsale_products_page,
#wrapwrap .o_wsale_product_page {
  font-family: 'GSF', system-ui, sans-serif;
  color: #2A211D;
}

/* Page width and rhythm */
#wrapwrap .o_wsale_products_page .container,
#wrapwrap .o_wsale_products_page .o_wsale_container_lg,
#wrapwrap .o_wsale_product_page .container,
#wrapwrap .o_wsale_product_page .o_wsale_container_lg {
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Headings */
#wrapwrap .o_wsale_products_page h1,
#wrapwrap .o_wsale_product_page h1 {
  font-size: clamp(30px, 4vw, 44px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
  margin: 8px 0 20px !important;
}

/* Left category rail */
#wrapwrap .o_wsale_products_page .o_wsale_products_grid_before_rail h2,
#wrapwrap .o_wsale_products_page .o_wsale_products_grid_before_rail h3,
#wrapwrap .o_wsale_products_page .o_wsale_products_grid_before_rail h4 {
  font-size: 13px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6B625C !important;
  margin-bottom: 10px !important;
}

#wrapwrap .o_wsale_products_page .o_wsale_products_grid_before_rail a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #2A211D;
  text-decoration: none;
}

#wrapwrap .o_wsale_products_page .o_wsale_products_grid_before_rail a:hover {
  color: #7A5B1E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Filter chips */
#wrapwrap .o_wsale_products_page .o_wsale_products_grid_before_rail .badge,
#wrapwrap .o_wsale_products_page .o_wsale_products_grid_before_rail .btn {
  border-radius: 999px !important;
  min-height: 40px;
}

/* Product cards */
#wrapwrap .o_wsale_product_grid_wrapper {
  background: #fff;
  border: 1px solid #E6DCCB;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
  height: 100%;
}

#wrapwrap .o_wsale_product_grid_wrapper:hover {
  border-color: #CFC9C7;
  box-shadow: 0 8px 24px rgba(24, 17, 13, .08);
}

#wrapwrap .o_wsale_product_grid_wrapper .o_wsale_product_information {
  padding: 12px 14px 16px;
}

#wrapwrap .o_wsale_product_grid_wrapper img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #FBFAF7;
  padding: 10px;
  width: 100%;
}

#wrapwrap .o_wsale_product_information_text a,
#wrapwrap .o_wsale_product_information_text .o_wsale_product_sub {
  color: #2A211D !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

#wrapwrap .o_wsale_product_information_text .product_price,
#wrapwrap .o_wsale_product_information_text .oe_price {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2A211D !important;
}

/* Buttons on cards and PDP */
#wrapwrap .o_wsale_product_btn,
#wrapwrap .o_wsale_product_btn_primary,
#wrapwrap #add_to_cart,
#wrapwrap .o_wsale_product_action_row .btn {
  background: #2A211D !important;
  border: 1px solid #2A211D !important;
  color: #fff !important;
  border-radius: 8px !important;
  min-height: 44px;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#wrapwrap .o_wsale_product_btn:hover,
#wrapwrap #add_to_cart:hover {
  background: #3E2C23 !important;
  border-color: #3E2C23 !important;
}

/* Quantity widget */
#wrapwrap .css_quantity .btn,
#wrapwrap .css_quantity input {
  border-color: #E6DCCB !important;
  min-height: 44px;
}

/* PDP gallery */
#wrapwrap .o_wsale_product_images .o_product_detail_img_wrapper,
#wrapwrap .o_wsale_filmstrip_item {
  border: 1px solid #E6DCCB;
  border-radius: 10px;
  background: #fff;
}

#wrapwrap .o_wsale_filmstrip_item img {
  object-fit: contain;
}

/* PDP sections */
#wrapwrap .o_wsale_product_details_content_section_title h1 {
  margin-bottom: 12px !important;
}

#wrapwrap .o_wsale_product_details_content_section_price .oe_price {
  font-size: 26px !important;
  font-weight: 600 !important;
}

#wrapwrap .o_wsale_product_details_content_section_cta {
  margin-top: 18px !important;
}

/* Breadcrumb */
#wrapwrap .o_wsale_breadcrumb a,
#wrapwrap .breadcrumb a {
  color: #6B625C !important;
  font-size: 13px !important;
  text-decoration: none;
}

#wrapwrap .o_wsale_breadcrumb a:hover,
#wrapwrap .breadcrumb a:hover {
  color: #2A211D !important;
  text-decoration: underline;
}


/* Catalogue hero band, matching the design's cat-hero */
#wrapwrap .o_wsale_products_page #o_wsale_products_header {
  background: #F4F1EA;
  border-radius: 0;
  padding: 40px 32px 28px !important;
  margin: 0 0 28px !important;
}

#wrapwrap .o_wsale_products_page #o_wsale_products_header h1 {
  font-size: clamp(32px, 4.4vw, 48px) !important;
  margin: 0 !important;
}

/* Bigger, calmer cards: 4 per row on desktop where Odoo allows it */
#wrapwrap .o_wsale_products_page #products_grid .o_wsale_product_grid_wrapper img {
  min-height: 210px;
}

@media (min-width: 1200px) {
  #wrapwrap .o_wsale_products_page #products_grid .o_wsale_products_grid_table_wrapper > .row > div,
  #wrapwrap .o_wsale_products_page #products_grid .o_wsale_products_grid_table_wrapper > table td {
    width: 25% !important;
    max-width: 25% !important;
  }
}

/* Sort and search controls */
#wrapwrap .o_wsale_products_page .o_sortby_dropdown .btn,
#wrapwrap .o_wsale_products_page .o_searchbar_form .btn {
  border-color: #E6DCCB !important;
  border-radius: 8px !important;
  color: #2A211D !important;
}


/* Design filter rail */
#wrapwrap .dc-filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#wrapwrap .dc-filters-head h2 {
  font-size: 15px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6B625C !important;
  margin: 0 !important;
}

#wrapwrap .dc-filters-reset {
  font-size: 13px;
  color: #7A5B1E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#wrapwrap .dc-filters-group { margin-bottom: 22px; }

#wrapwrap .dc-filters-group h3 {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6B625C !important;
  margin: 0 0 8px !important;
}

#wrapwrap .dc-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  color: #2A211D;
  text-decoration: none;
  border-bottom: 1px solid #EFE6D8;
}

#wrapwrap .dc-filter-link:hover { color: #7A5B1E; }

#wrapwrap .dc-filter-link.is-active {
  font-weight: 600;
  color: #7A5B1E;
}

#wrapwrap .dc-filter-link .count {
  font-size: 12px;
  color: #8A7F76;
}


/* Design product grid and cards */
#wrapwrap .dc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 32px;
}

@media (max-width: 1199.98px) { #wrapwrap .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { #wrapwrap .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

#wrapwrap .dc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E6DCCB;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#wrapwrap .dc-card:hover {
  border-color: #CFC9C7;
  box-shadow: 0 10px 28px rgba(24, 17, 13, .08);
}

#wrapwrap .dc-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #FBFAF7;
  padding: 12px;
}

#wrapwrap .dc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#wrapwrap .dc-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 16px;
}

#wrapwrap .dc-brand {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A7F76;
}

#wrapwrap .dc-name {
  font-size: 14px;
  line-height: 1.4;
  color: #2A211D;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

#wrapwrap .dc-price {
  font-size: 16px;
  font-weight: 600;
  color: #2A211D;
  margin-top: 2px;
}

#wrapwrap .dc-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#wrapwrap .dc-btn-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #2A211D;
  border-radius: 8px;
  background: #2A211D;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

#wrapwrap .dc-btn-cart:hover { background: #3E2C23; color: #fff; }

#wrapwrap .dc-btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  border: 1px solid #E6DCCB;
  border-radius: 8px;
  color: #6B625C;
  text-decoration: none;
}

#wrapwrap .dc-btn-fav:hover { border-color: #CFC9C7; color: #2A211D; }

#wrapwrap .dc-empty { padding: 40px 0; color: #6B625C; }

/* ── PDP: jednotková cena a 18+ badge pod cenou ───────────────────── */
.dc-pdp-unit {
  margin-top: 6px;
  font-size: 13px;
  color: var(--dc-portal-muted, #6B625C);
}

.dc-age-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #E2CFC9;
  border-radius: 8px;
  background: #FBF1EF;
  color: #8C3B32;
  font-size: 13px;
  line-height: 1.5;
}

.dc-age-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: #8C3B32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
