/* ===== Print Shop ===== */

.shop-hero {
    padding: 140px 0 24px;
}

.shop-intro {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

.shop-intro strong {
    color: var(--gold);
    font-weight: 500;
}

.shop-grid-section {
    padding: 40px 0 100px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 80px 0;
}

.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.shop-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.shop-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--bg-secondary);
}

.shop-card-info {
    padding: 18px 20px 20px;
}

.shop-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 2px;
}

.shop-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.shop-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.shop-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.shop-card-buy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #0a0a0f;
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.shop-card-buy:hover {
    background: var(--accent-hover);
    transform: scale(1.04);
}

.shop-card-buy:active {
    transform: scale(0.97);
}

/* ===== Cart floating action button ===== */

/* z-index: sits above the gallery lightbox (.detail-view = 9999, its
   fullscreen button = 10001) so the cart is reachable while browsing. */

.cart-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10002;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #0a0a0f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--accent-glow);
    transition: background var(--transition), transform var(--transition);
}

.cart-fab:hover {
    background: var(--accent-hover);
    transform: scale(1.06);
}

.cart-fab-pulse {
    animation: cartPulse 0.5s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cart-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gold);
    color: #0a0a0f;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Cart drawer ===== */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 11000;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 11001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.cart-open {
    transform: translateX(0);
}

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

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.cart-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 24px;
}

.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-weight: 300;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

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

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid var(--border-hover);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    transition: border-color var(--transition), background var(--transition);
}

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

.cart-item-total {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.cart-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 3px 0;
}

.cart-line-muted {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.cart-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 8px;
}

.cart-checkout-btn {
    width: 100%;
    margin-top: 16px;
    background: var(--gold);
    color: #0a0a0f;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.cart-checkout-btn:hover:not(:disabled) {
    background: var(--gold-hover);
    transform: scale(1.02);
}

.cart-checkout-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.cart-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 300;
}

/* ===== Thank you page ===== */

.thanks-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.thanks-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
}

.thanks-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.thanks-text {
    max-width: 480px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 32px;
}

.thanks-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 26px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.btn:hover { transform: scale(1.04); }

.btn-primary {
    background: var(--accent);
    color: #0a0a0f;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--text-primary); }

/* ===== Product detail page ===== */

.pd-hero {
    padding: 120px 0 80px;
}

.pd-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 300;
}

.pd-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.pd-breadcrumb a:hover {
    color: var(--accent);
}

.pd-crumb-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

@media (max-width: 860px) {
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.pd-image {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: block;
    background: var(--bg-secondary);
}

.pd-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
}

.pd-subtitle {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 20px;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}

.pd-price {
    font-size: 1.6rem;
    font-weight: 700;
}

.pd-size {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.pd-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #0a0a0f;
    border: none;
    border-radius: 999px;
    padding: 14px 34px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.pd-add-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
}

.pd-add-btn:active {
    transform: scale(0.98);
}

.pd-ship-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 12px;
}

.pd-specs {
    margin-top: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.pd-specs-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.pd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.pd-spec-row:last-child {
    border-bottom: none;
}

.pd-spec-label {
    color: var(--text-muted);
    white-space: nowrap;
}

.pd-spec-value {
    text-align: right;
    color: var(--text-secondary);
    font-weight: 300;
}

.pd-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pd-desc-section {
    margin-top: 64px;
    max-width: 760px;
}

.pd-desc-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.pd-desc-section p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 16px;
}

/* shop card: image + title link to detail page */
.shop-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.shop-card-link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--bg-secondary);
}

.shop-card-title-link {
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition);
}

.shop-card-title-link:hover {
    color: var(--accent);
}
