/* assets/css/style.css */

:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --secondary: #673ab7;
    --bg-light: #fafafa;
    --bg-dark: #121212;
    --text: #212121;
    --text-light: #ffffff;
    --text-muted: #757575;
    --border: #e0e0e0;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--text-muted);
}

/* Layout helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn:hover:after {
    opacity: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    padding: 0.8rem 1.5rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav {
    margin-left: auto;
}

.nav a {
    margin-left: 1.8rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    filter: brightness(0.55);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(103, 26, 117, 0.75) 0%, rgba(233, 30, 99, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    display: block;
    margin-top: 0.8rem;
}

/* Why Us section */
.why-us {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.why-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.why-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.why-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.why-card-title {
    margin-bottom: 0.5rem;
}

/* Featured products */
.section {
    padding: 5rem 0;
}

.section.newsletter {
    padding: 4rem 0;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image {
    transform: scale(1.06);
}

.card-body {
    padding: 1.4rem 1.2rem;
}

.card-title {
    margin-bottom: 0.3rem;
    font-size: 1.25rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.card-price {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter {
    background-color: #f3e5f5;
}

.newsletter-subtitle {
    text-align: center;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-inline: auto;
}

.form-inline {
    display: flex;
    gap: 0.8rem;
    max-width: 520px;
    margin-inline: auto;
}

.form-inline .form-control {
    flex: 1;
}

.form-control {
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-list a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Cart count badge */
.cart-badge {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart page specific */
.cart-list {
    margin-top: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    object-fit: cover;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cart-item-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.cart-item-qty {
    margin: 0 0.5rem;
    font-weight: 500;
}

.cart-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Checkout form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .nav {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .nav a {
        margin-left: 0;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
}

/* About Us */
.about-us {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-info h3,
.map-placeholder h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-form {
    margin-top: 0.5rem;
}

.map-placeholder {
    grid-column: 1 / -1;
}

.map {
    margin-top: 0.8rem;
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}