/* -----------------------------------------------------------------------
   Custom polish layer for the standalone Electronics Equipment shop.
   Loaded after bootstrap.css / theme-style.css so it can safely extend
   and refine them without editing the vendored theme files.
------------------------------------------------------------------------ */

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #3a3540;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

a {
  transition: color 0.15s ease;
}

/* ---- Generic pill button (used outside WooCommerce-scoped selectors:
   cart, checkout, account, order-confirmation, product cards) ---- */
.button,
button.button,
input.button,
a.button {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--first-color);
  background: transparent;
  border: 1.5px solid var(--first-color);
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.button:hover,
button.button:hover,
input.button:hover,
a.button:hover {
  background: var(--first-color);
  color: #fff;
  box-shadow: 0 6px 16px rgba(250, 1, 162, 0.25);
  transform: translateY(-1px);
}
.button:active,
button.button:active {
  transform: translateY(0);
}
.button.disabled,
.button:disabled,
span.button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #999;
  color: #999;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.button.w-100 {
  width: 100%;
  text-align: center;
}

/* ---- Product card image zoom + lift (layers on top of the theme's
   existing .trending-product-card shadow/radius) ---- */
.trending-product-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.trending-product-card:hover {
  transform: translateY(-4px);
}
.trending-product-img-wrap {
  overflow: hidden;
}
.trending-product-img-wrap img {
  transition: transform 0.35s ease;
}
.trending-product-card:hover .trending-product-img-wrap img {
  transform: scale(1.06);
}
.trending-product-price del {
  color: #a3a3a3;
  font-weight: 400;
  margin-right: 6px;
}
.trending-product-price ins {
  text-decoration: none;
  color: var(--first-color);
  font-weight: 700;
}

/* ---- Unified header bar: one row (logo | nav | icons) on a solid brand
   background, replacing the old white-topbar + separate dark-nav-bar
   split. theme-style.css defines "#masthead { position: relative; z-index: 2; }"
   and an ID selector always outranks a plain class selector, so the
   override has to target the same #masthead ID to actually win. ---- */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--second-color);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.hdr-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.hdr-logo:hover {
  color: #fff;
}
.hdr-logo-dot {
  color: var(--first-color);
}
.hdr-nav-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}
#masthead .hdr-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
#masthead .hdr-menu > li > a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
#masthead .hdr-menu > li > a:hover {
  color: #fff;
}
#masthead .hdr-menu > li.hdr-active > a {
  color: #fff;
  border-bottom-color: var(--first-color);
}
.hdr-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
#masthead .topbar-icon-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
#masthead .topbar-icon-btn:hover {
  border-color: var(--first-color);
  color: var(--first-color);
}
.hdr-search {
  position: relative;
}
.hdr-search-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
}
.hdr-search.is-open .hdr-search-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---- Hero slider: one solid-color band (not the old split dark/maroon
   two-tone panels) with a bold non-italic headline and a two-button CTA
   row, sized down from the theme's very tall default (600px, 72px title)
   to a more modern, less overwhelming banner height. ---- */
#top-slider {
  background: var(--second-color);
}
.slider-split-row,
.slider-content-col,
.slider-image-col {
  min-height: 420px;
}
.slider-content-col,
.slider-image-col {
  background: transparent;
}
.slider-content-col {
  padding: 40px 50px;
}
.slider-main-title {
  font-size: 46px;
  font-style: normal;
}
@media (max-width: 991px) {
  .slider-split-row,
  .slider-content-col,
  .slider-image-col {
    min-height: 260px;
  }
}

.slide-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.slide-btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.slide-btn-outline:hover {
  background: #fff;
  color: var(--second-color);
  border-color: #fff;
}

/* ---- Hero slider: the theme's .slider-product-img/img rules are sized
   for a small centered product cutout (max-height, object-fit: contain),
   which leaves large empty margins around a full photo. Make our photo
   fill the entire right-hand panel instead. ---- */
.slider-image-col:after {
  display: none;
}
.slider-product-img {
  position: absolute;
  inset: 0;
  padding: 0;
  z-index: 1;
}
.slider-product-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
}
/* This particular photo is a tall studio shot with the headphones sitting
   near the bottom third and a lot of empty backdrop above them, so the
   default centered crop mostly shows blank space. Anchor the crop to the
   bottom so the actual product stays in frame. */
.slider-product-img img[src*="hero-audio-headphones"] {
  object-position: bottom;
}

/* ---- Sidebar / category widgets ---- */
.widget-area .widget {
  background: #fff;
  border: 1px solid #f0e8ec;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.widget-area .widget-title {
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--first-color);
  display: inline-block;
}
.widget-area ul li a {
  display: block;
  padding: 6px 0;
  color: #3a3540;
}
.widget-area ul li a:hover {
  color: var(--first-color);
  padding-left: 4px;
}

/* ---- Cards, tables and forms on cart / checkout / account / admin-facing
   customer pages (plain Bootstrap by default, so give them the same
   rounded / shadowed language as the rest of the shop) ---- */
.table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.table thead th {
  background: #faf6f8;
  font-weight: 700;
  border-bottom: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #7a7480;
}
.table td, .table th {
  vertical-align: middle;
  padding: 14px 16px;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e2d9de;
  padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 0 3px rgba(250, 1, 162, 0.12);
}
label.form-label {
  font-weight: 600;
  font-size: 14px;
  color: #3a3540;
  margin-bottom: 6px;
}

.nav-tabs .nav-link {
  border: none;
  color: #7a7480;
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 18px;
}
.nav-tabs .nav-link.active {
  background: var(--first-color);
  color: #fff;
}
.nav-pills .nav-link {
  border-radius: 30px;
  color: #3a3540;
  font-weight: 600;
}
.nav-pills .nav-link.active {
  background: var(--first-color);
}

.alert {
  border-radius: 10px;
  border: none;
}
.alert-success {
  background: #e7f7ee;
  color: #1e7e4b;
}
.alert-danger {
  background: #fdecef;
  color: #a3123f;
}

.badge {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 30px;
}

/* ---- Featured banner heading ---- */
.featured-header-image .entry-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---- Scroll-to-top button refinement ---- */
#button {
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ---- Footer link hover ---- */
.site-footer a {
  color: inherit;
}
.site-footer ul li a:hover {
  color: var(--first-color);
}
