/* Collection Template Styles */

:root {
  /* Colors */
  --color-primary: #fcb900;
  --color-primary-dark: #b88600;
  --color-secondary: #fcb900;
  --color-secondary-dark: #b88600;
  --color-text: #111827;
  --color-text-light: #4b5563;
  --color-background: #f7f8fa;
  --color-white: #fff;
  --color-border: #e5e7eb;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px 0 rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px 0 rgba(0,0,0,0.08);
  --shadow-lg: 0 6px 24px 0 rgba(37,99,235,0.15);
  
  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
}

/* Base Styles */
body, html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

main.collection-template {
  background: var(--color-background);
  width: 100vw;
  min-width: 100vw;
  margin: 0;
  padding: 0;
}

.section {
  width: 100vw;
  margin: 0 auto;
  padding: var(--spacing-3xl) 0;
  box-sizing: border-box;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: var(--spacing-xl);
  padding-right: var(--spacing-xl);
  box-sizing: border-box;
}

/* Common Components */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  word-break: break-word;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

/* CTA Buttons */
.cta-btn,
.cta-info-bar,
.cta-product-slider,
.cta-content-block,
.cta-tab-section,
.cta-vertical-content-block {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: var(--radius-full);
  padding: 14px 44px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), 
              color var(--transition-fast), 
              box-shadow var(--transition-fast);
}

.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.cta-btn:hover {
  background: var(--color-secondary-dark);
  box-shadow: var(--shadow-md);
}

.cta-info-bar:hover,
.cta-product-slider:hover,
.cta-content-block:hover,
.cta-tab-section:hover,
.cta-vertical-content-block:hover {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
  box-shadow: var(--shadow-md);
}

/* Media Queries */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .folder-card-row { grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
  .folder-card { width: 95vw; min-width: 0; max-width: 520px; }
}

@media (max-width: 1000px) {
  .vertical-product-section-container { flex-direction: column; gap: var(--spacing-xl); }
  .vertical-product-list, 
  .vertical-product-form { max-width: 100%; flex: 1 1 100%; }
}

@media (max-width: 900px) {
  .container { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
  .section { padding: var(--spacing-xl) 0; }
  .faq-list { max-width: 100vw; }
  .faq-row { flex-direction: column; }
  .faq-number { border-radius: var(--radius-md) var(--radius-md) 0 0; min-width: 100%; max-width: 100%; }
  .faq-content { padding: var(--spacing-lg); }
  .testimonial-arrow.left { left: 0; }
  .testimonial-arrow.right { right: 0; }
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
  .folder-card-row { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
}

/* Banner Section */
.banner-section,
.collection-template .banner-section {
    min-height: 520px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: left;
}

.banner-section::before,
.collection-template .banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-section .banner-content,
.collection-template .banner-section .banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    margin: 0 0 0 5vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.banner-section h1,
.collection-template .banner-section h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 0;
    letter-spacing: -0.02em;
    color: #fff;
    width: 100%;
    text-align: left;
}

.banner-section p,
.collection-template .banner-section p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.banner-section .modern-cta,
.collection-template .banner-section .modern-cta {
    display: inline-block;
    text-align: left;
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 9999px;
    background: linear-gradient(90deg, #fcb900 0%, #fcb900 100%);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(37,99,235,0.15);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
    margin-bottom: 0;
}

.banner-section .modern-cta:hover,
.collection-template .banner-section .modern-cta:hover {
    background: linear-gradient(90deg, #fcb900 0%, #fcb900 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 32px 0 rgba(37,99,235,0.22);
    text-decoration: none;
}

/* Content Blocks */
.content-block {
    transition: transform 0.3s ease;
}

.content-block:hover {
    transform: translateY(-5px);
}

/* Product Collection */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Feature Box */
.feature-box {
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
}

.feature-item {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* Tab Section */
.tab-button {
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #4a5568;
}

.tab-button.border-primary {
    color: #2d3748;
    border-color: #4a5568;
}

/* Customer Feedback Carousel */
.feedback-carousel {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.testimonial-item {
    transition: transform 0.5s ease-in-out;
}

/* FAQ Sections */
.faq-question {
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f7fafc;
}

.faq-answer {
    transition: all 0.3s ease;
}

/* Related Products Slider */
.related-products-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-products-slider::-webkit-scrollbar {
    display: none;
}

.related-products-slider.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
:focus {
    outline: 2px solid #4a5568;
    outline-offset: 2px;
}
