.product-hero {
    max-width: 1180px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #dbe4f8;
    border-radius: 24px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #111827;
}

.product-hero p {
    color: #475569;
}

.product-search-bar {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
    gap: 12px;
}

.product-search-bar input,
.product-search-bar select {
    border: 1px solid #dbe4f8;
    border-radius: 999px;
    padding: 14px 16px;
    background: #fff;
    color: #111827;
}

.product-search-bar button {
    border-radius: 999px;
    padding: 14px 22px;
}

.category-bar {
    max-width: 1180px;
    margin: 0 auto 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-chip {
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    white-space: nowrap;
}

.category-chip.active {
    border-color: #2874f0;
    color: #2874f0;
    background: #eff6ff;
}

.cards {
    max-width: 1180px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: var(--shadow-soft);
}

.card img,
.product-detail-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 700;
}

.badge-pill {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-tag {
    background: #eff6ff;
    color: #1d4ed8;
}

.low-stock {
    background: #fef2f2;
    color: #991b1b;
}

.product-pricing {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    color: #2874f0;
    font-weight: 800;
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
}

.stock,
.description {
    color: #475569;
}

.card-actions,
.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb {
    max-width: 1180px;
    margin: 0 auto 20px;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: #1f2937;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #c7d2fe;
}

.product-detail-page {
    max-width: 1180px;
    margin: 0 auto 28px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.product-detail-image {
    min-height: 520px;
    background: #f8fbff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-info {
    padding: 36px 34px;
    display: grid;
    gap: 16px;
}

.detail-head {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.detail-head h1 {
    font-size: clamp(2rem, 2.4vw, 2.8rem);
}

.detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 14px;
    background: #eff6ff;
    color: #1f2937;
    font-size: 0.95rem;
}

.product-pricing {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    color: #2874f0;
    font-size: 2rem;
    font-weight: 800;
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
}

.savings {
    color: #047857;
    font-weight: 700;
    background: #ecfdf5;
    border-radius: 999px;
    padding: 6px 12px;
}

.product-description {
    color: #334155;
    line-height: 1.75;
    margin-top: 8px;
}

.product-extras {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-extras div {
    background: #eff6ff;
    border: 1px solid #dbe4f8;
    border-radius: 16px;
    padding: 18px 16px;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.product-actions .btn-secondary {
    min-width: 152px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
}

.related-products {
    margin-top: 32px;
}

.related-products h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.small-card {
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.small-card img {
    height: 190px;
    object-fit: cover;
}

.small-card .card-content {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.small-card h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.small-card .price {
    margin-top: 4px;
}

.product-image-placeholder {
    min-height: 190px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f8fbff;
}

.empty-state {
    max-width: 1180px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dbe4f8;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
}

@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .product-detail-card { grid-template-columns: 1fr; }
    .product-detail-image { min-height: 320px; }
}

.cart-page { max-width: 1180px; margin: 0 auto 24px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.cart-card { background: #fff; border: 1px solid #dbe4f8; border-radius: 16px; padding: 16px; display: flex; justify-content: space-between; gap: 12px; }
.cart-product { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cart-product-avatar { width: 64px; height: 64px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: #f8fbff; border: 1px solid #e2e8f0; }
.cart-product-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { color: #475569; font-weight: 700; font-size: 1rem; }
.cart-meta { color: #475569; margin: 8px 0; }
.cart-qty-form { display: grid; gap: 8px; max-width: 220px; }
.cart-qty-form input { border: 1px solid #dbe4f8; border-radius: 10px; padding: 9px 11px; }
.cart-card-right { text-align: right; display: grid; align-content: start; gap: 10px; }
.summary-box { background: #fff; border: 1px solid #dbe4f8; border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; }
.total-row { font-size: 1.1rem; font-weight: 800; }
.order-card-items { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.order-thumb { width: 52px; height: 52px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: #f8fbff; border: 1px solid #e2e8f0; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-thumb.more { display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; color: #475569; font-weight: 700; }
.order-item-row { display: flex; justify-content: space-between; gap: 10px; border: 1px solid #edf2f7; border-radius: 12px; padding: 12px; background: #fbfdff; }
.order-item-left { display: flex; align-items: center; gap: 12px; }
.order-item-avatar { width: 52px; height: 52px; border-radius: 999px; overflow: hidden; display: grid; place-items: center; background: #f8fbff; border: 1px solid #e2e8f0; }
.order-item-avatar img { width: 100%; height: 100%; object-fit: cover; }

.payment-page,
.order-detail-page { max-width: 1180px; margin: 0 auto 28px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.payment-panel,
.order-detail-box,
.order-card { background: #fff; border: 1px solid #dbe4f8; border-radius: 16px; padding: 18px; }
.payment-total { color: #475569; margin: 8px 0 12px; }
.payment-form { display: grid; gap: 10px; margin-top: 12px; }
.payment-option { border: 1px solid #dbe4f8; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; background: #f8fbff; }
.order-summary-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.order-summary-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eef2f7; padding-bottom: 8px; }
.orders-list { max-width: 1180px; margin: 0 auto 28px; display: grid; gap: 14px; }
.order-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #64748b; }
.order-items { display: grid; gap: 10px; margin-top: 12px; }
.order-item-row { display: flex; justify-content: space-between; gap: 10px; border: 1px solid #edf2f7; border-radius: 12px; padding: 12px; background: #fbfdff; }
.status-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; border: 1px solid transparent; }
.status-pending { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.status-paid { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.status-shipped { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.status-delivered { color: #14532d; background: #f0fdf4; border-color: #bbf7d0; }

@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .product-detail-card, .cart-page, .payment-page, .order-detail-page { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .cards { grid-template-columns: 1fr; }
    .product-search-bar { grid-template-columns: 1fr; }
    .order-card-header { align-items: flex-start; flex-direction: column; }
}

.shop-feature-strip { max-width: 1180px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-feature-strip div { background: #fff; border: 1px solid #dbe4f8; border-radius: 12px; padding: 10px 12px; font-weight: 700; color: #1f2937; text-align: center; }
.field-input { width: 100%; border: 1px solid #dbe4f8; border-radius: 10px; padding: 10px 12px; background: #fff; }
.field-textarea { min-height: 90px; resize: vertical; }
@media (max-width: 768px) { .shop-feature-strip { grid-template-columns: 1fr; } }


.coupon-form { display: grid; gap: 8px; margin-bottom: 10px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 16px; }
.timeline-step { text-align: center; padding: 10px 8px; border-radius: 10px; border: 1px solid #ead9c8; background: #fff; }
.timeline-dot { width: 10px; height: 10px; border-radius: 999px; margin: 0 auto 6px; background: #d1d5db; }
.timeline-step.done { background: #ecfdf5; border-color: #bbf7d0; }
.timeline-step.done .timeline-dot { background: #16a34a; }
.timeline-step.current { background: #fff7ed; border-color: #fed7aa; }
.timeline-step.current .timeline-dot { background: #ea580c; }
.timeline-step.upcoming { background: #f8fafc; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; } }

