/* 
  Singh Bandhu Cellular Services - Mobile First UI
  Theme: Light Mode (BigC Style Reference)
*/

:root {
  /* Tech Theme Palette */
  --primary-blue: #0B2039;
  /* Deep Navy */
  --accent-blue: #3B82F6;
  /* Vibrant Electric Blue */
  --brand-gradient: linear-gradient(135deg, #0B2039 0%, #3B82F6 100%);

  --bg-main: #f4f6f8;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;

  --sale-red: #ef4444;
  --sale-accent: #f59e0b;
  /* Amber/Gold for accents */

  --radius: 0;
  --radius: 0;
  --shadow-sm: 0 2px 4px rgba(11, 32, 57, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 32, 57, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
li,
td,
th,
label,
input,
button,
textarea,
select {
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600 !important;
}

button,
.btn,
.btn-primary,
.btn-outline,
.btn-sm,
.add-to-cart,
input[type="submit"] {
  border-radius: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  /* Between 14 and 24px base */
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  padding: 0 10px;
  margin: 0 auto;
}

@media(min-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 15px;
  padding: 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.section-title h1 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-main);
  background-color: transparent;
  padding: 5px 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
}


.view-all {
  font-size: 0.8rem;
  color: #3B82F6;
  font-weight: 600;
  transition: 0.2s;
}

.view-all:hover {
  color: #0B2039;
}

/* Header Styles */
.main-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

.logo-wrapper a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-wrapper img {
  height: 60px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-search {
  display: none;
}

.header-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-icons form {
  display: none;
  /* Hidden on mobile to save space */
}

@media(max-width: 991px) {
  .header-right {
    display: none !important;
  }
}

@media(min-width: 768px) {
  .header-icons form {
    display: flex;
  }
}

.header-icons a,
.header-icons button {
  color: #000;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.header-icons .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-blue);
  color: white;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 0;
  font-weight: bold;
}

@media(min-width: 992px) {
  .hamburger {
    display: none;
  }

  .header-container {
    position: relative;
  }

  .desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .desktop-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
  }

  .desktop-nav a {
    color: #000;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
  }

  .desktop-nav a:hover {
    color: var(--accent-blue);
  }

  .desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
  }

  .header-search {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0;
    padding: 8px 15px;
    width: 250px;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .header-search i {
    color: rgba(0, 0, 0, 0.5);
    margin-right: 8px;
    font-size: 0.9rem;
  }

  .header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: #000;
  }

  .header-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }

  .header-icons {
    gap: 18px;
  }
}

/* Horizontal Scroll Containers */
.h-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* Firefox */
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -10px;
  margin-right: -10px;
}

.h-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome */
}

/* Product Card - Mobile Style */
.product-card {
  min-width: 160px;
  width: 160px;
  background: var(--bg-card);
  border-radius: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

@media(min-width: 768px) {
  .h-scroll {
    gap: 20px;
  }

  .product-card {
    min-width: 220px;
    width: auto;
    flex: 1 1 0;
    padding: 0;
  }
}

.badge-discount {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--sale-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0;
  z-index: 2;
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-brand,
.product-title,
.product-price-row {
  padding: 0 15px;
}

.product-actions {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 5px 10px 5px;
  flex-wrap: wrap;
}

.btn-add {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s background, transform 0.2s;
}

.product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
  padding: 0 10px;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
  padding: 0 10px;
}

.product-price-row {
  margin-bottom: 10px;
  margin-top: auto;
  padding: 0 10px;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000;
}

.price-old {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: 5px;
}

.btn-add-cart {
  background: white;
  color: #0B2039;
  border: 1px solid #0B2039;
}
.btn-add-cart:hover {
  background: #f4f6f8;
  transform: translateY(-2px);
}

.btn-buy-now {
  background: #0B2039;
  color: white;
  border: 1px solid #0B2039;
}
.btn-buy-now:hover {
  background: #1a365d;
  transform: translateY(-2px);
}

@media(min-width: 768px) {
  .product-actions {
    margin: 0 12px 15px 12px;
    padding: 0;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .btn-add {
    font-size: 0.8rem;
    padding: 10px 4px;
  }
}

/* Banner Images */
.promo-banner {
  width: 100%;
  border-radius: 0;
  margin: 15px 0;
  display: block;
}

.promo-banner img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Brand Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.brand-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 15px 10px;
  text-align: center;
}

.brand-item img {
  max-width: 100%;
  height: auto;
  max-height: 40px;
}

/* Button & Form Control Additions */
.btn-primary {
  background: #0B2039;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #1a365d;
  transform: translateY(-2px);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
  background: #f8fafc;
}

.form-control:focus {
  border-color: var(--accent-blue);
  background: #fff;
}

/* Drawer & Modal Components */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 32, 57, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #ffffff;
  z-index: 1050;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-main);
  color: var(--primary-blue);
}

.drawer-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.cart-item-qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.qty-btn {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  font-weight: bold;
}

.qty-btn:hover {
  background: var(--border-light);
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--sale-red);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: opacity 0.2s;
}

.cart-item-remove:hover {
  opacity: 0.7;
}

.cart-empty-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-empty-message i {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.cart-summary {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* Modal Checkout */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 32, 57, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 0;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--primary-blue);
  color: white;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

/* Header Dropdowns */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  padding: 10px 0;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
}

.has-dropdown:hover .dropdown {
  display: flex;
}

.has-dropdown:hover .dropdown.mega-menu {
  display: grid;
}

.has-dropdown .dropdown li {
  width: 100%;
  display: block;
}

.desktop-nav .has-dropdown .dropdown a {
  padding: 12px 20px;
  display: block;
  color: var(--text-main);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
}

.desktop-nav .has-dropdown .dropdown a::after {
  display: none;
}

.desktop-nav .has-dropdown .dropdown a:hover {
  background: #f4f6f8;
  color: var(--primary-blue);
}

.desktop-nav .has-dropdown .dropdown a i {
  margin-right: 8px;
}


/* Active states and Mega Menu */
.desktop-nav a.active {
  color: var(--primary-blue);
  font-weight: bold;
  padding-bottom: 5px;
}

.mobile-menu-list a.active-mobile {
  background: #eef2f6;
  color: var(--primary-blue) !important;
  border-left: 4px solid var(--primary-blue);
}

/* Footer Accordion Mobile */
@media(max-width: 767px) {
  .footer-col h4 {
    margin-bottom: 10px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-list {
    display: none;
    margin-bottom: 20px;
  }

  .footer-list.active {
    display: block;
  }

  .footer-toggle-icon {
    display: inline-block !important;
    transition: transform 0.3s;
    font-size: 0.9rem;
  }

  .footer-toggle-icon.active {
    transform: rotate(180deg);
  }
}

@media(min-width: 768px) {
  .footer-toggle-icon {
    display: none !important;
  }

  .footer-list {
    display: block !important;
  }
}

/* Product Card Hover Icons */
.product-card .hover-actions {
  position: absolute;
  top: 15px;
  right: -50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right 0.3s ease;
  z-index: 10;
}

.product-card:hover .hover-actions {
  right: 10px;
}

.hover-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.hover-action-btn:hover {
  background: var(--primary-blue);
  color: white;
}

/* Quick View Modal styling extensions */
#quickViewContent {
  display: flex;
  flex-direction: column;
}

@media(min-width: 768px) {
  #quickViewContent {
    flex-direction: row;
    gap: 20px;
  }

  #quickViewContent>div {
    flex: 1;
  }
}

* {
  border-radius: 0;
}

/* Heading Global Rules */
.section-title {
  justify-content: center !important;
  flex-direction: column;
  gap: 10px;
}

.collection-circle {
  border-radius: 50% !important;
}