:root {
  --primary-red: #E53935;
  --primary-hover: #C62828;
  --dark-black: #1A1A1A;
  --heading-color: #222222;
  --body-text: #666666;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --border: #E8E8E8;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 600;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--primary-red); }

img { max-width: 100%; height: auto; }

/* Top Bar */
.top-bar {
  background: var(--dark-black);
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--primary-red); }

/* Header */
.main-header {
  background: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.site-logo img {
  height: 100px;
  max-height: 100px;
  width: auto;
  object-fit: contain;
}
.footer-logo {
  height: 45px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.footer-bottom-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.85;
}
.header-search {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.header-search select {
  border: none;
  border-right: 1px solid var(--border);
  padding: 10px 15px;
  background: var(--light-bg);
  font-size: 14px;
  max-width: 160px;
}
.header-search input {
  border: none;
  padding: 10px 15px;
  flex: 1;
  outline: none;
}
.header-search button {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.header-search button:hover { background: var(--primary-hover); }
.header-icons { display: flex; gap: 25px; align-items: center; }
.header-icon {
  position: relative;
  text-align: center;
  color: var(--heading-color);
}
.header-icon i { font-size: 22px; }
.header-icon span.label { display: block; font-size: 11px; margin-top: 2px; }
.header-icon .badge-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background: var(--primary-red);
  color: var(--white);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Nav Bar */
.main-nav {
  background: var(--primary-red);
}
.main-nav .navbar-nav .nav-link {
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 14px 22px !important;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
  background: rgba(0,0,0,0.15);
}
.main-nav .navbar-toggler { border-color: rgba(255,255,255,0.5); }
.main-nav .navbar-toggler-icon { filter: invert(1); }

/* Hero Section */
.hero-section { padding: 30px 0; background: var(--light-bg); }
.category-sidebar {
  background: var(--white);
  border: 2px solid var(--primary-red);
  border-radius: 4px;
  overflow: hidden;
}
.category-sidebar .cat-header {
  background: var(--primary-red);
  color: var(--white);
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}
.category-sidebar ul { list-style: none; padding: 0; margin: 0; }
.category-sidebar ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--heading-color);
  font-size: 14px;
}
.category-sidebar ul li a:hover {
  background: var(--light-bg);
  color: var(--primary-red);
}
.category-sidebar ul li a i { color: var(--primary-red); margin-right: 10px; }

.hero-slider { position: relative; border-radius: 4px; overflow: hidden; height: 100%; min-height: 400px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 40px;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide .slide-content { max-width: 400px; }
.hero-slide .slide-tag {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-slide h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}
.hero-slide .slide-price {
  font-size: 24px;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-slide .slide-price span { font-size: 16px; color: var(--body-text); font-weight: 400; }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.slider-dots button.active { background: var(--primary-red); border-color: var(--primary-red); }

/* Buttons */
.btn-red {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.3s;
  text-transform: uppercase;
}
.btn-red:hover { background: var(--primary-hover); color: var(--white); }
.btn-outline-red {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s;
}
.btn-outline-red:hover { background: var(--primary-red); color: var(--white); }

/* Service Icons Row */
.service-icons { padding: 40px 0; background: var(--white); }
.service-icon-item {
  text-align: center;
  padding: 15px;
}
.service-icon-item i {
  font-size: 36px;
  color: var(--primary-red);
  margin-bottom: 12px;
}
.service-icon-item h5 {
  font-size: 15px;
  margin-bottom: 5px;
}
.service-icon-item p { font-size: 13px; margin: 0; }

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 35px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-red);
}

/* Promo Banners */
.promo-banners { padding: 20px 0 40px; }
.promo-banner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 30px;
}
.promo-banner .promo-content h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.promo-banner .promo-content p { color: rgba(255,255,255,0.9); margin-bottom: 15px; }

/* Product Cards */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  margin-bottom: 25px;
  height: 100%;
}
.product-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.product-card .product-img {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  padding: 15px;
  text-align: center;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .product-img img {
  max-height: 190px;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-red);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
}
.product-card .product-info { padding: 15px; }
.product-card .product-rating { color: #FFC107; font-size: 13px; margin-bottom: 8px; }
.product-card .product-rating span { color: var(--body-text); margin-left: 5px; font-size: 12px; }
.product-card .product-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 42px;
}
.product-card .product-name a { color: var(--heading-color); }
.product-card .product-name a:hover { color: var(--primary-red); }
.product-card .product-price { margin-bottom: 12px; }
.product-card .product-price .current {
  color: var(--primary-red);
  font-size: 18px;
  font-weight: 700;
}
.product-card .product-price .original {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 8px;
}
.product-card .add-cart-btn {
  width: 100%;
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s;
  text-transform: uppercase;
}
.product-card .add-cart-btn:hover { background: var(--primary-hover); }

/* Deal of the Day */
.deal-section {
  padding: 50px 0;
  background: var(--light-bg);
}
.deal-product {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}
.deal-product .deal-img {
  flex: 0 0 45%;
  padding: 30px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.deal-product .deal-img img { max-height: 300px; object-fit: contain; }
.deal-product .deal-info { flex: 1; padding: 30px; min-width: 280px; }
.deal-product .deal-info h3 { font-size: 24px; margin-bottom: 10px; }
.countdown {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}
.countdown .time-box {
  background: var(--dark-black);
  color: var(--white);
  text-align: center;
  padding: 10px 15px;
  border-radius: 4px;
  min-width: 65px;
}
.countdown .time-box .num { font-size: 22px; font-weight: 700; display: block; }
.countdown .time-box .label { font-size: 11px; text-transform: uppercase; }
.stock-progress { margin: 15px 0; }
.stock-progress .progress { height: 8px; border-radius: 4px; }
.stock-progress .progress-bar { background: var(--primary-red); }
.stock-progress p { font-size: 13px; margin-top: 5px; }
.favorite-list { background: var(--white); border-radius: 4px; padding: 20px; }
.favorite-list h4 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
}
.favorite-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.favorite-item img { width: 60px; height: 60px; object-fit: contain; }
.favorite-item .fav-info h6 { font-size: 13px; margin: 0; }
.favorite-item .fav-info .price { color: var(--primary-red); font-weight: 600; font-size: 14px; }

/* Three Column Lists */
.three-col-products { padding: 50px 0; }
.col-product-list h4 {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
}
.list-product-item {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.list-product-item img { width: 70px; height: 70px; object-fit: contain; }
.list-product-item .list-info h6 { font-size: 14px; margin-bottom: 5px; }
.list-product-item .list-info .price .current { color: var(--primary-red); font-weight: 600; }
.list-product-item .list-info .price .original { text-decoration: line-through; color: #999; font-size: 13px; margin-left: 5px; }

/* Newsletter */
.newsletter-section {
  background: var(--dark-black);
  padding: 40px 0;
}
.newsletter-section h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 8px;
}
.newsletter-section h3 span { color: var(--primary-red); }
.newsletter-section p { color: #aaa; margin-bottom: 0; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.newsletter-form button {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 14px 30px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  text-transform: uppercase;
}
.newsletter-form button:hover { background: var(--primary-hover); }

/* Footer */
.footer-services {
  background: var(--white);
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.footer-service-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer-service-item i { font-size: 30px; color: var(--primary-red); }
.footer-service-item h5 { font-size: 14px; margin: 0; }
.footer-service-item p { font-size: 12px; margin: 0; color: var(--body-text); }

.main-footer {
  background: var(--dark-black);
  color: #aaa;
  padding: 50px 0 30px;
}
.main-footer h5 {
  color: var(--white);
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.main-footer ul { list-style: none; padding: 0; }
.main-footer ul li { margin-bottom: 10px; }
.main-footer ul li a { color: #aaa; font-size: 14px; }
.main-footer ul li a:hover { color: var(--primary-red); }
.footer-about p { font-size: 14px; line-height: 1.8; }
.social-icons { display: flex; gap: 10px; margin-top: 15px; }
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
}
.social-icons a:hover { background: var(--primary-red); color: var(--white); }

.footer-bottom {
  background: #111;
  padding: 15px 0;
  color: #888;
  font-size: 13px;
}
.footer-bottom img { max-height: 30px; opacity: 0.7; }
.payment-icons { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.payment-icons span {
  background: var(--white);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--heading-color);
  border: 1px solid #FFFFFF;
}

/* Page Banner */
.page-banner {
  background: var(--light-bg);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { font-size: 32px; margin-bottom: 10px; }
.breadcrumb-nav { font-size: 14px; }
.breadcrumb-nav a { color: var(--primary-red); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--heading-color);
  font-size: 14px;
}
.form-control-custom {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.form-control-custom:focus { border-color: var(--primary-red); }
.form-control-custom.is-invalid { border-color: #dc3545; }
.invalid-feedback {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.form-control-custom.is-invalid + .invalid-feedback { display: block; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  background: var(--light-bg);
  padding: 15px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
}
.cart-table td { padding: 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 15px; }
.cart-product img { width: 80px; height: 80px; object-fit: contain; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: fit-content;
}
.qty-control button {
  background: var(--light-bg);
  border: none;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 16px;
}
.qty-control input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 5px;
}
.cart-summary {
  background: var(--light-bg);
  padding: 25px;
  border-radius: 4px;
}
.cart-summary h4 { margin-bottom: 20px; }
.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.cart-summary .summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 10px;
  padding-top: 15px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-red);
}
.remove-btn {
  background: none;
  border: none;
  color: var(--primary-red);
  cursor: pointer;
  font-size: 18px;
}

/* Product Detail */
.product-detail-img {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 4px;
  text-align: center;
  position: relative;
}
.product-detail-img img { max-height: 400px; object-fit: contain; }
.product-detail-info h1 { font-size: 28px; margin-bottom: 10px; }
.product-detail-info .detail-rating { color: #FFC107; margin-bottom: 15px; }
.product-detail-info .detail-price { margin-bottom: 20px; }
.product-detail-info .detail-price .current { font-size: 28px; color: var(--primary-red); font-weight: 700; }
.product-detail-info .detail-price .original { font-size: 18px; color: #999; text-decoration: line-through; margin-left: 10px; }
.specs-table { width: 100%; margin-top: 30px; }
.specs-table th, .specs-table td { padding: 10px 15px; border: 1px solid var(--border); font-size: 14px; }
.specs-table th { background: var(--light-bg); width: 35%; }

/* FAQ Accordion */
.faq-item { margin-bottom: 10px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.faq-question {
  background: var(--light-bg);
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--heading-color);
}
.faq-question.active { background: var(--primary-red); color: var(--white); }
.faq-answer { padding: 15px 20px; display: none; font-size: 14px; }
.faq-answer.show { display: block; }

/* Content Pages */
.content-section { padding: 50px 0; }
.content-section h2 { font-size: 22px; margin-top: 30px; margin-bottom: 15px; }
.content-section h3 { font-size: 18px; margin-top: 25px; margin-bottom: 10px; }
.content-section p { margin-bottom: 15px; }
.content-section ul { margin-bottom: 15px; padding-left: 20px; }
.content-section ul li { margin-bottom: 8px; }

/* Success/Alert Messages */
.alert-success-custom {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}
.alert-success-custom i { font-size: 40px; margin-bottom: 10px; display: block; }
.toast-msg {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-red);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 4px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s;
}
.toast-msg.show { opacity: 1; transform: translateY(0); }

/* Filter Tabs */
.filter-tabs { margin-bottom: 30px; text-align: center; }
.filter-tabs button {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.3s;
}
.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart i { font-size: 60px; color: var(--border); margin-bottom: 20px; }
