/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Custom child theme for luxury leather jackets
Author:       Your Name
Author URI:   https://yoursite.com
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* Your custom CSS goes below this line */

/* Fix right border line on WooCommerce quantity box */
/* .quantity.buttons_added {
  border-right: none !important;
  outline: none !important;
}

.quantity.buttons_added input {
  border-right: none !important;
  outline: none !important;
}
/* Override WooCommerce default quantity wrapper 
.quantity.buttons_added {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
} */
/* ========================================
   PREMIUM LUXURY SEARCH BAR - Loro Piana Style
   Add this to: astra-child/style.css
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Inter:wght@300;400;500;600&display=swap');

/* Search Container */
.wpw-search-container {
  position: relative;
  display: inline-block;
  z-index: 9999;
}

/* Search Icon - Premium Bronze */
.wpw-search-icon {
  cursor: pointer;
  color: #76111E; /* Bronze instead of red */
  font-size: 20px;
  transition: all 0.3s ease;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpw-search-icon:hover {
  color: #A01A2C;
  transform: scale(1.1);
}

/* Full Screen Overlay - Warm Cream with Elegant Blur */
.wpw-search-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(245, 240, 232, 0.98) !important; /* Warm cream overlay */
  backdrop-filter: blur(30px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(120%) !important;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
  padding: 0 !important;
}

.wpw-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Search Content Container - Elegant Positioning */
.wpw-search-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpw-search-overlay.active .wpw-search-content {
  opacity: 1;
  top: 50%;
}

/* Close Button - Bronze Elegance */
.wpw-search-close {
  position: absolute;
  top: 40px;
  right: 50px;
  background: none;
  border: none;
  color: #2d2520; /* Deep brown */
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  line-height: 1;
  z-index: 100000;
  opacity: 0.6;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.wpw-search-close:hover {
  opacity: 1;
  background: rgba(184, 147, 109, 0.1);
  transform: rotate(90deg);
}

/* Search Form - Luxury Input */
.wpw-search-form {
  position: relative;
  margin-bottom: 60px;
}

.wpw-search-form input[type="search"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #d4c4b0; /* Subtle border */
  color: #2d2520; /* Deep brown text */
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  padding: 25px 70px 25px 0;
  outline: none;
  transition: all 0.4s ease;
  letter-spacing: -0.5px;
}

.wpw-search-form input[type="search"]::placeholder {
  color: #6b5d52; /* Secondary text color */
  font-weight: 300;
  font-style: italic;
}

.wpw-search-form input[type="search"]:focus {
  border-bottom-color: #b8936d; /* Bronze on focus */
}

/* Remove default search input styling */
.wpw-search-form input[type="search"]::-webkit-search-decoration,
.wpw-search-form input[type="search"]::-webkit-search-cancel-button,
.wpw-search-form input[type="search"]::-webkit-search-results-button,
.wpw-search-form input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* Search Submit Button - Bronze Arrow */
.wpw-search-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #b8936d; /* Bronze */
  font-size: 28px;
  cursor: pointer;
  padding: 12px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.wpw-search-submit:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* Suggestions Section - Refined */
.wpw-search-suggestions {
  text-align: left;
  margin-top: 50px;
}

.wpw-suggestions-title {
  color: #6b5d52; /* Secondary text */
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 25px;
}

.wpw-suggestions-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wpw-suggestions-links a {
  color: #2d2520; /* Deep brown */
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 26px;
  border: 1px solid #d4c4b0; /* Subtle border */
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  background: transparent;
}

.wpw-suggestions-links a:hover {
  background: #b8936d; /* Bronze */
  color: #ffffff;
  border-color: #b8936d;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(184, 147, 109, 0.25);
}

/* Prevent body scroll when search is open */
body.wpw-search-open {
  overflow: hidden;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .wpw-search-form input[type="search"] {
    font-size: 36px;
    padding: 20px 60px 20px 0;
  }
}

@media (max-width: 768px) {
  .wpw-search-close {
    top: 25px;
    right: 25px;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  .wpw-search-content {
    width: 88%;
    padding: 0 15px;
  }

  .wpw-search-form input[type="search"] {
    font-size: 28px;
    padding: 18px 55px 18px 0;
  }

  .wpw-search-submit {
    font-size: 24px;
  }

  .wpw-suggestions-links a {
    font-size: 13px;
    padding: 10px 20px;
  }

  .wpw-suggestions-title {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .wpw-search-form input[type="search"] {
    font-size: 22px;
    padding: 15px 50px 15px 0;
  }

  .wpw-search-submit {
    font-size: 20px;
  }

  .wpw-suggestions-links {
    gap: 10px;
  }

  .wpw-suggestions-links a {
    font-size: 12px;
    padding: 8px 18px;
  }
}

/* ========================================
   PRODUCT GRID TOGGLE - Premium Style
   ======================================== */

.wpw-toggle-container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.wpw-toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
  border-bottom: 1px solid #d4c4b0; /* Subtle border */
}

.wpw-toggle-buttons button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 18px 45px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b5d52; /* Secondary text */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-bottom: -1px;
}

.wpw-toggle-buttons button:hover {
  color: #2d2520; /* Deep brown */
}

.wpw-toggle-buttons button.active {
  color: #2d2520; /* Deep brown */
  border-bottom-color: #b8936d; /* Bronze underline */
  font-weight: 500;
}

.wpw-products-wrapper {
  position: relative;
  min-height: 400px;
}

.wpw-products {
  display: none;
  width: 100%;
}

.wpw-products.active {
  display: block;
  animation: fadeInSmooth 0.4s ease-out;
}

@keyframes fadeInSmooth {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Toggle */
@media (max-width: 576px) {
  .wpw-toggle-buttons button {
    padding: 14px 28px;
    font-size: 12px;
    letter-spacing: 1.2px;
  }
}

/* ========================================
   WHAT WE CREATE SECTION - WITH SMOOTH FADE-IN
   Add this to: astra-child/style.css
   ======================================== */

/* ========================================
   FADE-IN ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Wrapper - Reduced padding */
.what-we-create-section {
  padding: 60px 0 80px 0;
  background: #f5f0e8;
}

.wwc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section Header - WITH FADE IN */
.wwc-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.wwc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  color: #2d2520;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.wwc-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #6b5d52;
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto;
}

/* 2x2 Grid - Tighter gaps */
.wwc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Card - WITH FADE IN + STAGGER */
.wwc-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e8dcc4;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInCard 0.8s ease-out forwards;
  opacity: 0;
}

/* STAGGER DELAYS FOR CARDS */
.wwc-card:nth-child(1) { animation-delay: 0.1s; }
.wwc-card:nth-child(2) { animation-delay: 0.2s; }
.wwc-card:nth-child(3) { animation-delay: 0.3s; }
.wwc-card:nth-child(4) { animation-delay: 0.4s; }

.wwc-card:hover {
  transform: translateY(-8px);
}

/* Image Container - Better aspect ratio for desktop */
.wwc-image {
  position: relative;
  width: 100%;
  aspect-ratio: 5/6;
  overflow: hidden;
}

.wwc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wwc-card:hover .wwc-image img {
  transform: scale(1.08);
}

/* Overlay */
.wwc-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(45, 37, 32, 0.95) 0%,
    rgba(45, 37, 32, 0.7) 50%,
    transparent 100%
  );
  padding: 35px 28px;
  transition: all 0.4s ease;
}

.wwc-card:hover .wwc-overlay {
  background: linear-gradient(
    to top,
    rgba(45, 37, 32, 0.98) 0%,
    rgba(45, 37, 32, 0.85) 60%,
    transparent 100%
  );
}

/* Content */
.wwc-content {
  position: relative;
  z-index: 2;
}

.wwc-number {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #b8936d;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.wwc-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.wwc-card:hover .wwc-card-title {
  color: #b8936d;
}

.wwc-card-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}

.wwc-card:hover .wwc-card-text {
  opacity: 1;
  transform: translateY(0);
}

/* Bronze Line */
.wwc-line {
  width: 0;
  height: 2px;
  background: #b8936d;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.wwc-card:hover .wwc-line {
  width: 70px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .what-we-create-section {
    padding: 70px 0;
  }

  .wwc-container {
    max-width: 100%;
  }

  .wwc-header {
    margin-bottom: 50px;
  }

  .wwc-title {
    font-size: 38px;
  }

  .wwc-grid {
    gap: 20px;
  }

  .wwc-card-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .what-we-create-section {
    padding: 60px 0;
  }

  .wwc-container {
    padding: 0 20px;
  }

  .wwc-header {
    margin-bottom: 40px;
  }

  .wwc-title {
    font-size: 36px;
  }

  .wwc-subtitle {
    font-size: 15px;
  }

  .wwc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wwc-image {
    aspect-ratio: 4/5;
  }

  .wwc-overlay {
    padding: 30px 25px;
  }

  .wwc-card-title {
    font-size: 26px;
  }

  .wwc-card-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .wwc-title {
    font-size: 32px;
  }

  .wwc-card-title {
    font-size: 24px;
  }

  .wwc-overlay {
    padding: 25px 20px;
  }
}

/* ========================================
   ACCESSIBILITY - Respect reduced motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .wwc-header,
  .wwc-card {
    animation: none !important;
    opacity: 1 !important;
  }
}