/* ========================================
   Hilo & Alma — Crochet Shop Styles
   Warm, artisanal aesthetic
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --cream: #f7f1e8;
    --linen: #efe6d9;
    --yarn-coral: #d9776c;
    --yarn-coral-dark: #c4655b;
    --yarn-sage: #7d9b8a;
    --yarn-sage-dark: #6a8574;
    --ink: #3d342c;
    --muted: #8a7e72;
    --card: #fffdf9;
    --stitch: #c4b5a5;
    --shadow: rgba(61, 52, 44, 0.1);
    --shadow-md: rgba(61, 52, 44, 0.15);
    
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--cream);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4b5a5' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

a:hover {
    color: var(--yarn-coral-dark);
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--yarn-coral);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--yarn-coral-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background-color: var(--yarn-sage);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--yarn-sage-dark);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--stitch);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--yarn-coral);
    color: var(--yarn-coral);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ---------- Navigation ---------- */
.header {
    background-color: var(--card);
    border-bottom: 1px solid var(--stitch);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

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

.nav-link {
    color: var(--ink);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--yarn-coral);
    border-bottom-color: var(--yarn-coral);
}

.nav-cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--yarn-coral);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-admin {
    color: var(--yarn-sage);
}

.nav-cta {
    background-color: var(--yarn-coral);
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: var(--radius);
}

.nav-cta:hover {
    background-color: var(--yarn-coral-dark);
    border-bottom-color: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--linen) 0%, var(--cream) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d9776c' fill-opacity='0.08'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-title em {
    color: var(--yarn-coral);
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ---------- Sections ---------- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- Doll Grid ---------- */
.doll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.doll-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.doll-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-md);
}

.doll-card-link {
    text-decoration: none;
    color: inherit;
}

.doll-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #faf7f2 0%, #f0ebe3 50%, #ede5da 100%);
    /* Show full original photo (often portrait) — no square crop */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 560px;
}

.doll-image {
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.doll-card:hover .doll-image {
    transform: scale(1.02);
}

.doll-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--linen) 0%, var(--stitch) 100%);
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-out {
    background-color: var(--ink);
    color: #fff;
}

.stock-low {
    background-color: var(--yarn-coral);
    color: #fff;
}

.doll-info {
    padding: 20px;
}

.doll-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.doll-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yarn-coral);
}

.quick-add {
    padding: 0 20px 20px;
}

.quick-add .btn {
    width: 100%;
}

/* ---------- Doll Detail ---------- */
.doll-detail {
    background-color: var(--card);
    padding-top: 32px;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.95rem;
    color: var(--muted);
}

.detail-breadcrumb a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.detail-breadcrumb a:hover {
    color: var(--yarn-coral);
    border-bottom-color: var(--yarn-coral);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 48px;
    align-items: start;
}

.detail-media {
    position: sticky;
    top: 88px;
}

.detail-image {
    position: relative;
    width: 100%;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow);
    background: linear-gradient(145deg, #faf7f2 0%, #f0ebe3 50%, #ede5da 100%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    max-height: calc(100vh - 140px);
}

button.detail-image {
    cursor: zoom-in;
    font: inherit;
    color: inherit;
}

button.detail-image:focus-visible {
    outline: 2px solid var(--yarn-coral);
    outline-offset: 4px;
}

.detail-image img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.zoom-hint {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(45, 38, 32, 0.72);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.detail-zoom-trigger:hover .zoom-hint,
.detail-zoom-trigger:focus-visible .zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.detail-image-placeholder {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    background: linear-gradient(135deg, var(--linen) 0%, var(--stitch) 100%);
}

/* Full-screen enlarged photo */
.photo-lightbox {
    border: none;
    padding: 0;
    margin: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 24, 20, 0.92);
    color: #fff;
}

.photo-lightbox::backdrop {
    background: rgba(20, 16, 12, 0.85);
}

.lightbox-close-bar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    margin: 0;
}

.lightbox-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-image {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: min(96vw, 1100px);
    max-height: 94vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.detail-name {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.detail-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--yarn-coral);
    margin-bottom: 16px;
}

.detail-stock {
    margin-bottom: 24px;
}

.stock-available {
    color: var(--yarn-sage);
    font-weight: 600;
}

.detail-description {
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.detail-form {
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.quantity-input {
    width: 80px;
}

.detail-features {
    display: flex;
    gap: 24px;
    padding-top: 30px;
    border-top: 1px solid var(--stitch);
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.875rem;
}

.feature span {
    font-size: 1.25rem;
}

/* ---------- Cart ---------- */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background-color: var(--card);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow);
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius);
    background: var(--linen);
}

.cart-item-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--linen);
    border-radius: var(--radius);
    font-size: 2rem;
}

.cart-item-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--muted);
}

.cart-item-total {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--yarn-coral);
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--transition);
}

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

.cart-summary {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 4px 16px var(--shadow);
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stitch);
}

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

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 16px;
    border-top: 1px solid var(--stitch);
}

.cart-summary .btn {
    margin-top: 16px;
}

.cart-summary hr {
    border: none;
    border-top: 1px solid var(--stitch);
    margin: 16px 0;
}

/* ---------- Checkout ---------- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.form-section {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px var(--shadow);
}

.form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stitch);
}

.checkout-summary {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 4px 16px var(--shadow);
    position: sticky;
    top: 90px;
}

.checkout-summary h3 {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.checkout-note {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 16px;
    text-align: center;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--stitch);
    border-radius: var(--radius);
    background-color: #fff;
    color: var(--ink);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--yarn-coral);
    box-shadow: 0 0 0 3px rgba(217, 119, 108, 0.2);
}

.form-input::placeholder {
    color: var(--muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    display: block;
    color: var(--yarn-coral);
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* ---------- Auth Pages ---------- */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 32px var(--shadow);
    text-align: center;
}

.auth-card h1 {
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--muted);
    margin-bottom: 30px;
}

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

.auth-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--stitch);
}

/* ---------- Thanks Page ---------- */
.thanks-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 60px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow);
}

.thanks-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.thanks-card h1 {
    margin-bottom: 12px;
}

.thanks-subtitle {
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 30px;
}

.order-summary {
    background-color: var(--linen);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.order-summary p {
    margin-bottom: 8px;
}

.order-details {
    text-align: left;
    margin-bottom: 30px;
}

.order-details p {
    margin-bottom: 8px;
}

.thanks-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ---------- Subscribe Form ---------- */
.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-input {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--stitch);
    border-radius: var(--radius);
    background-color: var(--card);
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--yarn-coral);
}

.subscribe-success,
.subscribe-info {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 16px;
}

.subscribe-success {
    background-color: rgba(125, 155, 138, 0.1);
    color: var(--yarn-sage-dark);
}

.subscribe-info {
    background-color: rgba(217, 119, 108, 0.1);
    color: var(--yarn-coral-dark);
}

/* ---------- Story Section ---------- */
.story {
    background-color: var(--linen);
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.story-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.story-content h2 {
    margin-bottom: 20px;
}

.story-content p {
    color: var(--muted);
    margin-bottom: 16px;
}

.story-quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--yarn-coral);
    margin-top: 24px !important;
}

/* ---------- Newsletter Section ---------- */
.newsletter {
    background: linear-gradient(135deg, var(--yarn-coral) 0%, var(--yarn-coral-dark) 100%);
    color: #fff;
}

.newsletter .section-title,
.newsletter .section-subtitle {
    color: #fff;
}

.newsletter .subscribe-input {
    border-color: rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.9);
}

.newsletter .btn-primary {
    background-color: #fff;
    color: var(--yarn-coral);
}

.newsletter .btn-primary:hover {
    background-color: var(--linen);
}

/* ---------- Taller (Admin) ---------- */
.taller-page {
    background-color: var(--cream);
}

.taller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.taller-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--yarn-coral);
    display: block;
}

.stat-label {
    color: var(--muted);
    font-size: 0.875rem;
}

.taller-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.taller-nav-item {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--ink);
}

.taller-nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.taller-nav-item span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.taller-nav-item h3 {
    margin-bottom: 8px;
}

.taller-nav-item p {
    color: var(--muted);
    font-size: 0.875rem;
}

.taller-section {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 30px;
}

.taller-section h2 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stitch);
}

.taller-table {
    width: 100%;
    border-collapse: collapse;
}

.taller-table th,
.taller-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--stitch);
}

.taller-table th {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taller-table tbody tr:hover {
    background-color: var(--linen);
}

.table-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius);
    background: var(--linen);
}

.table-thumb-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--linen);
    border-radius: var(--radius);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-new {
    background-color: rgba(217, 119, 108, 0.15);
    color: var(--yarn-coral-dark);
}

.status-paid {
    background-color: rgba(125, 155, 138, 0.15);
    color: var(--yarn-sage-dark);
}

.status-shipped {
    background-color: rgba(100, 100, 200, 0.15);
    color: #555;
}

.status-cancelled {
    background-color: rgba(150, 150, 150, 0.15);
    color: #666;
}

.status-active {
    background-color: rgba(125, 155, 138, 0.15);
    color: var(--yarn-sage-dark);
}

.status-inactive {
    background-color: rgba(150, 150, 150, 0.15);
    color: #666;
}

.taller-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--card);
    border: 1px solid var(--stitch);
    color: var(--ink);
    text-decoration: none;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--yarn-coral);
    border-color: var(--yarn-coral);
    color: #fff;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.order-info-card,
.order-items-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow);
}

.order-info-card h2,
.order-items-card h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stitch);
}

.order-meta p {
    margin-bottom: 8px;
}

.status-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--stitch);
}

.taller-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.taller-form-card,
.taller-list-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow);
}

.taller-form-card h2,
.taller-list-card h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stitch);
}

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

.form-thumb {
    width: 100px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius);
    margin-top: 12px;
    background: var(--linen);
}

.current-image {
    margin-top: 12px;
}

.current-image p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 8px;
}

/* ---------- Empty States ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
}

.empty-text {
    color: var(--muted);
    text-align: center;
    padding: 40px;
}

/* ---------- Messages ---------- */
.messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 600px;
    width: 90%;
}

.message {
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.3s ease;
}

.message-success {
    background-color: rgba(125, 155, 138, 0.15);
    border: 1px solid var(--yarn-sage);
    color: var(--yarn-sage-dark);
}

.message-error {
    background-color: rgba(217, 119, 108, 0.15);
    border: 1px solid var(--yarn-coral);
    color: var(--yarn-coral-dark);
}

.message-info {
    background-color: rgba(196, 181, 165, 0.3);
    border: 1px solid var(--stitch);
    color: var(--ink);
}

.message-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.message-close:hover {
    opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #fff;
    margin: 12px 0 8px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: rgba(255,255,255,0.5);
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    transition: color var(--transition);
}

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

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .detail-grid,
    .cart-grid,
    .checkout-grid,
    .order-detail-grid,
    .taller-grid {
        grid-template-columns: 1fr;
    }

    .detail-media {
        position: static;
    }

    .detail-image {
        min-height: 0;
        max-height: min(70vh, 640px);
    }

    .detail-image img {
        max-height: min(70vh, 640px);
        width: 100%;
        height: auto;
    }

    .detail-name {
        font-size: 1.85rem;
    }

    .detail-form .btn-lg {
        width: 100%;
    }

    .detail-features {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between;
    }

    .zoom-hint {
        opacity: 1;
        transform: none;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

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

    .doll-image-wrapper {
        min-height: 200px;
        max-height: min(62vh, 480px);
    }

    .doll-image {
        max-height: min(62vh, 480px);
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--card);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--stitch);
        box-shadow: 0 4px 16px var(--shadow);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    
    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }
    
    .cart-item-remove {
        position: absolute;
        right: 12px;
        top: 12px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .taller-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .taller-table {
        font-size: 0.875rem;
    }
    
    .taller-table th,
    .taller-table td {
        padding: 8px;
    }
    
    .thanks-card {
        padding: 30px 20px;
    }
    
    .thanks-actions {
        flex-direction: column;
    }

    .lightbox-image {
        max-width: 96vw;
        max-height: 90vh;
    }

    .lightbox-close {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .doll-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }

    .page-header {
        padding: 32px 0 12px;
    }

    .detail-features .feature p {
        font-size: 0.8rem;
    }
}
