/*
Theme Name: Ashapura Gazolin Child
Theme URI: https://example.com/
Description: Custom child theme for Ashapura China Clay Co. LLP based on the Gazolin theme.
Author: Ashapura China Clay Co. LLP
Template: gazolin
Version: 1.0.1
Text Domain: ashapura-gazolin-child
*/

:root {
  --ashapura-primary: #356182;
  --ashapura-accent: #44A2C5;
  --ashapura-navy: #142D3F;
  --ashapura-body: #3B4A56;
  --ashapura-muted: #6B7C89;
  --ashapura-soft-bg: #F4F8FA;
  --ashapura-link: #2A7C9C;
}

/* Product tables — used on /product/ and single ashapura_product */
.ashapura-product-table-wrap,
.ashapura-product-nav-wrap,
.ashapura-products-index-wrap {
  width: 100%;
  overflow-x: auto;
}

.ashapura-product-table,
.ashapura-product-nav-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(53, 97, 130, 0.08);
}

.ashapura-product-table th,
.ashapura-product-table td,
.ashapura-product-nav-table th,
.ashapura-product-nav-table td {
  border: 1px solid rgba(53, 97, 130, 0.16);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.45;
}

.ashapura-product-table th,
.ashapura-product-nav-table th {
  background: var(--primary-color, var(--ashapura-primary));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
}

.ashapura-product-table tr:nth-child(even) td,
.ashapura-product-nav-table tr:nth-child(even) td {
  background: #f7f9fb;
}

.ashapura-product-table tr:hover td,
.ashapura-product-nav-table tr:hover td {
  background: #eef4f8;
}

.ashapura-product-nav-table tr.is-current td {
  background: #e8f0f6;
}

.ashapura-product-nav-link {
  color: var(--primary-color, var(--ashapura-primary));
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 97, 130, 0.35);
}

.ashapura-product-nav-link:hover {
  border-bottom-color: var(--primary-color, var(--ashapura-primary));
}

.ashapura-product-nav-current {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ashapura-primary);
  background: #d9e6f0;
  padding: 6px 10px;
}

.ashapura-products-index-table td:last-child,
.ashapura-product-nav-table td:last-child {
  white-space: nowrap;
  width: 1%;
}

.single-ashapura_product .entry-content > .elementor {
  max-width: 100%;
}

/* ========== Header tools: one clean row + responsive ========== */
#ct-header-elementor .h-btn-cart,
#ct-header-elementor .ct-cart-popup,
#ct-header-elementor .elementor-widget-ct_icon_cart,
.ct-mobile-meta-item.btn-nav-cart {
  display: none !important;
}

/* Tools column: force single horizontal row */
#ct-header-elementor .ashapura-header-tools-col > .elementor-widget-wrap,
#ct-header-elementor .elementor-element-b8c7e5b > .elementor-widget-wrap,
#ct-header-elementor .elementor-element-291b42d > .elementor-widget-wrap,
#ct-header-elementor .elementor-column:has(.ashapura-header-phone) > .elementor-widget-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0;
  min-height: 70px;
}

#ct-header-elementor .elementor-column:has(.ashapura-header-phone) {
  display: flex !important;
  align-items: center !important;
}

#ct-header-elementor .ashapura-header-search,
#ct-header-elementor .ashapura-header-phone,
#ct-header-elementor .ashapura-header-hamburger,
#ct-header-elementor .ashapura-quote-btn {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  vertical-align: middle;
  float: none !important;
  position: relative !important;
}

/* Dividers between tools — not after the last (hamburger) */
#ct-header-elementor .ashapura-header-search .elementor-widget-container,
#ct-header-elementor .ashapura-header-phone .elementor-widget-container,
#ct-header-elementor .ashapura-quote-btn .elementor-widget-container {
  position: relative;
  padding-right: 16px;
  margin-right: 4px;
}

#ct-header-elementor .ashapura-header-search .elementor-widget-container:after,
#ct-header-elementor .ashapura-header-phone .elementor-widget-container:after,
#ct-header-elementor .ashapura-quote-btn .elementor-widget-container:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: rgba(20, 45, 63, 0.15);
}

#ct-header-elementor .ashapura-header-hamburger .elementor-widget-container {
  position: relative;
  padding-right: 0;
  margin-right: 0;
  padding-left: 4px;
}

/* No divider after hamburger (last item) — overrides theme .nav-bar-tools:after */
#ct-header-elementor .ashapura-header-hamburger.nav-bar-tools .elementor-widget-container:after,
#ct-header-elementor .ashapura-header-hamburger .elementor-widget-container:after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  background: none !important;
}

#ct-header-elementor .ashapura-quote-btn {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Phone block */
#ct-header-elementor .ashapura-header-phone .ct-contact-info3 {
  display: flex !important;
  align-items: center;
  gap: 10px;
  line-height: 1.15;
}

#ct-header-elementor .ashapura-header-phone .ct-contact-icon i,
#ct-header-elementor .ashapura-header-phone .ct-contact-info3 > .ct-contact-icon i {
  font-size: 22px;
  color: var(--ashapura-accent, #44a2c5);
}

#ct-header-elementor .ashapura-header-phone .ct-contact-title {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ashapura-muted, #6b7c89);
  margin: 0;
  font-weight: 500;
}

#ct-header-elementor .ashapura-header-phone .ct-contact-content span,
#ct-header-elementor .ashapura-header-phone .ct-contact-content a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ashapura-navy, #142d3f);
  white-space: nowrap;
  transition: color 0.3s ease;
}

#ct-header-elementor .ashapura-header-phone .ct-contact-content a,
#ct-header-elementor .ashapura-header-phone .ct-contact-content span {
  transition: color 0.3s ease;
}

/* Phone hover — number only (label stays muted) */
#ct-header-elementor .ashapura-header-phone:hover .ct-contact-content a,
#ct-header-elementor .ashapura-header-phone:hover .ct-contact-content a span,
#ct-header-elementor .ashapura-header-phone:hover .ct-contact-content > span {
  color: var(--ashapura-accent, #44a2c5) !important;
}

#ct-header-elementor .ashapura-header-phone:hover .ct-contact-title {
  color: var(--ashapura-muted, #6b7c89) !important;
}

/* Hamburger — Gazolin demo SVG (graduated lines), last in tools */
#ct-header-elementor .ashapura-header-hamburger .ct-hidden-sidebar-icon,
#ct-header-elementor .ashapura-header-hamburger .ct-sidebar-icon,
#ct-header-elementor .ashapura-header-hamburger .ct-sidebar-icon-inner {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
}

#ct-header-elementor .ashapura-header-hamburger .item--icon {
  line-height: 1;
  display: flex;
  align-items: center;
}

#ct-header-elementor .ashapura-header-hamburger .bravis-svg--side-area {
  width: 26px;
  height: 26px;
  display: block;
}

#ct-header-elementor .ashapura-header-hamburger .bravis-svg--side-area line {
  stroke: var(--ashapura-navy, #1c1a30);
}

/* Quote button sizing */
#ct-header-elementor .ashapura-quote-btn .btn,
#ct-header-elementor .ashapura-quote-btn a.btn {
  white-space: nowrap;
  padding: 0px 18px !important;
  font-size: 14px !important;
  height: auto !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

#ct-header-elementor .ashapura-quote-btn .elementor-widget-container,
#ct-header-elementor .ashapura-header-search .elementor-widget-container,
#ct-header-elementor .ashapura-header-phone .elementor-widget-container,
#ct-header-elementor .ashapura-header-hamburger .elementor-widget-container {
  display: flex !important;
  align-items: center !important;
}

/* ----- Tablet ----- */
@media (max-width: 1199px) {
  #ct-header-elementor .ashapura-header-phone .ct-contact-title {
    display: none;
  }

  #ct-header-elementor .ashapura-header-phone .ct-contact-content span,
  #ct-header-elementor .ashapura-header-phone .ct-contact-content a {
    font-size: 13px;
  }

  #ct-header-elementor .ashapura-quote-btn .btn,
  #ct-header-elementor .ashapura-quote-btn a.btn {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

/* ----- Small tablet / large phone: keep tools row, compact phone ----- */
@media (max-width: 991px) {
  #ct-header-elementor .ashapura-header-tools-col > .elementor-widget-wrap,
  #ct-header-elementor .elementor-element-b8c7e5b > .elementor-widget-wrap,
  #ct-header-elementor .elementor-element-291b42d > .elementor-widget-wrap,
  #ct-header-elementor .elementor-column:has(.ashapura-header-phone) > .elementor-widget-wrap {
    flex-wrap: nowrap !important;
    min-height: 60px;
  }

  /* Icon-only phone on smaller widths */
  #ct-header-elementor .ashapura-header-phone .ct-contact-content {
    display: none !important;
  }

  #ct-header-elementor .ashapura-header-phone .elementor-widget-container,
  #ct-header-elementor .ashapura-header-search .elementor-widget-container,
  #ct-header-elementor .ashapura-quote-btn .elementor-widget-container {
    padding-right: 10px;
  }
}

/* ----- Mobile ----- */
@media (max-width: 767px) {
  #ct-header-elementor .ashapura-header-search {
    display: none !important;
  }

  #ct-header-elementor .ashapura-quote-btn .btn,
  #ct-header-elementor .ashapura-quote-btn a.btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  #ct-header-elementor .ashapura-header-phone .elementor-widget-container:after,
  #ct-header-elementor .ashapura-quote-btn .elementor-widget-container:after {
    height: 22px;
  }
}

@media (max-width: 575px) {
  /* Keep hamburger + short quote; phone icon stays */
  #ct-header-elementor .ashapura-quote-btn .btn span,
  #ct-header-elementor .ashapura-quote-btn a.btn span {
    font-size: 11px;
  }
}

/* Fit 6 primary nav items (incl. Contact Us) on one line in header layout 119 */
@media (min-width: 1200px) {
  #ct-header-elementor .ct-main-menu > li {
    margin-left: 9px !important;
    margin-right: 9px !important;
  }
}

/* ----- Business Inquiry (Gazolin Request Quote card) ----- */
.page-slug-business-inquiry #content,
.page-id-8979 #content,
body.page-slug-business-inquiry .site-content,
body.page-id-8979 .site-content {
  background-color: #f8f6f7;
}

.ashapura-business-inquiry-form .row {
  margin-bottom: 0;
}

.ashapura-business-inquiry-form .row.input-contact > [class*="col-"],
.ashapura-business-inquiry-form .row.input-textarea > [class*="col-"] {
  margin-bottom: 18px;
}

.ashapura-business-inquiry-form .ashapura-bi-label {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1a30;
}

.ashapura-business-inquiry-form .ashapura-bi-checkboxes .wpcf7-checkbox,
.ashapura-business-inquiry-form .ashapura-bi-checkboxes .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  padding: 0px !important;
}

.ashapura-business-inquiry-form .ashapura-bi-checkboxes .wpcf7-list-item {
  display: inline-block;
  margin: 0 22px 8px 0;
}

.ashapura-business-inquiry-form .ashapura-bi-checkboxes .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: --ashapura-primary;
  cursor: pointer;
}

.ashapura-business-inquiry-form .ashapura-bi-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #44a2c5;
  cursor: pointer;
}

.ashapura-business-inquiry-form .ashapura-bi-file input[type="file"] {
  width: 100%;
  padding: 14px 0;
  color: #356182;
  font-size: 15px;
}

.ashapura-business-inquiry-form .buttom-contact7 .btn-form {
  text-align: left;
}

.ashapura-business-inquiry-form .buttom-contact7 .btn-form .btn-primary {
  min-width: 180px;
}

/* Keep inquiry card readable on mobile when columns stack */
@media (max-width: 991px) {
  .page-id-8979 .elementor-section > .elementor-container > .elementor-column > .elementor-element-populated,
  .page-slug-business-inquiry .elementor-section > .elementor-container > .elementor-column > .elementor-element-populated {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ----- Contact Us (Gazolin office cards) ----- */
.page-id-84 #content,
.page-slug-contact-us #content,
body.page-id-84 .site-content,
body.page-slug-contact-us .site-content {
  background-color: #f8f6f7;
}

/* Keep office cards centered as a pair under the heading */
.ashapura-cu-offices.elementor-section {
  display: flex;
  justify-content: center;
}

.ashapura-cu-offices > .elementor-container {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  max-width: 1170px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ashapura-cu-offices > .elementor-container > .elementor-column {
  width: calc(50% - 15px) !important;
  max-width: 555px;
  flex: 0 0 calc(50% - 15px);
}

.ashapura-cu-offices > .elementor-container > .elementor-column > .elementor-widget-wrap,
.ashapura-cu-offices > .elementor-container > .elementor-column > .elementor-element-populated {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 5px 5px 40px 5px rgba(9, 29, 62, 0.11);
  padding: 36px 32px 28px !important;
  min-height: 100%;
  height: auto !important;
  overflow: visible !important;
}

.ashapura-cu-subtitle {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

.ashapura-cu-label {
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1c1a30 !important;
}

.ashapura-cu-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.ashapura-cu-list li {
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.45;
}

.ashapura-cu-list a {
  color: #356182;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  word-break: break-word;
}

.ashapura-cu-list a:hover {
  color: #44a2c5;
}

.ashapura-cu-offices .elementor-widget-google_maps {
  overflow: hidden;
  border-radius: 5px;
}

.ashapura-cu-offices .elementor-custom-embed,
.ashapura-cu-offices .elementor-widget-google_maps iframe {
  border-radius: 5px;
}

@media (max-width: 991px) {
  .ashapura-cu-offices > .elementor-container {
    gap: 24px;
  }

  .ashapura-cu-offices > .elementor-container > .elementor-column {
    width: 100% !important;
    max-width: 640px;
    flex: 0 0 100%;
    margin-bottom: 0;
  }

  .ashapura-cu-offices > .elementor-container > .elementor-column > .elementor-widget-wrap,
  .ashapura-cu-offices > .elementor-container > .elementor-column > .elementor-element-populated {
    padding: 28px 22px 22px !important;
  }
}