/*
Theme Name: premiumcbdpackaging
Theme URI: https://premiumcbdpackaging.com/
Author: premiumcbdpackaging
Author URI: https://premiumcbdpackaging.com/
Description: Custom WordPress theme for Premium CBD Packaging — wholesale CBD packaging boxes, mylar bags, and hemp packaging.
Version: 1.1.3
Requires at least: 6.0
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: premiumcbdpackaging
Tags: e-commerce, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

.search-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.search-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 84, 39, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: #fffbf3;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(-24px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  overflow: hidden;
}

.search-popup.is-open .search-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.search-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem 0.75rem;
  border-bottom: 1px solid rgba(7, 84, 39, 0.1);
}

.search-popup__title {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #075427;
}

.search-popup__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(7, 84, 39, 0.08);
  color: #075427;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.search-popup__close:hover {
  background: #075427;
  color: #ffc53d;
}

.search-popup__form {
  position: relative;
  padding: 1.25rem 1.35rem 0.5rem;
}

.search-popup__input {
  width: 100%;
  height: 56px;
  padding: 0 3.25rem 0 1.15rem;
  border: 2px solid rgba(7, 84, 39, 0.15);
  border-radius: 8px;
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: #262626;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-popup__input:focus {
  border-color: #075427;
  box-shadow: 0 0 0 3px rgba(255, 197, 61, 0.35);
}

.search-popup__submit {
  position: absolute;
  right: 1.85rem;
  top: 50%;
  transform: translateY(-35%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #ffc53d;
  color: #075427;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
}

.search-popup__submit:hover {
  background: #075427;
  color: #ffc53d;
}

.search-popup__results {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 0.75rem 1.35rem 1.35rem;
}

.search-popup__status {
  margin: 0;
  padding: 1rem 0.25rem;
  font-size: 0.95rem;
  color: #444;
  text-align: center;
}

.search-popup__group-title {
  margin: 0.85rem 0 0.5rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #075427;
}

.search-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-popup__item {
  margin: 0;
}

.search-popup__item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: #262626;
  text-decoration: none;
  transition: background 0.2s ease;
}

.search-popup__item a:hover {
  background: rgba(7, 84, 39, 0.08);
}

.search-popup__thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.search-popup__thumb--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 84, 39, 0.1);
  color: #075427;
  font-size: 1.1rem;
}

.search-popup__meta {
  min-width: 0;
  flex: 1;
}

.search-popup__name {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.35;
}

.search-popup__price,
.search-popup__count {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: #075427;
}

.search-popup__loader {
  display: none;
  text-align: center;
  padding: 1.5rem;
}

.search-popup__loader.is-visible {
  display: block;
}

.search-popup__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(7, 84, 39, 0.15);
  border-top-color: #075427;
  border-radius: 50%;
  margin: 0 auto;
  animation: pcp-spin 0.7s linear infinite;
}

@keyframes pcp-spin {
  to {
    transform: rotate(360deg);
  }
}

body.search-popup-open {
  overflow: hidden;
}

.site-header .custom-logo-link {
  display: inline-block;
  max-width: 160px;
}

.site-header .custom-logo-link img,
.site-header .custom-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

.site-offcanvas__brand .custom-logo-link {
  max-width: 160px;
}

.site-offcanvas__brand .custom-logo-link img,
.site-offcanvas__brand .custom-logo {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .menu li {
  margin-bottom: 0.65rem;
}

.site-footer .menu a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.site-footer .menu a:hover {
  color: #ffc53d;
  padding-left: 4px;
}

.archive-products__empty {
  margin: 1rem 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: #444;
}

.archive-catalog .woocommerce-pagination {
  margin-top: 2rem;
  width: 100%;
}

.archive-catalog .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-catalog .woocommerce-pagination li {
  margin: 0;
}

.archive-catalog .woocommerce-pagination a,
.archive-catalog .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 4px;
  background: #f4f4ef;
  color: #075427;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}

.archive-catalog .woocommerce-pagination .current,
.archive-catalog .woocommerce-pagination a:hover {
  background: #075427;
  color: #ffc53d;
}

.site-header__search--mobile {
  order: 2;
  margin-left: auto;
  margin-right: 0.35rem;
  color: #fff;
  background: none;
  border: none;
  font-size: 16px;
  padding: 0.45rem;
  cursor: pointer;
}

.site-header .navbar-toggler {
  order: 3;
}

@media (max-width: 991.98px) {
  .site-header .site-header__actions .site-header__search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 16px;
  }

  .site-header .site-header__actions .site-header__divider {
    display: none;
  }
}

/* Catalog lightbox — kept in style.css so it always loads after main.css */
body.pcp-lightbox-open {
  overflow: hidden !important;
}

.pcp-lightbox {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.pcp-lightbox.is-open {
  display: flex !important;
}

.pcp-lightbox__backdrop {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background: rgba(8, 20, 14, 0.9) !important;
}

.pcp-lightbox__dialog {
  position: relative !important;
  z-index: 2 !important;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pcp-lightbox__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #ffffff !important;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.pcp-lightbox__actions {
  display: flex;
  gap: 8px;
}

.pcp-lightbox__btn {
  width: 42px;
  height: 42px;
  border: 0 !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pcp-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

.pcp-lightbox__stage {
  margin: 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.pcp-lightbox__stage img {
  display: block;
  max-width: min(860px, 100%);
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  margin: 0 auto;
}

.pcp-lightbox.is-zoomed .pcp-lightbox__stage img {
  max-width: none;
  max-height: none;
  transform: scale(1.35);
  transform-origin: center center;
}

.pcp-lightbox__caption {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: #333333;
  background: #ffffff;
}

.pcp-lightbox__nav {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 3;
  padding: 0;
}

.pcp-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.pcp-lightbox__nav--prev {
  left: 8px;
}

.pcp-lightbox__nav--next {
  right: 8px;
}

@media (min-width: 992px) {
  .pcp-lightbox__nav--prev {
    left: -60px;
  }

  .pcp-lightbox__nav--next {
    right: -60px;
  }
}

/* Form notices + honeypot */
.pcp-form-notice {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0 0 1.25rem;
}
.pcp-form-notice--success {
  background: #e8f6ee;
  color: #075427;
  border: 1px solid rgba(7, 84, 39, 0.2);
}
.pcp-form-notice--error {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid rgba(138, 31, 31, 0.2);
}
.pcp-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Pre-roll category — match Elementor live assets & layout */
body.page-preroll .mylar-custom__media {
  background-image: url("assets/images/preroll/custom-bg.jpg") !important;
  background-position: center center;
  background-size: cover;
}
body.page-preroll .mylar-hero::before {
  background-image: url("assets/images/preroll/vector.png");
  background-position: center right;
  background-size: 40% auto;
  background-repeat: no-repeat;
  opacity: 0.7;
}
body.page-preroll .mylar-quote-band {
  background-color: #ffffff;
  background-image: url("assets/images/preroll/instant-quote.png");
  background-position: bottom left;
  background-size: 650px auto;
  background-repeat: no-repeat;
}
body.page-preroll .mylar-quote-band::before {
  background: transparent;
}
body.page-preroll .mylar-quote-band__form {
  background: #fffbf3;
  border-radius: 20px;
}
body.page-preroll .mylar-quote-band__reviews {
  background: #fffbf3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-height: 550px;
}
body.page-preroll .mylar-addon {
  border: none;
  background: #fffbf3;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
body.page-preroll .mylar-addon__image {
  background: transparent;
}
body.page-preroll .mylar-addon__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
body.page-preroll .mylar-addon__body {
  background: #fffbf3;
  padding: 12px 20px 22px 20px;
}
body.page-preroll .mylar-addon__title {
  font-size: 25px;
  font-weight: 600;
  line-height: 38px;
}
body.page-preroll .mylar-addon__text {
  text-align: left;
  font-size: 16px;
  line-height: 28px;
  padding: 0;
}

/* Pre-roll features: live-site alternating side-by-side rows */
.preroll-features {
  padding: 60px 0 70px;
  background: #ffffff;
  position: relative;
}
.preroll-features__intro {
  max-width: 920px;
  margin: 0 auto 48px;
  text-align: center;
  position: relative;
}
.preroll-features__intro::before {
  content: "";
  background: url("assets/images/preroll/cbd-leaf.png") no-repeat;
  width: 220px;
  height: 220px;
  background-size: contain;
  position: absolute;
  top: -10px;
  left: -50px;
  opacity: 0.3;
  transform: rotate(105deg);
  pointer-events: none;
}
.preroll-features__title {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: #075427;
  margin: 0 0 0.75rem;
}
.preroll-features__intro .preroll-features__title {
  font-size: 30px;
  font-weight: 600;
  line-height: 45px;
}
@media (min-width: 992px) {
  .preroll-features__title {
    font-size: 38px;
    font-weight: 500;
    line-height: 48px;
  }
  .preroll-features__intro .preroll-features__title {
    font-size: 42px;
    font-weight: 600;
    line-height: 48px;
  }
}
.preroll-features__text {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #444;
  margin: 0 0 0.85rem;
}
.preroll-features__intro .preroll-features__text {
  font-size: 18px;
  line-height: 24px;
  padding: 0 1rem;
}
@media (min-width: 992px) {
  .preroll-features__intro .preroll-features__text {
    padding: 20px 150px 0;
  }
}
.preroll-features__text:last-child {
  margin-bottom: 0;
}
.preroll-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  margin: 0 0 0;
}
.preroll-split + .preroll-split {
  margin-top: 0;
}
@media (min-width: 768px) {
  .preroll-split {
    grid-template-columns: 41% 50%;
    justify-content: space-between;
    align-items: center;
  }
  .preroll-split--reverse {
    grid-template-columns: 50% 41%;
  }
}
.preroll-split__content {
  min-width: 0;
  padding: 28px 20px;
}
@media (min-width: 992px) {
  .preroll-split__content {
    padding: 40px 40px 40px 30px;
  }
  .preroll-split--reverse .preroll-split__content {
    padding: 50px 30px 0;
  }
}
.preroll-split__media {
  min-width: 0;
  line-height: 0;
}
.preroll-split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.preroll-split:nth-of-type(1) .preroll-split__media img,
.preroll-split:not(.preroll-split--reverse) .preroll-split__media img {
  border-radius: 0 10px 10px 0;
}
@media (max-width: 767.98px) {
  .preroll-split--reverse .preroll-split__media {
    order: 2;
  }
  .preroll-split--reverse .preroll-split__content {
    order: 1;
  }
  .preroll-features__intro::before {
    width: 140px;
    height: 140px;
    left: -20px;
  }
}
