/* Global CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9f9f9;
  color: #2a2a2a;
  line-height: 1.6;
  font-family: Arial, sans-serif; /* Ensure a fallback font */
}

hr {
  width: 50px;
  border: 2px solid var(--primary-color); /* Use dynamic color */
  margin-bottom: 20px;
}

/* Global Image Auto-Adjustment */
img {
    max-width: 100% !important; /* Force max-width */
    height: auto !important;    /* Force auto height */
    display: block !important;  /* Force block display */
}

/* Specific adjustments for common image types */

/* Product Card Images */
.product-card {
  background: #fff;
  padding: 20px;
  position: relative;
  border-radius: 8px;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 380px; /* Increased min-height to accommodate all content */
  justify-content: space-between;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 300px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 180px !important; /* Increased height for images */
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
}

.product-card a img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 10px !important;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 50px;
  font-weight: bold;
} 

.brand {
  color: #666;
  font-size: 0.85rem;
  margin-top: 5px;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 10px 0;
  flex-grow: 1;
  line-height: 1.3;
  color: #333;
}

.stars {
  font-size: 1.2rem;
  color: orange;
  margin-bottom: 10px;
  white-space: nowrap;
}
.stars .half {
    font-size: 0.8em;
}


.price {
    margin-bottom: 10px;
}
.price del {
  color: #888;
  font-size: 0.9rem;
  margin-right: 5px;
}

.price span {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin-left: 0;
}

.save {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: bold;
    margin-bottom: 15px;
}


.add-to-cart-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
    width: 90%;
    max-width: 200px;
}
.add-to-cart-button:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Product Description Truncation */
.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    min-height: 3.6em;
    line-height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: left;
    width: 100%;
}

.view-more-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
    white-space: nowrap;
}
.view-more-link:hover {
    color: darken(var(--primary-color), 10%);
}


/* Product Listing Page Layout */
.product-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Style for each category section on the product listing page */
.product-category {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.product-category:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.product-category h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    text-align: left;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* The actual grid container for products within a category */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; 
  gap: 25px !important; /* Ensure gap is explicitly set */
  padding: 0 !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;

  /* Centering for fewer items in a row */
  justify-content: center; /* Centers the grid tracks/items within the grid container */
}


/* Featured Products / Most Loved Products Sections (these still use .products as the grid) */
.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important; 
  gap: 30px !important; /* Ensure gap is explicitly set */
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
  box-sizing: border-box;
  justify-content: center;
}

.featured-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}
.featured-section h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.underline {
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 40px;
  border-radius: 3px;
}


/* Responsive Product Grid (for both .products and .product-grid) */
@media (max-width: 992px) {
    .products, .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 20px !important;
    }
    .product-card {
        min-height: 360px;
        max-width: none;
    }
}
@media (max-width: 768px) {
  .products, .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 15px !important;
    padding: 0 !important;
  }
  .product-card h3 {
    font-size: 0.95rem;
  }
  .price span {
    font-size: 0.95rem;
  }
  .product-card {
      min-height: 340px;
      max-width: none;
  }
  .product-card a {
      height: 120px !important;
  }
}
@media (max-width: 480px) {
    .products, .product-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }
    .product-card {
        min-height: 300px;
        max-width: 300px; /* Re-apply max-width for single column to prevent excessive stretch */
        margin: 0 auto; /* Center single column card */
    }
    .product-card a {
        height: 100px !important;
    }
}


/* Antivirus Section */
.Antivirus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px;
  gap: 30px;
  background-color: #fff;
  flex-wrap: wrap;
}
.call-info {
  text-align: center;
  font-size: 14px;
}

.phone-box {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  background: #dfe3e8;
  color: rgb(163, 27, 27);
  padding: 10px 20px;
  border: 4px solid #151515;
  border-radius: 10px;
  font-size: 30px;
  font-weight: bold;
}
.phone-icon {
  font-size: 28px;
  margin-right: 10px;
}


.Antivirus-text {
  flex: 1;
  min-width: 300px;
}

.Antivirus-text .subtitle {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.Antivirus-text h1 {
  font-size: 2.8rem;
  margin: 10px 0;
  line-height: 1.3;
}

.Antivirus-text h1 span {
  font-style: italic;
  color: #000;
}

.description {
  color: #555;
  margin: 20px 0;
  font-size: 1rem;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: darken(var(--primary-color), 10%);
}

.Antivirus-img {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.Antivirus-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsive Antivirus Section */
@media (max-width: 768px) {
  .Antivirus {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .Antivirus-text h1 {
    font-size: 2rem;
  }

  .btn {
    margin-top: 10px;
  }
}

/* Campaign Banner */
.campaign-banner {
    padding: 40px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-content {
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.campaign-text {
    flex: 2;
    min-width: 300px;
    padding: 20px;
    text-align: left;
}

.campaign-text h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.campaign-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.campaign-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.campaign-btn:hover {
    background-color: darken(var(--primary-color), 10%);
}

.campaign-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.campaign-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Campaign Banner */
@media (max-width: 768px) {
    .campaign-content {
        flex-direction: column;
        text-align: center;
    }
    .campaign-text {
        text-align: center;
        padding: 10px;
    }
    .campaign-text h2 {
        font-size: 1.8rem;
    }
    .campaign-text p {
        font-size: 1rem;
    }
    .campaign-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}


/* Disclaimer */
.disclaimer-section {
  background-color: #6caae3;
  padding: 30px 20px;
  color: #000;
  border-radius: 10px;
  margin: 20px;
}

.disclaimer-section h2 {
  background-color: #0056b3;
  color: #fff;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.disclaimer-section p {
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive Disclaimer */
@media (max-width: 768px) {
  .disclaimer-section {
      margin: 10px;
      padding: 20px;
  }
  .disclaimer-section p {
    font-size: 0.9rem;
  }
}


/* Features Section */
.features-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  padding: 30px 20px;
  background: #fff;
  text-align: center;
}

.feature img {
  width: 50px;
  height: 50px;
  filter: hue-rotate(45deg); /* Yellowish tint */
}

.feature p {
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

/* Responsive Features */
@media (max-width: 768px) {
  .features-section {
      gap: 30px;
      padding: 20px;
  }
  .feature {
    flex: 1 1 45%;
    min-width: 120px;
  }
  .feature img {
      width: 40px;
      height: 40px;
  }
  .feature p {
      font-size: 0.9rem;
  }
}


/* Section Styling  The today*/
.shop{
    width: 100%;
    height: inherit;
    background-color: #f6f3f2;
    padding: 40px 20px;
    margin-top: 30px;
}

.deal-section {
  background: #f6f3f2;
  padding: 0;
}

.deal-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.deal-text {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background-color: #fff;
}

.deal-text h3 {
  font-size: 1.4rem;
  color: #4a2c2a;
  margin-bottom: 10px;
}

.deal-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e1e1e;
  margin-bottom: 15px;
}

.deal-text p {
  font-size: 1rem;
  margin-bottom: 25px;
  max-width: 400px;
}

.btn {
  /* Already defined globally */
}

.deal-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  padding: 20px;
  background-color: #eee;
}

.deal-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Today's Deal */
@media (max-width: 768px) {
  .shop {
      padding: 20px;
      margin-top: 20px;
  }
  .deal-content {
    flex-direction: column;
    text-align: center;
  }
  .deal-text {
    text-align: center;
    padding: 20px;
  }
  .deal-text h1 {
    font-size: 2rem;
  }
  .deal-text p {
    font-size: 0.95rem;
  }
  .btn {
    padding: 10px 18px;
  }
}


/* Happy Clients / Testimonials Section */
.our{
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}
.our h1 {
    font-size: 2rem;
    color: #333;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
  background: #f9f9f9;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card p {
  font-size: 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.stars {
  font-size: 20px;
  color: orange;
  margin-bottom: 15px;
}

.user {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.user img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 8px;
  object-fit: cover;
}

/* Responsive Testimonials */
@media (max-width: 768px) {
    .testimonials {
        padding: 30px 10px;
        gap: 15px;
    }
    .card {
        width: calc(50% - 15px);
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .testimonials {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
        max-width: 300px;
    }
}


/* Footer Section */
.footer {
  background-color: #0056b3;
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.footer-section h4 {
  color: #f4f4f4;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 6px 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-section p {
  margin: 6px 0;
}

.newsletter input {
  padding: 8px;
  border: none;
  border-radius: 4px;
  width: 70%;
  margin-right: 5px;
}

.newsletter button {
  padding: 8px 12px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter button:hover {
  background-color: darken(var(--primary-color), 10%);
}

.social-icons {
  margin-top: 15px;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  background-color: #333;
  padding: 6px;
  border-radius: 50%;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #888;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .newsletter input {
    width: 100%;
    margin-bottom: 10px;
  }

  .newsletter button {
    width: 100%;
  }
}

/* Chat Bubble (if still used) */
.chat-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007aff;
  color: white;
  padding: 14px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
}

.offline-text {
  position: fixed;
  bottom: 20px;
  right: 80px;
  background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: gray;
  z-index: 1000;
}

/* Helper for darkening colors in CSS (requires SASS/LESS preprocessor, not pure CSS) */
/* For pure CSS, you'd need to calculate the darker color in JS or manually */
/* Example: background-color: var(--primary-color); */
/* background-color: #e63946; */
/* background-color: #d62828; (manually darkened) */
