/* ==========================================================================
   SHAPE Lingerie - Modern Store UI/UX Enhancements
   ========================================================================== */

/* Typography & Global Smoothing */
:root {
  --shape-primary: #3d2c25;
  --shape-secondary: #8c6d58;
  --shape-accent: #c49a6c;
  --shape-bg-warm: #faf7f2;
  --shape-bg-soft: #f4ede4;
  --shape-border: #e8ded4;
  --shape-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shape-font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body, html {
  font-family: var(--shape-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--shape-font-heading);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Video Showcase Section
   ========================================================================== */
.shape-video-showcase-section {
  padding: 60px 0;
  background: var(--shape-bg-warm);
  border-top: 1px solid var(--shape-border);
  border-bottom: 1px solid var(--shape-border);
  margin: 20px 0 40px;
}

.shape-video-showcase-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 0 16px;
}

.shape-video-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--shape-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.shape-video-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--shape-primary);
  margin: 0 0 12px;
  line-height: 1.25;
}

.shape-video-subtitle {
  font-size: 15px;
  color: #6a5a52;
  line-height: 1.6;
  margin: 0;
}

.shape-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 16px;
}

.shape-video-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(61, 44, 37, 0.06);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.shape-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(61, 44, 37, 0.12);
}

.shape-video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.shape-video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shape-video-card:hover .shape-video-thumb-wrap img {
  transform: scale(1.05);
}

.shape-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shape-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.shape-play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.shape-video-card:hover .shape-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #fff;
  color: var(--shape-accent);
}

.shape-video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.shape-video-info {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shape-video-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--shape-primary);
  margin: 0 0 8px;
  line-height: 1.35;
}

.shape-video-info p {
  font-size: 13px;
  color: #7a6a60;
  line-height: 1.5;
  margin: 0;
}

/* Video Modal */
.shape-video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.shape-video-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shape-video-modal-container {
  width: 100%;
  max-width: 860px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.shape-video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.shape-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.shape-video-iframe-wrap {
  width: 100%;
  aspect-ratio: 16/9;
}

.shape-video-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.shape-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #2b1f1a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.shape-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Search Autocomplete / Instant Results
   ========================================================================== */
.shape-search-results-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid #ebd9c8;
  display: none;
}

.shape-search-results-popup.active {
  display: block;
}

.shape-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid #f2ede7;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.shape-search-item:hover {
  background: #faf6f0;
}

.shape-search-item-img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

.shape-search-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--shape-primary);
}

.shape-search-item-info p {
  font-size: 13px;
  font-weight: 700;
  color: var(--shape-accent);
  margin: 0;
}

/* ==========================================================================
   Checkout Quick Modal & Cart Drawer Improvements
   ========================================================================== */
.shape-cart-shipping-bar {
  background: #f7ede2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #553c2c;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shape-cart-progress {
  height: 6px;
  background: #e2d2c1;
  border-radius: 999px;
  overflow: hidden;
}

.shape-cart-progress-fill {
  height: 100%;
  background: #a8794c;
  width: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.shape-qty-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4c5b6;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

.shape-qty-btn:hover {
  background: #f2e9df;
}
