/* ================================
   GLOBAL LAYOUT
================================ */
.single-product main.site-main {
  max-width: 1400px;
  margin: auto;
  padding: 40px 20px;
  color: #222;
}

@media (min-width: 992px) {
  .single-product div.product {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: flex-start;
  }
}

/* ================================
   BREADCRUMB
================================ */
.woocommerce-breadcrumb {
  font-size: 14px;
  margin-bottom: 30px;
  color: #777;
}

.woocommerce-breadcrumb a {
  color: #555;
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: #000;
}

/* ================================
   PRODUCT GALLERY
================================ */
.woocommerce-product-gallery {
  background: #fafafa;
  padding: 20px;
  border-radius: 14px;
}

.woocommerce-product-gallery img {
  border-radius: 12px;
}

.flex-control-thumbs {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.flex-control-thumbs li img {
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
  border-color: #000;
}

/* ================================
   PRODUCT TITLE & PRICE
================================ */
.summary .product_title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 15px;
}

.summary .price {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
}

.summary .price del {
  color: #999;
  margin-right: 10px;
}

.summary .price ins {
  color: #c62828;
  text-decoration: none;
}

/* ================================
   PRODUCT SPECS TABLE
================================ */
.woocommerce-product-details__short-description table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  overflow: hidden;
}

.woocommerce-product-details__short-description td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.woocommerce-product-details__short-description tr:last-child td {
  border-bottom: none;
}

.table_zert img {
  max-height: 40px;
}

/* ================================
   VARIATIONS
================================ */
.variations {
  width: 100%;
  margin-bottom: 25px;
}

.variations th {
  text-align: left;
  font-weight: 500;
  padding-bottom: 6px;
}

.variations select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: #fff;
}

.reset_variations {
  font-size: 13px;
  margin-left: 10px;
  color: #888;
}

/* ================================
   ADD TO CART AREA
================================ */
.variations_button {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 25px;
}

.quantity input.qty {
  width: 80px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.single_add_to_cart_button {
  background: #000;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
}

.single_add_to_cart_button:hover {
  background: #333;
}

/* ================================
   PRODUCT META
================================ */
.product_meta {
  margin-top: 25px;
  font-size: 14px;
  color: #777;
}

.product_meta a {
  color: #555;
}

/* ================================
   TABS
================================ */
.wc-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 25px;
}

.wc-tabs li a {
  padding: 12px 0;
  font-weight: 500;
  color: #777;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.wc-tabs li.active a {
  color: #000;
  border-bottom-color: #000;
}

.woocommerce-Tabs-panel {
  font-size: 16px;
  line-height: 1.7;
}

/* ================================
   RELATED PRODUCTS
================================ */
.related.products h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.related.products ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.related.products li.product {
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.related.products li.product:hover {
  transform: translateY(-5px);
}

.related.products img {
  border-radius: 10px;
}

.related.products .price {
  font-weight: 600;
}

/* ================================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 768px) {
  .summary .product_title {
    font-size: 26px;
  }

  .summary .price {
    font-size: 20px;
  }

  .variations_button {
    flex-direction: column;
    align-items: stretch;
  }

  .single_add_to_cart_button {
    width: 100%;
    text-align: center;
  }
}


.woocommerce-page div.product div.summary, .woocommerce-page div.product div.images{width: 100% !important;}

.woocommerce div.product .woocommerce-tabs ul.tabs{display: none !important; }

.woocommerce div.product form.cart .button {all: unset; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--brown); cursor: pointer; transition: all .3s; background: var(--brown);
    color: #fff;
    text-align: center;
    text-transform: uppercase;}
.woocommerce div.product form.cart .button:hover { background: var(--brown); color: #fff; }

.related.products, aside#secondary, .woocommerce span.onsale, .summary.entry-summary p.price {
    display: none;
}

span.price del {
    display: none !important;
}

span.woocommerce-Price-amount.amount bdi{ color: #222; }

.table-bordered, .table-bordered td, .table-bordered th {
    border: 1px solid #d1d1d1 !important;
    border-collapse: collapse;
    padding: 8px;
}

.single-product div#primary {
    margin-top: 50px;
}

.woocommerce-message {
    border-top-color: #8fae1b;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    justify-content: center;
}

.product-type-simple .summary.entry-summary p.price {display: block !important;}

.product-type-simple .summary .price del{display: none !important }

/* ===== CART LAYOUT ===== */
.wp-block-woocommerce-cart {
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
}

/* Main grid */
.wc-block-cart {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .wc-block-cart {
        grid-template-columns: 1fr;
    }
}

/* ===== CART TABLE ===== */
.wc-block-cart-items {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: hidden;
}

.wc-block-cart-items__header th {
    background: #f7f7f7;
    padding: 16px;
    font-weight: 600;
}

.wc-block-cart-items__row td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.wc-block-cart-item__image img {
    max-width: 80px;
    border-radius: 8px;
}

/* Product name */
.wc-block-components-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

/* Price styling */
.wc-block-components-product-price__value {
    font-weight: 600;
    color: var(--brown);
}

/* Sale badge */
.wc-block-components-sale-badge {
    background: #e9f5ff;
    color: var(--brown);
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    margin-top: 6px;
    display: inline-block;
}

/* Quantity box */
.wc-block-components-quantity-selector {
    border-radius: 8px;
    overflow: hidden;
}

/* Remove link */
.wc-block-cart-item__remove-link {
    color: #c0392b;
    font-size: 13px;
    margin-top: 10px;
}

/* ===== SIDEBAR ===== */
.wc-block-cart__sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* Sidebar title */
.wc-block-cart__totals-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Totals rows */
.wc-block-components-totals-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

/* Estimated total */
.wc-block-components-totals-footer-item {
    font-size: 18px;
    font-weight: 700;
}

/* ===== CHECKOUT BUTTON ===== */
.wc-block-cart__submit-container--sticky {
    position: sticky;
    bottom: 20px;
    background: #fff;
    padding-top: 20px;
}

.wc-block-cart__submit-button {
    width: 100%;
    background: var(--brown);
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all .3s ease;
}

.wc-block-cart__submit-button:hover {
    background: #055fd1;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 600px) {
    .wc-block-cart-item__image img {
        max-width: 60px;
    }

    .wc-block-components-product-name {
        font-size: 15px;
    }
}

table.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block{padding: 10px; }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar{width: 100% !important; }
.wc-block-components-sidebar-layout .wc-block-components-main{padding-right: 0 !important; }
.wc-block-components-product-badge{padding: 5px !important; }
.woocommerce-Tabs-panel ul{margin: 0 !important;}
.woocommerce-Tabs-panel li{padding: 0 !important;}