/* ============ Brand colors (from Bordhito logo) ============ */
:root {
    --brand-blue: #0a6d9e;
    --brand-blue-dark: #075276;
    --brand-teal: #1fc0ba;
    --brand-teal-dark: #159a95;
    --brand-gradient: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
}

/* ============ Reset & Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #222;
    background: #f7f7f9;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: var(--brand-blue);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.btn:hover { background: var(--brand-blue-dark); }
.btn:disabled { background: #aaa; cursor: not-allowed; }
.btn-secondary { background: #444; }
.btn-secondary:hover { background: #222; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-link { background: none; border: none; color: #b91c1c; cursor: pointer; text-decoration: underline; font-size: 13px; }
.btn-outline {
    background: var(--brand-blue);
    color: #fff;
    border: 1.5px solid var(--brand-blue);
}
.btn-outline:hover { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); }
.btn-disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

/* ============ Top bar ============ */
.top-bar { background: var(--brand-blue-dark); color: #e5f4f6; font-size: 13px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: #e5f4f6; }
.top-bar a:hover { color: #fff; text-decoration: underline; }
.top-bar-socials a { margin-left: 14px; }
.top-bar-socials a:first-child { margin-left: 0; }

/* ============ Floating WhatsApp button ============ */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25d366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 200;
    transition: transform 0.15s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============ Header ============ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { height: 40px; width: auto; display: block; }
.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.search-form { display: flex; flex: 1; min-width: 200px; max-width: 420px; }
.search-form input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}
.search-form button {
    padding: 8px 14px;
    border: none;
    background: var(--brand-blue);
    color: #fff;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.main-nav { display: flex; align-items: center; gap: 18px; font-weight: 600; }
.cart-link { position: relative; }
.cart-count {
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    border-radius: 50%;
    padding: 1px 6px;
    margin-left: 4px;
}
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ============ Shop layout ============ */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin: 24px 0; }
.shop-sidebar h3 { margin-bottom: 10px; }
.category-list { list-style: none; }
.category-list li { margin-bottom: 6px; }
.category-list a { display: block; padding: 6px 10px; border-radius: 6px; color: #444; }
.category-list a.active,
.category-list a:hover { background: rgba(31,192,186,0.12); color: var(--brand-blue); }

.search-result-info { margin-bottom: 14px; color: #555; }

/* ============ Breadcrumb ============ */
.breadcrumb { display: flex; gap: 6px; align-items: center; margin: 16px 0; font-size: 13px; color: #777; flex-wrap: wrap; }
.breadcrumb a { color: #777; }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb span:last-child { color: #333; font-weight: 500; }

/* ============ Hero banner ============ */
.hero {
    background: var(--brand-gradient);
    border-radius: 14px;
    margin: 20px 0;
    padding: 56px 32px;
    text-align: center;
    color: #fff;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.hero p { font-size: 16px; opacity: 0.95; margin-bottom: 22px; }
.btn-hero {
    display: inline-block;
    background: #fff;
    color: var(--brand-blue-dark);
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
}
.btn-hero:hover { background: #f0f0f0; }

/* ============ Shop by category (homepage) ============ */
.category-icons-section { margin: 40px 0; }
.section-title { font-size: 20px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.category-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}
.category-icon-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.category-icon-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.category-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(31,192,186,0.12);
}
.category-icon-label { font-size: 13px; font-weight: 600; color: #333; }

/* ============ Empty store notice ============ */
.empty-store-notice {
    background: #fff8e1;
    border: 1px solid #ffe08a;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    text-align: center;
}
.empty-store-notice a { color: var(--brand-blue); font-weight: 600; }

/* ============ Product row (horizontal scroll carousel) ============ */
.product-row-section { margin: 44px 0; }
.product-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.view-all-link { font-size: 14px; font-weight: 600; color: var(--brand-blue); white-space: nowrap; }
.view-all-link:hover { text-decoration: underline; }
.product-row-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.product-row-scroll::-webkit-scrollbar { height: 6px; }
.product-row-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.product-row-item { flex: 0 0 200px; scroll-snap-align: start; }
.product-row-item .product-card { height: 100%; }

/* ============ Trust strip ============ */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 44px 0;
    background: #fff;
    border-radius: 12px;
    padding: 22px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; color: #333; }
.trust-icon { font-size: 26px; }

/* ============ Shop toolbar ============ */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.shop-result-count { color: #555; font-size: 14px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort-form select { padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; }

/* ============ Product grid ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-image-link { position: relative; aspect-ratio: 1/1; background: #f0f0f0; }
.product-image-link img { width: 100%; height: 100%; object-fit: cover; }
.product-badges {
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.badge {
    font-size: 11px; font-weight: 700; color: #fff;
    padding: 3px 8px; border-radius: 4px;
}
.badge-sale { background: #dc2626; }
.badge-new { background: var(--brand-teal-dark); }
.badge-bestseller { background: #f59e0b; }
.product-info { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-info h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.price-row { display: flex; gap: 8px; align-items: baseline; }
.price-row.large { font-size: 26px; }
.price { color: var(--brand-blue); font-weight: 700; }
.old-price { color: #999; text-decoration: line-through; font-size: 13px; }
.add-to-cart-form { margin-top: auto; }
.add-to-cart-form .btn { width: 100%; }
.product-card-actions { display: flex; gap: 6px; margin-top: auto; }
.product-card-actions form { flex: 1; }
.product-card-actions .btn { width: 100%; padding: 8px 6px; font-size: 12.5px; }
.product-info .btn-disabled { width: 100%; margin-top: auto; }

/* ============ Pagination ============ */
.pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
.pagination a.active { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

/* ============ Product detail ============ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 24px 0; align-items: start; }
.product-detail-gallery { position: sticky; top: 84px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
    width: 60px; height: 60px; padding: 0; border: 2px solid #eee; border-radius: 8px;
    overflow: hidden; cursor: pointer; background: #fff;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--brand-blue); }

.variant-picker { margin: 16px 0; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.variant-option {
    padding: 9px 16px; border: 1.5px solid #ddd; border-radius: 8px; background: #fff;
    font-size: 13.5px; font-weight: 600; cursor: pointer; color: #333;
}
.variant-option-color { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 30px; }
.swatch-dot { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ddd; flex-shrink: 0; }
.variant-option:hover:not(:disabled) { border-color: var(--brand-blue); }
.variant-option.active { border-color: var(--brand-blue); background: rgba(31,192,186,0.1); color: var(--brand-blue-dark); }
.variant-option:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

.cart-variant-label { font-size: 12px; color: #777; margin-top: 2px; }

.product-detail-image { background: #fff; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid #eee; }
.product-detail-image img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.product-detail-category {
    display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-blue);
    background: rgba(31,192,186,0.12); padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.product-detail-info h1 { font-size: 24px; line-height: 1.35; margin-bottom: 8px; }
.brand-row { font-size: 14px; color: #666; margin-bottom: 8px; }
.brand-row span { font-weight: 700; color: #333; }
.stock-status { margin: 10px 0; font-weight: 600; }
.stock-status.in-stock { color: #16a34a; }
.stock-status.out-stock { color: #dc2626; }
.stock-status.select-prompt { color: var(--brand-blue-dark); }

/* Quantity stepper */
.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.qty-label { font-weight: 600; font-size: 14px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty-stepper .qty-btn {
    background: #f4f4f4; border: none; width: 36px; height: 38px; font-size: 18px; cursor: pointer; color: #333;
}
.qty-stepper .qty-btn:hover { background: #e8e8e8; }
.qty-stepper input {
    width: 50px; height: 38px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd;
    font-size: 15px; font-weight: 600;
}

/* 2x2 action button grid (Add to Cart / Buy Now / WhatsApp / Call) */
.product-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
}
.btn-block { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-dark { background: #1f2937; color: #fff; }
.btn-dark:hover { background: #111827; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb855; }
.btn-call { background: var(--brand-blue-dark); color: #fff; }
.btn-call:hover { background: #08557a; }

/* Description / Reviews tabs */
.product-tabs { margin: 36px 0; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.tab-buttons { display: flex; border-bottom: 1px solid #eee; }
.tab-btn {
    padding: 14px 22px; background: none; border: none; cursor: pointer;
    font-weight: 700; font-size: 14px; color: #777; border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.tab-panel { display: none; padding: 22px; color: #444; line-height: 1.7; }
.tab-panel.active { display: block; }

/* Reviews */
.star-rating { color: #f59e0b; letter-spacing: 1px; }
.review-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 15px; }
.review-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.review-item { border-bottom: 1px solid #f0f0f0; padding-bottom: 14px; }
.review-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-author { font-weight: 700; font-size: 14px; }
.review-comment { color: #444; font-size: 14px; margin: 4px 0; }
.review-date { font-size: 12px; color: #999; }

.review-form-box { background: #f9fafb; border-radius: 10px; padding: 20px; }
.review-form-box h3 { font-size: 16px; margin-bottom: 14px; }
.review-form { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.review-form label { font-weight: 600; font-size: 13.5px; margin-top: 8px; }
.review-form input[type=text], .review-form textarea {
    padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px;
}
.review-form button { margin-top: 14px; align-self: flex-start; }
.star-input { display: flex; gap: 4px; }
.star-btn {
    background: none; border: none; font-size: 26px; color: #d1d5db; cursor: pointer; line-height: 1; padding: 2px;
}
.star-btn.active { color: #f59e0b; }

.related-products { margin: 40px 0; }
.related-products h2 { margin-bottom: 16px; }


/* ============ Cart page ============ */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; margin: 20px 0; }
.cart-table th, .cart-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
.cart-product-cell { display: flex; align-items: center; gap: 10px; }
.cart-product-cell img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.qty-input { width: 60px; padding: 6px; border: 1px solid #ddd; border-radius: 6px; }
.cart-summary { background: #fff; padding: 20px; border-radius: 10px; margin-top: 20px; }
.cart-summary p { font-size: 18px; margin-bottom: 12px; }

/* ============ Checkout ============ */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin: 24px 0; }
.checkout-form { background: #fff; padding: 20px; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.checkout-form label { font-weight: 600; margin-top: 10px; font-size: 14px; }
.checkout-form input, .checkout-form textarea {
    padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 100%;
}
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 400; }
.radio-row label { font-weight: 400; margin-top: 0; }
.payment-method { margin: 6px 0; }
.payment-method-options { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.payment-option {
    display: flex; align-items: center; gap: 6px;
    border: 1px solid #ddd; border-radius: 8px; padding: 10px 14px;
    font-weight: 400 !important; margin-top: 0 !important; cursor: pointer;
}
.payment-option input { margin: 0; }
.manual-payment-box {
    background: rgba(31,192,186,0.08);
    border: 1px solid rgba(31,192,186,0.3);
    border-radius: 8px;
    padding: 14px;
    margin: 10px 0;
}
.manual-payment-note { font-size: 13px; color: #333; margin-bottom: 8px; }
.manual-payment-numbers { font-size: 14px; margin-bottom: 10px; }
.checkout-form button { margin-top: 18px; }

.order-summary { background: #fff; padding: 20px; border-radius: 10px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 16px; border-bottom: none; }
.order-summary .note { color: #888; font-size: 12px; margin-top: 10px; }

.order-success { background: #fff; padding: 30px; border-radius: 10px; text-align: center; margin: 30px 0; }
.order-success h1 { color: #16a34a; margin-bottom: 16px; }
.order-success p { margin-bottom: 8px; }

/* ============ Alerts ============ */
.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-error ul { margin-left: 18px; }

/* ============ Footer ============ */
.site-footer { background: #0f2f3d; color: #cfe3e8; margin-top: 40px; padding: 36px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 24px;
}
.footer-col h4 { color: #fff; margin-bottom: 10px; font-size: 15px; }
.footer-col a { display: block; color: #cfe3e8; margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: var(--brand-teal); }
.footer-col p { margin-bottom: 8px; font-size: 14px; }
.footer-col p a { display: inline; margin: 0; }
.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}
.footer-tagline { font-size: 13px; color: #9db8bf; }
.footer-socials { display: flex; flex-direction: column; margin-bottom: 6px; }
.payment-heading { margin-top: 16px; }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}
.footer-bottom {
    text-align: center;
    font-size: 13px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #9db8bf;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .top-bar-socials a { margin-left: 10px; font-size: 12px; }
    .logo-icon { height: 32px; }
    .logo-text { font-size: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { order: 2; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-gallery { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .search-form { order: 3; width: 100%; max-width: none; }
    .main-nav { gap: 12px; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { margin-bottom: 12px; border: 1px solid #eee; border-radius: 8px; }
    .cart-table td { border-bottom: none; padding: 8px 12px; }
    .hero { padding: 36px 20px; }
    .hero h1 { font-size: 24px; }
    .category-icon-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-icon { width: 46px; height: 46px; font-size: 22px; }
    .trust-strip { grid-template-columns: 1fr 1fr; }
    .product-actions-grid { grid-template-columns: 1fr; }
    .tab-buttons { overflow-x: auto; }
}

