/*
Theme Name: PSS Gadgetry Child
Description: Child theme for Printer Supply Store — Kyocera & MICR. Based on Gadgetry.
Author: Geek Powered
Template: gadgetry
Version: 1.2.0
*/

/*
==========================================================
  PRINTER SUPPLY STORE — BRAND COLOR SYSTEM
  ------------------------------------------
  Primary (Navy Blue):   #1B4F8A
  Primary Dark (hover):  #153D6E
  Primary Light (tint):  #EDF3FB
  Accent (Amber/Gold):   #E8A020
  Accent Dark (hover):   #C8881A
  ------------------------------------------
  primary-500 is set to #1B4F8A via theme.json.
  This file handles WooCommerce and plugin-specific
  elements that bypass the theme.json token system.
==========================================================
*/

/* ----------------------------------------------------------
   0. GLOBAL TRANSITIONS
   ---------------------------------------------------------- */

* {
  transition-timing-function: ease-in-out;
}
a,
button,
.wp-block-button__link {
  transition: all 0.2s ease-in-out;
}

/* ----------------------------------------------------------
   1. LOGO SIZING
   ---------------------------------------------------------- */

.wp-block-site-logo img,
.wp-block-site-logo .custom-logo {
  max-height: 56px;
  width: auto !important;
  max-width: 220px !important;
}

/* ----------------------------------------------------------
   2. AJAX SEARCH FOR WOOCOMMERCE (dgwt-wcas)
   ---------------------------------------------------------- */

.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
  background-color: #1B4F8A !important;
}
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:hover {
  background-color: #153D6E !important;
}
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:before {
  border-color: transparent #1B4F8A !important;
}
.dgwt-wcas-search-wrapp.dgwt-wcas-has-submit .dgwt-wcas-sf-wrapp input.dgwt-wcas-search-input:focus {
  border-color: #1B4F8A !important;
  outline-color: #1B4F8A !important;
}
/* Suggestions highlight */
.dgwt-wcas-suggestion-selected,
.dgwt-wcas-suggestion:hover {
  background-color: #EDF3FB !important;
}
.dgwt-wcas-pi-link,
.dgwt-wcas-suggestion a {
  color: #1B4F8A !important;
}

/* ----------------------------------------------------------
   3. WOOCOMMERCE — SALE / ON-SALE BADGE
      Amber/Gold accent so it pops against navy primary
   ---------------------------------------------------------- */

.wc-block-components-product-sale-badge,
.onsale,
span.onsale {
  background-color: #E8A020 !important;
  border-color: #E8A020 !important;
  color: #ffffff !important;
}

/* ----------------------------------------------------------
   4. WOOCOMMERCE BLOCKS — ADD TO CART BUTTON
   ---------------------------------------------------------- */

/* Default (outline) state */
.wc-block-components-product-button__button {
  border-color: #1B4F8A !important;
  color: #1B4F8A !important;
  background-color: transparent !important;
}
/* Hover */
.wc-block-product:hover .wc-block-components-product-button__button,
.wc-block-components-product-button__button:hover {
  background-color: #1B4F8A !important;
  border-color: #1B4F8A !important;
  color: #ffffff !important;
}
/* Active / Focus */
.wc-block-components-product-button__button:active,
.wc-block-components-product-button__button:focus {
  background-color: #153D6E !important;
  border-color: #153D6E !important;
  color: #ffffff !important;
}
/* Loading spinner ring */
.wc-block-components-product-button__button .wc-block-components-spinner::before {
  border-color: #1B4F8A transparent transparent !important;
}

/* ----------------------------------------------------------
   5. WOOCOMMERCE CLASSIC — BUTTONS (single product, cart)
   ---------------------------------------------------------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #1B4F8A !important;
  border-color: #1B4F8A !important;
  color: #ffffff !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #153D6E !important;
  border-color: #153D6E !important;
  color: #ffffff !important;
}

/* ----------------------------------------------------------
   6. WOOCOMMERCE — CHECKOUT / CART HIGHLIGHTS
   ---------------------------------------------------------- */

/* Order total accent */
.woocommerce-checkout .order-total,
.woocommerce-cart .order-total {
  color: #1B4F8A;
}
/* Coupon / discount notice */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  border-top-color: #1B4F8A !important;
}
.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-info a {
  color: #1B4F8A !important;
}
/* Price color on single product */
.woocommerce .price,
.woocommerce p.price,
.woocommerce span.price {
  color: #1B4F8A;
}

/* ----------------------------------------------------------
   7. WOOCOMMERCE — PRODUCT TABS (single product page)
   ---------------------------------------------------------- */

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  color: #1B4F8A;
  border-bottom-color: #1B4F8A;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #1B4F8A;
}

/* ----------------------------------------------------------
   8. WOOCOMMERCE — PAGINATION
   ---------------------------------------------------------- */

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: #1B4F8A !important;
  color: #ffffff !important;
}

/* ----------------------------------------------------------
   9. WOOCOMMERCE — STAR RATINGS
   ---------------------------------------------------------- */

.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: #E8A020;
}

/* ----------------------------------------------------------
   10. NAVIGATION — BLOCK THEME NAV LINKS
   ---------------------------------------------------------- */

/* Top-level nav link hover */
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation a:hover {
  color: #1B4F8A !important;
  text-decoration: none;
}
/* Active/current page */
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .current-menu-item a {
  color: #1B4F8A !important;
  font-weight: 600;
}
/* Submenu hover */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  color: #1B4F8A !important;
  background-color: #EDF3FB !important;
}

/* ----------------------------------------------------------
   11. GADGETRY THEME — WHITEBLACK BUTTON VARIANT OVERRIDE
       (used in hero banners)
   ---------------------------------------------------------- */

.is-style-gadgetry-button-whiteblack-type-1-style-1 .wp-block-button__link {
  background-color: #ffffff !important;
  color: #1B4F8A !important;
  border: 2px solid #ffffff !important;
}
.is-style-gadgetry-button-whiteblack-type-1-style-1 .wp-block-button__link:hover {
  background-color: #EDF3FB !important;
  color: #1B4F8A !important;
  border-color: #EDF3FF !important;
}

/* ----------------------------------------------------------
   12. EASY NOTIFICATION BAR
   ---------------------------------------------------------- */

.enb-bar {
  background-color: #1B4F8A !important;
  color: #ffffff !important;
}
.enb-bar a {
  color: #E8A020 !important;
}

/* ----------------------------------------------------------
   13. PRODUCT CARD — HOVER LIFT & SHADOW
   ---------------------------------------------------------- */

.wc-block-product-template .wc-block-product,
.woocommerce ul.products li.product {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
}
.wc-block-product-template .wc-block-product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 79, 138, 0.12);
}

/* ----------------------------------------------------------
   14. FORM INPUTS — FOCUS RING
   ---------------------------------------------------------- */

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #1B4F8A !important;
  outline: 2px solid rgba(27, 79, 138, 0.18) !important;
  outline-offset: 1px;
}

/* ----------------------------------------------------------
   15. WOOCOMMERCE — FILTER WIDGET ACCENT
   ---------------------------------------------------------- */

.wc-block-attribute-filter .wc-block-components-checkbox__input:checked {
  background-color: #1B4F8A !important;
  border-color: #1B4F8A !important;
}
.wc-block-price-filter .wc-block-price-slider__range-input-progress {
  background-color: #1B4F8A !important;
}
.wc-block-price-filter input[type="range"]::-webkit-slider-thumb {
  background-color: #1B4F8A !important;
}

/* ----------------------------------------------------------
   16. MISC THEME — SPECIAL BUYS BUTTON (homepage nav bar)
   ---------------------------------------------------------- */

.wp-block-button__link[href*="closeout"],
.wp-block-button__link[href*="specials"] {
  background-color: #E8A020 !important;
  border-color: #E8A020 !important;
  color: #ffffff !important;
}
.wp-block-button__link[href*="closeout"]:hover,
.wp-block-button__link[href*="specials"]:hover {
  background-color: #C8881A !important;
  border-color: #C8881A !important;
}

/* ----------------------------------------------------------
   17. PSS HOMEPAGE — SECTION UTILITY CLASSES
   ---------------------------------------------------------- */

.pss-section {
  padding: 64px 0;
}
.pss-section--navy {
  background: #1B4F8A;
  color: #fff;
}
.pss-section--grey {
  background: #F5F7FA;
}
.pss-section--amber-tint {
  background: #FFF8EC;
}
.pss-section--light-blue {
  background: #EDF3FB;
}
.pss-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 8px;
}
.pss-section-header h2 {
  margin: 0;
  color: #0F2D52;
  font-size: 1.6rem;
  font-weight: 700;
}
.pss-section-header a {
  color: #1B4F8A;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pss-section-header a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   18. PSS HOMEPAGE — CATEGORY CARDS
   ---------------------------------------------------------- */

.pss-cat-card {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pss-cat-card:hover {
  border-color: #1B4F8A;
  box-shadow: 0 4px 16px rgba(27, 79, 138, 0.10);
  transform: translateY(-3px);
}
.pss-cat-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.pss-cat-card h3 {
  color: #1B4F8A;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.pss-cat-card p {
  color: #666;
  font-size: 0.85rem;
  margin: 0 0 14px;
}

/* ----------------------------------------------------------
   19. PSS HOMEPAGE — FEATURE CARDS (Why Choose section)
   ---------------------------------------------------------- */

.pss-feature-card {
  text-align: center;
  padding: 24px 16px;
}
.pss-feature-card .feature-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}
.pss-feature-card h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.pss-feature-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   20. PSS HOMEPAGE — BRAND CARDS
   ---------------------------------------------------------- */

.pss-brand-card {
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pss-brand-card:hover {
  border-color: #1B4F8A;
  box-shadow: 0 4px 20px rgba(27, 79, 138, 0.10);
}
.pss-brand-card .brand-name {
  font-size: 2rem;
  font-weight: 800;
  color: #1B4F8A;
  display: block;
  margin-bottom: 8px;
}
.pss-brand-card .brand-badge {
  display: inline-block;
  background: #EDF3FB;
  color: #1B4F8A;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ----------------------------------------------------------
   21. PSS HOMEPAGE — AMBER CTA BUTTON UTILITY
   ---------------------------------------------------------- */

.wp-block-button__link.is-amber,
.pss-btn-amber {
  background-color: #E8A020 !important;
  border-color: #E8A020 !important;
  color: #fff !important;
}
.wp-block-button__link.is-amber:hover,
.pss-btn-amber:hover {
  background-color: #C8881A !important;
  border-color: #C8881A !important;
}

/* ----------------------------------------------------------
   22. PSS HOMEPAGE — HERO PRODUCT COLLECTION
       2-column mini-grid inside hero right column
   ---------------------------------------------------------- */

.pss-hero-products .wc-block-product-template,
.wp-block-column .wc-block-product-template {
  gap: 12px;
}
.pss-hero-products .wc-block-product {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
}
.pss-hero-products .wc-block-product:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   23. MOBILE RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 768px) {
  .pss-section {
    padding: 40px 0;
  }
  .pss-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .wp-block-site-logo img {
    max-height: 44px;
  }
  /* Category grid: 2-col on tablet */
  .pss-cat-card {
    padding: 20px 14px;
  }
}

@media (max-width: 480px) {
  .pss-brand-card {
    padding: 28px 20px;
  }
  .pss-brand-card .brand-name {
    font-size: 1.5rem;
  }
  .pss-feature-card {
    padding: 16px 10px;
  }
}
