/* =========================================================
   BOBBYTECH Shop Styles — loads alongside css/global.css
   All classes prefixed "shop-" so nothing clashes with your
   existing site styles.
   ========================================================= */

.shop-page {
    --shop-blue-900: #0A2A5E;
    --shop-blue-700: #0F3D91;
    --shop-blue-500: #1656C9;
    --shop-blue-100: #E8F0FE;
    --shop-orange-600: #E85D04;
    --shop-orange-500: #FF7A1A;
    --shop-white: #FFFFFF;
    --shop-ink: #0D1321;
    --shop-gray-600: #5C6478;
    --shop-gray-200: #E7EAF0;
    --shop-gray-100: #F5F7FA;
    font-family: inherit;
}

.shop-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Hero --- */
.shop-hero {
    background: linear-gradient(135deg, var(--shop-blue-900) 0%, var(--shop-blue-700) 55%, var(--shop-blue-500) 100%);
    color: white;
    padding: 56px 24px;
    text-align: center;
}
.shop-hero h1 { color: white; font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; }
.shop-hero p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

/* --- Search + categories --- */
.shop-toolbar { padding: 28px 0 8px; }
.shop-search { display: flex; gap: 10px; max-width: 420px; margin-bottom: 20px; }
.shop-search input {
    flex: 1; padding: 11px 14px; border: 1px solid var(--shop-gray-200); border-radius: 6px; font-size: 14px;
}
.shop-search button {
    background: var(--shop-orange-600); color: white; border: none; padding: 11px 20px; border-radius: 6px; font-weight: 700; cursor: pointer;
}
.shop-category-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.shop-category-chip {
    flex: 0 0 auto; background: var(--shop-blue-100); color: var(--shop-blue-900); font-weight: 600; font-size: 13px;
    padding: 9px 18px; border-radius: 999px; white-space: nowrap; text-decoration: none; border: 1px solid transparent;
}
.shop-category-chip.active, .shop-category-chip:hover { border-color: var(--shop-blue-500); }

/* --- Product grid --- */
.shop-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 24px 0 20px; flex-wrap: wrap; gap: 10px; }
.shop-section-head h2 { font-size: 22px; margin: 0; color: var(--shop-blue-900); }
.shop-section-head p { color: var(--shop-gray-600); margin: 4px 0 0; font-size: 14px; }

.shop-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding-bottom: 48px; }
.shop-product-card {
    background: white; border: 1px solid var(--shop-gray-200); border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column; position: relative; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.shop-product-card:hover { box-shadow: 0 8px 24px rgba(10,42,94,0.12); transform: translateY(-3px); }
.shop-badge {
    position: absolute; top: 10px; left: 10px; background: var(--shop-orange-600); color: white; font-size: 11px;
    font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; z-index: 2;
}
.shop-product-image { aspect-ratio: 1/1; background: var(--shop-gray-100); overflow: hidden; }
.shop-product-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-product-name { font-size: 14px; font-weight: 700; color: var(--shop-ink); text-decoration: none; }
.shop-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.shop-price-current { font-weight: 700; font-size: 17px; color: var(--shop-blue-900); }
.shop-price-compare { font-size: 12px; color: var(--shop-gray-600); text-decoration: line-through; }
.shop-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px;
    padding: 10px 16px; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; width: 100%;
    transition: transform 0.12s ease;
}
.shop-btn:hover { transform: translateY(-1px); }
.shop-btn-primary { background: var(--shop-orange-600); color: white; }
.shop-btn-wa { background: #25D366; color: white; }
.shop-btn-outline { background: transparent; color: var(--shop-blue-900); border: 1.5px solid var(--shop-gray-200); }

/* --- Product detail --- */
.shop-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px 0 56px; }
.shop-detail-image { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: var(--shop-gray-100); }
.shop-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-detail-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--shop-gray-600); }
.shop-detail-title { font-size: 26px; margin: 8px 0 16px; color: var(--shop-blue-900); }
.shop-stock-in { color: #1E7A34; font-weight: 600; margin-bottom: 18px; }
.shop-stock-out { color: #B91C1C; font-weight: 600; margin-bottom: 18px; }
.shop-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-detail-actions form, .shop-detail-actions a { flex: 1; min-width: 200px; }

/* --- Cart --- */
.shop-cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; padding: 28px 0 56px; }
.shop-cart-table { width: 100%; border-collapse: collapse; }
.shop-cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--shop-gray-600); padding: 10px 0; border-bottom: 2px solid var(--shop-gray-200); }
.shop-cart-table td { padding: 14px 0; border-bottom: 1px solid var(--shop-gray-200); vertical-align: middle; }
.shop-cart-item { display: flex; gap: 12px; align-items: center; }
.shop-cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--shop-gray-100); }
.shop-qty-input { width: 52px; padding: 6px; border: 1px solid var(--shop-gray-200); border-radius: 6px; text-align: center; }
.shop-summary { background: var(--shop-gray-100); border-radius: 12px; padding: 22px; }
.shop-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.shop-summary-row.total { font-weight: 700; font-size: 17px; color: var(--shop-blue-900); border-top: 1px solid var(--shop-gray-200); padding-top: 10px; }
.shop-form-group { margin-bottom: 14px; }
.shop-form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.shop-form-group input, .shop-form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--shop-gray-200); border-radius: 6px; font-size: 14px; font-family: inherit;
}

@media (max-width: 800px) {
    .shop-detail-grid, .shop-cart-layout { grid-template-columns: 1fr; }
}

/* --- Site-wide floating WhatsApp button --- */
.shop-wa-float {
    position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 9999; transition: transform 0.15s ease;
}
.shop-wa-float:hover { transform: scale(1.08); }
.shop-wa-float svg { width: 32px; height: 32px; }
.shop-wa-badge {
    position: absolute; top: -4px; right: -4px; background: var(--shop-orange-600); color: white; font-size: 11px;
    font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center;
    justify-content: center; padding: 0 4px; border: 2px solid white;
}
@media (max-width: 600px) { .shop-wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; } }
