/* ==========================================================================
   SHEIN-INSPIRED FASHION THEME STYLES (Modular SaaS Fashion Theme)
   ========================================================================== */

:root {
  /* Colors */
  --fsh-primary: #111111;
  --fsh-primary-hover: #222222;
  --fsh-accent: #FA6338;
  --fsh-accent-hover: #E04F26;
  --fsh-sale: #FF3B30;
  --fsh-pink: #FF4757;
  --fsh-gold: #E5A83B;
  --fsh-bg-light: #F7F8FA;
  --fsh-bg-card: #FFFFFF;
  --fsh-border: #EEEEEE;
  --fsh-border-dark: #DDDDDD;
  --fsh-text-main: #222222;
  --fsh-text-muted: #767676;
  --fsh-text-light: #9E9E9E;
  
  /* Radii */
  --fsh-radius-sm: 4px;
  --fsh-radius-md: 8px;
  --fsh-radius-lg: 14px;
  --fsh-radius-full: 9999px;
  
  /* Shadows */
  --fsh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --fsh-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --fsh-shadow-float: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Layout */
  --fsh-bottom-nav-height: 60px;
  --fsh-sticky-buy-height: 70px;
}

body.fashion-theme {
  color: var(--fsh-text-main);
  background-color: var(--fsh-bg-light);
  font-family: var(--fashion-font, 'Tajawal', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
}

body.fashion-theme.has-bottom-nav {
  padding-bottom: calc(var(--fsh-bottom-nav-height) + 10px);
}

body.fashion-theme.has-sticky-buy {
  padding-bottom: calc(var(--fsh-bottom-nav-height) + var(--fsh-sticky-buy-height) + 10px);
}

/* ==========================================================================
   Top Announcement Ticker
   ========================================================================== */
.fsh-top-ticker {
  background: #000000;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.5px;
}
.fsh-top-ticker a {
  color: var(--fsh-accent);
  text-decoration: underline;
  margin-inline-start: 6px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.fsh-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--fsh-border);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.3s ease;
}
.fsh-header-main {
  padding: 12px 0;
}
.fsh-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #000000;
  text-transform: uppercase;
  text-decoration: none;
}
.fsh-search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.fsh-search-input {
  width: 100%;
  padding: 9px 40px 9px 16px;
  border: 1.5px solid #000000;
  border-radius: var(--fsh-radius-full);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.fsh-search-btn {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  cursor: pointer;
}
.fsh-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.fsh-action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000000;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
}
.fsh-action-btn:hover {
  color: var(--fsh-accent);
}
.fsh-action-btn i {
  font-size: 20px;
  margin-bottom: 2px;
}
.fsh-badge-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -6px;
  background: var(--fsh-accent);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: var(--fsh-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Category Navigation Sub-bar */
.fsh-nav-bar {
  background: #FFFFFF;
  border-top: 1px solid var(--fsh-border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.fsh-nav-bar::-webkit-scrollbar {
  display: none;
}
.fsh-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}
.fsh-nav-link {
  display: inline-block;
  padding: 10px 4px;
  color: #222222;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.fsh-nav-link:hover, .fsh-nav-link.active {
  color: var(--fsh-accent);
  border-bottom-color: var(--fsh-accent);
}
.fsh-nav-link.sale-link {
  color: var(--fsh-sale);
  font-weight: 700;
}

/* ==========================================================================
   Instagram / SHEIN-Style Circular Stories Section
   ========================================================================== */
.fsh-stories-container {
  padding: 16px 0;
  background: #FFFFFF;
  margin-bottom: 12px;
}
.fsh-stories-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fsh-stories-scroll::-webkit-scrollbar {
  display: none;
}
.fsh-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--fsh-text-main);
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  transition: transform 0.2s;
}
.fsh-story-item:hover {
  transform: translateY(-2px);
  color: var(--fsh-accent);
}
.fsh-story-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #FA6338, #FF4757, #E5A83B);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.fsh-story-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
}
.fsh-story-title {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
}

/* ==========================================================================
   Flash Sale & Countdown Section
   ========================================================================== */
.fsh-flash-section {
  background: #FFFFFF;
  border-radius: var(--fsh-radius-md);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--fsh-border);
}
.fsh-flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.fsh-flash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--fsh-sale);
  margin: 0;
}
.fsh-timer-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}
.fsh-timer-box {
  background: #000000;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: var(--fsh-radius-sm);
  font-family: monospace;
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   Fashion Product Card (Shein-Style 3:4 aspect ratio)
   ========================================================================== */
.fsh-card {
  background: #FFFFFF;
  border-radius: var(--fsh-radius-sm);
  overflow: hidden;
  border: 1px solid var(--fsh-border);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.fsh-card:hover {
  box-shadow: var(--fsh-shadow-md);
  border-color: #DDDDDD;
}
.fsh-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 133.33%; /* 3:4 Aspect Ratio */
  background: #F4F4F4;
  overflow: hidden;
}
.fsh-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.fsh-card:hover .fsh-card-img {
  transform: scale(1.04);
}
.fsh-card-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: var(--fsh-accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--fsh-radius-sm);
  z-index: 2;
  letter-spacing: 0.3px;
}
.fsh-card-wishlist {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
  box-shadow: var(--fsh-shadow-sm);
}
.fsh-card-wishlist:hover, .fsh-card-wishlist.active {
  background: #FFFFFF;
  color: var(--fsh-pink);
  transform: scale(1.1);
}
.fsh-card-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 3;
}
.fsh-card:hover .fsh-card-quick-add {
  transform: translateY(0);
}
.fsh-quick-btn {
  width: 100%;
  background: #000000;
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--fsh-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}
.fsh-quick-btn:hover {
  background: var(--fsh-accent);
}

.fsh-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.fsh-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
  line-height: 1.4;
  text-decoration: none;
}
.fsh-card-title:hover {
  color: var(--fsh-accent);
}
.fsh-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.fsh-price-current {
  font-size: 15px;
  font-weight: 800;
  color: var(--fsh-text-main);
}
.fsh-price-old {
  font-size: 12px;
  color: var(--fsh-text-light);
  text-decoration: line-through;
}
.fsh-card-swatches {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.fsh-swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #DDDDDD;
  display: inline-block;
}

/* ==========================================================================
   Product Details Page Styles
   ========================================================================== */
.fsh-product-container {
  background: #FFFFFF;
  border-radius: var(--fsh-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--fsh-border);
}
.fsh-gallery-main {
  width: 100%;
  border-radius: var(--fsh-radius-sm);
  overflow: hidden;
  background: #F4F4F4;
  margin-bottom: 12px;
}
.fsh-gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.fsh-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fsh-gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.fsh-thumb-item {
  width: 60px;
  height: 80px;
  border-radius: var(--fsh-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: cover;
  opacity: 0.7;
  transition: all 0.2s;
}
.fsh-thumb-item.active, .fsh-thumb-item:hover {
  border-color: #000000;
  opacity: 1;
}

/* Color Swatches on Product Page */
.fsh-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.fsh-swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #EEEEEE;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: transparent;
}
.fsh-swatch-btn.active {
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
.fsh-swatch-color-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Size Selector */
.fsh-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.fsh-size-btn {
  min-width: 48px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--fsh-border-dark);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--fsh-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.fsh-size-btn:hover {
  border-color: #000000;
}
.fsh-size-btn.active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}
.fsh-size-btn.disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #F4F4F4;
}

/* Stock Warning Badge */
.fsh-stock-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF0EB;
  color: var(--fsh-accent);
  padding: 4px 10px;
  border-radius: var(--fsh-radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Size Guide Trigger */
.fsh-size-guide-link {
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Add to Cart Actions */
.fsh-btn-add-cart {
  background: #000000;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--fsh-radius-sm);
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  cursor: pointer;
}
.fsh-btn-add-cart:hover {
  background: var(--fsh-accent);
}
.fsh-btn-buy-now {
  background: var(--fsh-accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--fsh-radius-sm);
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  cursor: pointer;
}
.fsh-btn-buy-now:hover {
  background: var(--fsh-accent-hover);
}

/* ==========================================================================
   Mobile Floating Bottom Navigation Bar
   ========================================================================== */
.fsh-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--fsh-bottom-nav-height);
  background: #FFFFFF;
  border-top: 1px solid var(--fsh-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
.fsh-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--fsh-text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  flex: 1;
  height: 100%;
  transition: color 0.2s;
}
.fsh-bottom-nav-item i {
  font-size: 18px;
  margin-bottom: 2px;
}
.fsh-bottom-nav-item.active, .fsh-bottom-nav-item:hover {
  color: #000000;
}
.fsh-bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 2px;
  background: #000000;
}

/* ==========================================================================
   Mobile Sticky Buy Bar
   ========================================================================== */
.fsh-sticky-buy-bar {
  position: fixed;
  bottom: var(--fsh-bottom-nav-height);
  left: 0;
  right: 0;
  height: var(--fsh-sticky-buy-height);
  background: #FFFFFF;
  border-top: 1px solid var(--fsh-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1025;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(150%);
  transition: transform 0.3s ease;
}
.fsh-sticky-buy-bar.visible {
  transform: translateY(0);
}
.fsh-sticky-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fsh-sticky-img {
  width: 44px;
  height: 54px;
  border-radius: var(--fsh-radius-sm);
  object-fit: cover;
}
.fsh-sticky-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--fsh-accent);
}

/* ==========================================================================
   Free Shipping Goal Progress Bar
   ========================================================================== */
.fsh-shipping-bar-wrap {
  background: #FFF8F5;
  border: 1px solid #FFE4D6;
  border-radius: var(--fsh-radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.fsh-shipping-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--fsh-text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fsh-shipping-progress {
  height: 6px;
  background: #EBEBEB;
  border-radius: var(--fsh-radius-full);
  overflow: hidden;
}
.fsh-shipping-fill {
  height: 100%;
  background: linear-gradient(90deg, #FA6338, #FF4757);
  border-radius: var(--fsh-radius-full);
  transition: width 0.4s ease;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 767.98px) {
  .fsh-hide-mobile {
    display: none !important;
  }
  .fsh-product-container {
    padding: 14px;
    border: none;
    border-radius: 0;
  }
}

@media (min-width: 768px) {
  .fsh-bottom-nav {
    display: none !important;
  }
  .fsh-sticky-buy-bar {
    bottom: 0;
  }
  body.fashion-theme.has-bottom-nav {
    padding-bottom: 0;
  }
  body.fashion-theme.has-sticky-buy {
    padding-bottom: var(--fsh-sticky-buy-height);
  }
}
