/* ===================================
   GIFT PAGES ADDITIONAL STYLES
   Professional typography and spacing
   =================================== */


/* ===================================
   GIFT PAGES HEADING HIERARCHY ADDITIONS
   Only the overrides and new rules needed
   (Base h1, h2, h3 styles already in styles.css)
   =================================== */

/* -----------------------------------
   NEW HEADING LEVELS (h4 and h5)
   Not defined in styles.css
----------------------------------- */

/* h4 - Sub-subsections */
h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #2d3748;
  font-weight: 600;
  line-height: 1.3;
}

/* h5 - Minor headings */
h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
  font-weight: 600;
  line-height: 1.3;
}

/* -----------------------------------
   SPECIFIC CONTEXT OVERRIDES
   For gift pages visual hierarchy
----------------------------------- */

/* Override h2 text-align for gift sections (not all h2s should be centered) */
.gift-section h2 {
  text-align: left;  /* Override the center from styles.css where needed */
}

.gift-section h2.section-title {
  text-align: center;
}

/* Mega section headers should be centered and prominent */
.mega-section-header h2 {
  font-size: 1.75rem;
  text-align: center;  /* Keep centered */
  margin-bottom: 10px;
  padding-top: 40px;
}



/* Remove or comment out this rule: */
/* .gift-mega-section .gift-section h3:first-of-type {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 15px;
  text-align: left;
} */


/* Updated CSS */
.gift-section h3.section-title,
.gift-section h3.main-heading {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 15px;
}


/* */
.gift-section h3.section-title {
  text-align: center;
}

/* */
.gift-section h3.main-heading {
  text-align: left;
}

h3.subsection-title {
  text-align: center;
  color: #2d3748;
  font-size: 1.375rem;
  margin: 50px 0 15px;
  font-weight: 600;
}

/* h4 within gift categories - smaller visual size */
.gift-category h4 {
  font-size: 1.15rem;
  color: #2d3748;
  margin-bottom: 12px;
  margin-top: 20px;
}

/* Budget grid items */
.budget-grid .budget-item h4 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

/* Tips cards headings */
.tip-card h5 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Gift timing guide headings */
.gift-timing-guide h5 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.15rem;
}

/* DIY tips headings */
.diy-tips h5 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Stocking grid card headings */
.stocking-content h5 {
  color: #2d3748;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

/* Gift item headings in featured sections */
.gift-item h4 {
  color: #2d3748;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* Content headlines in featured items (override with !important if needed) */
.content-headline {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #2d3748;
}

/* Content subheads */
.content-subhead {
  font-size: 1.25rem !important;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #4a5568;
}

/* FAQ section maintains proper hierarchy */



.faq-item h3 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1.2rem;
  text-align: left;  /* Override center */
}

/* CTA box headings */
.cta-box h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Conclusion section */
.conclusion h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Trust section items (if used in gift pages) */
.trust-item h4 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Occasion card headings (if used in gift pages) */
.occasion-card h4 {
  color: #2d3748;
  font-size: 1.1rem;
  margin: 0;
}

/* -----------------------------------
   RESPONSIVE ADJUSTMENTS FOR NEW LEVELS
   (h1, h2, h3 responsive styles already in styles.css)
----------------------------------- */

@media (max-width: 768px) {
  h4 {
    font-size: 1.15rem;
  }
  
  h5 {
    font-size: 1.05rem;
  }
  
  .mega-section-header h2 {
    font-size: 1.6rem;
  }
  
  .gift-mega-section .gift-section h3:first-of-type {
    font-size: 1.4rem;
  }
  
  h3.subsection-title {
    font-size: 1.2rem;
    margin: 30px 0 20px;
  }
}

@media (max-width: 480px) {
  h4 {
    font-size: 1.1rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  .mega-section-header h2 {
    font-size: 1.5rem;
  }
  
  .subsection-title {
    font-size: 1.15rem;
  }
}   
   
   
   
   
   
   
   

/* -----------------------------------
   QUICK LINKS (for Section Navigation)
----------------------------------- */
.quick-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-link {
  background: white;
  padding: 8px 20px;
  border-radius: 20px;
  color: #6b46c1;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.quick-link:hover {
  background: #6b46c1;
  color: white;
  border-color: #6b46c1;
}


.quick-links-box {
  background: #ffffff;  /* Pure white */
  border: 1px solid #e2e8f0;  /* Pale gray border; or use #e9d8fd for light purple. Orig color #f7fafc. Alt tried pale yellow: #fffcf0 */
  border-radius: 8px;
  padding: 20px 15px;
margin: 0px auto 30px;  /* Changed from 60px to 30px. Auto centers it*/
  max-width: 900px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);  /* Keep the subtle shadow for depth */
}

.quick-links {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
}

/* ===================================================================
   BUTTON-STYLE QUICK LINKS (Main navigation buttons)
   Used in: 01-quick-links.php
   =================================================================== */

/* Desktop button-style links */
.quick-links-box .quick-links .quick-link-button {
  background: white;
  padding: 8px 20px;
  border-radius: 20px;
  color: #6b46c1;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
}

.quick-links-box .quick-links .quick-link-button:hover {
  background: #6b46c1;
  color: white !important;
  border-color: #6b46c1;
}

/* Mobile button-style links */
.quick-links.only-mobile .quick-link-button {
  background: white;
  padding: 8px 20px;
  border-radius: 20px;
  color: #6b46c1;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.quick-links.only-mobile .quick-link-button:hover {
  background: #6b46c1;
  color: white !important;
  border-color: #6b46c1;
}

/* ===================================================================
   TEXT-STYLE QUICK LINKS (Subcategory navigation)
   Used in: 01a-mens-quick-links.php, 01b-womens-quick-links.php
   =================================================================== */

/* Desktop text-style links */
.quick-links-box.only-desktop .quick-link-text {
  color: #4a5568;
  text-decoration: underline;
  transition: all 0.3s ease;
  margin: 0 5px;
  white-space: nowrap;
}

.quick-links-box.only-desktop .quick-link-text:hover {
  color: #6b46c1 !important;
  text-decoration: none;
}

/* Mobile text-style links (inside details/summary) */
.only-mobile .quick-links-box details .quick-links .quick-link-text {
  color: #4a5568;
  text-decoration: underline;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.only-mobile .quick-links-box details .quick-links .quick-link-text:hover {
  color: #6b46c1 !important;
  text-decoration: none;
}

/* -----------------------------------
   VISIBILITY TOGGLES FOR RESPONSIVE MENUS
----------------------------------- */
.only-mobile {
  display: none;
}

.only-desktop {
  display: block;
}

@media (max-width: 768px) {
  .only-mobile {
    display: block;
  }

  .only-desktop {
    display: none;
  }

  /* ==================================================================
   NEW STYLES FOR MOBILE <details> TAGS (OPTIONAL BUT RECOMMENDED)
  ==================================================================
  */
  .only-mobile details {
    background: #fdfdff; /* A very light purple, almost white */
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px; /* Space it out */
  }
  
  .only-mobile summary {
    padding: 15px;
    font-weight: 600;
    color: #6b46c1; /* Brand purple */
    cursor: pointer;
    list-style: none; /* Removes default triangle in Firefox/Edge */
    outline: none; /* Removes blue ring on focus in Chrome */
  }

  /* Removes default triangle in Chrome/Safari */
  .only-mobile summary::-webkit-details-marker {
    display: none; 
  }
  
  .only-mobile details[open] summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f7f5ff; /* Slightly darker purple when open */
  }

  /* Style the content *inside* the details tag */
  
  /* This targets the .quick-links div inside a <details> */
  .only-mobile details > .quick-links {
     padding: 15px; /* Add padding to the links when opened */
  }
  
  /* This targets the .intro-section inside a <details> */
  .only-mobile details > .intro-section {
     padding: 0 15px 15px; /* Add padding to the intro text when opened */
     text-align: left;
  }
  
  .only-mobile details > .intro-section p {
     margin-bottom: 20px;
     text-align: left;
  }

  .only-mobile details > .intro-section .guide-stats {
    justify-content: space-around; /* Spread stats out a bit */
  }
  
  /* This targets the link-style quick links (like in 01a-mens-quick-links.php) */
  .only-mobile .quick-links-box details .quick-links {
    padding: 15px;
    line-height: 1.8;
  }

  .only-mobile .quick-links-box details .quick-links a {
    white-space: normal; /* Allow text-style links to wrap */
  }

}

/* -----------------------------------
   INTRO SECTION
----------------------------------- */
.intro-section {
  margin-bottom: 60px;
  text-align: center;
}

.intro-section p {
  font-size: 1.1rem;        /* Match body text consistently */
  line-height: 1.7;
  color: #4a5568;
  max-width: 900px;
  margin: 0 auto 40px;
}

.guide-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;          /* Reduced from 2.25rem */
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  color: #718096;
  font-size: 0.9rem;
  margin-top: 5px;
}s

/* -----------------------------------
   MEGA SECTION STYLES
----------------------------------- */
.mega-section-title::before {
  content: "🎄 ";
  font-size: 1.1rem;
  margin-right: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mega-section-title {
  margin-right: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mega-section-header {
  text-align: center;
  padding-top: 40px;        /* Space above the title (after divider line) */
  margin-bottom: 10px;      /* Space below the entire header section (was 40)*/
  padding-bottom: 10px;     /* Internal padding before margin starts */
  border-bottom: 0px solid #e2e8f0;      /* border was 1px. Removed. */
  border-top: 1px solid #e2e8f0;      /* new top border added */
}

.mega-section-nav {
  margin-top: 20px;
  font-size: 0.95rem;
}

.section-jump {
  color: #6b46c1;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.section-jump:hover {
  color: #512da8;
}

.separator {
  margin: 0 4px;
}

/* -----------------------------------
   GIFT SECTIONS
----------------------------------- */
.gift-section {
  margin-bottom: 80px;
}

.gift-section h2 {
  color: #2d3748;
  font-size: 1.6rem;      /* Consistent with main h2 */
  margin-bottom: 0px;      /* Reduced margin - was: 15px
  padding-bottom: 5px;      /* Reduced padding - was: 15px
  border-bottom: 0px solid #e2e8f0;    /* Removed bottom border line - was: 3px solid #e2e8f0; */
}

.section-intro,
.section-outro {
  color: #4a5568;
  font-size: 1.1rem;        /* Match body text */
  line-height: 1.7;
  margin-bottom: 30px;
}

/* -----------------------------------
   GIFT ITEMS - STANDARD (no image)
----------------------------------- */
.gift-item {
  background: #f8f9fa;
  padding: 30px;            /* More generous but not excessive */
  margin-bottom: 30px;
  border-radius: 10px;
  border-left: 4px solid #6b46c1;
  transition: all 0.3s ease;
}

.gift-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transform: translateX(5px);
  background: white;
}

.gift-item h3 {
  color: #2d3748;
  font-size: 1.25rem;       /* Reduced for better hierarchy */
  margin-bottom: 12px;
}

.gift-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.4rem;
}

.gift-description {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.1rem;        /* Match body text */
}


/* disabling the separate gift description hovers - defaulting to .gift-content a:hover control elsewhere for now ....

.gift-description a,
.gift-description a > strong {
  color: #6b46c1;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gift-description a:hover,
.gift-description a:hover > strong {
  color: #988dff;
}
... end of commenting out this section */

.gift-description strong {
  color: #2d3748;
  font-weight: 600;
}

.gift-description + .gift-description {
  margin-top: 20px;
}

.gift-description em {
  color: inherit;
  font-style: italic;
  font-weight: normal;
}

.gift-description-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.gift-description-list li {
  padding: 8px 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

.gift-details {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #718096;
}


/* -----------------------------------
   MOBILE STYLES OVERRIDE FOR GIFT ITEMS
----------------------------------- */
@media (max-width: 600px) {
  .gift-description {
    font-size: 1.1rem;
    line-height: 1.65;
    padding-right: 5px;
    margin-bottom: 20px;
  }
  
  .gift-item {
    padding: 25px;
  }
}

.price::before {
  content: "💰 ";
}

.best-for::before {
  content: "👤 ";
}

/* -----------------------------------
   FEATURED GIFT ITEMS (with image)
----------------------------------- */
.gift-item.featured.has-image {
  margin-bottom: 40px;
  background: white;
  padding: 40px;            /* More generous spacing */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: none;
  position: relative;
  overflow: visible;
}

.gift-item.featured.has-image:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: none; /* Removes the jump movement was: translateY(-3px);*/
}

/* Add accent top border to featured items */
.gift-item.featured.has-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
}

/* --- DEPRECATED FLEXBOX RULE (commented out for float-based layout) ---
.gift-item.featured .gift-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  width: 300px;
  height: 300px;
}
--- END DEPRECATED --- */

.gift-item.featured .gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

/* Also disable the image zoom effect */
.gift-item.featured:hover .gift-image img {
  transform: none; /* Removes the image scaling. Was: scale(1.05);*/
}

.gift-item.featured .gift-content {
  flex: 1;
  min-width: 0;
}


.gift-content a,
.gift-content a > strong {
  color: #6b46c1;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gift-content a:hover,
.gift-content a:hover > strong {
  color: #988dff;
}

/* Featured badge positioning */
.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Product links (affiliate buttons) */
.product-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-links a,
.product-link {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  border: 2px solid #6b46c1;
  border-radius: 25px;
  font-size: 0.9rem;
  color: #6b46c1;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-links a:hover,
.product-link:hover {
  background: #6b46c1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);
}

/* Remove top margin from list when it follows the label */
.top-options-label + .product-links-list {
  margin-top: 0 !important;      /* Remove top margin completely */
  margin-bottom: 20px;           /* Keep bottom margin */
}

/* Ensure consistent list spacing */
.product-links-list {
  list-style: disc;          /* disc creates bullet point */
  padding-left: 1.25rem;
  margin: 0 0 20px 0 !important; /* Force zero top margin */
  font-size: 0.95rem;
}

.product-links-list li {
  color: #4a5568;
  margin-bottom: 4px;
}


/* Larger font version for short product lists (used in featured text sections) */
.product-links-list-large li {
  font-size: 1.1rem;       /* Match paragraph text size */
  line-height: 1.7;
  margin-bottom: 10px;
}

.product-links-list-large li::marker {
  color: #6b46c1;     /* site purple */
  font-size: 1.1em;   /* slightly larger bullet */
}
.product-links-list-large {
  padding-left: 1.75rem;
}



/* -----------------------------------
   SMALLER PRODUCT IMAGES (optional)
----------------------------------- */
.gift-item.has-image:not(.featured) {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.gift-item.has-image:not(.featured) .gift-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}

.gift-item.has-image:not(.featured) .gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gift-item.has-image:not(.featured) .gift-content {
  flex: 1;
}


/* -----------------------------------
   FEATURED CARD – CLASSIC FLOAT LAYOUT
----------------------------------- */

/* Desktop and landscape tablets (≥ 769px) */
@media (min-width: 769px) {
  .gift-item.featured.has-image {
    display: block;
    position: relative;
    overflow: hidden; /* clearfix */
  }

.gift-item.featured.has-image .gift-image {
  float: left;
  width: 300px;
  height: 300px;           /* ✅ add this back to fix tall image bug */
  margin: 0 35px 25px 0;
  overflow: hidden;        /* ✅ ensures image doesn’t spill over */
  position: relative;
}

.gift-item.featured.has-image .gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

  .gift-item.featured.has-image .gift-content {
    overflow: visible; /* ensures proper wrapping */
  }

  .gift-item.featured.has-image .gift-content .info-box {
    margin-left: 335px; /* lines up with text to the right of image */
  }
}

/* Tablet Portrait and Mobile (≤ 900px) */
@media (max-width: 900px) {
  .gift-item.featured.has-image {
    padding: 25px;
  }

  .gift-item.featured.has-image .gift-image {
    float: none;
    width: 100%;
    max-width: 400px; /* ADD THIS LINE - prevents images from getting too large */
    height: auto; /* CHANGE from fixed height to auto */
    margin: 0 auto 20px auto; /* CENTER the image */
    display: block; /* ADD THIS - ensures proper block behavior */
  }

  .gift-item.featured.has-image .gift-image img {
    width: 100%;
    height: auto; /* CHANGE from 100% to auto - this was causing the oversizing */
    max-height: 300px; /* ADD THIS - prevents very tall images */
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }

  .gift-item.featured.has-image .gift-content,
  .gift-item.featured.has-image .gift-content .info-box {
    margin-left: 0;
  }
}

/* Only the explicitly marked boxes drop below the image */
.gift-item.featured.has-image .gift-content .info-box.clear-below {
  clear: both;
  margin-left: 0;
}

/* ===================================
   INFORMATION BOX CATEGORY COLORS
   Add these to gift-pages.css after the existing .info-box styles
   =================================== */

/* Category 1: Primary Feature/Organizational - Slate Blue */
.info-box.category-primary {
  background: #f0f4f8;
  border-left-color: #4a5568;
  color: #4a5568;
}

.info-box.category-primary strong {
  color: #2d3748;
}

/* Category 2: Secondary Feature/Organizational - Soft Lavender */
.info-box.category-secondary {
  background: #faf8ff;
  border-left-color: #9f7aea;
  color: #4a5568;
}

.info-box.category-secondary strong {
  color: #2d3748;
}

/* Category 3: Tertiary Feature/Organizational - Soft Teal */
.info-box.category-tertiary {
  background: #f0fdfa;
  border-left-color: #0d9488;
  color: #4a5568;
}

.info-box.category-tertiary strong {
  color: #2d3748;
}

/* Category 4: Quaternary Feature/Organizational - Soft Slate */
.info-box.category-quaternary {
  background: #f8fafc;
  border-left-color: #64748b;
  color: #4a5568;
}

.info-box.category-quaternary strong {
  color: #2d3748;
}

/* Category 5: Amazon Search - Softest Blue Slate */
.info-box.category-amazon {
  background: #f7fafc;
  border-left-color:#6b46c1;    /* site purple accent. Was #64748b;        */ 
  color: #4a5568;
}

.info-box.category-amazon strong {
  color: #2d3748;
}

/* ===================================
   REFERENCE: Existing Info Box Styles
   (Keep these for their intended purposes)
   =================================== */

/* Highlight/callout boxes - purple theme (ORIGINAL USE: Premium/featured content) */
/* .info-box.highlight { background: #f7f5ff; border-left-color: #6b46c1; } */

/* Tips/advice boxes - blue theme (ORIGINAL USE: Actionable guidance) */
/* .info-box.tip { background: #f0f8ff; border-left-color: #4a90e2; } */

/* Warning/safety boxes - amber theme (ORIGINAL USE: Safety/caution info) */
/* .info-box.warning { background: #fffbf0; border-left-color: #f59e0b; } */

/* Success/positive boxes - green theme (ORIGINAL USE: Encouragement/positive outcomes) */
/* .info-box.success { background: #f0fdf4; border-left-color: #10b981; } */

/* -----------------------------------
   STOCKING STUFFERS OR OTHER PRODUCTS SECTION
----------------------------------- */

/* Featured Stocking Stuffer or Other Products Container */
.featured-stuffer-highlight {
  max-width: 900px;
  margin: 0 auto 50px;
}

/* Subsection Titles */
.subsection-title {
  text-align: center;
  color: #2d3748;      /* Was color: #4a5568; */
  font-size: 1.375rem;      /* Reduced for better hierarchy */
  margin: 50px 0 15px;      /* Note */
  font-weight: 600;
}

/* Subsection Intro Paragraphs */
.subsection-intro {
  text-align: center;
  color: #718096;
  font-size: 1.15rem;
  margin: 5px auto 50px;      /* Was margin: -15px auto 30px; */  
  font-style: regular;
  max-width: 700px;
  line-height: 1.6;
}

/* Stocking Stuffers or Other Products Grid */
.stocking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* Stocking Stuffer or Other Products Card */
.stocking-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* And disable card jumping for stocking cards */
.stocking-card:hover {
  transform: none; /* Remove translateY. Was: translateY(-5px); */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* Modest shadow. */
}

/* Stocking or Other Product Card Image */
.stocking-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f7fafc;
}

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

/* Ensure stocking-content has proper spacing */
.stocking-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative; /* For absolute positioning of price if needed */
}

.stocking-content p.stocking-card-link-with-spacing {
  margin-bottom: 1.0rem;
}

/* Overrides browser defaults only for <p>s inside these cards, using a consistent small margin to create ~16px total space */
/* Ensure paragraphs in cards have consistent spacing */
.stocking-content p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.stocking-content h4 {
  color: #2d3748;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

/* DEPRECATED: Apply flex-grow ONLY to the main description paragraphs to fill vertical space 
.stocking-content p:not(.top-options-label) {
  flex-grow: 1;
} */

/* TARGET and REMOVE the bottom margin from the specific paragraph right before the label */
.stocking-content p:has(+ .top-options-label) {
  margin-bottom: 0;
}

/* Style the "Top Options" label itself */
.stocking-content .top-options-label {
  margin: 12px 0 8px 0 !important;   /* Creates consistent space above the label */
}

/* Sets hover color for links inside stocking-content and product-links-list */
.stocking-content a,
.product-links-list a {
  color: #6b46c1 !important;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.stocking-content a:hover,
.product-links-list a:hover {
  color: #988dff !important;    /* Lighter purple on hover */
  text-decoration: underline;  /* Keep underline on hover */
}

/* Price badge positioning at bottom of card */
.stocking-price {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;      /* Creates buffer above the button */
 /*  margin-top: auto;      /* Previously used to push button to bottom of flex container before a space gap was needed for long copy */
  align-self: flex-start;
}

/* -----------------------------------
   GIFT CATEGORIES
----------------------------------- */
.gift-category {
  margin-bottom: 40px;
  padding: 25px;
  background: #f7fafc;
  border-radius: 10px;
}

.gift-category h3 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.25rem;       /* Reduced for better hierarchy */
}

.gift-category h4 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1.1rem;
  margin-top: 20px;
}

.gift-list {
  list-style: none;
}

.gift-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  line-height: 1.6;
  font-size: 1.1rem;        /* Match body text */
}

.gift-list li:last-child {
  border-bottom: none;
}

.gift-list strong {
  color: #2d3748;
}

/* -----------------------------------
   BUDGET SECTION
----------------------------------- */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.budget-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.budget-item h3 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.budget-item ul {
  list-style: none;
}

.budget-item li {
  padding: 8px 0;
  color: #4a5568;
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
}

.budget-item li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #6b46c1;
  font-weight: bold;
}

/* -----------------------------------
   TIPS SECTION
----------------------------------- */
.tips-section {
  background: #f7fafc;
  padding: 40px;
  border-radius: 10px;
  margin-top: 60px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tip-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tip-card h3 {
  color: #2d3748;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.tip-card p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

.tip-card h4 {
  color: #2d3748;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Skip card tweaks */
.tip-card.skip {
  background: #eef0f5;
}

.tip-card.skip h4 {
  color: #7f7a8c;
}

.tip-card.skip p {
  color: #7f7a8c;
}

/* Timing and encouragement guides */
.gift-timing-guide,
.gift-encouragement {
  margin-top: 25px;
  padding: 20px;
  background: white;
  border-radius: 8px;
}

.gift-timing-guide h4 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 1.15rem;
}

.gift-timing-guide ul {
  list-style: none;
  padding: 0;
}

.gift-timing-guide li {
  padding: 10px 0;
  line-height: 1.6;
  border-bottom: 1px solid #e2e8f0;
}

.gift-timing-guide li:last-child {
  border-bottom: none;
}

.gift-encouragement p {
  text-align: center;
  font-size: 1.05rem;
  color: #4a5568;
  font-style: italic;
}

/* DIY tips specific */
.diy-tips {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.diy-tips h4 {
  color: #2d3748;
  margin-bottom: 10px;
}

.diy-tips p {
  color: #4a5568;
  line-height: 1.6;
}


/* -----------------------------------
   HELPER IMAGES (small inline visuals)
----------------------------------- */

/* shared styles between the similar styles */
.helper-inline-image,
.helper-inline-image-left {
  max-width: 170px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


/* only the differences are adjusted individually */
.helper-inline-image {
  float: right;
  margin: 10px 0 10px 15px;
}

.helper-inline-image-left {
  float: left;
  margin: 10px 15px 10px 0;
}


/* responsive adjustment stacks the helper images on small screens */
@media (max-width: 600px) {
  .helper-inline-image,
  .helper-inline-image-left {
    float: none;
    display: block;
    margin: 15px auto;
  }
}


/* -----------------------------------
   FAQ SECTION
----------------------------------- */
.faq-section {
  margin-top: 80px;
  padding: 50px;
  background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
  border-radius: 10px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.faq-item p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1.1rem;        /* Match body text */
}

.faq-item ul {
  margin: 15px 0;
  padding-left: 20px;
}

.faq-item li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* -----------------------------------
   CONCLUSION SECTION
----------------------------------- */
.conclusion {
  margin-top: 80px;
  text-align: center;
}

.conclusion h2 {
  margin-bottom: 25px;
}

.conclusion p {
  font-size: 1.1rem;        /* Match body text */
  line-height: 1.7;
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* -----------------------------------
   CTA BOX
----------------------------------- */
.cta-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-box h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  font-size: 1.1rem;        /* Match body text */
  line-height: 1.6;
}

.related-guides {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.related-link {
  background: white;
  color: #6b46c1;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.related-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* -----------------------------------
   ACTIVE NAV STATE
----------------------------------- */
nav a.active {
  color: #6b46c1;
  border-bottom-color: #6b46c1;
}

/* -----------------------------------
   CONTACT PAGE STYLES
----------------------------------- */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.contact-intro h2 {
  text-align: center;
  color: #2d3748;
  margin-bottom: 20px;
}

.contact-intro p {
  text-align: center;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-form {
  background: #f7fafc;
  padding: 30px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2d3748;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6b46c1;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.contact-info {
  margin-top: 40px;
  text-align: center;
  padding: 25px;
  background: #f7fafc;
  border-radius: 10px;
}

.contact-info h3 {
  color: #2d3748;
  margin-bottom: 15px;
}

.contact-info p {
  color: #4a5568;
  line-height: 1.6;
}

.success {
  color: green;
  background-color: #e6f3e6;
  padding: 10px;
  border-radius: 4px;
}

.error {
  color: red;
  background-color: #f3e6e6;
  padding: 10px;
  border-radius: 4px;
}

button {
  background-color: #6b46c1;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #553c9a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);
}






/* -----------------------------------
   Editor's Pick – Full-width feature card
----------------------------------- */
.featured-pick {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  border-left: 4px solid #6b46c1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  gap: 25px;
  align-items: center;
  position: relative;
}

.featured-pick .gift-image {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  position: relative;
}

.featured-pick .gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.featured-pick .gift-content {
  flex: 1;
}

.featured-pick .gift-details {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #718096;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.featured-pick .featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* -----------------------------------
   MOBILE RESPONSIVE ADJUSTMENTS
----------------------------------- */

/* -----------------------------------
   TABLET PORTRAIT (769 – 900 px)
   ----------------------------------- */
@media (min-width: 769px) and (max-width: 900px) {
  /* Stack featured cards: image on top, content below */
  .gift-item.featured.has-image {
  }

  /* Make every info-box full-width under the image */
  .gift-item.featured.has-image .gift-content .info-box {
    clear: both;
    margin-left: 0;
  }
}

/* -----------------------------------
   MOBILE (≤ 768 px)
   ----------------------------------- */

@media (max-width: 768px) {
  .guide-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .gift-section h2 {
    font-size: 1.625rem;     /* Smaller on mobile */
  }
  
  /* Stack featured image layout on mobile */
  .gift-item.featured.has-image {
    padding: 25px;
  } 
  
  .gift-item.featured .gift-image {
    width: 100%;
    max-width: 100%;
    height: 250px;
    margin-bottom: 20px;
  }
  
  /* Stack regular image layout on mobile */
  .gift-item.has-image:not(.featured) {
    flex-direction: column;
  }
  
  .gift-item.has-image:not(.featured) .gift-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
  }
  
  /* Stocking grid responsive */
  .stocking-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .featured-stuffer-highlight {
    margin-bottom: 40px;
  }
  
  /* Featured pick mobile stack */
  .featured-pick {
    flex-direction: column;
    text-align: left;
  }

  .featured-pick .gift-image {
    width: 100%;
    height: auto;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .budget-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-section {
    padding: 30px 20px;
  }

  .top-options-label {
    font-size: 0.95rem;
  }
  
  .product-links-list {
    font-size: 0.85rem;
  }
  
  .stocking-content h5 {
    font-size: 1rem;
  }
  
  .stocking-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  /* This was already here, but now it will also apply to the new mobile quick links */
  .quick-links {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-link {
    width: 200px;
    text-align: center;
  }
  
  .guide-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .gift-item {
    padding: 20px;
  }
  
  .gift-item.featured.has-image {
    padding: 20px;
  }
  
  .gift-details {
    flex-direction: column;
    gap: 10px;
  }
  
  /* Stocking grid single column on mobile */
  .stocking-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stocking-card {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .subsection-title {
    font-size: 1.2rem;
    margin: 30px 0 20px;
  }
  
  .featured-badge {
    top: 10px;
    left: 10px;
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  .related-guides {
    flex-direction: column;
    align-items: center;
  }
  
  .related-link {
    width: 200px;
    text-align: center;
  }
  
  .cta-box {
    padding: 30px 20px;
  }
}

/* -----------------------------------
   PRINT STYLES
----------------------------------- */
@media print {
  #hero,
  nav,
  footer,
  .quick-links,
  .cta-box {
    display: none;
  }
  
  .gift-item {
    break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
  }
  
  h2 {
    font-size: 18pt;
    margin-top: 20pt;
  }
}

/* Tighten "Top Options" label spacing to close gap while matching card flow */
.top-options-label {
  margin-top: 0 !important;      /* Zero top to abut descriptive <p> */
  margin-bottom: 0.375rem !important;  /* ~6px bottom for flow to <ul> */
  padding: 0 8px 0 0 !important; /* Optional right indent; set to 0 if unneeded */
  font-size: 0.95rem;            /* Matches general <p> */
  color: #4a5568;                /* Keep original */
  line-height: 1.5;              /* Matches general <p> for flush lines */
  display: block;                /* Keep original */
}





/* ================================
   AMAZON SEARCH – SHARED BASICS
   ================================ */
.amazon-search-form{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.amazon-search-form input[type=text]{
  flex:1;min-width:180px;padding:12px 16px;border:1px solid #e2e8f0;
  border-radius:8px;font:inherit}
.amazon-search-form input[type=submit]{
  padding:12px 24px;border:none;border-radius:8px;
  background:#ff9900;color:#fff;font-weight:600;cursor:pointer;
  transition:.2s}
.amazon-search-form input[type=submit]:hover{
  background:#ff7700;transform:translateY(-2px);
  box-shadow:0 3px 10px rgba(255,153,0,.25)}

/* ================================
   VARIANT A – “Helper” Highlight
   (purple gradient, eye-catching)
   ================================ */
.search-helper-box{
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  color:#fff;padding:24px;border-radius:12px;margin:40px 0;
  box-shadow:0 8px 24px rgba(102,126,234,.3)}
.search-helper-box h3{margin:0 0 .5rem;font-size:clamp(1.1rem,2.5vw,1.25rem)}
.search-helper-box p{margin:0 0 1rem;line-height:1.6;font-size:1rem}
.search-helper-box input[type=text]{background:#fff;color:#333}

/* ================================
   VARIANT B – “Mini” Utility strip
   (subtle neutral, reusable)
   ================================ */
.mini-search{
  background:#f7fafc;border:0px solid #e2e8f0;border-radius:8px;
  padding:12px 16px;margin:24px 0;display:flex;flex-wrap:wrap;gap:12px;
  align-items:center}
.mini-search-label{font-size:.9rem;font-weight:500;color:#4a5568;white-space:nowrap}
.mini-search .amazon-search-form{flex:1;margin:0}
.mini-search input[type=text]{padding:8px 12px;font-size:.9rem}

/* ================================
   Mobile tweaks (inherits site media query) AMAZON Search Box specific 
   ================================ */
@media(max-width:768px){
  .amazon-search-form{flex-direction:column}
  .amazon-search-form input{width:100%}
  .mini-search{flex-direction:column;align-items:stretch;text-align:center}
  .mini-search-label{white-space:normal}
}






/* -----------------------------------
   DEBUG HELPERS
   Uncomment these to visualize spacing issues
----------------------------------- */

/*
.stocking-content {
  border: 2px solid red;
}

.top-options-label {
  background: yellow;
}

.product-links-list {
  background: lightblue;
}

.stocking-content p {
  background: lightgreen;
}
*/



/* =========================================================
   FINAL HERO IMAGE OVERRIDE – mobile Safari letterbox fix
   ========================================================= */
@media (max-width: 768px) {
  #hero .hero-image-container img {
    object-fit: cover !important;
    object-position: center !important;
  }
}
