/* Upriver Beads — Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --clay: #C4704B;
    --clay-light: #d4896a;
    --river: #3B6B7A;
    --river-light: #4d8a9c;
    --sand: #F5EDE3;
    --bark: #2C1E13;
    --sage: #8B9E7E;
    --cream: #FBF8F4;
    --stone: #9E8E7E;
    --deep: #1A120B;
    --danger: #c0392b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--cream);
    color: var(--bark);
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(196, 112, 75, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 107, 122, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 158, 126, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-content { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* Navigation */
.site-nav {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--bark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo-accent { color: var(--clay); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bark);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--clay); }

.nav-link.active { color: var(--clay); }

.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--bark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-cart:hover { color: var(--clay); }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--clay);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-badge.visible { display: flex; }

.nav-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--stone);
    background: rgba(158, 142, 126, 0.12);
    padding: 0.35rem 0.7rem;
    border-radius: 100px;
}

/* Main content area */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--stone);
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: var(--stone);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--clay); }

.breadcrumbs .sep { opacity: 0.4; }

.breadcrumbs .current { color: var(--bark); font-weight: 600; }

/* Section headers */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clay);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--deep);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--stone);
    line-height: 1.6;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--clay);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 112, 75, 0.3);
}

.btn-primary:hover {
    background: var(--clay-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 112, 75, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--bark);
    border: 1.5px solid rgba(44, 30, 19, 0.15);
}

.btn-secondary:hover {
    border-color: var(--clay);
    color: var(--clay);
}

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(44, 30, 19, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(196, 112, 75, 0.2);
    box-shadow: 0 8px 30px rgba(44, 30, 19, 0.06);
    transform: translateY(-3px);
}

/* Product card */
.product-card-shop {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-shop .card-image {
    aspect-ratio: 1;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-shop .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card-shop .card-body {
    padding: 1.25rem;
}

.product-card-shop .card-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--river);
    margin-bottom: 0.4rem;
}

.product-card-shop .card-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--deep);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-card-shop .card-price {
    font-weight: 700;
    color: var(--clay);
    font-size: 1rem;
}

.product-card-shop .card-stock {
    font-size: 0.75rem;
    color: var(--sage);
    margin-top: 0.3rem;
}

/* Category filter pills */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.55rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bark);
    background: white;
    border: 1.5px solid rgba(44, 30, 19, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--clay);
    color: var(--clay);
}

.filter-pill.active {
    background: var(--bark);
    color: white;
    border-color: var(--bark);
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--bark);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: auto;
}

.site-footer .footer-logo {
    font-family: 'DM Serif Display', serif;
    color: var(--sand);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.site-footer p {
    font-size: 0.8rem;
    color: rgba(245, 237, 227, 0.35);
}

/* Form inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid rgba(44, 30, 19, 0.12);
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--bark);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.1);
}

.form-input::placeholder {
    color: var(--stone);
    opacity: 0.7;
}

/* Quantity input */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(44, 30, 19, 0.12);
    border-radius: 100px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--bark);
    transition: background 0.2s;
}

.qty-btn:hover { background: var(--sand); }

.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bark);
    border: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Bead divider */
.bead-divider-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem 0;
}

.bead-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.5;
}

.bead-sm:nth-child(1) { background: var(--clay); }
.bead-sm:nth-child(2) { background: var(--river); }
.bead-sm:nth-child(3) { background: var(--sage); }
.bead-sm:nth-child(4) { background: var(--stone); }
.bead-sm:nth-child(5) { background: var(--clay); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--deep);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--stone);
    margin-bottom: 1.5rem;
}

/* Loading spinner */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--sand);
    border-top-color: var(--clay);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

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

/* Responsive */
@media (max-width: 768px) {
    .site-nav { padding: 1.2rem 1.5rem; }
    .main-content { padding: 1.5rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .nav-tag { display: none; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}
