/* ═══════════════════════════════════════════════════════
   mkt-pages.css  —  All Pages Shared Styles
   Load in header: <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/mkt-pages.css">
   ═══════════════════════════════════════════════════════ */

:root {
    --primary:       #2563EB;
    --primary-dark:  #1D4ED8;
    --primary-light: #EFF6FF;
    --accent:        #F97316;
    --bg:            #F8FAFC;
    --bg-white:      #FFFFFF;
    --fg:            #0F172A;
    --fg-secondary:  #334155;
    --fg-muted:      #64748B;
    --gold:          #F59E0B;
    --border:        #E2E8F0;
    --border-light:  #F1F5F9;
    --shadow:        0 4px 6px -2px rgba(0,0,0,.05);
    --shadow-md:     0 10px 25px -5px rgba(0,0,0,.05), 0 8px 10px -6px rgba(0,0,0,.02);
    --radius:        16px;
    --radius-lg:     24px;
    --transition:    all .25s cubic-bezier(.2,0,0,1);
}

/* ─────────────────────────────────────────────────────
   BREADCRUMB  (shared by all pages)
───────────────────────────────────────────────────── */
.mkt-breadcrumb-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 13px 0;
}
.mkt-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; font-size: 12px; list-style: none; margin: 0; padding: 0;
}
.mkt-breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--fg-secondary); }
.mkt-breadcrumb li a { color: var(--fg-secondary); font-weight: 500; text-decoration: none; transition: color .2s; }
.mkt-breadcrumb li a:hover { color: var(--primary); }
.mkt-breadcrumb li .sep { font-size: 9px; color: var(--fg-muted); }
.mkt-breadcrumb li.active { color: var(--fg); font-weight: 600; }

/* ─────────────────────────────────────────────────────
   PAGE HEADER  (simple pages)
───────────────────────────────────────────────────── */
.mkt-page-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 28px 0 24px;
}
.mkt-page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800; color: var(--fg);
    letter-spacing: -.02em; margin: 0;
}

/* ─────────────────────────────────────────────────────
   SIMPLE CONTENT PAGES
   (About, Track Order, Returns, Terms, Privacy,
    Payment, Discount, How To Order,
    Delivery Info, Warranty)
───────────────────────────────────────────────────── */
.mkt-howto-section,
.mkt-info-section {
    padding: 36px 0 60px;
    background: var(--bg);
}

.mkt-howto-card,
.mkt-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 860px;
}

.mkt-howto-content,
.mkt-info-content {
    padding: 28px 32px;
    font-size: 14px;
    color: var(--fg-secondary);
    line-height: 1.85;
}
.mkt-howto-content p,
.mkt-info-content p      { margin-bottom: 10px; color: var(--fg-secondary); }
.mkt-howto-content b,
.mkt-howto-content strong,
.mkt-info-content b,
.mkt-info-content strong  { color: var(--fg); font-weight: 700; }
.mkt-howto-content h1,
.mkt-howto-content h2,
.mkt-howto-content h3,
.mkt-info-content h1,
.mkt-info-content h2,
.mkt-info-content h3      { font-weight: 800; color: var(--fg); margin: 20px 0 10px; }
.mkt-howto-content h2,
.mkt-info-content h2      { font-size: 1.2rem; }
.mkt-howto-content h3,
.mkt-info-content h3      { font-size: 1rem; }
.mkt-howto-content ul,
.mkt-howto-content ol,
.mkt-info-content ul,
.mkt-info-content ol      { padding-left: 20px; margin-bottom: 12px; }
.mkt-howto-content ul li,
.mkt-howto-content ol li,
.mkt-info-content ul li,
.mkt-info-content ol li   { margin-bottom: 6px; color: var(--fg-secondary); }
.mkt-howto-content a,
.mkt-info-content a       { color: var(--primary); text-decoration: none; font-weight: 600; }
.mkt-howto-content a:hover,
.mkt-info-content a:hover { text-decoration: underline; }

@media (max-width: 575px) {
    .mkt-howto-content,
    .mkt-info-content { padding: 20px; }
}

/* ─────────────────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────────────────── */
.contact-page { padding: 30px 0 60px; background: var(--bg); }

.ct-breadcrumb { font-size: 13px; color: var(--fg-muted); margin-bottom: 22px; }
.ct-breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.ct-breadcrumb a:hover { color: var(--primary); }
.ct-breadcrumb span { margin: 0 6px; }

.ct-page-title { margin-bottom: 28px; }
.ct-page-title h1 { font-size: 28px; font-weight: 800; color: var(--fg); margin-bottom: 6px; }
.ct-page-title p  { font-size: 14px; color: var(--fg-muted); }

.ct-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; } }

/* Contact Form Card */
.ct-form-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.ct-form-card h2 { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.ct-form-card > p { font-size: 13px; color: var(--fg-muted); margin-bottom: 24px; }

.ct-alert { background: #dff0d8; border: 1px solid #d6e9c6; color: #3c763d; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.ct-alert button { background: none; border: none; color: #3c763d; font-size: 18px; font-weight: 700; cursor: pointer; }

.ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .ct-row2 { grid-template-columns: 1fr; } }
.ct-group { margin-bottom: 16px; }
.ct-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.ct-label .req { color: #dc2626; }
.ct-input, .ct-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--fg); background: var(--bg-white); outline: none; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.ct-input:focus, .ct-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ct-input::placeholder, .ct-textarea::placeholder { color: #94A3B8; }
.ct-textarea { resize: vertical; min-height: 120px; }

.ct-btn { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; transition: background .2s, transform .2s; margin-top: 4px; }
.ct-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.ct-btn i { font-size: 15px; }

/* Contact Info Sidebar */
.ct-info-col { display: flex; flex-direction: column; gap: 12px; }
.ct-info-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; align-items: flex-start; gap: 14px; }
.ct-info-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--primary); flex-shrink: 0; }
.ct-info-text h4 { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 3px; }
.ct-info-text p  { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
.ct-info-text a  { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; display: block; }
.ct-info-text a:hover { text-decoration: underline; }
.ct-info-text small { font-size: 11px; color: #94A3B8; display: block; margin-top: 2px; }

.ct-wa-card { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ct-wa-card i  { font-size: 36px; color: #22c55e; margin-bottom: 4px; }
.ct-wa-card h4 { font-size: 15px; font-weight: 700; color: var(--fg); margin: 0; }
.ct-wa-card p  { font-size: 12px; color: var(--fg-muted); margin: 0 0 10px; }
.ct-wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #22c55e; color: #fff; padding: 10px 24px; border-radius: 20px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s; }
.ct-wa-btn:hover { background: #16a34a; color: #fff; }

/* ─────────────────────────────────────────────────────
   CHECKOUT PAGE
───────────────────────────────────────────────────── */
.mkt-checkout-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 28px 0 24px;
}
.mkt-checkout-header h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800; color: var(--fg);
    letter-spacing: -.02em; margin-bottom: 4px;
}
.mkt-checkout-header p { font-size: .88rem; color: var(--fg-muted); }

.mkt-checkout-section { padding: 32px 0 60px; background: var(--bg); }
.mkt-checkout-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 992px) {
    .mkt-checkout-grid { grid-template-columns: 1fr 380px; gap: 28px; }
}

.mkt-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.mkt-card:last-child { margin-bottom: 0; }
.mkt-card-title {
    font-size: 15px; font-weight: 700; color: var(--fg);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 9px;
}
.mkt-card-title i { color: var(--primary); font-size: 17px; }

.mkt-form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .mkt-form-row { grid-template-columns: 1fr 1fr; } }
.mkt-form-group { display: flex; flex-direction: column; }
.mkt-label { font-size: 12.5px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.mkt-label .req { color: var(--accent); }

.mkt-input,
.mkt-textarea,
.mkt-select {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px; color: var(--fg);
    background: var(--bg-white); outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit; -webkit-appearance: none;
}
.mkt-input:focus,
.mkt-textarea:focus,
.mkt-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.mkt-input::placeholder,
.mkt-textarea::placeholder { color: var(--fg-muted); font-size: 13px; }
.mkt-textarea { min-height: 90px; resize: vertical; }

.mkt-select-wrap { position: relative; }
.mkt-select { padding-right: 36px; cursor: pointer; }
.mkt-select-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--fg-muted); pointer-events: none; }

.mkt-payment-opts { display: flex; flex-direction: column; gap: 10px; }
.mkt-pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: var(--transition); background: var(--bg-white); }
.mkt-pay-opt:hover { border-color: var(--primary); background: var(--primary-light); }
.mkt-pay-opt.selected { border-color: var(--primary); background: var(--primary-light); }
.mkt-pay-opt input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.mkt-pay-opt i { font-size: 17px; color: var(--fg-muted); width: 22px; text-align: center; transition: color .2s; }
.mkt-pay-opt.selected i { color: var(--primary); }
.mkt-pay-opt span { font-size: 13.5px; font-weight: 500; color: var(--fg); }

.mkt-summary-sticky { position: sticky; top: 20px; }
.mkt-summary-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.mkt-summary-head { padding: 16px 22px; background: #0B1E33; border-bottom: 1px solid rgba(255,255,255,.08); }
.mkt-summary-head h2 { font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; margin: 0; }
.mkt-summary-head h2 i { color: #60A5FA; }

.mkt-order-item { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border-light); }
.mkt-order-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; padding: 6px; overflow: hidden; }
.mkt-order-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mkt-order-info { flex: 1; min-width: 0; }
.mkt-order-name { font-size: 13px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.mkt-order-price { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }

.mkt-totals { padding: 20px 22px; background: var(--bg); }
.mkt-total-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: var(--fg-secondary); }
.mkt-total-row.grand { border-top: 2px dashed var(--border); margin-top: 10px; padding-top: 14px; font-size: 16px; font-weight: 800; color: var(--fg); }

.mkt-btn-order { width: 100%; padding: 14px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; border: none; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .2s; font-family: inherit; margin-top: 16px; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.mkt-btn-order:hover { background: var(--primary-dark); transform: translateY(-1px); }
.mkt-btn-order:active { transform: translateY(0); }

.mkt-secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--fg-muted); margin-top: 10px; }
.mkt-secure i { color: #10B981; }