/* Website services shop — extends the existing Miles Digital Services theme. */
:root {
  --shop-navy: #0b2653;
  --shop-blue: #1668b2;
  --shop-sky: #eaf5ff;
  --shop-ink: #13233d;
  --shop-muted: #65748b;
  --shop-line: #dce6f1;
  --shop-success: #198754;
}

.shop-cart-nav .nav__item-link { display: flex; align-items: center; gap: 7px; }
.shop-cart-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 20px; background: var(--shop-blue); color: #fff; font-size: 12px; line-height: 1; }

.shop-hero { position: relative; overflow: hidden; padding: 110px 0 80px; color: #fff; background: linear-gradient(125deg, #071a37 0%, #0d3e73 58%, #1878c4 100%); }
.shop-hero:after { content: ""; position: absolute; right: -120px; top: -170px; width: 520px; height: 520px; border: 80px solid rgba(255,255,255,.06); border-radius: 50%; }
.shop-hero .container { position: relative; z-index: 1; }
.shop-eyebrow { display: inline-block; margin-bottom: 14px; color: #4aa8f0; font: 800 13px/1.2 "Public Sans", sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.shop-hero .shop-eyebrow { color: #81caff; }
.shop-hero h1 { max-width: 780px; margin-bottom: 18px; color: #fff; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
.shop-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.75; }
.shop-trust-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; color: #fff; font-weight: 700; }
.shop-trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.shop-trust-row i { color: #62c3ff; }

.shop-section { padding: 90px 0; background: #f7faff; }
.shop-section-heading { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.shop-section-heading h2, .home-packages-heading h2 { margin-bottom: 14px; color: var(--shop-navy); font-size: clamp(30px, 4vw, 44px); }
.shop-section-heading p, .home-packages-heading p { color: var(--shop-muted); font-size: 17px; }
.shop-product-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 32px; border: 1px solid var(--shop-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 38px rgba(11,38,83,.08); transition: transform .25s ease, box-shadow .25s ease; }
.shop-product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(11,38,83,.13); }
.shop-product-card.is-featured { border: 2px solid var(--shop-blue); }
.shop-badge { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 20px; background: var(--shop-sky); color: var(--shop-blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.shop-product-icon { display: grid; width: 58px; height: 58px; margin-bottom: 22px; place-items: center; border-radius: 14px; background: var(--shop-sky); color: var(--shop-blue); font-size: 25px; }
.shop-product-card h3 { margin-bottom: 8px; color: var(--shop-navy); font-size: 24px; }
.shop-product-card > p { min-height: 72px; color: var(--shop-muted); line-height: 1.7; }
.shop-price { margin: 8px 0 20px; color: var(--shop-ink); font: 800 34px/1 "Public Sans", sans-serif; }
.shop-price small { color: var(--shop-muted); font-size: 13px; font-weight: 400; }
.shop-features { flex: 1; margin: 0 0 26px; padding: 0; list-style: none; }
.shop-features li { display: flex; gap: 10px; margin-bottom: 11px; color: #34445d; }
.shop-features i { margin-top: 4px; color: var(--shop-blue); font-size: 13px; }
.shop-add-btn { width: 100%; border: 0; cursor: pointer; }
.shop-add-btn.added { background: var(--shop-success); }

.home-packages-section { padding: 95px 0; background: #fff; }
.home-packages-heading { max-width: 690px; margin: 0 auto 42px; }
.package-table-wrap { overflow-x: auto; border: 1px solid var(--shop-line); border-radius: 16px; box-shadow: 0 16px 45px rgba(11,38,83,.08); }
.package-table { width: 100%; min-width: 800px; margin: 0; border-collapse: collapse; background: #fff; }
.package-table th, .package-table td { padding: 19px 24px; border-bottom: 1px solid var(--shop-line); text-align: center; }
.package-table thead th { padding-top: 26px; padding-bottom: 26px; color: var(--shop-navy); font: 800 18px/1.5 "Public Sans", sans-serif; }
.package-table thead th:first-child, .package-table tbody th { text-align: left; }
.package-table thead strong { display: inline-block; margin-top: 5px; color: var(--shop-blue); font-size: 28px; }
.package-table thead span { display: block; width: max-content; margin: 8px auto 0; padding: 4px 9px; border-radius: 20px; background: var(--shop-blue); color: #fff; font-size: 11px; text-transform: uppercase; }
.package-table tbody th { color: var(--shop-ink); font-weight: 700; }
.package-table td { color: var(--shop-muted); }
.package-table td i { color: var(--shop-success); }
.package-table .package-featured { background: #f0f7ff; }
.package-actions th, .package-actions td { border-bottom: 0; }
.package-actions .btn { min-width: 150px; padding: 0 16px; }
.home-packages-mobile { display: none; margin-top: 26px; text-align: center; }

.shop-page { padding: 78px 0 95px; background: #f7faff; }
.shop-page-title { margin-bottom: 34px; }
.shop-page-title h1 { margin-bottom: 8px; color: var(--shop-navy); font-size: clamp(34px, 4vw, 48px); }
.shop-page-title p { color: var(--shop-muted); font-size: 17px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 28px; align-items: start; }
.cart-panel, .order-summary, .checkout-panel { border: 1px solid var(--shop-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(11,38,83,.07); }
.cart-panel, .checkout-panel { padding: 28px; }
.order-summary { position: sticky; top: 110px; padding: 26px; }
.order-summary h3, .checkout-panel h2 { margin-bottom: 22px; color: var(--shop-navy); }
.cart-item { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--shop-line); }
.cart-item:first-child { padding-top: 0; }
.cart-item-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 12px; background: var(--shop-sky); color: var(--shop-blue); font-size: 22px; }
.cart-item h3 { margin: 0 0 5px; color: var(--shop-ink); font-size: 18px; }
.cart-item p { margin: 0; color: var(--shop-muted); font-size: 14px; }
.cart-item-price { color: var(--shop-navy); font-size: 18px; font-weight: 800; text-align: right; }
.cart-remove { display: block; margin: 7px 0 0 auto; padding: 0; border: 0; background: transparent; color: #b42318; font-size: 13px; cursor: pointer; }
.cart-empty { padding: 42px 15px; text-align: center; }
.cart-empty i { margin-bottom: 18px; color: #a9bbcf; font-size: 46px; }
.summary-row { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 14px; color: var(--shop-muted); }
.summary-row.total { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--shop-line); color: var(--shop-navy); font-size: 20px; font-weight: 800; }
.summary-note { margin: 18px 0; padding: 12px; border-radius: 8px; background: #f3f8fc; color: var(--shop-muted); font-size: 13px; line-height: 1.5; }
.summary-checkout { width: 100%; }
.summary-checkout.is-disabled { pointer-events: none; opacity: .5; }
.continue-shopping { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--shop-blue); font-weight: 700; }

.checkout-steps { display: flex; gap: 10px; margin-bottom: 30px; }
.checkout-step { display: flex; align-items: center; gap: 8px; color: var(--shop-muted); font-size: 14px; font-weight: 700; }
.checkout-step:not(:last-child):after { content: ""; width: 42px; height: 1px; margin-left: 3px; background: #cbd8e6; }
.checkout-step span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #dfe9f3; color: var(--shop-navy); }
.checkout-step.active { color: var(--shop-blue); }
.checkout-step.active span { background: var(--shop-blue); color: #fff; }
.checkout-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkout-form-grid .full { grid-column: 1 / -1; }
.checkout-label { display: block; margin-bottom: 8px; color: var(--shop-ink); font-weight: 700; }
.checkout-input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #cbd8e6; border-radius: 8px; background: #fff; color: var(--shop-ink); }
.checkout-input:focus { outline: 3px solid rgba(22,104,178,.13); border-color: var(--shop-blue); }
.payment-box { grid-column: 1 / -1; margin-top: 8px; padding: 22px; border: 1px solid var(--shop-line); border-radius: 12px; background: #f8fbfe; }
.payment-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.payment-heading h3 { margin: 0; color: var(--shop-navy); font-size: 19px; }
.card-icons { color: var(--shop-muted); font-size: 24px; letter-spacing: 4px; }
.checkout-security { display: flex; gap: 8px; margin: 16px 0 0; color: var(--shop-muted); font-size: 13px; line-height: 1.5; }
.checkout-submit { width: 100%; margin-top: 22px; border: 0; cursor: pointer; }
.checkout-alert { display: none; margin-bottom: 20px; padding: 14px 16px; border-radius: 8px; background: #e8f7ee; color: #146c43; font-weight: 700; }
.checkout-alert.show { display: block; }
.summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--shop-line); color: var(--shop-muted); font-size: 14px; }
.summary-item strong { color: var(--shop-ink); }

.shop-toast { position: fixed; right: 22px; bottom: 22px; z-index: 9999; max-width: 340px; padding: 14px 18px; border-radius: 10px; background: var(--shop-navy); color: #fff; box-shadow: 0 14px 35px rgba(0,0,0,.22); transform: translateY(18px); opacity: 0; pointer-events: none; transition: .25s ease; }
.shop-toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 991px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .shop-product-card > p { min-height: auto; }
  .home-packages-mobile { display: block; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-layout2 .navbar > .container-fluid { padding-right: 14px; padding-left: 14px; }
  .header-layout2 .navbar-brand img { width: 160px !important; }
  .navbar .nav__item { margin-right: 2px; }
  .navbar .nav__item .nav__item-link { padding: 0 7px; font-size: 12px; }
  .shop-cart-nav .nav__item-link { gap: 4px; }
}
@media (max-width: 767px) {
  .shop-hero { padding: 78px 0 58px; }
  .shop-section, .home-packages-section, .shop-page { padding: 65px 0; }
  .shop-product-card { padding: 25px; }
  .package-table-wrap { margin-right: -15px; border-radius: 14px 0 0 14px; }
  .checkout-form-grid { grid-template-columns: 1fr; }
  .checkout-form-grid .full, .payment-box { grid-column: auto; }
  .checkout-steps { align-items: flex-start; }
  .checkout-step { font-size: 12px; }
  .checkout-step:not(:last-child):after { width: 15px; }
  .cart-item { grid-template-columns: 48px minmax(0,1fr); }
  .cart-item-icon { width: 48px; height: 48px; }
  .cart-item-price { grid-column: 2; text-align: left; }
  .cart-remove { margin-left: 0; }
}
