/**
 * components/shapes/shapes.css
 * استایل اختصاصی صفحه اشکال فریم عینک طبی صدف
 */

:root {
  --transition-speed: 0.3s;
}

.shapes-page-wrapper {
  background-color: #fafafa;
  color: #333;
  padding-bottom: 80px;
  overflow: hidden;
}

/* =========================================
   1. Hero Section
   ========================================= */
.shapes-hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, #1e1e1e 0%, #111111 90%);
  color: #fff;
  padding: 80px 0 90px;
  text-align: center;
  overflow: hidden;
}

.shapes-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(214, 163, 0, 0.15);
  color: var(--brand, #d4a300);
  border: 1px solid rgba(214, 163, 0, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.shapes-hero .hero-title {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: #fff;
}

/* Highlight word or gradient header */
.shapes-hero .hero-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--brand, #d4a300);
  margin: 15px auto 0;
  border-radius: 2px;
}

.shapes-hero .hero-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: #ccc;
  font-weight: 300;
}

/* Hero background glow */
.shapes-hero .hero-bg-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(214, 163, 0, 0.12) 0%, rgba(0,0,0,0) 60%);
  z-index: 1;
  pointer-events: none;
  filter: blur(40px);
}

/* =========================================
   2. Shared Section Layout
   ========================================= */
.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF7E6;
  color: #8b6b00;
  border: 1px solid rgba(214, 163, 0, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title-wrap h2 {
  font-size: 26px;
  color: #111;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title-wrap p {
  font-size: 15px;
  color: #666;
}

/* =========================================
   3. Grid of Shapes
   ========================================= */
.shapes-grid-section {
  padding: 80px 0 60px;
}

.shapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.shape-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-speed) ease, 
              box-shadow var(--transition-speed) ease, 
              border-color var(--transition-speed) ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.shape-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(214, 163, 0, 0.08);
  border-color: var(--brand, #d4a300);
}

/* Graphic/SVG icon holder */
.shape-icon-holder {
  width: 100%;
  max-width: 240px;
  height: 125px;
  background: #fbfbfb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  margin-bottom: 24px;
  color: #444;
  transition: background var(--transition-speed) ease,
              color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
  border: 1px solid rgba(0,0,0,0.01);
}

.shape-card:hover .shape-icon-holder {
  background: #FFFBF0;
  color: var(--brand, #d4a300);
  transform: scale(1.03);
}

.shape-icon-holder svg,
.shape-icon-holder img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.04));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shape-card:hover .shape-icon-holder svg,
.shape-card:hover .shape-icon-holder img {
  transform: scale(1.08);
}

/* Info styling */
.shape-info h3 {
  font-size: 19px;
  color: #111;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color var(--transition-speed) ease;
}

.shape-card:hover .shape-info h3 {
  color: var(--brand, #d4a300);
}

.shape-info p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 18px;
  min-height: 68px; /* Keeps card content aligned */
}

.shape-badge {
  display: inline-block;
  font-size: 11.5px;
  color: #8b6b00;
  background: #FFF7E6;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
  margin-bottom: 24px;
}

.shape-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border: 1.5px solid #eaeaea;
  border-radius: 12px;
  width: 100%;
  transition: background var(--transition-speed) ease,
              color var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

.shape-cta i {
  font-size: 12px;
  transition: transform var(--transition-speed) ease;
}

.shape-card:hover .shape-cta {
  background: var(--brand, #d4a300);
  color: #fff;
  border-color: var(--brand, #d4a300);
}

.shape-card:hover .shape-cta i {
  transform: translateX(-4px);
}

/* =========================================
   4. Featured Products Section
   ========================================= */
.shapes-products-section {
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
}

.shapes-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
  margin-top: 30px;
}

.shapes-view-all {
  text-align: center;
  margin-top: 45px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111111;
  color: #fff;
  padding: 13px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.view-all-link:hover {
  background: var(--brand, #d4a300);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 163, 0, 0.25);
}

.view-all-link i {
  font-size: 12px;
  transition: transform var(--transition-speed) ease;
}

.view-all-link:hover i {
  transform: translateX(-4px);
}

/* =========================================
   5. Face Shapes Bridge Section (No Cannibalization)
   ========================================= */
.face-shapes-bridge-section {
  padding: 70px 0 80px;
  background: #fbfbfb;
  border-top: 1px solid #f0f0f0;
}

.face-shapes-bridge-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.face-shapes-bridge-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand, #d4a300), #e8bb24);
}

.bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF7E6;
  color: #8b6b00;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.bridge-content h2 {
  font-size: 26px;
  font-weight: 900;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.4;
}

.bridge-content p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 24px;
}

.bridge-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.bridge-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.bridge-feat-item i {
  color: #27ae60;
  font-size: 16px;
}

.bridge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #111 0%, #222 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.bridge-btn:hover {
  background: var(--brand, #d4a300);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 163, 0, 0.25);
}

.bridge-btn i {
  font-size: 13px;
  transition: transform var(--transition-speed) ease;
}

.bridge-btn:hover i {
  transform: translateX(-4px);
}

.bridge-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bridge-image-wrap {
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 4px solid #fff;
  transition: transform 0.4s ease;
}

.bridge-image-wrap:hover {
  transform: scale(1.02);
}

.bridge-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================================
   5. Advice Callout Banner
   ========================================= */
.shapes-advice-banner {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFF2D1 100%);
  border: 1px solid rgba(214, 163, 0, 0.15);
  border-radius: 20px;
  padding: 35px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
}

.advice-text {
  flex: 1;
}

.advice-text h3 {
  font-size: 20px;
  color: #614600;
  font-weight: 800;
  margin-bottom: 10px;
}

.advice-text p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #7c5f11;
  margin: 0;
}

.advice-action {
  flex-shrink: 0;
}

.advice-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111111;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: background var(--transition-speed) ease,
              transform var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

.advice-btn:hover {
  background: var(--brand, #d4a300);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(214, 163, 0, 0.3);
}

.advice-btn i {
  font-size: 16px;
}

/* =========================================
   6. Responsive Breakpoints
   ========================================= */
@media (max-width: 991px) {
  .face-shapes-bridge-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 30px;
    text-align: center;
  }

  .bridge-features {
    align-items: center;
  }

  .bridge-btn {
    width: 100%;
    justify-content: center;
  }

  .shapes-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shapes-advice-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
  
  .advice-btn {
    width: 100%;
    justify-content: center;
  }
  
  .shapes-hero .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .shapes-hero {
    padding: 60px 0 70px;
  }
  
  .shapes-hero .hero-title {
    font-size: 26px;
  }
  
  .shapes-hero .hero-subtitle {
    font-size: 14px;
  }
  
  .section-title-wrap {
    margin-bottom: 35px;
  }
  
  .section-title-wrap h2 {
    font-size: 22px;
  }

  .shapes-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .bridge-content h2 {
    font-size: 20px;
  }
}
