/* Free Folks Boutique - Main Stylesheet
   Casual day-to-day clothing brand with modern, approachable design */

:root {
    /* Casual Day-to-Day Color Palette */
    --primary-color: #2d3748;
    --primary-dark: #1a202c;
    --primary-light: #4a5568;
    --secondary-color: #4299e1;
    --secondary-dark: #3182ce;
    --secondary-light: #63b3ed;
    --accent-color: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --hover-overlay: rgba(45, 55, 72, 0.05);
    --shadow-sm: 0 2px 8px rgba(45, 55, 72, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 55, 72, 0.12);
    --shadow-lg: 0 12px 40px rgba(45, 55, 72, 0.16);
    --shadow-xl: 0 20px 60px rgba(45, 55, 72, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    font-weight: 500;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation - Clean, accessible navigation for everyday shopping */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    z-index: -1;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.logo:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section - Welcoming introduction with casual, friendly vibe */
.hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 50%, rgba(66, 153, 225, 0.05) 100%);
    padding: 10rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.6s both, bounce 2s ease-in-out infinite 1.6s;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--secondary-color);
    position: relative;
    margin: 0 auto;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: translateX(-50%) rotate(45deg);
}

/* Buttons - Clear, friendly call-to-action buttons for easy interaction */
.btn {
    display: inline-block;
    padding: 1.1rem 2.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.25);
}

.btn-gold:hover {
    background: transparent;
    color: var(--secondary-color);
    box-shadow: 0 6px 25px rgba(66, 153, 225, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Product Grid - Showcase of everyday clothing items with smooth interactions */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    height: 350px;
    background: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 500;
    transition: var(--transition);
}

.product-card:hover .product-name {
    color: var(--secondary-color);
}

.product-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

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

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Product Detail Page - Detailed view for day-to-day clothing items */
.product-detail {
    padding: 4rem 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    height: 600px;
    background: var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    background: var(--accent-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 2rem 0;
}

.product-details h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-details .price {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.product-details .description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.buy-with-prime {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--accent-color);
    border-radius: 8px;
}

.buy-with-prime h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.trust-message {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.trust-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

.trust-message strong {
    color: var(--primary-color);
}

/* Ensure Buy with Prime button is visible */
amazon-purchase-button {
    display: block !important;
    width: 100%;
    min-height: 48px;
    margin: 1rem 0;
}

amazon-purchase-button:not(:defined) {
    display: block;
    min-height: 48px;
    background: var(--primary-color);
    border-radius: 4px;
    position: relative;
}

amazon-purchase-button:not(:defined)::before {
    content: 'Loading Buy with Prime...';
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

amazon-cart {
    display: block !important;
    width: 100%;
    margin-top: 1rem;
}

/* Color and Size Selectors - Easy selection for everyday clothing options */
.product-options {
    margin: 2rem 0;
}

.product-options h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.color-option.selected {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.color-option::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.color-option.selected::after {
    opacity: 1;
}

.color-option[data-color="yellow"] {
    background-color: #f5d742;
}

.color-option[data-color="green"] {
    background-color: #4a6741;
}

.color-option[data-color="black"] {
    background-color: #1a1a1a;
}

.size-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-option {
    min-width: 50px;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    border-radius: 4px;
}

.size-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.size-option.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--accent-color);
}

/* Footer - Helpful links and information for casual shoppers */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Trust & Benefits Section - Building confidence for everyday shopping */
.trust-section {
    background: var(--accent-color);
    padding: 4rem 0;
    margin: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.trust-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.trust-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.25);
}

.trust-card:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(66, 153, 225, 0.3);
}

.trust-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 500;
}

.trust-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Animations - Smooth, friendly animations that enhance the casual shopping experience */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



