/* ===================================================
   MCC Store - Main Stylesheet
   Mittal Commerce Classes - store.mccjpr.com
   =================================================== */

/* ---------- Root Variables ---------- */
:root {
  --primary: #ce0615;
  --primary-dark: #a5050f;
  --secondary: #1a237e;
  --success: #28a745;
  --green: #00a651;
  --yellow: #f9a825;
  --dark: #1e1e2f;
  --light: #f8f9fa;
  --gray: #6c757d;
  --body-bg: #ffffff;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
  --font-family: 'Public Sans', sans-serif;
}

/* ---------- Global Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.heading::after {
  content: '';
  width: 60px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
}

.suheading {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 30px;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--dark);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .top-bar-itams {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .contact-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar .admissions-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar .admissions-bar .icons {
  color: var(--primary);
  margin-right: 4px;
}

.top-bar .admissions-bar b {
  color: #fff;
}

.top-bar .login-bar a {
  color: #fff;
  font-weight: 500;
}

.top-bar .login-bar a:hover {
  color: var(--yellow);
}

.top-bar .login-bar .icons {
  margin-right: 5px;
}

/* ---------- Middle Bar (Logo + CTA Buttons) ---------- */
.middle-bar {
  background: #fff;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.middle-bar .middle-bar-itams {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.middle-bar .logo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.middle-bar .logo-bar .logo {
  max-height: 60px;
}

.middle-bar .logo-bar .badge-logo {
  max-height: 50px;
}

.middle-bar .middle-button {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.middle-bar .middle-button li {
  border-radius: 4px;
  overflow: hidden;
}

.middle-bar .middle-button li a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.middle-bar .middle-button li.bg-red {
  background: var(--primary);
}

.middle-bar .middle-button li.bg-green {
  background: var(--green);
}

.middle-bar .middle-button li.bg-yellow {
  background: var(--yellow);
}

.middle-bar .middle-button li.bg-yellow a {
  color: #333;
}

/* Blinking text animation */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.blink-text-1,
.blink-text-2,
.blink-text-3,
.blink-text-4 {
  animation: blink 2s ease-in-out infinite;
}

/* ---------- Main Navigation ---------- */
#header {
  background: var(--secondary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#navbar ul {
  display: flex;
  align-items: center;
  gap: 0;
}

#navbar ul li {
  position: relative;
}

#navbar ul li .nav-link {
  color: #fff;
  padding: 14px 18px;
  display: block;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#navbar ul li .nav-link:hover,
#navbar ul li .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

/* Dropdown submenu */
#navbar ul li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
}

#navbar ul li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#navbar ul li .sub-menu a {
  color: var(--text-color);
  padding: 10px 18px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

#navbar ul li .sub-menu a:hover {
  background: var(--light);
  color: var(--primary);
}

.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.appointment-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
}

.appointment-btn:hover {
  background: var(--primary-dark);
}

.search-icon {
  color: #fff;
  font-size: 18px;
}

.search-icon:hover {
  color: var(--yellow);
}

/* ---------- Hero Slider ---------- */
.main-slider {
  background: #f5f5f5;
  overflow: hidden;
}

.main-slider .testimonial-item {
  box-shadow: none;
  border-radius: 0;
}

.main-slider .testimonial-item img {
  max-height: none;
  object-fit: contain;
}

.main-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.main-slider .swiper-pagination-bullet {
  background: var(--primary);
  width: 10px;
  height: 10px;
}

.main-slider .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* ---------- Featured Bar ---------- */
.featured-bar {
  background: var(--secondary);
  padding: 18px 0;
}

.featured-bar.mobile {
  display: none;
}

.featured-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex: 1;
  text-align: center;
  justify-content: center;
}

.featured-card i {
  font-size: 24px;
  color: var(--yellow);
}

.featured-card .title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.featured-card .title span {
  font-weight: 400;
  font-size: 12px;
}

/* ---------- Course / Product Sections ---------- */
.ca-online-coaching {
  padding: 50px 0;
  background: var(--light);
}

.ca-online-coaching.bg-white {
  background: #fff;
}

.ca-online-boxs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.box .box-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.box .box-image {
  overflow: hidden;
  position: relative;
}

.box .box-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.box:hover .box-image img {
  transform: scale(1.05);
}

.box .box_header {
  padding: 15px;
}

.box .box_header h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.box .box_header h2 a {
  color: var(--text-color);
}

.box .box_header h2 a:hover {
  color: var(--primary);
}

.box .box_header .badge {
  font-size: 11px;
  padding: 3px 8px;
  margin-right: 5px;
  border-radius: 3px;
}

.box .small {
  padding: 0 15px 10px;
  font-size: 13px;
  color: var(--gray);
}

.box .small div {
  margin-bottom: 4px;
}

.box .small i {
  margin-right: 6px;
  color: var(--primary);
  width: 16px;
}

/* Video box (for books/horizontal cards) */
.box .video-box {
  overflow: hidden;
}

.box .video-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.box:hover .video-box img {
  transform: scale(1.05);
}

.box .course-content {
  padding: 15px;
}

.box .course-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.box .course-content h2 a {
  color: var(--text-color);
}

.box .course-content h2 a:hover {
  color: var(--primary);
}

.box .course-content p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
}

/* ---------- Pricing ---------- */
.discounted-price {
  padding: 12px 15px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.discounted-price h5 {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-box .price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-box .right-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.price-box .close-price {
  font-size: 14px;
  color: #999;
}

.price-box .off {
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.price-box .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 20px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.price-box .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.mt-5 {
  margin-top: 5px !important;
}

.loadmore {
  display: block;
  margin: 30px auto 0;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 40px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.loadmore:hover {
  background: var(--primary-dark);
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  padding: 60px 0;
  background: var(--light);
}

.testimonials .testimonials-slider {
  margin-top: 30px;
}

.testimonial-wrap {
  padding: 15px;
}

.testimonial-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.testimonial-item img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

.testimonial-content {
  padding: 25px;
}

.testimonial-content img {
  width: 40px;
  margin-bottom: 15px;
}

.testimonial-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.testimonial-content h4 {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.testimonials .swiper-pagination-bullet {
  background: var(--primary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #ccc;
  padding-top: 40px;
}

.footer-content {
  display: flex;
  gap: 30px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.footer-content .menu-ft,
.footer-content .menu-fts {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  flex: 1;
}

.footer-content .menu-ft li,
.footer-content .menu-fts li {
  min-width: 160px;
}

.footer .head-menu {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer .sub-menu {
  margin-top: 8px;
}

.footer .sub-menu li {
  margin-bottom: 6px;
}

.footer .sub-menu li a {
  color: #aaa;
  font-size: 13px;
  transition: var(--transition);
}

.footer .sub-menu li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer .sub-head-menu {
  color: #ddd;
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

.footer .level-submenu {
  margin-left: 10px;
  margin-bottom: 10px;
}

.footer .level-submenu li a {
  font-size: 12px;
}

.footer-app-link {
  padding: 20px 0;
  text-align: center;
}

.footer-app-link h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-app-link a {
  display: inline-block;
  margin: 0 8px;
}

.footer-app-link img {
  height: 45px;
  border-radius: 6px;
}

.copyright {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 0;
}

.copyright-manu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright h6 {
  color: #aaa;
  font-size: 13px;
  font-weight: 400;
}

.copyright .all-manu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.copyright .all-manu h5 {
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.copyright .all-manu a {
  color: #aaa;
  font-size: 18px;
  transition: var(--transition);
}

.copyright .all-manu a:hover {
  color: #fff;
}

/* ---------- Login / Auth Popups ---------- */
.login-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 35px 30px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-content .close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding: 0;
  line-height: 1;
}

.popup-content .close:hover {
  color: var(--primary);
}

.popup-content .logo {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

.popup-content .logo img {
  max-height: 50px;
}

.popup-content h5 {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-color);
}

.popup-content h5 span {
  color: var(--primary);
}

.single-input {
  margin-bottom: 15px;
  position: relative;
}

.single-input input[type="text"],
.single-input input[type="email"],
.single-input input[type="tel"],
.single-input input[type="mobile"],
.single-input input[type="password"],
.single-input input[type="number"],
.single-input textarea,
.single-input select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-family);
  transition: var(--transition);
  outline: none;
}

.single-input input:focus,
.single-input textarea:focus,
.single-input select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 6, 21, 0.1);
}

.single-input .toggle-password {
  position: absolute;
  right: 12px;
  bottom: 12px;
  cursor: pointer;
  color: var(--gray);
  z-index: 2;
}

.single-input .btn-sqr {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.single-input .btn-sqr:hover {
  background: var(--primary-dark);
}

.login-reg-form-meta {
  font-size: 13px;
}

.click-login {
  color: var(--primary);
  font-weight: 600;
  margin-left: 5px;
}

.login-reg-form-meta .remember-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-reg-form-meta .forget-pwd {
  color: var(--primary);
  font-weight: 500;
}

/* ---------- Product Detail Page ---------- */
.product-detail-section {
  padding: 40px 0;
}

.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-gallery img {
  width: 100%;
}

.product-info {
  padding-left: 30px;
}

.product-info h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
}

.product-info .product-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-info .product-price del {
  font-size: 18px;
  color: #999;
  margin-left: 10px;
}

.product-info .product-price .discount-badge {
  background: var(--success);
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 10px;
}

/* ---------- Cart Page ---------- */
.cart-section {
  padding: 40px 0;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: var(--secondary);
  color: #fff;
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
}

.cart-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-table .cart-product-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Checkout Page ---------- */
.checkout-section {
  padding: 40px 0;
}

.checkout-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 20px;
}

.checkout-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

/* ---------- Account Pages ---------- */
.account-section {
  padding: 40px 0;
}

.account-sidebar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-sidebar .sidebar-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: var(--transition);
}

.account-sidebar .sidebar-menu li a:hover,
.account-sidebar .sidebar-menu li a.active {
  background: var(--primary);
  color: #fff;
}

.account-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

/* ---------- Auth Pages (Login/Register) ---------- */
.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--secondary), var(--dark));
}

.auth-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 35px;
  width: 100%;
  max-width: 440px;
}

.auth-box .logo {
  text-align: center;
  margin-bottom: 25px;
}

.auth-box .logo img {
  max-height: 55px;
}

.auth-box h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.auth-box p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 25px;
}

/* ---------- Information / Static Pages ---------- */
.page-section {
  padding: 50px 0;
}

.page-section h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.page-content {
  line-height: 1.8;
  color: #555;
}

.page-content p {
  margin-bottom: 15px;
}

/* ---------- Category Page ---------- */
.category-section {
  padding: 40px 0;
}

.category-section .category-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 25px;
}

/* ---------- Alerts / Toastr Override ---------- */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 15px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.text-danger {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-section {
  background: var(--light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .active {
  color: var(--text-color);
  font-weight: 500;
}

/* ---------- Misc Utilities ---------- */
.bg-white {
  background: #fff !important;
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Variation selector styles */
.variation-options {
  margin: 15px 0;
}

.variation-options label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.variation-options select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
}

/* WhatsApp icon in cards */
.box_header .fa-whatsapp {
  color: #25d366;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Payment Success ---------- */
.payment-success {
  text-align: center;
  padding: 60px 0;
}

.payment-success i {
  font-size: 80px;
  color: var(--success);
  margin-bottom: 20px;
}

.payment-success h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.payment-success p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 25px;
}

/* ---------- Error Pages ---------- */
.error-page {
  text-align: center;
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-size: 120px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.error-page h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.error-page p {
  color: var(--gray);
  margin-bottom: 25px;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Six section menu (footer layout) */
.six-section-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.six-section-menu .menu-ft {
  flex: 2;
}

.six-section-menu .menu-fts {
  flex: 2;
}

/* ---------- Section Padding Utility ---------- */
.section-padding {
  padding: 40px 0;
}

/* ---------- Breadcrumb Area ---------- */
.breadcrumb-area {
  background: var(--light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-wrap .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  background: transparent;
}

.breadcrumb-wrap .breadcrumb-item a {
  color: var(--gray);
}

.breadcrumb-wrap .breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-wrap .breadcrumb-item.active {
  color: var(--text-color);
  font-weight: 500;
}

.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: #bbb;
  padding: 0 6px;
}

/* ---------- Login / Register Page ---------- */
.login-register-wrapper {
  min-height: 80vh;
}

.gird-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 70vh;
}

.login-left-slider {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.login-left-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-right-column {
  max-width: 440px;
  margin: 0 auto;
  padding: 30px;
}

.login-right-column .logo {
  display: block;
  margin-bottom: 20px;
}

.login-right-column h5 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-color);
}

.login-right-column h5 span {
  color: var(--primary);
}

/* ---------- Cart Page ---------- */
.cart-main-wrapper .section-bg-color {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
}

.pro-thumbnail {
  margin-bottom: 12px;
}

.pro-thumbnail img {
  width: 100%;
  max-width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.pro-title {
  margin-bottom: 8px;
}

.pro-title a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.pro-title a:hover {
  color: var(--primary);
}

.pro-title small {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

.pro-price span {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.pro-quantity {
  font-size: 14px;
  color: var(--text-color);
}

.pro-subtotal span {
  font-weight: 700;
  font-size: 16px;
}

.pro-remove a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.pro-remove a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.cart-calculator-wrapper {
  background: var(--light);
  border-radius: var(--radius);
  padding: 25px;
  border: 1px solid var(--border-color);
}

.cart-calculator-wrapper h6 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
}

.cart-calculate-items .table {
  width: 100%;
  margin-bottom: 15px;
}

.cart-calculate-items .table td {
  padding: 10px 5px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
}

.cart-calculate-items .table tr.total td {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  border-top: 2px solid var(--primary);
}

.cart-calculate-items .total-amount {
  font-weight: 700;
}

.btn-sqr {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: inline-block;
}

.btn-sqr:hover {
  background: var(--primary-dark);
  color: #fff;
}

.cart-update-option {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* ---------- Product Detail Page ---------- */
.top-product-details {
  background: var(--light);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.top-product-details .product-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.top-product-details .price-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-product-details .price-regular,
.price-regular {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.top-product-details .price-old,
.price-old {
  font-size: 16px;
  color: #999;
}

.product-details {
  padding: 30px 0 50px;
}

.product-details-inner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-large-slider {
  padding: 0;
}

.product-large-slider .pro-large-img {
  text-align: center;
  background: #fafafa;
  padding: 15px;
}

.product-large-slider .pro-large-img img {
  max-height: 300px;
  object-fit: contain;
}

.product-details-des {
  padding: 20px;
}

.product-details-des .product-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-details-des .price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.product-details-des label {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 4px;
}

.product-details-des label strong {
  color: var(--secondary);
}

.quantity-cart-box {
  margin-top: 15px;
}

.btn-cart2 {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cart2:hover {
  background: var(--primary-dark);
  color: #fff;
}

.product-details-reviews {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
}

.faq-container {
  margin-bottom: 20px;
}

.faq-container h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.faq-container hr {
  border: none;
  border-top: 2px solid var(--primary);
  margin-bottom: 15px;
}

.faq-container p {
  line-height: 1.8;
  color: #555;
}

.faq-container img {
  border-radius: var(--radius);
  margin-bottom: 15px;
}

/* Variation selectors on product page */
.product-details-des .form-select,
.product-details-des select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 10px;
}

.var_offer_price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.var_mrp {
  color: #999;
  font-size: 15px;
}

/* ---------- Checkout Page ---------- */
.checkout-page-wrapper .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.checkout-page-wrapper .accordion-button {
  font-size: 15px;
  font-weight: 500;
  gap: 5px;
}

.checkout-page-wrapper .accordion-button .click-login {
  color: var(--primary);
  font-weight: 600;
  margin-left: 5px;
}

.checkout-page-wrapper .checkout-billing-details-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
}

.checkout-page-wrapper .checkout-box-wrap {
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.discounted-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.discounted-label {
  font-weight: 600;
  color: var(--text-color);
}

.discounted-value {
  color: var(--success);
  font-weight: 600;
}

/* ---------- Thank You Page ---------- */
.checkout-page-thankyou {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 50px 30px;
}

.check-icon {
  margin-bottom: 20px;
}

.check-icon i {
  font-size: 80px;
  color: var(--success);
}

.checkout-page-thankyou h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.checkout-page-thankyou h5 {
  font-size: 16px;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 25px;
}

.payment-detail {
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.payment-detail p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.payment-detail p:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.google-img {
  max-height: 50px;
  margin-top: 10px;
}

/* ---------- Account Pages ---------- */
.my-account-wrapper .myaccount-tab-menu {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.myaccount-tab-menu a {
  display: block;
  padding: 13px 20px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}

.myaccount-tab-menu a:last-child {
  border-bottom: none;
}

.myaccount-tab-menu a i {
  width: 20px;
  margin-right: 8px;
  color: var(--gray);
}

.myaccount-tab-menu a:hover,
.myaccount-tab-menu a.active {
  background: var(--primary);
  color: #fff;
}

.myaccount-tab-menu a:hover i,
.myaccount-tab-menu a.active i {
  color: #fff;
}

.myaccount-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
}

.myaccount-content h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.myaccount-content .welcome {
  margin-bottom: 15px;
}

.myaccount-content .welcome .logout {
  color: var(--primary);
  font-weight: 600;
}

/* Account order table */
.myaccount-content .table {
  width: 100%;
  border-collapse: collapse;
}

.myaccount-content .table th {
  background: var(--secondary);
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.myaccount-content .table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  vertical-align: middle;
}

.myaccount-content .table tr:hover {
  background: #fafafa;
}

/* ---------- About Us Page ---------- */
.banner-about-block {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  padding: 50px 0 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.banner-about-block .banner-text h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.banner-about-block .banner-text .color-h {
  color: var(--yellow);
}

.banner-about-block img {
  max-width: 100%;
  margin-top: 20px;
}

.about-banner {
  padding: 40px 0;
}

.our-mission {
  text-align: center;
  margin-bottom: 30px;
}

.our-mission .Mission {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.our-mission .Description {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
}

.teacher-education .te-team-block ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.teacher-education .te-team-block ul li {
  text-align: center;
}

.teacher-education .te-team-block ul li img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 8px;
}

.teacher-education .te-team-block ul li h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
}

/* ---------- Contact Us / Static Pages ---------- */
.allpages {
  padding: 40px 0;
}

.contact-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-family);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(206, 6, 21, 0.1);
}

/* ---------- 404 Error Page ---------- */
.misc-wrapper {
  text-align: center;
  padding: 40px 20px;
}

.misc-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.misc-wrapper p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 25px;
}

.misc-wrapper .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  padding: 10px 30px;
  border-radius: var(--radius);
  font-weight: 600;
}

.misc-wrapper img {
  margin-top: 20px;
}

/* ---------- Product List / Grid ---------- */
.product-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 20px;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.product-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.product-thumb .sec-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-item:hover .product-thumb .sec-img {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-label {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  color: #fff;
  text-transform: uppercase;
}

.product-label.new {
  background: var(--success);
}

.product-label.discount {
  background: var(--primary);
}

.product-thumb .button-group {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-thumb .button-group a {
  display: flex;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.product-thumb .button-group a:hover {
  background: var(--primary);
  color: #fff;
}

.product-thumb .cart-hover {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px;
  transition: var(--transition);
}

.product-item:hover .product-thumb .cart-hover {
  bottom: 0;
}

.btn-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cart:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-cart.disabled {
  background: var(--gray);
  cursor: not-allowed;
}

.product-caption {
  padding: 15px;
}

.product-identity {
  margin-bottom: 5px;
}

.manufacturer-name a {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-caption .product-name {
  margin-bottom: 8px;
}

.product-caption .product-name a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.product-caption .product-name a:hover {
  color: var(--primary);
}

/* ---------- Account Form Inputs ---------- */
.single-input-item {
  margin-bottom: 18px;
  position: relative;
}

.single-input-item .toggle-password {
  position: absolute;
  right: 12px;
  top: 10px;
  cursor: pointer;
  color: var(--gray);
  z-index: 2;
}

.single-input-item label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-color);
}

.single-input-item label.required::after {
  content: ' *';
  color: var(--primary);
}

.single-input-item input,
.single-input-item textarea,
.single-input-item select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-family);
  transition: var(--transition);
  outline: none;
}

.single-input-item input:focus,
.single-input-item textarea:focus,
.single-input-item select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 6, 21, 0.1);
}

.account-details-form .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

/* ---------- Alert Partial Override ---------- */
.container-xxl {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Product Details Page Extras ---------- */
.product-details-des .gap-1 {
  gap: 0.25rem;
}

.product-details-des .mt-2 {
  margin-top: 0.5rem;
}

.product-details-des .my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.product-details-des .mb-1 {
  margin-bottom: 0.25rem;
}

/* ---------- Test Product Detail ---------- */
.test-product-details .price-box {
  margin-bottom: 15px;
}

/* ---------- Variation Radio / Checkboxes ---------- */
.variation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.variation-item:hover,
.variation-item.selected {
  border-color: var(--primary);
  background: rgba(206, 6, 21, 0.03);
}

.variation-item input[type="radio"] {
  accent-color: var(--primary);
}
