/* ============================================
   Wedding Guest Dresses Australia - Styles
   Modern, Elegant UI for Wedding Fashion
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-primary: #d4a5a5;
    --color-primary-dark: #c08e8e;
    --color-secondary: #9db4c0;
    --color-accent: #e8b4b8;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-background: #fdfcfb;
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    --color-gold: #d4af37;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --container-max: 1280px;
    --spacing-section: 100px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 48px;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 165, 165, 0.5);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.logo-au {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdf6f6 0%, #f8e8e8 25%, #e8f4f8 50%, #f5f0f8 75%, #fdf6f6 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 180, 184, 0.2) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(157, 180, 192, 0.2) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Featured Section */
.featured-section {
    padding: var(--spacing-section) 0;
    background: var(--color-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

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

.category-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-emoji {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.category-card h3 {
    font-size: 1.15rem;
    padding: 20px 20px 8px;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding: 0 20px 20px;
    line-height: 1.5;
}

/* Collection Section */
.collection-section {
    padding: var(--spacing-section) 0;
    background: var(--color-cream);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.filter-select {
    padding: 10px 36px 10px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: var(--color-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color var(--transition-fast);
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.products-count {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.products-count span {
    font-weight: 600;
    color: var(--color-text);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

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

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, #fdf6f6 0%, #f5f0f8 100%);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
}

.product-badge.bestseller {
    background: var(--color-gold);
}

.product-badge.new {
    background: var(--color-secondary);
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

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

.product-wishlist.active {
    color: #e53e3e;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 6px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.product-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: -1px;
}

.product-reviews {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.price-original {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.8rem;
    font-weight: 600;
    color: #38a169;
    background: #c6f6d5;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.product-cta {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 48px;
}

/* Styles Section */
.styles-section {
    padding: var(--spacing-section) 0;
    background: var(--color-white);
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.style-card {
    background: var(--color-cream);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

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

.style-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.style-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.style-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Guide Section */
.guide-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, #fdf6f6 0%, #f5f0f8 100%);
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.guide-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.guide-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-card li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.guide-card li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--color-primary);
}

/* Trends Section */
.trends-section {
    padding: var(--spacing-section) 0;
    background: var(--color-white);
}

.colour-trends {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.colour-swatch {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.colour-swatch:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-xl);
}

.colour-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-align: center;
    color: var(--color-white);
}

.newsletter-section h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-full);
    outline: none;
}

.newsletter-form .btn {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

.newsletter-form .btn:hover {
    background: var(--color-cream);
}

/* SEO Section */
.seo-section {
    padding: var(--spacing-section) 0;
    background: var(--color-cream);
}

.seo-section h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    text-align: center;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
    color: var(--color-text);
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.seo-content strong {
    color: var(--color-text);
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.affiliate-disclosure {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom > p:last-child {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive Design ===== */

@media (max-width: 1024px) {
    .category-grid,
    .product-grid,
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }

    .filter-bar {
        flex-direction: column;
        padding: 20px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .guide-content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .category-grid,
    .product-grid,
    .style-grid {
        grid-template-columns: 1fr;
    }

    .colour-trends {
        gap: 12px;
    }

    .colour-swatch {
        width: 100px;
        height: 100px;
    }

    .product-image {
        height: 240px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }
.product-card:nth-child(7) { animation-delay: 0.6s; }
.product-card:nth-child(8) { animation-delay: 0.7s; }

/* Scroll animations */
.category-card,
.style-card,
.guide-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-card.visible,
.style-card.visible,
.guide-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-cream);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--color-text);
    color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Quick view modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
