/* assets/css/shop.css — Bookstore Styles */

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: #FFF; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .prod-img { width: 100%; height: 220px; object-fit: cover; background: var(--cloud-gray); }
.product-card .prod-body { padding: 16px; }
.product-card .prod-category { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 1px; color: var(--tinker-teal); font-weight: 700; }
.product-card .prod-name { font-size: 1rem; font-weight: 700; color: var(--deep-navy); margin: 4px 0 8px; line-height: 1.3; }
.product-card .prod-price { font-family: 'Quicksand', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--tinker-teal); }
.product-card .prod-old-price { text-decoration: line-through; color: #999; font-size: 0.875rem; margin-left: 6px; font-weight: 400; }
.product-card .prod-badge { position: absolute; top: 12px; left: 12px; background: var(--spark-orange); color: #FFF; font-size: 0.625rem; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.5px; }
.product-card { position: relative; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail .pd-image { width: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.product-detail .pd-image img { width: 100%; height: auto; }
.product-detail .pd-info h1 { font-size: 1.75rem; margin-bottom: 8px; }
.product-detail .pd-desc { font-size: 0.9375rem; color: #666; line-height: 1.7; margin: 16px 0; }
.product-detail .pd-meta { font-size: 0.8125rem; color: #999; margin-bottom: 16px; }
.product-detail .pd-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.qty-control { display: flex; align-items: center; gap: 0; border: 2px solid var(--cloud-gray); border-radius: var(--radius-md); overflow: hidden; }
.qty-control button { width: 40px; height: 40px; font-size: 1.125rem; font-weight: 700; cursor: pointer; background: var(--cloud-gray); border: none; transition: background 0.2s; }
.qty-control button:hover { background: #DDD; }
.qty-control input { width: 48px; height: 40px; text-align: center; font-weight: 700; border: none; font-size: 1rem; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; gap: 20px; } }

/* Cart */
.cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--cloud-gray); align-items: center; }
.cart-item .ci-img { width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; background: var(--cloud-gray); flex-shrink: 0; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-name { font-weight: 700; font-size: 0.9375rem; }
.cart-item .ci-price { color: var(--tinker-teal); font-weight: 700; }
.cart-item .ci-remove { color: var(--story-coral); font-size: 0.75rem; cursor: pointer; font-weight: 700; }
.cart-summary { background: var(--soft-cream); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; }
.cart-summary .cs-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9375rem; }
.cart-summary .cs-total { font-size: 1.25rem; font-weight: 800; color: var(--deep-navy); border-top: 2px solid var(--spark-orange); padding-top: 12px; margin-top: 8px; }

/* Shop Filters */
.shop-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.filter-chip { padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 700; cursor: pointer; border: 2px solid var(--cloud-gray); background: #FFF; transition: all 0.2s; }
.filter-chip:hover { border-color: var(--tinker-teal); }
.filter-chip.active { background: var(--tinker-teal); color: #FFF; border-color: var(--tinker-teal); }
