/* ================================================================
   Shree Vari Industries — Consolidated Stylesheet
   ================================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", "Segoe UI", sans-serif;
  background-color: #8c9eff;
  color: #333;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Navbar ---------- */
#navbar {
  background-color: #000;
  color: #fff;
}

#navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#navbar .row1 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 10px;
  padding-right: 50px;
  flex-wrap: wrap;
}

#navbar .row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.navbar-brand-text {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.upper-links {
  display: inline-block;
  padding: 0 11px;
  line-height: 23px;
  font-size: 12px;
  color: #fff;
}

.upper-links a {
  color: #fff;
  text-decoration: none;
}

.upper-links a:hover {
  text-decoration: underline;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 0;
  list-style: none;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 4px 11px;
  font-size: 12px;
  color: #333;
  border-bottom: 1px solid #e9e9e9;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.navbar-search {
  flex: 1;
  max-width: 600px;
}

.navbar-search form {
  display: flex;
}

.navbar-input {
  flex: 1;
  padding: 11px 16px;
  border: none;
  outline: none;
  font-size: 15px;
  border-radius: 2px 0 0 2px;
}

.navbar-button {
  background-color: #ffe11b;
  border: 1px solid #ffe11b;
  border-radius: 0 2px 2px 0;
  color: #565656;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.navbar-button svg {
  width: 15px;
  height: 15px;
  fill: #565656;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  background-color: #808080;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.23);
  padding: 10px 16px;
  border-radius: 2px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.cart-button:hover {
  text-decoration: none;
  color: #fff;
  background-color: #666;
}

.cart-svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 8px;
  fill: #fff;
}

.item-number {
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.1);
  height: 20px;
  padding: 3px 6px;
  font-weight: 500;
  display: inline-block;
  line-height: 14px;
  margin-left: 10px;
  font-size: 12px;
}

/* ---------- Product Cards ---------- */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.el-wrapper {
  width: 340px;
  padding: 15px;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.el-wrapper:hover .h-bg {
  left: 0;
}

.el-wrapper:hover .price {
  left: 20px;
  transform: translateY(-50%);
  color: #818181;
}

.el-wrapper:hover .add-to-cart {
  left: 50%;
}

.el-wrapper:hover .img {
  filter: blur(7px);
  opacity: 0.4;
}

.el-wrapper:hover .info-inner {
  bottom: 155px;
}

.el-wrapper:hover .a-size {
  transition-delay: 300ms;
  bottom: 50px;
  opacity: 1;
}

.box-up {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.box-up .img {
  padding: 20px 0;
  transition: all 800ms cubic-bezier(0, 0, 0.18, 1);
}

.box-down {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
}

.h-bg {
  transition: all 800ms cubic-bezier(0, 0, 0.18, 1);
  width: 660px;
  height: 100%;
  background-color: #3f96cd;
  position: absolute;
  left: -659px;
}

.h-bg-inner {
  width: 50%;
  height: 100%;
  background-color: #464646;
}

.info-inner {
  transition: all 400ms cubic-bezier(0, 0, 0.18, 1);
  position: absolute;
  width: 100%;
  bottom: 25px;
}

.info-inner .p-company {
  display: block;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  color: #ffe11b;
  background-color: #08050a;
  padding: 2px 6px;
}

.a-size {
  transition: all 300ms cubic-bezier(0, 0, 0.18, 1);
  position: absolute;
  width: 100%;
  bottom: -20px;
  font-size: 13px;
  color: #828282;
  opacity: 0;
}

.cart {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-weight: 700;
}

.cart .price {
  transition: all 600ms cubic-bezier(0, 0, 0.18, 1);
  transition-delay: 100ms;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #252525;
}

.cart .add-to-cart {
  transition: all 600ms cubic-bezier(0, 0, 0.18, 1);
  transition-delay: 100ms;
  display: block;
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translate(-50%, -50%);
}

.cart .add-to-cart .txt {
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Search Result Heading ---------- */
.search-heading {
  text-align: center;
  color: #ffe11b;
  font-size: 1.3rem;
  padding: 15px 0 5px;
}

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  color: #ffe11b;
  padding: 60px 20px;
  font-size: 1.3rem;
}

/* ---------- Cart Page ---------- */
.cart-container {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.panel {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.panel-heading {
  background-color: #337ab7;
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background-color: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.cart-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.cart-table tr:hover {
  background-color: #f9f9f9;
}

.cart-table img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.btn-remove {
  display: inline-block;
  background-color: #d9534f;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.btn-remove:hover {
  background-color: #c9302c;
}

.cart-summary {
  text-align: center;
  padding: 30px 20px;
}

.cart-total {
  display: inline-block;
  background-color: #fff;
  border: 2px solid #008cba;
  padding: 14px 40px;
  font-size: 22px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 15px;
}

.btn-purchase {
  display: inline-block;
  background-color: #f4511e;
  color: #fff;
  padding: 14px 40px;
  font-size: 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-purchase:hover {
  background-color: #e64a19;
  color: #fff;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.2rem;
}

/* ---------- About Page ---------- */
.about-container {
  max-width: 800px;
  margin: 80px auto 40px;
  padding: 40px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-container h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 28px;
}

.about-container p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-container .values-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.about-container .values-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #444;
}

.about-container .values-list li::before {
  content: "✦ ";
  color: #337ab7;
  font-weight: bold;
}

/* ---------- Contact & Feedback Forms ---------- */
.form-page {
  background-color: #b3e5fc;
  min-height: 100vh;
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  text-align: center;
}

.form-container h3 {
  background: linear-gradient(to right, #0072ff, #8811c5);
  color: #fff;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 4px;
}

.form-container form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.form-group label .required {
  color: red;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bebebe;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #88d5e9;
  box-shadow: 0 0 8px #88d5e9;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #4b99ad;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-submit:hover {
  background-color: #4691a4;
}

/* ---------- Success Pages ---------- */
.success-page {
  text-align: center;
  padding: 100px 20px;
  background-color: #b3e5fc;
  min-height: 100vh;
}

.success-page img {
  max-width: 100px;
  margin-bottom: 20px;
}

.success-page h2 {
  color: #0014ff;
  margin-top: 25px;
  margin-bottom: 15px;
}

.success-page p {
  color: #555;
  font-size: 16px;
}

.success-page .btn-home {
  display: inline-block;
  margin: 30px 15px 10px;
  padding: 10px 24px;
  background-color: #47c7c5;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.success-page .btn-home:hover {
  background-color: #3ab0ae;
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  background-color: #000;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

footer .social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

footer .social-icons a {
  display: inline-block;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  transition: opacity 0.3s;
}

footer .social-icons a:hover {
  opacity: 0.7;
  text-decoration: none;
  color: #fff;
}

footer .fa-facebook {
  background-color: #3b5998;
}

footer .fa-whatsapp {
  background-color: #25d366;
}

footer .fa-twitter {
  background-color: #55acee;
}

footer .fa-instagram {
  background-color: #125688;
}

footer .copyright {
  margin-top: 15px;
  font-size: 13px;
  color: #999;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  #navbar .row1 {
    padding-right: 15px;
  }

  .navbar-search {
    max-width: 100%;
    margin: 10px 0;
  }

  .el-wrapper {
    width: 290px;
  }

  .products-grid {
    padding: 10px;
  }

  .cart-table {
    font-size: 13px;
  }

  .cart-table th,
  .cart-table td {
    padding: 8px 10px;
  }
}

@media screen and (max-width: 600px) {
  #navbar .row2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .el-wrapper {
    width: 100%;
    max-width: 320px;
  }

  .cart-container {
    padding: 0 10px;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }
}
