/* ============================================
   FIRST LOOK — Design System & Store Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

/* === CSS Variables === */
:root {
    --charcoal: #3a3a3a;
    --charcoal-light: #555555;
    --cream: #faf8f5;
    --cream-dark: #f0ede8;
    --sage: #8b9d83;
    --sage-light: #a8b8a0;
    --sage-dark: #6b7d63;
    --taupe: #c4b7a6;
    --taupe-light: #d4c9ba;
    --light-grey: #e8e6e3;
    --white: #ffffff;
    --gold: #c9a96e;
    --gold-light: #d4b87a;
    --rose: #b76e79;
    --error: #c0392b;
    --success: #27ae60;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* === Typography === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: 6px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: 4px; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); letter-spacing: 2px; }
h4 { font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: 1px; }

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 183, 166, 0.2);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: var(--shadow-sm);
}

/* Quote page nav override */
.quote-page ~ .nav,
body:has(.quote-page) .nav {
    border-bottom-color: rgba(139,157,131,0.15);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    opacity: 0.9;
    transition: var(--transition);
}

.nav-logo:hover img {
    opacity: 1;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--charcoal);
    opacity: 0.85;
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-text {
    opacity: 1;
}

.nav-monogram {
    font-family: var(--font-heading);
    font-size: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.nav-monogram .mono-f,
.nav-monogram .mono-l {
    position: absolute;
    line-height: 1;
    transition: var(--transition);
}

.nav-monogram .mono-f {
    font-size: 32px;
    font-weight: 400;
    color: var(--sage);
    left: 2px;
    top: 4px;
}

.nav-monogram .mono-l {
    font-size: 32px;
    font-weight: 300;
    color: var(--taupe);
    left: 16px;
    top: 4px;
    opacity: 0.7;
}

.nav-logo:hover .nav-monogram .mono-f {
    color: var(--charcoal);
}

.nav-logo:hover .nav-monogram .mono-l {
    color: var(--sage);
    opacity: 1;
}

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

.nav-links a {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--charcoal-light);
    position: relative;
    padding: 4px 0;
}

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

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

.nav-links a:hover {
    color: var(--charcoal);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    color: var(--charcoal-light);
    padding: 8px;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--charcoal);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--sage);
    color: white;
    font-size: 9px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* === Hero Section === */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 40px 80px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,157,131,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196,183,166,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-tag {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero h1 {
    color: var(--charcoal);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-line {
    width: 50px;
    height: 1px;
    background: var(--taupe);
    margin: 24px auto;
}

.hero p {
    font-size: 15px;
    color: var(--charcoal-light);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

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

.btn-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--taupe);
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
    transform: translateY(-2px);
}

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

.btn-sage:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--light-grey);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn-icon:hover {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
    transform: scale(1.1);
}

/* === Category Filters === */
.filters-section {
    padding: 0 40px;
    max-width: 1400px;
    margin: -30px auto 40px;
    position: relative;
    z-index: 2;
}

.filters-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--light-grey);
    background: var(--white);
    color: var(--charcoal-light);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
}

.filter-btn:hover {
    border-color: var(--sage);
    color: var(--sage);
}

.filter-btn.active {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

/* === Product Grid === */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 8px;
}

.section-header .subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage);
}

.section-header .line {
    width: 40px;
    height: 1px;
    background: var(--taupe);
    margin: 16px auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* === Product Card === */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

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

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

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

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-popular {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, var(--rose), #c9848e);
    color: white;
}

.badge-recommended {
    background: var(--sage);
    color: white;
}

.product-quick-add {
    position: absolute;
    bottom: 16px;
    right: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .product-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.product-card-content {
    padding: 24px;
}

.product-category {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 8px;
}

.product-card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--charcoal);
    font-weight: 500;
}

.product-card-content p {
    font-size: 12px;
    color: var(--charcoal-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price .price {
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal);
}

.product-price .unit {
    font-size: 11px;
    color: var(--taupe);
    font-weight: 300;
}

/* === Product Detail Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 58, 58, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

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

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    height: 100%;
    min-height: 400px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info .product-category {
    margin-bottom: 12px;
}

.modal-info h2 {
    font-size: 32px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.modal-info .description {
    font-size: 13px;
    color: var(--charcoal-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-features {
    list-style: none;
    margin-bottom: 30px;
}

.modal-features li {
    font-size: 12px;
    color: var(--charcoal-light);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.modal-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 600;
}

.modal-price {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 24px;
}

.modal-price span {
    font-size: 13px;
    font-weight: 300;
    color: var(--taupe);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cream);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: var(--sage);
    color: white;
}

.quantity-selector input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    background: white;
}

/* === Cart Sidebar === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -460px;
    width: 460px;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 58, 58, 0.4);
    z-index: 2999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 3px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-grey);
    animation: fadeInUp 0.3s ease;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.cart-item-details .item-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--light-grey);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
}

.cart-item-qty span {
    font-size: 13px;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    align-self: start;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--taupe);
    font-size: 18px;
    padding: 4px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--taupe);
}

.cart-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 13px;
    letter-spacing: 1px;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--light-grey);
    background: var(--cream);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.cart-total .label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--charcoal-light);
}

.cart-total .amount {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
}

.cart-note {
    font-size: 10px;
    color: var(--taupe);
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}

/* === Footer === */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    color: white;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 12px;
    line-height: 1.8;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* === Toast Notifications === */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--charcoal);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 5000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

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

.toast .check {
    color: var(--sage-light);
    font-size: 18px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-image {
        min-height: 250px;
    }
    .modal-image img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 12px 20px;
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding: 120px 20px 60px;
        min-height: 70vh;
    }
    .products-section {
        padding: 0 20px 60px;
    }
    .filters-section {
        padding: 0 20px;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   QUOTE PAGE STYLES — Editorial Redesign
   ============================================= */

/* === Login Overlay === */
.quote-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--charcoal);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
}

.quote-login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-card {
    background: transparent;
    padding: 60px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.login-card::before {
    display: none;
}

.login-card img {
    height: 24px;
    margin: 0 auto 14px;
    filter: brightness(2.5);
    opacity: 0.9;
}

/* Logo text inline */
.logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 34px;
    letter-spacing: 8px;
    color: var(--cream);
    margin-bottom: 14px;
    line-height: 1;
    text-align: center;
}

/* Cover logo */
.quote-cover .logo-text {
    font-size: 20px;
    letter-spacing: 6px;
    color: var(--charcoal);
    opacity: 0.65;
    margin-bottom: 32px;
}

.login-card .login-tagline {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sage-light);
    margin-top: -6px;
    margin-bottom: 50px;
}

.login-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
    letter-spacing: 4px;
    color: var(--cream);
    font-weight: 300;
}

.login-card .subtitle {
    font-size: 13px;
    color: var(--taupe);
    margin-bottom: 40px;
}

.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input-group input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    letter-spacing: 6px;
    transition: var(--transition);
    background: transparent;
    color: var(--cream);
}

.login-input-group input::placeholder {
    color: rgba(255,255,255,0.3);
    letter-spacing: 4px;
}

.login-input-group input:focus {
    outline: none;
    border-bottom-color: var(--sage);
    box-shadow: none;
}

.login-card .btn-primary {
    background: var(--sage);
    border: none;
    margin-top: 10px;
}

.login-card .btn-primary:hover {
    background: var(--sage-light);
}

.login-error {
    color: var(--rose);
    font-size: 12px;
    margin-top: 8px;
    opacity: 0;
    transition: var(--transition);
}

.login-error.visible {
    opacity: 1;
}

/* === Quote Page Layout === */
.quote-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 40px 60px;
}

/* === Quote Cover === */
.quote-cover {
    text-align: center;
    padding: 0;
    margin-bottom: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--sage) 30%, var(--taupe) 70%, transparent 90%);
}

.quote-cover::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    border: 1px solid rgba(196,183,166,0.25);
    pointer-events: none;
}

.cover-top {
    padding: 56px 60px 0;
}

.cover-tagline {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--charcoal-light);
    margin-top: -4px;
    opacity: 0.6;
}

.cover-center {
    padding: 20px 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cover-bottom {
    padding: 0 60px 48px;
}

.quote-cover .logo-text {
    font-size: 17px;
    letter-spacing: 6px;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 8px;
    font-weight: 500;
}

.quote-cover .proposal-label {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--charcoal-light);
    margin-bottom: 20px;
    position: relative;
    font-weight: 400;
}

.quote-cover .proposal-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--taupe-light);
    margin: 16px auto 0;
}

.quote-cover .couple-names {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 3.6rem);
    font-weight: 300;
    letter-spacing: 10px;
    color: var(--charcoal);
    margin-bottom: 16px;
    line-height: 1.1;
}

.quote-cover .wedding-date {
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 400;
}

.quote-cover .proposal-date {
    font-size: 12px;
    color: var(--charcoal-light);
    letter-spacing: 1px;
    opacity: 0.7;
}

.quote-cover .cover-venue {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--sage);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

/* === Quote Section === */
.quote-section {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
    padding: 52px 48px;
    margin-bottom: 20px;
    font-size: 15px;
    position: relative;
    border: 1px solid rgba(232,230,227,0.6);
}

.quote-section h2 {
    font-size: 30px;
    letter-spacing: 2px;
    margin-bottom: 6px;
    font-weight: 400;
}

.quote-section .section-subtitle {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 28px;
    font-weight: 400;
}

.quote-section .section-line {
    width: 32px;
    height: 0;
    border-top: 1.5px solid var(--sage);
    margin: 12px 0 28px;
}

/* Accent variant */
.quote-section.accent {
    background: linear-gradient(180deg, rgba(139,157,131,0.05) 0%, var(--white) 100%);
    border-color: rgba(139,157,131,0.12);
}

/* Highlight variant — sage */
.quote-section.highlight {
    background: var(--sage);
    color: var(--white);
    border-color: var(--sage);
    box-shadow: 0 4px 20px rgba(139,157,131,0.25);
}

.quote-section.highlight h2 {
    color: var(--white);
    font-weight: 300;
}

.quote-section.highlight p {
    color: rgba(255,255,255,0.9);
}

.quote-section.highlight .section-line {
    border-color: rgba(255,255,255,0.35);
}

/* Dark variant — sage for CTA */
.quote-section.dark {
    background: var(--sage);
    color: var(--white);
    border-color: var(--sage);
    box-shadow: 0 4px 20px rgba(139,157,131,0.25);
}

.quote-section.dark h2 {
    color: var(--white);
    font-weight: 300;
}

.quote-section.dark .section-line {
    border-color: rgba(255,255,255,0.35);
}

.quote-section.dark p,
.quote-section.dark a {
    color: rgba(255,255,255,0.9);
}

.quote-section.dark a:hover {
    color: var(--white);
}

/* === Quote Items Table === */
.quote-items {
    width: 100%;
    border-collapse: collapse;
}

.quote-items thead th {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--taupe);
    font-weight: 500;
    padding: 12px 8px;
    border-bottom: 1.5px solid var(--light-grey);
    text-align: left;
}

.quote-items thead th:last-child {
    text-align: right;
}

.quote-items tbody tr {
    transition: background 0.2s ease;
}

.quote-items tbody tr:hover {
    background: rgba(139,157,131,0.04);
}

.quote-items tbody td {
    padding: 18px 8px;
    border-bottom: 1px solid rgba(232,230,227,0.5);
    vertical-align: middle;
}

.quote-items tbody td:last-child {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

.quote-item-name {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.quote-item-desc {
    font-size: 11px;
    color: var(--charcoal-light);
    line-height: 1.5;
    opacity: 0.8;
}

/* Accordion detail: hidden by default (shown on mobile when expanded) */
.quote-item-detail {
    display: none;
}

.quote-item-image {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
}

.quote-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
}

/* === Quote Totals === */
.quote-totals {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1.5px solid var(--charcoal);
}

.quote-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.quote-total-row.subtotal {
    color: var(--charcoal-light);
}

.quote-total-row.discount {
    color: var(--sage-dark);
    font-weight: 400;
}

.quote-total-row.grand-total {
    font-size: 20px;
    font-weight: 500;
    padding: 24px 48px;
    border-top: 1px solid var(--light-grey);
    margin: 12px -48px 0;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(139,157,131,0.06) 100%);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.quote-total-row.grand-total .amount {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--charcoal);
    letter-spacing: 1px;
}

/* === Quote Conditions === */
.quote-conditions {
    font-size: 13px;
    color: var(--charcoal-light);
    line-height: 1.8;
}

.quote-conditions h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--charcoal);
    margin: 20px 0 8px;
}

.quote-conditions h4:first-child {
    margin-top: 0;
}

.quote-conditions ul {
    list-style: none;
    padding: 0;
}

.quote-conditions ul li {
    padding: 4px 0 4px 18px;
    position: relative;
}

.quote-conditions ul li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--sage);
    font-weight: bold;
    font-size: 16px;
}

/* === Quote Actions === */
.quote-actions {
    text-align: center;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* === Project Phases Timeline === */
.project-phases {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
}

.phase-item {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 28px;
}

.phase-item:last-child {
    padding-bottom: 0;
}

.phase-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    color: var(--sage);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.phase-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 38px;
    width: 1px;
    height: calc(100% - 38px);
    background: var(--light-grey);
}

.phase-content {
    padding-top: 2px;
    flex: 1;
}

.phase-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--charcoal);
    letter-spacing: 0.5px;
}

.phase-content p {
    font-size: 13px;
    color: var(--charcoal-light);
    line-height: 1.7;
}

/* === Testimonial Cards === */
.testimonial-card {
    background: var(--white);
    border: 1px solid rgba(232,230,227,0.6);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: var(--sage-light);
}

.testimonial-card .quote-mark {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--sage);
    opacity: 0.2;
    position: absolute;
    top: 8px;
    left: 16px;
    line-height: 1;
}

/* === Payment Card with accent bar === */
.payment-card {
    background: var(--cream);
    border: none;
    border-left: 2px solid var(--sage);
    padding: 20px 22px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 10px;
}

/* === Responsive — Quote === */
@media (max-width: 768px) {
    .quote-page {
        padding: 70px 16px 40px;
        overflow-x: hidden;
    }

    .quote-cover {
        min-height: 440px;
    }
    .cover-top, .cover-center, .cover-bottom {
        padding-left: 28px;
        padding-right: 28px;
    }
    .quote-cover::after {
        top: 14px;
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .quote-section {
        padding: 30px 14px;
    }

    .quote-total-row.grand-total {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .quote-actions {
        flex-direction: column;
        align-items: center;
    }

    /* === MOBILE ACCORDION === */
    .quote-item-detail {
        display: none;
    }

    .quote-accordion-row {
        cursor: pointer;
    }

    /* Collapse qty and price columns (accordion shows these details) */
    .quote-col-qty,
    .quote-col-price,
    table.quote-items thead th:nth-child(3),
    table.quote-items thead th:nth-child(4) {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        border: none !important;
        font-size: 0 !important;
        overflow: hidden !important;
        visibility: collapse !important;
    }

    /* When expanded: show detail, hide truncated desc */
    .quote-accordion-row.expanded .quote-item-desc {
        display: none !important;
    }
    .quote-accordion-row.expanded .quote-item-notes {
        display: none !important;
    }
    .quote-accordion-row.expanded .quote-item-detail {
        display: block !important;
        margin-top: 6px;
    }
    .quote-accordion-row.expanded .quote-item-name {
        white-space: normal !important;
    }

    .quote-item-detail-desc {
        font-size: 10px;
        color: var(--charcoal-light);
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .quote-item-detail-meta {
        font-size: 10px;
        color: var(--sage);
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    /* === MOBILE TABLE === */
    /* Fixed layout */
    table.quote-items {
        table-layout: fixed !important;
        width: 100% !important;
    }

    /* Column 1: image */
    table.quote-items th:nth-child(1),
    table.quote-items td:nth-child(1) { width: 50px !important; min-width: 50px !important; }
    /* Column 5: total (only visible column besides image+name) */
    table.quote-items th:nth-child(5),
    table.quote-items td:nth-child(5) { width: 52px !important; min-width: 52px !important; padding-right: 0 !important; }

    /* Header: show only SERVICE and TOTAL */
    table.quote-items thead th {
        font-size: 7px !important;
        letter-spacing: 1px !important;
        padding: 8px 3px !important;
    }

    /* Data cells */
    table.quote-items tbody td {
        padding: 12px 4px !important;
    }

    /* Name column: truncate in collapsed state */
    table.quote-items tbody td:nth-child(2) {
        max-width: 0 !important;
        overflow: hidden !important;
    }

    .quote-item-name {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .quote-item-desc {
        font-size: 9px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Price columns */
    table.quote-items tbody td:nth-child(4) {
        font-size: 11px !important;
        color: var(--charcoal-light) !important;
        white-space: nowrap !important;
    }
    table.quote-items tbody td:nth-child(5) {
        font-size: 11px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }

    /* Images */
    .quote-item-image {
        width: 42px !important;
        height: 42px !important;
    }

    /* Section headers inside table */
    table.quote-items td[colspan] {
        overflow: visible !important;
        white-space: normal !important;
    }
    table.quote-items td[colspan] div:first-child {
        font-size: 15px !important;
        letter-spacing: 1px !important;
        white-space: normal !important;
    }
    table.quote-items td[colspan] div:nth-child(2) {
        white-space: normal !important;
        word-wrap: break-word !important;
        letter-spacing: 1px !important;
        font-size: 9px !important;
        line-height: 1.6 !important;
    }

    /* Grids stack vertically */
    div[style*="grid-template-columns:1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Payment cards stack value below */
    .payment-card > div[style*="justify-content:space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px;
    }
}

/* === Print Styles === */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        font-size: 11pt;
        line-height: 1.5;
    }

    .nav, .quote-actions, .quote-login-overlay, .toast,
    .quote-page > div:last-child {
        display: none !important;
    }

    .quote-page {
        padding: 0;
        max-width: 100%;
    }

    /* Remove web styling from all sections */
    .quote-section, .quote-cover {
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        margin-bottom: 0;
    }

    /* Cover fills the first page */
    .quote-cover {
        min-height: 0;
        height: calc(100vh - 40px);
        page-break-after: always;
        background: white !important;
        padding: 0 50px;
    }

    .quote-cover::before { display: none; }

    .quote-cover::after {
        top: 30px;
        left: 30px;
        right: 30px;
        bottom: 30px;
        border: 1px solid var(--taupe) !important;
        border-radius: 0 !important;
    }

    /* Each section starts on a new page */
    .quote-section {
        padding: 36px 30px;
        border-bottom: none !important;
        page-break-before: always;
        page-break-inside: auto;
    }

    /* First section after cover doesn't need extra break */
    .quote-cover + .quote-section {
        page-break-before: auto;
    }

    /* Last section (CTA) flows naturally after T&C */
    .quote-section:last-of-type {
        page-break-before: auto;
    }

    /* Testimonials section keeps header with cards */
    .quote-section.accent {
        page-break-inside: auto;
    }

    /* Highlight section (Ola) */
    .quote-section.highlight {
        background: var(--sage) !important;
        color: white !important;
        page-break-inside: avoid;
    }

    .quote-section.highlight h2,
    .quote-section.highlight p {
        color: white !important;
    }

    /* Accent section */
    .quote-section.accent {
        background: rgba(139,157,131,0.05) !important;
        border: none !important;
    }

    /* Avoid breaking inside small elements */
    .phase-item,
    .testimonial-card,
    .payment-card,
    .quote-totals,
    .quote-conditions > div,
    .quote-items tr {
        page-break-inside: avoid;
    }

    /* Headers stay with content */
    h2 { page-break-after: avoid; }

    /* Grand total */
    .quote-total-row.grand-total {
        background: var(--cream) !important;
        margin-left: -30px;
        margin-right: -30px;
        padding: 20px 30px;
        border-radius: 0 !important;
    }

    /* Table images smaller in print */
    .quote-item-image {
        width: 50px !important;
        height: 50px !important;
        border-radius: 3px !important;
    }

    /* Payment grid stays on one page */
    .quote-section:has(.payment-card) {
        page-break-inside: avoid;
    }

    /* Remove hover styles */
    .testimonial-card:hover,
    .quote-items tbody tr:hover {
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Testimonial cards clean for print */
    .testimonial-card {
        border-radius: 3px !important;
        border: 1px solid var(--light-grey) !important;
    }
}
