/* Pages skin — cart, checkout, account, blog, content */

body.ik-theme .ik-cart-section,
body.ik-theme .ik-checkout-section,
body.ik-theme .ik-account-section {
  padding: 40px 0 70px;
}

body.ik-theme .cart-layout,
body.ik-theme .checkout-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 35px;
  align-items: start;
}

body.ik-theme .cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

body.ik-theme .cart-heading h2 {
  margin: 0;
  font-size: 20px;
}

body.ik-theme .cart-items .shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
}

body.ik-theme .cart-items .shop_table th,
body.ik-theme .cart-items .shop_table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

body.ik-theme .cart-items .product-thumbnail img {
  width: 90px;
  height: 80px;
  object-fit: contain;
}

body.ik-theme .continue-shopping {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold-dark, #c9820e);
  font-weight: 700;
}

body.ik-theme .order-summary,
body.ik-theme .cart-collaterals .cart_totals,
body.ik-theme .checkout-review {
  padding: 22px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  position: sticky;
  top: 20px;
}

body.ik-theme .order-summary h2,
body.ik-theme .order-summary h3,
body.ik-theme .cart_totals h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

body.ik-theme .wc-proceed-to-checkout a.checkout-button,
body.ik-theme .order-summary .checkout-button,
body.ik-theme #place_order {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--gold, #e39c27) !important;
  color: #161616 !important;
  font-weight: 800;
  text-align: center;
  line-height: 46px;
  text-decoration: none;
}

body.ik-theme .checkout-layout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

body.ik-theme .checkout-layout .form-row input,
body.ik-theme .checkout-layout .form-row select,
body.ik-theme .checkout-layout .form-row textarea,
body.ik-theme .woocommerce-MyAccount-content input,
body.ik-theme .woocommerce-MyAccount-content select,
body.ik-theme .woocommerce-MyAccount-content textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
}

/* Account */
body.ik-theme .account-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: start;
}

body.ik-theme .account-nav {
  padding: 18px;
  display: grid;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

body.ik-theme .account-nav > div {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

body.ik-theme .account-nav > a {
  padding: 11px 8px;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 12px;
  text-decoration: none;
}

body.ik-theme .account-nav > a.is-active,
body.ik-theme .account-nav > a[aria-current="page"],
body.ik-theme .account-nav li.is-active a {
  color: var(--gold-dark, #c9820e);
  font-weight: 800;
}

body.ik-theme .account-content {
  min-width: 0;
  padding: 22px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

/* Blog */
body.ik-theme .blog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: start;
}

body.ik-theme .sidebar-search {
  position: relative;
  margin-bottom: 18px;
  display: flex;
}

body.ik-theme .sidebar-search input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

body.ik-theme .sidebar-search button {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

body.ik-theme .sidebar-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #666;
  stroke-width: 1.8;
}

body.ik-theme .sidebar-box {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

body.ik-theme .sidebar-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

body.ik-theme .sidebar-box a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-size: 12px;
  text-decoration: none;
}

body.ik-theme .sidebar-cta {
  padding: 22px;
  border-radius: 10px;
  background: linear-gradient(140deg, #252525, #6a4513);
  color: #fff;
}

body.ik-theme .sidebar-cta span {
  color: var(--gold, #e39c27);
  font-size: 12px;
}

body.ik-theme .sidebar-cta h3 {
  margin: 8px 0 16px;
  font-size: 18px;
}

body.ik-theme .sidebar-cta .btn-light {
  background: #fff;
  color: #20160a;
  text-decoration: none;
}

body.ik-theme .featured-post {
  min-height: 340px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: 10px;
  color: #fff;
  background: #222;
  overflow: hidden;
}

body.ik-theme .featured-post > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.ik-theme .featured-post > div {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.ik-theme .post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

body.ik-theme .post-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

body.ik-theme .post-card {
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

body.ik-theme .post-card__image {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
}

body.ik-theme .post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.ik-theme .post-card__image span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--gold, #e39c27);
  color: #1c160c;
  font-size: 11px;
  font-weight: 800;
}

body.ik-theme .post-card > div {
  padding: 16px;
}

body.ik-theme .post-card time {
  color: #888;
  font-size: 11px;
}

body.ik-theme .post-card h2 {
  margin: 6px 0;
  font-size: 16px;
  line-height: 1.6;
}

body.ik-theme .post-card h2 a {
  text-decoration: none;
}

body.ik-theme .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 45px;
  align-items: start;
}

body.ik-theme .article-meta {
  margin-bottom: 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #888;
  font-size: 11px;
}

body.ik-theme .article-cover {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: unset;
  display: block;
  margin-bottom: 24px;
  background: #f3f3f0;
}

body.ik-theme .content-prose {
  max-width: none;
  width: 100%;
  line-height: 2.15;
  font-size: 15px;
}

body.ik-theme .content-prose img,
body.ik-theme .content-prose figure,
body.ik-theme .content-prose .wp-block-image {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 9px;
  margin: 20px auto;
  display: block;
  float: none;
  clear: both;
  text-align: center;
}

body.ik-theme .content-prose figure img,
body.ik-theme .content-prose .wp-block-image img {
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

body.ik-theme .content-prose table {
  width: 100%;
  border-collapse: collapse;
}

body.ik-theme .content-prose .table-responsive,
body.ik-theme .content-prose .table-responsive-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

body.ik-theme .content-prose th,
body.ik-theme .content-prose td {
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
}

body.ik-theme .term-description-section {
  padding: 10px 0 50px;
}

body.ik-theme .term-description.content-prose {
  max-width: none;
}

/* ---- Contact page ---- */
body.ik-theme .ik-contact-section {
  padding-top: 50px;
}

body.ik-theme .contact-cards > a {
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}

body.ik-theme .contact-cards > a:hover {
  border-color: var(--gold, #e39c27);
  box-shadow: 0 8px 22px rgba(18, 20, 31, .08);
}

body.ik-theme .ik-contact-form-wrap {
  background: #fff;
}

body.ik-theme .ik-contact-form-body {
  max-width: none;
}

body.ik-theme .ik-contact-form-body .wpforms-container,
body.ik-theme .ik-contact-form-body .wpcf7,
body.ik-theme .ik-contact-form-body form {
  margin: 0;
}

body.ik-theme .ik-contact-form-body .wpforms-field,
body.ik-theme .ik-contact-form-body .wpforms-field-label,
body.ik-theme .ik-contact-form-body label {
  font-size: 12px;
  font-weight: 700;
}

body.ik-theme .ik-contact-form-body input[type="text"],
body.ik-theme .ik-contact-form-body input[type="email"],
body.ik-theme .ik-contact-form-body input[type="tel"],
body.ik-theme .ik-contact-form-body input[type="number"],
body.ik-theme .ik-contact-form-body input[type="url"],
body.ik-theme .ik-contact-form-body select,
body.ik-theme .ik-contact-form-body textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  outline: 0;
  box-shadow: none;
}

body.ik-theme .ik-contact-form-body textarea {
  min-height: 140px;
  resize: vertical;
}

body.ik-theme .ik-contact-form-body button[type="submit"],
body.ik-theme .ik-contact-form-body .wpforms-submit,
body.ik-theme .ik-contact-form-body .wpcf7-submit {
  min-height: 46px;
  padding: 10px 22px;
  border: 0;
  border-radius: 5px;
  background: var(--gold, #e39c27) !important;
  color: #161616 !important;
  font-weight: 800;
  cursor: pointer;
}

body.ik-theme .map-section {
  padding: 10px 0 20px;
}

body.ik-theme .department-grid article {
  background: #fff;
}

/* About / default pages — full width prose */
body.ik-inner-page .section > .container > .content-prose {
  max-width: none;
  width: 100%;
}

/* نوشته صفحه اصلی — تمام‌عرض مثل سکشن محصولات */
body.ik-front #industrial-kitchen-content {
  clear: both;
  width: 100%;
}

body.ik-front #industrial-kitchen-content > .container {
  display: block !important;
  width: min(calc(100% - 40px), var(--container, 1120px)) !important;
  max-width: none !important;
  margin-inline: auto;
  float: none !important;
  box-sizing: border-box;
}

body.ik-front #industrial-kitchen-content .content-prose,
body.ik-front #industrial-kitchen-content .entry-content {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.ik-front #industrial-kitchen-content .content-prose > *,
body.ik-front #industrial-kitchen-content .entry-content > * {
  max-width: none !important;
  box-sizing: border-box;
}

body.ik-front #industrial-kitchen-content img,
body.ik-front #industrial-kitchen-content .aligncenter,
body.ik-front #industrial-kitchen-content .alignleft,
body.ik-front #industrial-kitchen-content .alignright,
body.ik-front #industrial-kitchen-content .wp-caption,
body.ik-front #industrial-kitchen-content figure,
body.ik-front #industrial-kitchen-content .wp-block-image {
  float: none !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
  text-align: center;
}

/* Legacy templates cleanup */
body.ik-theme .inner-banner-wrap,
body.ik-theme .contacbox .products_index,
body.ik-theme section.serching {
  display: none !important;
}

body.ik-theme .mini-product {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  text-decoration: none;
  color: inherit;
}

body.ik-theme .mini-product img {
  width: 60px;
  height: 55px;
  object-fit: contain;
}

body.ik-theme .mini-product small {
  display: block;
  color: #777;
  font-size: 11px;
}

body.ik-theme .pagination {
  margin-top: 30px;
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
}

body.ik-theme .pagination a,
body.ik-theme .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 12px;
  text-decoration: none;
}

body.ik-theme .pagination .current,
body.ik-theme .pagination a:hover {
  border-color: var(--gold, #e39c27);
  background: var(--gold, #e39c27);
  color: #1a140b;
}

/* Hide old breadcrumbs when page-hero is present */
body.ik-theme .page-hero + .inner-banner-wrap,
body.ik-theme .ik-woo-wrap .inner-banner-wrap {
  display: none !important;
}

@media (max-width: 980px) {
  body.ik-theme .cart-layout,
  body.ik-theme .checkout-layout,
  body.ik-theme .account-shell,
  body.ik-theme .blog-layout,
  body.ik-theme .article-layout,
  body.ik-theme .checkout-layout .col2-set,
  body.ik-theme .featured-post {
    grid-template-columns: 1fr;
  }

  body.ik-theme .account-nav {
    display: flex;
    overflow-x: auto;
  }

  body.ik-theme .account-nav > div {
    display: none;
  }

  body.ik-theme .account-nav > a {
    min-width: max-content;
    border-bottom: 0;
  }

  body.ik-theme .post-grid,
  body.ik-theme .post-grid.three-cols {
    grid-template-columns: 1fr;
  }

  body.ik-theme .article-cover {
    width: 100%;
    height: auto;
  }

  body.ik-theme .page-hero {
    min-height: auto;
    padding: 26px 0 30px;
  }

  body.ik-theme .crumb-current {
    display: none;
  }

  body.ik-theme .breadcrumbs > span[aria-hidden="true"]:nth-last-child(2) {
    display: none;
  }

  body.ik-theme .featured-post > img {
    height: 220px;
  }
}

/* ===== Auth + dashboard + mobile polish ===== */
body.ik-theme .account-head {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.ik-theme .account-head h2 { margin: 0; font-size: 22px; }
body.ik-theme .account-head p { margin: 4px 0 0; color: #777; font-size: 12px; }
body.ik-theme .account-head > span {
  padding: 6px 11px;
  border-radius: 20px;
  background: #f0f0ec;
  font-size: 11px;
}
body.ik-theme .account-head > span a {
  text-decoration: none;
  color: #65420a;
  font-weight: 700;
}
body.ik-theme .ik-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}
body.ik-theme .ik-dash-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
body.ik-theme .ik-dash-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold, #e39c27);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}
body.ik-theme .ik-dash-card strong { font-size: 15px; }
body.ik-theme .ik-dash-card span { color: #777; font-size: 12px; line-height: 1.7; }
body.ik-theme .ik-dashboard-note { color: #555; font-size: 13px; line-height: 1.9; }

body.ik-theme .ik-auth-section { padding: 40px 0 70px; }
body.ik-theme .auth-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 70px;
  align-items: center;
}
body.ik-theme .auth-benefits .eyebrow {
  color: var(--gold-dark, #c9820e);
  font-size: 13px;
  font-weight: 800;
}
body.ik-theme .auth-benefits h2 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.55;
}
body.ik-theme .auth-benefits img {
  width: 100%;
  height: 230px;
  margin-top: 20px;
  object-fit: contain;
}
body.ik-theme .auth-card {
  padding: 28px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.07);
}
body.ik-theme .auth-tabs {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #ddd;
}
body.ik-theme .auth-tabs button {
  padding: 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
body.ik-theme .auth-tabs button.is-active {
  border-color: var(--gold, #e39c27);
  color: var(--gold-dark, #c9820e);
  font-weight: 800;
}
body.ik-theme .auth-form { display: none; gap: 12px; }
body.ik-theme .auth-form.is-active,
body.ik-theme .auth-form[style*="display:grid"] { display: grid; }
body.ik-theme .auth-form h2 { margin: 0; }
body.ik-theme .auth-form > p { margin: 0 0 8px; color: #777; font-size: 12px; }
body.ik-theme .auth-form > label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}
body.ik-theme .auth-form > label input,
body.ik-theme .auth-form .woocommerce-Input {
  height: 43px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
body.ik-theme .auth-form .form-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
body.ik-theme .auth-form .btn-block,
body.ik-theme .auth-form button.button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--gold, #e39c27) !important;
  color: #161616 !important;
  font-weight: 800;
  cursor: pointer;
}
body.ik-theme .check-list { margin: 0; padding: 0; list-style: none; }
body.ik-theme .check-list li {
  position: relative;
  margin: 7px 0;
  padding-right: 22px;
  font-size: 13px;
}
body.ik-theme .check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--gold-dark, #c9820e);
  font-weight: 900;
}

@media (max-width: 980px) {
  body.ik-theme .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  body.ik-theme .auth-benefits img { height: 180px; }
  body.ik-theme .ik-dashboard-grid { grid-template-columns: 1fr; }
  body.ik-theme .header-actions .phone-link { display: none; }
  body.ik-theme .gallery-main { height: 300px !important; padding: 12px !important; }
  body.ik-theme .cart-items .shop_table thead { display: none; }
  body.ik-theme .cart-items .shop_table tbody tr.cart_item,
  body.ik-theme .cart-items .shop_table tbody tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px 10px;
    padding: 12px;
    border-bottom: 1px solid #eee;
  }
  body.ik-theme .cart-items .shop_table td {
    border: 0 !important;
    padding: 4px !important;
  }
  body.ik-theme .cart-items .shop_table .product-thumbnail { grid-row: 1 / span 3; }
  body.ik-theme .cart-items .shop_table .actions { display: block; grid-column: 1 / -1; }
  body.ik-theme .page-hero { min-height: auto; padding: 20px 0 24px; }
  body.ik-theme .page-hero h1,
  body.ik-theme .page-hero__title { font-size: 22px; line-height: 1.55; }
  body.ik-theme .article-page.section { padding-top: 22px; padding-bottom: 40px; }
  body.ik-theme .content-prose { font-size: 14px; }
  body.ik-theme .content-prose p,
  body.ik-theme .content-prose li { font-size: 14px; line-height: 2; text-align: right; }
}

@media (max-width: 640px) {
  body.ik-theme .auth-card { padding: 22px 16px; }
  body.ik-theme .benefits-grid { grid-template-columns: 1fr 1fr !important; gap: 14px; }
  body.ik-theme .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  body.ik-theme .category-nav { padding: 0 14px; gap: 16px; }
  body.ik-theme .account-content { padding: 16px; }
  body.ik-theme .order-summary { position: static; }
  body.ik-theme .account-head { align-items: flex-start; flex-direction: column; }
}
