/*  Header Lite + Footer Lite CSS */

/* CATVIndia Header Lite - Smooth, fast, theme-option based */

body.ms-site-body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg-soft);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ms-container {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

/* Topbar */
.ms-topbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.ms-topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-toplinks {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.ms-toplink,
.ms-toplinks a {
  color: var(--color-header-text);
  text-decoration: none;
}

.ms-toplink {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ms-toplink i {
  color: var(--color-primary);
}

.ms-toplink:hover,
.ms-toplink:focus {
  color: var(--color-primary-hover);
  background: var(--color-card);
  border-color: var(--color-primary);
  outline: none;
}

/* Account dropdown */
.ms-account-menu {
  position: relative;
}

.ms-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 205px;
  padding: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 999;
}

.ms-account-menu:hover .ms-account-dropdown,
.ms-account-menu:focus-within .ms-account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ms-account-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms-account-dropdown a {
  display: block;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
}

.ms-account-dropdown a:hover,
.ms-account-dropdown a:focus {
  background: var(--color-bg-soft);
  color: var(--color-primary-hover);
  outline: none;
}

/* Header */
.ms-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.ms-header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 230px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo */
.ms-logo a {
  width: fit-content;
  max-width: 100%;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 18px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ms-logo a:hover,
.ms-logo a:focus {
  border-color: var(--color-primary);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
  outline: none;
}

.ms-logo img {
  display: block;
  max-width: 220px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ms-logo h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.ms-logo h1 a {
  color: var(--color-header-text);
}

/* Search */
.ms-header-search {
  min-width: 0;
}

.ms-header-search #search,
.ms-header-search .input-group {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.ms-header-search #search:focus-within,
.ms-header-search .input-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .10);
}

.ms-header-search input,
.ms-header-search input.form-control {
  flex: 1;
  min-height: 50px;
  height: 50px;
  padding: 0 17px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--color-text);
  font-size: 15px;
  box-shadow: none !important;
}

.ms-header-search input::placeholder {
  color: var(--color-text-muted);
}

.ms-header-search button,
.ms-header-search .btn {
  height: 42px;
  min-width: 52px;
  margin-right: 4px;
  padding: 0 17px;
  color: #fff !important;
  background: var(--color-cart) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  transition: background .15s ease;
}

.ms-header-search button:hover,
.ms-header-search .btn:hover,
.ms-header-search button:focus,
.ms-header-search .btn:focus {
  background: var(--color-cart-hover) !important;
  outline: none !important;
}

/* Cart */
.ms-header-cart {
  display: flex;
  justify-content: flex-end;
  min-width: 160px;
}

.ms-header-cart #cart > button,
.ms-header-cart #cart button,
.ms-header-cart .btn {
  min-height: 50px;
  padding: 0 17px !important;
  color: var(--color-on-cart) !important;
  background: var(--color-cart) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 165, 233, .18);
  transition: background .15s ease, box-shadow .15s ease;
}

.ms-header-cart #cart > button:hover,
.ms-header-cart #cart button:hover,
.ms-header-cart .btn:hover {
  background: var(--color-cart-hover) !important;
  box-shadow: 0 10px 24px rgba(14, 165, 233, .22);
}

.ms-header-cart #cart .dropdown-menu {
  right: 0;
  left: auto;
  margin-top: 10px;
  min-width: 310px;
  padding: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

/* Menu */
#menu,
.ms-menu,
nav.navbar,
.navbar {
  background: var(--color-menu-bg) !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
}

#menu .nav > li > a,
.navbar .nav > li > a,
.navbar-nav > li > a {
  color: #ffffff !important;
  font-weight: 650;
  font-size: 14px;
  border-radius: 999px;
  margin: 5px 2px;
  padding: 10px 14px;
}

#menu .nav > li > a:hover,
#menu .nav > li.open > a,
#menu .nav > li > a:focus,
.navbar-nav > li > a:hover,
.navbar-nav > li.open > a,
.navbar-nav > li > a:focus {
  background: rgba(255, 255, 255, .14) !important;
  color: #ffffff !important;
  outline: none;
}

#menu .dropdown-menu,
.navbar .dropdown-menu {
  padding: 8px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

#menu .dropdown-menu a,
.navbar .dropdown-menu a {
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--color-text) !important;
  font-size: 14px;
}

#menu .dropdown-menu a:hover,
.navbar .dropdown-menu a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary-hover) !important;
}

/* Responsive */
@media (max-width: 991px) {
  .ms-container {
    width: min(var(--max), calc(100% - 24px));
  }

  .ms-header-inner {
    grid-template-columns: 190px 1fr;
    grid-template-areas:
      "logo cart"
      "search search";
    gap: 12px;
    min-height: auto;
  }

  .ms-logo {
    grid-area: logo;
  }

  .ms-header-search {
    grid-area: search;
  }

  .ms-header-cart {
    grid-area: cart;
    min-width: 0;
  }

  .ms-logo img {
    max-width: 185px;
    max-height: 52px;
  }
}

@media (max-width: 767px) {
  .ms-container {
    width: calc(100% - 20px);
  }

  .ms-toplinks {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ms-toplinks::-webkit-scrollbar {
    display: none;
  }

  .ms-toplink {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .ms-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo cart"
      "search search";
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 11px;
  }

  .ms-logo a {
    min-height: 50px;
    border-radius: 15px;
  }

  .ms-logo img {
    max-width: 155px;
    max-height: 45px;
  }

  .ms-header-search #search,
  .ms-header-search .input-group {
    border-radius: 18px;
  }

  .ms-header-search input,
  .ms-header-search input.form-control {
    min-height: 46px;
    height: 46px;
    font-size: 14px;
  }

  .ms-header-search button,
  .ms-header-search .btn {
    height: 38px;
    min-width: 44px;
    padding: 0 13px;
  }

  .ms-header-cart #cart > button,
  .ms-header-cart #cart button,
  .ms-header-cart .btn {
    min-height: 42px;
    padding: 0 12px !important;
    font-size: 13px;
  }

  .ms-header-cart #cart .dropdown-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    min-width: 0;
    width: auto;
  }

  #menu .navbar-toggle,
  .navbar-toggle {
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 12px;
    background: rgba(255,255,255,.10) !important;
  }

  #menu .navbar-toggle .icon-bar,
  .navbar-toggle .icon-bar {
    background: #ffffff !important;
  }

  #menu .nav > li > a,
  .navbar-nav > li > a {
    margin: 4px 8px;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .ms-toplink span {
    display: none;
  }

  .ms-toplink {
    width: 30px;
    justify-content: center;
    padding: 0;
  }

  .ms-toplink .fa-caret-down {
    display: none;
  }

  .ms-logo img {
    max-width: 140px;
  }

  .ms-header-cart #cart-total {
    font-size: 0;
  }

  .ms-header-cart #cart-total:before {
    content: "\f07a";
    font-family: FontAwesome;
    font-size: 15px;
  }
}

  
















/* CATVIndia Footer Lite - Smooth, fast, theme-option based */

.ms-footer {
  margin-top: 48px;
  color: var(--color-footer-text);
  background: var(--color-footer-bg);
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.ms-footer-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  padding-top: 38px;
  padding-bottom: 32px;
}

.ms-footer-col {
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.ms-footer-logo {
  width: fit-content;
  max-width: 100%;
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  padding: 7px 11px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .20);
  text-decoration: none;
}

.ms-footer-logo img {
  display: block;
  max-width: 220px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ms-footer p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.65;
}

.ms-footer h5 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.ms-footer h5:after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--color-footer-accent);
}

/* Contact form */
.ms-footer-form {
  display: grid;
  gap: 10px;
}

.ms-footer-form input[type="text"],
.ms-footer-form input[type="email"],
.ms-footer-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
  outline: none;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}

.ms-footer-form textarea {
  min-height: 82px;
  resize: vertical;
}

.ms-footer-form input:focus,
.ms-footer-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.ms-footer-form input::placeholder,
.ms-footer-form textarea::placeholder,
.ms-newsletter-box input::placeholder {
  color: var(--color-text-muted);
}

.ms-footer-copy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 4px;
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  line-height: 1.45;
}

.ms-footer-copy input {
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.ms-footer-form button {
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--color-primary);
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease;
}

.ms-footer-form button:hover,
.ms-footer-form button:focus {
  background: var(--color-primary-hover);
  outline: none;
}

/* Newsletter */
.ms-newsletter-box {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  margin-top: 12px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
}

.ms-newsletter-box:focus-within {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.ms-newsletter-box input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.ms-newsletter-box button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--color-cart);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s ease;
}

.ms-newsletter-box button:hover,
.ms-newsletter-box button:focus {
  background: var(--color-cart-hover);
  outline: none;
}

.ms-newsletter-box button:disabled {
  opacity: .65;
  cursor: wait;
}

.ms-newsletter-msg {
  min-height: 18px;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.ms-newsletter-msg.ms-text-success {
  color: #bbf7d0;
}

.ms-newsletter-msg.ms-text-error {
  color: #fecaca;
}

/* Social */
.ms-footer-social-wrap {
  margin-top: 20px;
}

.ms-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ms-footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-footer-bg);
  background: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.ms-footer-social a:hover,
.ms-footer-social a:focus {
  color: #ffffff;
  background: var(--color-primary);
  outline: none;
}

/* Bottom */
.ms-footer-bottom {
  padding: 17px 0 20px;
  background: rgba(15, 23, 42, .16);
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.ms-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.ms-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
}

.ms-footer-links a:hover,
.ms-footer-links a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.ms-footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ms-footer-legal {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.6;
}

.ms-footer-legal a {
  color: var(--color-footer-accent);
  text-decoration: none;
}

.ms-payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.ms-payment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  color: var(--color-text);
  background: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

/* Back to top */
.ms-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--color-primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .15);
  cursor: pointer;
}

.ms-back-to-top:hover,
.ms-back-to-top:focus {
  background: var(--color-primary-hover);
  outline: none;
}

.ms-back-to-top.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Floating cart notification */
.ms-floating-cart {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 1000;
  width: min(350px, calc(100vw - 28px));
  padding: 15px;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
}

.ms-floating-cart.hidden {
  display: none;
}

.ms-floating-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ms-floating-cart-head h4 {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 800;
}

#floating-cart-close {
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  border: 0;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

#floating-cart-close:hover,
#floating-cart-close:focus {
  color: #ffffff;
  background: var(--color-primary);
  outline: none;
}

.ms-floating-cart-message {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.ms-floating-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.ms-floating-cart-btn {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.ms-floating-cart-primary {
  color: #ffffff;
  background: var(--color-primary);
}

.ms-floating-cart-primary:hover,
.ms-floating-cart-primary:focus {
  color: #ffffff;
  background: var(--color-primary-hover);
  outline: none;
}

/* Responsive */
@media (max-width: 991px) {
  .ms-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 30px;
  }

  .ms-footer-about {
    grid-column: 1 / -1;
  }

  .ms-footer-col {
    border-radius: 22px;
    padding: 19px;
  }

  .ms-footer-legal-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-payment-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .ms-footer {
    margin-top: 32px;
  }

  .ms-footer-main {
    grid-template-columns: 1fr;
    gap: 13px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .ms-footer-col {
    padding: 17px;
    border-radius: 20px;
  }

  .ms-footer-logo {
    min-height: 56px;
  }

  .ms-footer-logo img {
    max-width: 175px;
    max-height: 48px;
  }

  .ms-footer-links {
    gap: 7px;
  }

  .ms-footer-links a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .ms-back-to-top {
    right: 12px;
    bottom: 16px;
    width: 43px;
    height: 43px;
  }

  .ms-floating-cart {
    right: 10px;
    bottom: 68px;
    width: calc(100vw - 20px);
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .ms-footer-form button {
    width: 100%;
  }

  .ms-newsletter-box {
    border-radius: 18px;
  }

  .ms-payment-badge {
    font-size: 11.5px;
  }
}


