/*
Theme Name: Tidyvo Custom Theme
Theme URI: https://tidyvo.com/
Description: A premium, ultra-lightweight, and custom minimalist WordPress theme designed specifically for tidyvo.com, optimized for SEO, UX/UI, and AI-driven edits.
Version: 1.0.0
Author: Antigravity
Author URI: https://tidyvo.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tidyvo-custom-theme
Tags: custom-colors, translation-ready, woocommerce, minimalist

This theme is designed to have zero framework bloat and layout engine conflicts.
*/

/* Global Page Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

button svg,
button path,
a svg,
a path {
  pointer-events: none;
}

html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  background-color: #FAF9F6;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

/* ---------------------------------------------------------
 * GLOBAL SEARCH SUGGESTIONS DROPDOWN (Search Prompt 02)
 * --------------------------------------------------------- */
.search-area {
  position: relative;
}

.pdp-search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 480px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  margin-top: 8px;
  padding: 16px;
  gap: 20px;
  box-sizing: border-box;
}

/* Active State */
.search-area.is-active .pdp-search-suggestions-dropdown {
  display: flex;
}

/* Suggestions Sections */
.pdp-suggestions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdp-suggestions-sec-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1c352d;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 6px;
  text-align: left;
}

/* Lists and Items */
.pdp-suggestions-recent-list,
.pdp-suggestions-popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-suggestion-item {
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Chip styles (Tags) */
.pdp-suggestion-item.pdp-tag-link {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 30px;
}
.pdp-suggestion-item.pdp-tag-link:hover,
.pdp-suggestion-item.pdp-tag-link.is-highlighted {
  background-color: #1c352d;
  color: #ffffff;
  border-color: #1c352d;
}

/* Category Badge Link */
.pdp-suggestions-cats-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdp-suggestion-item.pdp-suggestion-cat-badge {
  font-size: 12px;
  font-weight: 700;
  color: #1c352d;
  background-color: rgba(212, 163, 89, 0.15);
  border: 1px solid rgba(212, 163, 89, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}
.pdp-suggestion-item.pdp-suggestion-cat-badge:hover,
.pdp-suggestion-item.pdp-suggestion-cat-badge.is-highlighted {
  background-color: #d4a359;
  color: #ffffff;
  border-color: #d4a359;
}

/* Products List */
.pdp-suggestions-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-suggestion-item.pdp-suggestion-prod-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.pdp-suggestion-item.pdp-suggestion-prod-link:hover,
.pdp-suggestion-item.pdp-suggestion-prod-link.is-highlighted {
  background-color: #f7fafc;
  border-color: #edf2f7;
}

.pdp-suggestion-prod-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #edf2f7;
}
.pdp-suggestion-prod-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.pdp-suggestion-prod-title {
  font-size: 14px;
  font-weight: 600;
  color: #1c352d;
}
.pdp-suggestion-prod-price {
  font-size: 13px;
  font-weight: 700;
  color: #d4a359;
}
.pdp-suggestion-prod-price ins {
  text-decoration: none;
}
.pdp-suggestion-prod-price del {
  color: #a0aec0;
  font-size: 11px;
  margin-right: 4px;
}

/* Loading State Spinner */
.pdp-suggestions-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  color: #718096;
  font-size: 14px;
  font-weight: 500;
}
.pdp-suggestions-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(28, 53, 45, 0.15);
  border-top-color: #1c352d;
  border-radius: 50%;
  animation: pdpSuggestionsSpin 0.6s linear infinite;
}
@keyframes pdpSuggestionsSpin {
  to { transform: rotate(360deg); }
}

.pdp-suggestions-no-match,
.pdp-suggestions-recent-empty {
  font-size: 13.5px;
  color: #a0aec0;
  margin: 0;
  font-style: italic;
  text-align: left;
}

/* ---------------------------------------------------------
 * RECENT SEARCHES INTERACTION STATES (Search Prompt 07)
 * --------------------------------------------------------- */
.pdp-suggestions-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.pdp-suggestions-sec-header .pdp-suggestions-sec-title {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0;
}
.pdp-recent-clear-all-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #718096;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.pdp-recent-clear-all-btn:hover {
  color: #e53e3e;
  background-color: #fff5f5;
}

.pdp-suggestions-recent-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-recent-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.pdp-recent-search-row:hover,
.pdp-recent-search-row.is-highlighted,
.pdp-recent-search-row:has(.is-highlighted) {
  background-color: #f7fafc;
}

.pdp-recent-search-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  flex-grow: 1;
  text-align: left;
}
.pdp-recent-search-row:hover .pdp-recent-search-link,
.pdp-recent-search-row.is-highlighted .pdp-recent-search-link,
.pdp-recent-search-row:has(.is-highlighted) .pdp-recent-search-link {
  color: #1c352d;
}

.pdp-recent-delete-item-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.pdp-recent-delete-item-btn:hover {
  color: #e53e3e;
  background-color: #fff5f5;
}
.pdp-recent-delete-item-btn svg {
  width: 12px;
  height: 12px;
}

.pdp-popular-badge {
  font-size: 9px;
  font-weight: 700;
  color: #1c352d;
  background-color: rgba(212, 163, 89, 0.2);
  border: 1px solid rgba(212, 163, 89, 0.3);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  display: inline-block;
}



