/* WooCommerce — shop, category, single product, cart */

.dtv-archive-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.dtv-shop-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.section--gray {
  background: #fafafa;
}

.dtv-page {
  background: #fff;
}

.dtv-page-header {
  padding: 24px 16px 8px;
}

.dtv-page-header .section__title {
  margin-bottom: 8px;
}

.dtv-breadcrumb {
  font-size: 13px;
  color: var(--text-muted, #666);
}

.dtv-breadcrumb a {
  color: var(--red, #e11b22);
}

.dtv-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.dtv-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #666;
}

/* Logo in header */
.dtv-header .logo img,
.dtv-header .logo--img img {
  max-height: 48px;
  width: auto;
}

.footer--dark {
  background: #1a1a1a;
  color: #f0f0f0;
}

.footer--dark a {
  color: #f0f0f0;
}

.footer--dark a:hover {
  color: #ffd800;
}

.footer--dark .footer__logo img {
  max-height: 48px;
  width: auto;
  margin-bottom: 12px;
}

.footer__sub-title {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #ffd800;
}

.footer__payment-icons,
.footer__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer__payment-icons img {
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}

.footer__certs img {
  max-height: 60px;
  width: auto;
}

.footer__legal {
  background: #111;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal p {
  font-size: 12px;
  line-height: 1.7;
  color: #ccc;
  margin: 0;
}

.footer__legal a {
  color: #ffd800;
}

.hero-carousel--images .hero-slide--banner {
  min-height: 320px;
}

.hero-carousel--images .hero-slide--banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.dtv-header .logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.header__action .cart-count {
  background: #fff;
  color: var(--red, #e11b22);
  border-radius: 50%;
  font-size: 10px;
  padding: 2px 6px;
  margin-top: 2px;
}

/* Archive / shop grid */
.dtv-shop .woocommerce-result-count,
.dtv-shop .woocommerce-ordering {
  margin: 0;
}

.dtv-shop .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.dtv-shop .woocommerce ul.products::before,
.dtv-shop .woocommerce ul.products::after {
  display: none;
}

.dtv-shop .woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dtv-shop .woocommerce ul.products li.product:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dtv-shop .woocommerce ul.products li.product a img {
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
  background: #fafafa;
  border-radius: 6px;
}

.dtv-shop .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 0;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.dtv-shop .woocommerce ul.products li.product .price {
  color: #e11b22;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.dtv-shop .woocommerce ul.products li.product .price del {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}

.dtv-shop .woocommerce ul.products li.product .button,
.dtv-shop .woocommerce ul.products li.product .added_to_cart {
  display: none;
}

.dtv-shop .woocommerce-pagination {
  text-align: center;
  margin: 24px 0 40px;
}

.dtv-shop .woocommerce-pagination ul {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.dtv-shop .woocommerce-pagination a,
.dtv-shop .woocommerce-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.dtv-shop .woocommerce-pagination .current {
  background: #e11b22;
  color: #fff;
  border-color: #e11b22;
}

/* Single product */
.dtv-single {
  padding: 16px 0 48px;
  background: #f5f5f5;
}

.dtv-single .woocommerce-notices-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.dtv-single .product {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dtv-single .product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}

.dtv-single .product .summary {
  width: 100% !important;
  float: none !important;
}

.dtv-single .product_title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.dtv-single .summary .price {
  font-size: 28px;
  font-weight: 700;
  color: #e11b22;
  margin-bottom: 16px;
}

.dtv-single .summary .price del {
  font-size: 16px;
  color: #999;
}

.dtv-single .single_add_to_cart_button {
  background: #e11b22 !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 14px 32px !important;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  margin-top: 12px;
}

.dtv-single .single_add_to_cart_button:hover {
  background: #c4161c !important;
}

.dtv-single .woocommerce-tabs {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 16px;
  background: #fff;
  border-radius: 8px;
}

.dtv-single .related.products {
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.dtv-single .related.products > h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid #e11b22;
}

.dtv-single .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* Cart */
.dtv-cart {
  padding: 24px 0 48px;
}

.dtv-cart .woocommerce {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.dtv-cart .woocommerce-cart-form {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.dtv-cart table.shop_table {
  border: none;
}

.dtv-cart table.shop_table th {
  background: #fafafa;
  color: #1a1a1a;
  font-weight: 600;
}

.dtv-cart .cart-collaterals .cart_totals {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
}

.dtv-cart .wc-proceed-to-checkout .checkout-button {
  background: #e11b22 !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 14px !important;
}

.dtv-cart h1.entry-title,
.dtv-cart .wp-block-post-title {
  max-width: 1240px;
  margin: 0 auto 20px;
  padding: 0 16px;
  font-size: 24px;
  font-weight: 700;
}

/* Product card price from WooCommerce inside our cards */
.product-card .price-current .woocommerce-Price-amount {
  color: #e11b22;
  font-weight: 700;
}

.product-card__title a {
  color: inherit;
}

.product-card__title a:hover {
  color: #e11b22;
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  background: #f5f5f5;
  color: #ccc;
  font-size: 40px;
  border-radius: 6px;
}

.product-card__img img {
  max-height: 140px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.section__header {
  align-items: center;
}

@media (max-width: 768px) {
  .section__tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

@media (max-width: 1024px) {
  .dtv-shop .woocommerce ul.products,
  .dtv-single .related.products ul.products {
    grid-template-columns: repeat(3, 1fr);
  }

  .dtv-single .product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dtv-shop .woocommerce ul.products,
  .dtv-single .related.products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}
