/* ==========================================
   WAVE FLORAL - COMPONENT STYLES
   Shared components used across all pages
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --blue: #0066FF;
    --blue-dark: #0052cc;
    --pink: #FF40C9;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --gray: #666;
    --text: #333;
    --text-medium: #555;
    --text-light: #666;
    --light-gray: #f5f5f5;
    --off-white: #FAFAFA;
    --border: #e0e0e0;
    --green: #22c55e;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, .serif {
    font-family: 'Playfair Display', serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   NAVIGATION COMPONENT
   ========================================== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -1px;
}

.nav-logo .flower {
    color: var(--pink);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    color: var(--black);
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links .nav-cta {
    background: var(--blue);
    color: white;
    padding: 12px 24px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-links .nav-cta:hover {
    background: var(--blue-dark);
    opacity: 1;
}

/* Navigation Mobile */
@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-links .nav-cta {
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 12px 15px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-links .nav-cta {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ==========================================
   BREADCRUMB COMPONENT
   ========================================== */
.breadcrumb {
    padding: 20px 40px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--black);
}

.breadcrumb span {
    margin: 0 8px;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* ==========================================
   FORM COMPONENTS
   ========================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-field label .required {
    color: var(--pink);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 16px 18px;
    font-size: 16px;
    border: 1px solid #ddd;
    background: var(--white);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-field select {
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-section {
    display: none;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.form-section.active {
    display: block;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-field.full-width {
        grid-column: 1;
    }
}

/* ==========================================
   BUTTON COMPONENTS
   ========================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    opacity: 0.85;
}

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

.btn-secondary:hover {
    opacity: 0.8;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================
   PRODUCT CARD COMPONENT
   ========================================== */
.product-card {
    max-width: 520px;
    flex: 1;
    min-width: 280px;
}

.product-card a {
    display: block;
}

.product-card .product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
}

.product-card .product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image {
    opacity: 0;
}

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

.product-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.product-price {
    font-size: 15px;
    color: var(--text-light);
}

/* ==========================================
   MODAL COMPONENT
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    color: var(--pink);
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-detail {
    font-size: 15px;
    color: var(--text-light);
}

.modal-close-btn {
    margin-top: 25px;
    padding: 14px 40px;
    background: var(--black);
    color: var(--white);
    border: none;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-close-btn:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-content h3 {
        font-size: 24px;
    }
}

/* ==========================================
   HERO COMPONENT
   ========================================== */
.hero {
    text-align: center;
    padding: 60px 20px 50px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-info {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 20px 30px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 25px 15px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-info {
        font-size: 13px;
        margin-top: 15px;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.highlight-pink {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--pink);
    text-underline-offset: 3px;
}

.highlight-blue {
    color: var(--blue);
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* ==========================================
   FOOTER COMPONENT
   ========================================== */
.footer {
    padding: 30px 20px;
    text-align: center;
    background: var(--white);
}

.footer p {
    font-size: 14px;
    color: var(--text-light);
}

.footer a {
    color: var(--text);
    text-decoration: underline;
}

.footer a:hover {
    opacity: 0.6;
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 15px;
    }

    .footer p {
        font-size: 13px;
    }
}

/* ==========================================
   DELIVERY INFO COMPONENT
   ========================================== */
.delivery-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.delivery-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-option {
    font-size: 14px;
    color: var(--gray);
}

.delivery-option strong {
    color: var(--black);
    font-weight: 500;
}

/* ==========================================
   CUSTOM INQUIRY COMPONENT
   ========================================== */
.custom-inquiry {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.custom-inquiry p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.custom-inquiry a {
    color: var(--blue);
    text-decoration: none;
    transition: all 0.2s;
}

.custom-inquiry a:hover {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--pink);
    text-underline-offset: 3px;
}
