/*
Theme Name: Ashitti Oil
Theme URI: https://ashitti.com
Author: Ashitti Oil Team
Author URI: https://ashitti.com
Description: Premium Groundnut Oil eCommerce and brand theme for Ashitti Oil. Featuring pure G20 groundnut oil showcase, bulk enquiry management, WooCommerce compatibility, and interactive story & process animations.
Version: 1.4.32
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ashitti-oil
Tags: e-commerce, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* WordPress Core Alignment & Utility Classes */
.alignnone {
  margin: 5px 20px 20px 0;
}
.aligncenter, div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}
.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}
.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}
a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}
a img.alignnone {
  margin: 5px 20px 20px 0;
}
a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}
a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
  text-align: center;
}
.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}
.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}
.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* WP Admin Bar Fix */
.admin-bar .ash-exact-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .ash-exact-header {
    top: 46px;
  }
}

/* Landing live editor preview affordances */
.ashitti-editor-preview-mode [data-ash-edit] {
  cursor: pointer;
  transition: outline-color 160ms ease, box-shadow 160ms ease;
}
.ashitti-editor-preview-mode [data-ash-edit]:hover {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

/* Editable hero slider */
.ash-hero-slider .ash-hero-slider-track {
  inset: 0;
  padding-left: max(24px, calc((100vw - 1480px) / 2));
  padding-right: max(24px, calc((100vw - 1480px) / 2));
  position: absolute;
  z-index: 1;
}
.ash-hero-slider .ash-hero-slide {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 520ms ease;
}
.ash-hero-slider .ash-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.ash-hero-slider .ash-hero-copy {
  margin-left: 0;
  position: relative;
  z-index: 3;
}
.ash-hero-slider .ash-trust-banner {
  z-index: 6;
}
.ash-hero-slider-controls {
  align-items: center;
  bottom: 88px;
  display: flex;
  gap: 12px;
  left: max(24px, calc((100vw - 1480px) / 2));
  position: absolute;
  z-index: 8;
}
.ash-hero-slider-controls button {
  align-items: center;
  background: #fff;
  border: 1px solid #f3d2ad;
  border-radius: 999px;
  color: #1a2e35;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  min-width: 34px;
}
.ash-hero-dots {
  align-items: center;
  display: flex;
  gap: 8px;
}
.ash-hero-dots button {
  height: 10px;
  min-width: 10px;
  padding: 0;
  width: 10px;
}
.ash-hero-dots button.is-active {
  background: #e68a2e;
  border-color: #e68a2e;
  width: 28px;
}
@media (max-width: 760px) {
  .ash-hero-slider-controls {
    bottom: 116px;
    left: 24px;
  }
}

/* Header action labels use real editable images now, so labels should stay text. */
.ash-exact-actions a > span {
  display: inline;
  height: auto;
  position: static;
  width: auto;
}
.ash-exact-actions a > img {
  height: 18px;
  width: 18px;
}
.ash-whatsapp span::before,
.ash-whatsapp span::after,
.ash-cart-btn span::before,
.ash-cart-btn span::after,
.ash-profile-btn span::before,
.ash-profile-btn span::after {
  display: none;
}

/* Final hero text offset: shifts the complete copy block luxuriously towards the right side with generous gap. */
.ash-home-page .ash-hero-slider .ash-hero-slide .ash-hero-copy,
.ash-home-page .ash-hero .ash-hero-copy,
.ash-hero-copy {
  margin-left: clamp(100px, 9.5vw, 150px) !important;
  max-width: min(660px, calc(100vw - 360px)) !important;
  padding-left: 0 !important;
  transform: none !important;
}

.ash-home-page .ash-hero h1,
.ash-hero h1 {
  font-size: clamp(48px, 4.4vw, 72px) !important;
  line-height: 1.15 !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.015em !important;
}

@media (max-width: 1180px) {
  .ash-home-page .ash-hero-slider .ash-hero-slide .ash-hero-copy,
  .ash-home-page .ash-hero .ash-hero-copy,
  .ash-hero-copy {
    margin-left: clamp(70px, 7.5vw, 110px) !important;
    margin-right: 24px;
    max-width: calc(100vw - 120px) !important;
    transform: none !important;
  }

  .ash-home-page .ash-hero h1 {
    max-width: calc(100vw - 150px);
  }
}

@media (max-width: 760px) {
  .ash-home-page .ash-hero-slider .ash-hero-slide .ash-hero-copy,
  .ash-home-page .ash-hero .ash-hero-copy,
  .ash-hero-copy {
    margin-left: 20px !important;
    margin-right: 20px !important;
    max-width: calc(100vw - 40px) !important;
    transform: none !important;
  }
}

/* Grow With Ashitti Oil full-width editable banner slider */
.ash-home-page .ash-dealer-cta {
  --ash-dealer-pad-x: 0px;
  --ash-dealer-pad-y: 0px;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  width: 100% !important;
}

.ash-dealer-banner-slider {
  background: #fff7ed;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  grid-column: 1 / -1;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  width: 100vw !important;
  z-index: 2;
}

.ash-dealer-banner-track {
  height: clamp(240px, 37.5vw, 768px);
  min-height: 0;
  position: relative;
}

.ash-dealer-banner-slide {
  background: linear-gradient(110deg, #fffaf0 0%, #fee9cc 48%, #fff6e8 100%);
  display: block;
  height: 100%;
  inset: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 420ms ease;
}

.ash-dealer-banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.ash-dealer-banner-copy {
  align-content: center;
  display: none;
  padding: clamp(28px, 4vw, 54px) clamp(28px, 5vw, 72px);
}

.ash-dealer-banner-copy > span {
  color: #9a4f14;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ash-dealer-banner-copy h3 {
  color: #193126 !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.03;
  margin: 0 0 12px;
  max-width: 720px;
}

.ash-dealer-banner-copy p {
  color: #4b5563 !important;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 620px;
}

.ash-dealer-banner-copy a {
  align-items: center;
  background: #ef8018;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  width: fit-content;
}

.ash-dealer-banner-slide figure {
  inset: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
}

.ash-home-page .ash-dealer-banner-slide img {
  animation: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: block;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

.ash-dealer-banner-controls {
  align-items: center;
  bottom: 18px;
  display: flex;
  gap: 10px;
  left: 50%;
  position: absolute;
  right: auto;
  transform: translateX(-50%);
  z-index: 4;
}

.ash-dealer-banner-controls button {
  align-items: center;
  background: #fff;
  border: 1px solid #f2d3ae;
  border-radius: 999px;
  color: #193126;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
}

.ash-dealer-banner-dots {
  align-items: center;
  display: flex;
  gap: 10px;
}

.ash-dealer-banner-dots button {
  background: rgba(239, 128, 24, 0.28);
  border: 2px solid rgba(239, 128, 24, 0.58);
  border-radius: 50%;
  height: 13px;
  min-width: 13px;
  padding: 0;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  width: 13px;
}

.ash-dealer-banner-dots button.is-active {
  background: #ef8018;
  border-color: #ef8018;
  transform: scale(1.18);
  width: 13px;
}

@media (max-width: 980px) {
  .ash-home-page .ash-dealer-cta {
    display: block !important;
  }

  .ash-dealer-banner-slide {
    grid-template-columns: 1fr;
  }

  .ash-dealer-banner-slide figure {
    order: -1;
  }
}

@media (max-width: 640px) {
  .ash-home-page .ash-dealer-cta {
    max-width: none !important;
  }

  .ash-dealer-banner-copy {
    padding: 26px 20px 74px;
  }

  .ash-dealer-banner-controls {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* Header search overlay: icon click opens this bar without navigating to shop/products. */
.ash-exact-actions button.ash-search-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: none;
  color: #1a2e35;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0;
  position: relative;
  width: 48px;
}

.ash-exact-actions button.ash-search-toggle:hover,
.ash-exact-actions button.ash-search-toggle:focus-visible {
  background: #fff7ed;
  border-color: #f2d3ae;
  transform: none;
}

.ash-exact-actions button.ash-search-toggle img {
  height: 19px;
  object-fit: contain;
  width: 19px;
}

.ash-exact-actions button.ash-search-toggle span {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ash-header-search {
  display: none;
  left: 0;
  padding: 0 24px;
  position: absolute;
  right: 0;
  top: 106px;
  z-index: 45;
}

.ash-header-search.is-open {
  display: block;
}

.ash-header-search form {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(230, 138, 46, 0.24);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(10, 29, 55, 0.14);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto auto;
  margin: 14px auto 0;
  max-width: 760px;
  padding: 8px;
}

.ash-header-search input[type="search"] {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #1a2e35;
  min-height: 48px;
  padding: 0 18px;
}

.ash-header-search input[type="search"]:focus {
  box-shadow: none;
  outline: 2px solid rgba(230, 138, 46, 0.24);
  outline-offset: 1px;
}

.ash-header-search button {
  border-radius: 999px;
  min-height: 44px;
}

.ash-header-search-submit {
  background: #e68a2e;
  color: #fff;
  padding: 0 22px;
}

.ash-header-search-close {
  background: #fff7ed;
  color: #1a2e35;
  font-size: 22px;
  height: 44px;
  padding: 0;
  width: 44px;
}

@media (max-width: 1180px) {
  .ash-header-search {
    position: fixed;
    top: 12px;
  }
}

@media (max-width: 640px) {
  .ash-header-search {
    padding: 0 12px;
  }

  .ash-header-search form {
    border-radius: 18px;
    grid-template-columns: 1fr auto;
  }

  .ash-header-search-submit {
    grid-column: 1 / -1;
  }
}
