/* DylanElla - Premium Sleepwear Styles */

:root {
    --primary-color: #e8b4b8;
    --primary-dark: #d4959a;
    --secondary-color: #b8d4e3;
    --accent-color: #f5e6d3;
    --text-dark: #4a4a4a;
    --text-light: #777;
    --bg-light: #faf8f5;
    --bg-cream: #fdf9f3;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand .brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    border: 1px solid #e0e0e0;
    border-left: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f5e6e8 0%, #e8d5e0 50%, #d4e5f0 100%);
    min-height: 90vh;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1511296933631-18b93bc0a54f?w=1200') center/cover;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(250,248,245,0.95) 0%, rgba(250,248,245,0.7) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    padding: 0.8rem 2rem;
}

.hero-buttons .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.hero-buttons .btn-outline-light {
    border-color: var(--text-dark);
    color: var(--text-dark);
    padding: 0.8rem 2rem;
}

.hero-buttons .btn-outline-light:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Features Section */
.features-section {
    background: var(--white);
}

.feature-box {
    padding: 2rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
}

/* Section Styles */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-text {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Cards */
.products-section {
    background: var(--bg-light);
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-actions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: var(--transition);
}

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

.product-actions .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--primary-dark);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

/* About Preview */
.about-preview {
    background: var(--white);
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
}

/* Blog Section */
.blog-section {
    background: var(--bg-cream);
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.blog-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--primary-dark);
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--text-dark);
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-dark);
}

.newsletter-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.newsletter-form .btn {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--white);
    padding: 1rem 2rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: #ccc;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.8rem;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links a {
    color: #ccc;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Product Detail */
.product-detail-section {
    padding: 3rem 0;
}

.product-gallery {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-gallery img {
    width: 100%;
}

.product-info-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-price-large {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.size-selector label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

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

.size-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-input button {
    width: 40px;
    height: 45px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
}

.quantity-input input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 500;
}

.btn-add-cart {
    background: var(--primary-color);
    border: none;
    color: var(--text-dark);
    padding: 1rem 3rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Cart Page */
.cart-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.cart-table {
    width: 100%;
}

.cart-table th {
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.cart-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.cart-item-image {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-title {
    font-weight: 500;
    color: var(--text-dark);
}

.cart-item-variant {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-summary {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 2rem;
}

.cart-summary h4 {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    border-top: 2px solid #e0e0e0;
    padding-top: 1rem;
}

/* Checkout */
.checkout-section {
    padding: 3rem 0;
}

.checkout-form .form-label {
    font-weight: 500;
}

.checkout-form .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.checkout-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(232, 180, 184, 0.25);
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--secondary-color) 100%);
    padding: 3rem 0;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    max-width: 500px;
    margin: 0 auto;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Account Page */
.account-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.account-sidebar {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 1.5rem;
}

.account-sidebar .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.account-sidebar .nav-link:hover,
.account-sidebar .nav-link.active {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* Blog Post */
.blog-post-header {
    text-align: center;
    padding: 3rem 0;
}

.blog-post-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.blog-post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Search Results */
.search-section {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section::before {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast {
    background: var(--text-dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
