/* =======================================================
   SHOP STYLES V3 - FIXED LAYOUT & GRID
   ======================================================= */

:root {
  --primary-blue: #005b96;
  --secondary-blue: #017cba;
  --text-dark: #0b132b;
  --text-light: #5d6d7e;
  --bg-light: #f8f9fa;
}

/* -------------------------------------------
   1. LAYOUT CONTAINERS
   ------------------------------------------- */
/* Supports both structure variants */
.shop-layout-skyline,
.shop-layout-master {
  max-width: 1600px; /* Increased from 1400px to match Category pages */
  margin: 40px auto;
  padding: 0 40px;
}

.shop-main,
.shop-content {
  width: 100%;
}

/* -------------------------------------------
   2. TOP BAR & FILTERS (Fixed Row Layout)
   ------------------------------------------- */
.skyline-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 4px solid var(--primary-blue);
}

.skyline-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.skyline-cat-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  border: 1px solid #e1e8ed;
  text-decoration: none;
  transition: all 0.2s;
}

.skyline-cat-btn:hover,
.skyline-cat-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* FORCE FILTERS IN A ROW */
.skyline-filters {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100% !important;
  justify-content: space-between;
}

/* Target the wrapper div present in your output */
.skyline-filters .filter-group {
  margin: 0;
  padding: 0;
  display: flex; /* Ensure it doesn't take full width */
}

/* --- LUXURY CUSTOM SELECTS --- */
.skyline-search-group {
  position: relative;
  flex: 1 !important;
  min-width: 0;
}

.shop-filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100% !important;
  max-width: none !important;
  height: 50px !important; /* FIXED HEIGHT FOR ALIGNMENT */
  line-height: 50px !important;
  padding: 0 45px 0 50px !important; /* Left Padding 50px for Icon */

  background-color: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  box-sizing: border-box !important;

  font-family: "Lucida Bright", Georgia, serif !important;
  font-weight: 500;
  font-size: 14px !important;
  color: #0b132b;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-font-smoothing: antialiased;

  /* Default Arrow (Right) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
}

/* Specific Icons for Filters */
#filter-country {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  background-position:
    right 20px center,
    left 20px center;
  background-size: 12px, 20px;
}

#filter-year {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-position:
    right 20px center,
    left 20px center;
  background-size: 12px, 18px;
}

#filter-quality {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
  background-position:
    right 20px center,
    left 20px center;
  background-size: 12px, 18px;
}

.shop-filter-select:hover {
  border-color: #cfa15f;
  box-shadow: 0 4px 15px rgba(207, 161, 95, 0.1);
}

.shop-filter-select:focus {
  outline: none;
  border-color: #0b132b;
}

/* Option Styles */
.shop-filter-select option {
  padding: 10px;
}

/* --- CLEAR FILTERS BUTTON --- */
.shop-filter-clear {
  height: 50px;
  background: transparent;
  border: 1px dashed #e1e8ed;
  color: #888;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit; /* Inherit global font */
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.shop-filter-clear:hover {
  background-color: #fff9f9;
  border-color: #dc3545;
  color: #dc3545;
  text-decoration: none;
}

.shop-filter-clear::before {
  content: "×";
  font-size: 18px;
  margin-right: 6px;
  font-weight: 400;
  line-height: 1;
  position: relative;
  top: -1px;
}

/* -------------------------------------------
   3. PRODUCT GRID (Fixed Columns)
   ------------------------------------------- */
.shop-content ul.products,
.shop-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .shop-content ul.products,
  .shop-main ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 900px) {
  .shop-content ul.products,
  .shop-main ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .shop-content ul.products,
  .shop-main ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------
   4. PRODUCT CARD & IMAGES (Fixed Stacking)
   ------------------------------------------- */
.product-card {
  list-style: none !important;
  margin: 0 !important;
  width: 100% !important;
}

.product-card__wrap {
  background: #fff;
  border-radius: 12px;
  padding: 15px; /* Restored Internal Padding to match Home */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card__wrap:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.04);
}

/* Hide the NEW badge on Shop Page */
.badge-new {
  display: none !important;
}

/* IMAGE CONTAINER - MATCHING HOME STYLE */
.product-card__image {
  display: block;
  position: relative;
  height: 180px; /* Fixed Height to match Home */
  width: 100%;
  margin: 0 auto 15px;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

/* Target the anchor tag wrap */
.product-card__image a {
  display: block;
  height: 100%;
  width: 100%;
}

/* Images */
.product-card__image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

/* Main Image (Front) */
.product-card__image .main-image {
  opacity: 1;
  z-index: 1;
}

/* Hover Image (Back) - Initially Hidden */
.product-card__image .hover-image {
  opacity: 0;
  z-index: 2;
}

/* Hover Effects - Flip Pattern */
.product-card__wrap:hover .main-image {
  opacity: 0;
}

.product-card__wrap:hover .hover-image {
  opacity: 1;
  transform: translate(-50%, -50%); /* No Zoom to match Home */
}

/* -------------------------------------------
   5. TEXT & DETAILS
   ------------------------------------------- */
.product-card__details {
  padding: 0;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.woocommerce-loop-product__title {
  font-family: var(--font-heading, "Lucida Bright", Georgia, serif) !important;
  font-size: 20px !important; /* Larger Font to match Home */
  color: #0b132b !important;
  margin-bottom: 5px !important;
  line-height: 1.2;
}

.price {
  color: var(--primary-blue) !important;
  font-weight: 700;
  font-size: 16px !important; /* Larger Size to match Home */
  display: block !important;
  margin-bottom: 20px !important;
  text-align: center;
}

/* Hide Add to Cart button to match Home's clean 'Vitrine' look */
.add_to_cart_button {
  display: none !important;
}

/* -------------------------------------------
   6. PAGINATION
   ------------------------------------------- */
.sp-shop-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.sp-shop-pagination .page-numbers {
  display: flex !important; /* Force visibility */
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  font-family: inherit;
}
.sp-shop-pagination .page-numbers.current,
.sp-shop-pagination .page-numbers:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}

/* -------------------------------------------
   7. FAILSAFE GRID OVERRIDES & FILTER FIXES
   ------------------------------------------- */
/* Ensure Filters are ALWAYS flex rows */
.skyline-filters .filter-group {
  display: flex !important;
  gap: 10px;
  margin: 0;
}

/* -------------------------------------------
   9. STRICT GRID ENFORCEMENT (User Fix)
   ------------------------------------------- */
/* Target every possible container variant */
.shop-layout-skyline ul.products,
.shop-layout-modular ul.products,
.shop-content ul.products,
ul.products.columns-4,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Ensure list items are cards, not full width rows */
.shop-layout-skyline ul.products li.product,
.shop-content ul.products li.product,
ul.products li.product {
  width: 100% !important; /* Width relative to grid column, not page */
  max-width: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* -------------------------------------------
   8. USER REQUESTED: FULL WIDTH FILTERS
   ------------------------------------------- */
/* Force Skyline Filters Container to Full Width */
.skyline-filters {
  width: 100% !important;
  display: flex !important;
  gap: 20px !important;
  justify-content: space-between;
}

/* Make each dropdown group take equal width */
.skyline-search-group {
  flex: 1 !important;
  min-width: 0; /* Prevent overflow */
}

/* Make select element fill valid space */
.shop-filter-select {
  width: 100% !important;
  max-width: none !important;
}

/* Ensure Categories don't inline awkwardly if space is tight */
.skyline-categories {
  margin-bottom: 20px;
  width: 100%;
  justify-content: flex-start;
}

/* -------------------------------------------
   10. SHOP CATEGORIES GRID
   ------------------------------------------- */
.shop-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.shop-cat-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: #333;
}

.shop-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shop-cat-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  opacity: 0.8;
}

.shop-cat-card:hover .shop-cat-image {
  transform: scale(1.05);
  opacity: 0.6;
}

.shop-cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
}

.shop-cat-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.shop-cat-content .cat-name {
  font-size: 32px;
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: #fff !important;
}

.shop-cat-content .cat-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.price {
  color: var(--primary-blue) !important;
  font-weight: 700;
  font-size: 15px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 5px 0 !important;
}

/* -------------------------------------------
   6. PAGINATION
   ------------------------------------------- */
.sp-shop-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.sp-shop-pagination .page-numbers {
  display: flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
}
.sp-shop-pagination .page-numbers.current,
.sp-shop-pagination .page-numbers:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}

/* -------------------------------------------
   7. FAILSAFE GRID OVERRIDES & FILTER FIXES
   ------------------------------------------- */
/* Ensure Filters are ALWAYS flex rows */
.skyline-filters .filter-group {
  display: flex !important;
  gap: 10px;
  margin: 0;
}

/* -------------------------------------------
   9. STRICT GRID ENFORCEMENT (User Fix)
   ------------------------------------------- */
/* Target every possible container variant */
.shop-layout-skyline ul.products,
.shop-layout-modular ul.products,
.shop-content ul.products,
ul.products.columns-4,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Ensure list items are cards, not full width rows */
.shop-layout-skyline ul.products li.product,
.shop-content ul.products li.product,
ul.products li.product {
  width: 100% !important; /* Width relative to grid column, not page */
  max-width: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  grid-column: auto / span 1 !important;
}

/* -------------------------------------------
   8. USER REQUESTED: FULL WIDTH FILTERS
   ------------------------------------------- */
/* Force Skyline Filters Container to Full Width */
.shop-filters-form {
  width: 100%;
}

.skyline-filters {
  width: 100% !important;
  display: flex !important;
  gap: 20px !important;
  justify-content: space-between;
}

/* Make each dropdown group take equal width */
.skyline-search-group {
  flex: 1 !important;
  min-width: 0; /* Prevent overflow */
}

/* Make select element fill valid space */
.shop-filter-select {
  width: 100% !important;
  max-width: none !important;
}

/* Ensure Categories don't inline awkwardly if space is tight */
.skyline-categories {
  margin-bottom: 20px;
  width: 100%;
  justify-content: flex-start;
}

/* -------------------------------------------
   10. SHOP CATEGORIES GRID
   ------------------------------------------- */
.shop-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.shop-cat-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background-color: #333;
}

.shop-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shop-cat-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  opacity: 0.8;
}

.shop-cat-card:hover .shop-cat-image {
  transform: scale(1.05);
  opacity: 0.6;
}

.shop-cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
}

.shop-cat-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.shop-cat-content .cat-name {
  font-size: 32px;
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: #fff !important;
}

.shop-cat-content .cat-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #fff;
  color: #000;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.shop-cat-card:hover .cat-btn {
  transform: translateY(0);
  opacity: 1;
}

/* -------------------------------------------
   11. SHOP HERO - EXPERT STYLE (Split Layout)
   ------------------------------------------- */
.shop-hero {
  position: relative;
  padding: 120px 0 100px;
  background-color: var(--soft-surface);
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 60px;
  border: none;
  background-image: none !important;
  display: block !important;
  z-index: 1;
}

.shop-hero::after {
  display: none !important; /* Remove old gradient */
}

/* Split Container */
.shop-hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex !important; /* Changed to flex for better stability */
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
  width: 100% !important;
  text-align: left !important;
}

/* Content Side (Left) */
.shop-hero-content {
  position: relative;
  z-index: 5;
}

.shop-page-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5.5rem) !important;
  line-height: 1.1 !important;
  color: var(--deep-navy) !important;
  margin-bottom: 30px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  text-align: left !important;
}

.shop-page-title .title-light {
  color: var(--primary-blue) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-block !important;
  background: rgba(0, 91, 150, 0.08); /* Soft blue bg */
  padding: 8px 16px !important;
  border-radius: 50px !important;
  letter-spacing: 2px !important;
  margin-bottom: 20px !important;
  text-transform: uppercase !important;
}

.shop-page-title .title-bold {
  display: block;
  color: var(--deep-navy) !important;
}

.shop-hero-subtitle p {
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: var(--text-medium) !important;
  margin: 0 0 35px 0 !important;
  max-width: 520px !important;
  text-shadow: none !important;
  text-align: left !important;
}

/* Visual Side (Right) */
.shop-hero-visual {
  position: relative;
  flex: 0 0 55%; /* Increased width */
  max-width: 850px;
  z-index: 5;
}

.shop-hero-visual .rounded-frame {
  width: 100%;
  aspect-ratio: 3 / 2; /* Taller and wider presence */
  max-height: 600px;
  border-radius: 80px; /* More rounded for premium feel */
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  background-color: var(--deep-navy);
}

.shop-hero-visual .rounded-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
  opacity: 0.9;
}

.shop-hero:hover .rounded-frame img {
  transform: scale(1.05);
}

.shop-hero-visual .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(11, 19, 43, 0.2), transparent);
}

/* Aggressive Astra Container Overrides for Shop/Archive */
.archive.tax-product_cat #primary,
.archive.post-type-archive-product #primary,
.page-template-page-shop #primary,
.archive.tax-product_cat .site-content,
.archive.post-type-archive-product .site-content,
.page-template-page-shop .site-content,
.archive.tax-product_cat .ast-container,
.archive.post-type-archive-product .ast-container,
.page-template-page-shop .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure the header inside these pages is still constrained and flex behaves */
.archive.tax-product_cat .site-header .ast-container,
.archive.post-type-archive-product .site-header .ast-container,
.archive.tax-product_cat #masthead .ast-container,
.archive.post-type-archive-product #masthead .ast-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0 20px !important;
}

/* Clear vertical stack if flex-direction was somehow set to column */
.archive.tax-product_cat .site-header .ast-container > *,
.archive.post-type-archive-product .site-header .ast-container > * {
  flex: 0 1 auto !important;
}

/* Breadcrumbs adjustment */
.shop-breadcrumbs {
  margin-top: 30px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: inline-flex !important;
}

.shop-breadcrumbs,
.shop-breadcrumbs a {
  color: var(--text-light) !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
}

.shop-breadcrumbs a:hover {
  color: var(--primary-blue) !important;
}

/* Responsive Adjustments for Shop Hero */
@media (max-width: 1024px) {
  .shop-hero {
    padding: 80px 0 60px;
  }
  .shop-hero-inner {
    grid-template-columns: 1fr;
    text-align: center !important;
    gap: 50px;
  }
  .shop-hero-content {
    order: 1;
  }
  .shop-hero-visual {
    order: 2;
    max-width: 600px;
    margin: 0 auto;
  }
  .shop-page-title {
    text-align: center !important;
  }
  .shop-hero-subtitle p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .shop-breadcrumbs {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .shop-hero {
    padding: 60px 0 40px;
  }
  .shop-page-title {
    font-size: 2.2rem !important;
  }
  .shop-hero-visual .rounded-frame {
    border-radius: 40px;
  }
}

/* Keyframe Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Accessibility Focus States */
.skyline-cat-btn:focus,
.shop-filter-select:focus,
.skyline-cat-btn:active {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}
