@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --flutter-blue: #042b59;
  --flutter-light-blue: #01579b;
  --flutter-cyan: #13b9fd;
  --bg-color: #ffffff;
  --text-dark: #202124;
  --text-light: #5f6368;
  --bg-light-gray: #f8f9fa;
  --border-color: #dadce0;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--text-dark);
}

ul {
  list-style-type: none;
}

/* --- Navigation --- */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  min-height: 64px; /* ensures consistent height */
}
.logo {
  display: inline-flex; /* allows easy alignment if you add text later */
  align-items: center;
  text-decoration: none; /* removes default underline for links */
}

.logo img {
  height: 40px; /* standard logo height for desktop */
  width: auto; /* maintains aspect ratio */
  display: block; /* removes extra spacing under image */
}
.logo span {
  color: var(--flutter-cyan);
}
nav flex {
  display: flex;
  align-items: center;
}
nav ul {
  display: flex;
}
nav ul li {
  margin-right: 20px;
}
nav ul li a {
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s;
}
nav ul li a:hover {
  color: var(--flutter-light-blue);
}

/* Checkbox hack for mobile menu */
#menu-toggle {
  display: none;
}
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.cart-icon {
  font-size: 20px;
  color: var(--flutter-blue);
  display: inline-block;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.cart-icon:hover,
.cart-icon:active {
  transform: translateY(-10px) scale(1.05);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--bg-light-gray) 0%, #e0f2fe 100%);
  padding: 60px 0;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.col-2 {
  flex-basis: 50%;
  min-width: 300px;
}
.col-2 img {
  max-width: 100%;
  padding: 50px 0;
}

/* --- Hero Image Hover/Toggle Effects --- */
.hero-toggle-checkbox {
  display: none;
}
.hero-image-box {
  display: block;
  cursor: pointer;
  padding: 50px 0; /* Move padding to the container */
  perspective: 1000px;
}
.hero-image-box img {
  padding: 0; /* Override the default col-2 img padding so the shadow fits tightly */
  border-radius: 10px;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}
@media (hover: hover) {
  .hero-image-box:hover img {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  }
}
.hero-toggle-checkbox:checked + .hero-image-box img {
  transform: translateY(-15px) scale(1.08);
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-size: 50px;
  line-height: 1.2;
  margin: 25px 0;
  color: var(--flutter-blue);
}
.btn {
  display: inline-block;
  background: var(--flutter-light-blue);
  color: #fff;
  padding: 10px 30px;
  margin: 30px 0;
  border-radius: 30px;
  transition: background 0.5s;
  font-weight: 500;
}
.btn:hover {
  background: var(--flutter-blue);
}

/* --- Categories --- */
.categories {
  margin: 70px 0;
}
.col-3 {
  flex-basis: 30%;
  min-width: 250px;
  margin-bottom: 30px;
}
/* --- Categories Hover/Toggle Effects --- */
.cat-toggle-checkbox {
  display: none;
}
.cat-image-box {
  display: block;
  cursor: pointer;
  perspective: 1000px;
}
.cat-image-box img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 250px;
  border: 3px solid transparent;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
@media (hover: hover) {
  .cat-image-box:hover img {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--flutter-light-blue);
  }
}
.cat-toggle-checkbox:checked + .cat-image-box img {
  transform: translateY(-15px) scale(1.08);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--flutter-light-blue);
}

/* --- Products --- */
.small-container {
  max-width: 1080px;
  margin: auto;
  padding: 0 20px;
}
h2.title {
  text-align: center;
  margin: 0 auto 80px;
  position: relative;
  line-height: 60px;
  color: var(--flutter-blue);
}
h2.title::after {
  content: "";
  background: var(--flutter-cyan);
  width: 80px;
  height: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.col-4 {
  flex-basis: 22%;
  padding: 10px;
  min-width: 200px;
  margin-bottom: 50px;
}

/* --- Featured/Latest Products Hover/Toggle Effects --- */
.col-4 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.prod-toggle-checkbox {
  display: none;
}
.prod-image-box {
  display: block;
  cursor: pointer;
  perspective: 1000px;
}
.prod-image-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid transparent;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
@media (hover: hover) {
  .prod-image-box:hover img {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--flutter-light-blue);
  }
}
.prod-toggle-checkbox:checked + .prod-image-box img {
  transform: translateY(-15px) scale(1.08);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--flutter-light-blue);
}

.col-4 h4 {
  color: var(--text-dark);
  font-weight: 500;
  margin-top: 15px;
}
.rating .fa {
  color: #ffc107;
}
.col-4 p {
  color: var(--flutter-light-blue);
  font-weight: 600;
  font-size: 16px;
}

/* --- Exclusive Offer --- */
.offer {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  margin-top: 80px;
  padding: 50px 0;
}
.offer-img {
  width: 100%;
  max-width: 400px;
}
.offer small {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Testimonials --- */
.testimonial {
  padding-top: 100px;
}
.testimonial .col-3 {
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.5s;
  background: #fff;
  border-radius: 10px;
}
.testimonial .col-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.1);
}
.fa.fa-quote-left {
  font-size: 34px;
  color: var(--flutter-cyan);
}
.testimonial .col-3 p {
  font-size: 14px;
  margin: 12px 0;
  color: var(--text-light);
}
.testimonial .col-3 img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-top: 20px;
}

/* --- Brands --- */
.brands {
  margin: 100px auto;
}
.col-5 {
  width: 160px;
  text-align: center;
}
.col-5 img {
  width: 100%;
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.5s;
}
.col-5 img:hover {
  filter: grayscale(0);
}

/* Footer base */
.footer {
  background-color: #111;
  color: #fff;
  padding: 50px 0;
  font-family: "Arial", sans-serif;
  font-size: 14px;
}

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

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 180px;
}

/* Footer Logo */
.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
  border-radius: 8px;
  padding: 5px;
  background-color: #fff;
  margin-bottom: 15px;
}

/* App Store / Play Store Badges */
.app-logos img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  margin-top: 10px;
  display: inline-block;
}

/* Footer lists */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

/* Footer hr and copyright */
.footer hr {
  border-color: #555;
  margin: 30px 0;
}

.footer .copyright {
  text-align: center;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    gap: 20px;
  }

  .app-logos img {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* --- All Products Page --- */
.row-2 {
  justify-content: space-between;
  margin: 50px auto 20px;
}
select {
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
}
.page-btn {
  margin: 0 auto 80px;
  text-align: center;
}
.page-btn span,
.page-btn label {
  display: inline-block;
  border: 1px solid var(--flutter-blue);
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  margin-left: 5px;
  color: var(--flutter-blue);
  border-radius: 4px;
}
.page-btn span:hover,
.page-btn label:hover {
  background: var(--flutter-blue);
  color: #fff;
}

/* --- Pagination Checkbox Hack --- */
.page-radio {
  display: none;
}
.prod-item {
  display: none; /* Hide all products initially */
}
#page1:checked ~ .products-list .page-1 {
  display: block;
}
#page2:checked ~ .products-list .page-2 {
  display: block;
}
#page3:checked ~ .products-list .page-3 {
  display: block;
}
#page1:checked ~ .page-btn label[for="page1"],
#page2:checked ~ .page-btn label[for="page2"],
#page3:checked ~ .page-btn label[for="page3"] {
  background: var(--flutter-blue);
  color: #fff;
}

/* --- Product Details Page --- */
.single-product {
  margin-top: 80px;
}
.single-product .col-2 img {
  padding: 0;
  border-radius: 8px;
}
.single-product .col-2 {
  padding: 20px;
}
.single-product h4 {
  margin: 20px 0;
  font-size: 22px;
  font-weight: bold;
}
.single-product select {
  display: block;
  padding: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 200px;
}
.single-product input {
  width: 50px;
  height: 40px;
  padding-left: 10px;
  font-size: 16px;
  margin-right: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.single-product .fa {
  color: var(--flutter-blue);
  margin-left: 10px;
}
.small-img-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.small-img-col {
  flex-basis: 24%;
  cursor: pointer;
}
.small-img-col img {
  width: 100%;
  border-radius: 4px;
}

/* --- Cart Page --- */
.cart-page {
  margin: 80px auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
.cart-info {
  display: flex;
  flex-wrap: wrap;
}
th {
  text-align: left;
  padding: 10px 5px;
  color: #fff;
  background: var(--flutter-blue);
  font-weight: 500;
}
td {
  padding: 15px 5px;
}
td input {
  width: 50px;
  height: 30px;
  padding: 5px;
  border: 1px solid var(--border-color);
}
td a {
  color: var(--flutter-cyan);
  font-size: 12px;
}
td img {
  width: 80px;
  height: 80px;
  margin-right: 15px;
  object-fit: cover;
  border-radius: 4px;
}
.total-price {
  display: flex;
  justify-content: flex-end;
}
.total-price table {
  border-top: 3px solid var(--flutter-blue);
  width: 100%;
  max-width: 400px;
}
td:last-child {
  text-align: right;
}
th:last-child {
  text-align: right;
}

/* --- Account Page (Login/Register) --- */
.account-page {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--bg-light-gray) 0%, #e0f2fe 100%);
}
.form-container {
  background: #fff;
  width: 350px;
  height: 450px;
  position: relative;
  text-align: center;
  padding: 20px 0;
  margin: auto;
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 10px;
}
.form-container span {
  font-weight: bold;
  padding: 0 10px;
  color: var(--text-dark);
  cursor: pointer;
  width: 100px;
  display: inline-block;
}
.form-btn {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.form-container form {
  width: 300px;
  max-width: 100%;
  padding: 0 20px;
  position: absolute;
  top: 90px;
  transition: transform 0.5s;
}
form input {
  width: 100%;
  height: 40px;
  margin: 10px 0;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}
.form-container form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin: 10px 0;
}
form a {
  font-size: 12px;
  display: block;
}

#login-form {
  left: 25px;
}
#reg-form {
  left: 350px;
}
#login-toggle,
#reg-toggle {
  display: none;
}
#lbl-login,
#lbl-reg {
  cursor: pointer;
  user-select: none;
}

#reg-toggle:checked ~ #login-form {
  transform: translateX(-350px);
}
#reg-toggle:checked ~ #reg-form {
  transform: translateX(-325px);
}

#Indicator {
  width: 100px;
  border: none;
  background: var(--flutter-cyan);
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-100%);
  transition: transform 0.5s;
}

#reg-toggle:checked ~ .form-btn #Indicator {
  transform: translateX(0);
}

/* --- Media Queries --- */
@media only screen and (max-width: 800px) {
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  }
  nav ul li {
    display: block;
    margin-right: 0;
    padding: 10px 20px;
  }
  nav ul li a {
    display: block;
  }
  .menu-icon {
    display: block;
    margin-left: 20px;
  }
  #menu-toggle:checked ~ ul {
    max-height: 300px; /* expands menu */
  }

  .col-2,
  .col-3,
  .col-4 {
    flex-basis: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .row {
    text-align: center;
  }
  .col-2,
  .col-3,
  .col-4 {
    flex-basis: 100%;
  }
  .cart-info p {
    display: none;
  }
  .single-product .row {
    text-align: left;
  }
}

.cat-image-box img.offer-img {
  box-shadow: none !important;
  border: none !important;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}
@media (hover: hover) {
  .cat-image-box:hover img.offer-img {
    box-shadow: none !important;
    border-color: transparent !important;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  }
}
.cat-toggle-checkbox:checked + .cat-image-box img.offer-img {
  box-shadow: none !important;
  border-color: transparent !important;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.3));
}

.cat-image-box img.acc-img {
  box-shadow: none !important;
  border: none !important;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}
@media (hover: hover) {
  .cat-image-box:hover img.acc-img {
    box-shadow: none !important;
    border-color: transparent !important;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  }
}
.cat-toggle-checkbox:checked + .cat-image-box img.acc-img {
  box-shadow: none !important;
  border-color: transparent !important;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.3));
}

/* --- About Section Hover Effects --- */
/* Hide checkbox */
.about-toggle-checkbox {
  display: none;
}

/* Image styling */
.about-img {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.about-img img {
  width: 100%;
  display: block;
}

/* Icon styling */
.about-icon {
  display: inline-block;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  cursor: pointer;
}

/* Hover effects */
@media (hover: hover) {
  .about-img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--flutter-light-blue);
  }

  .about-icon:hover {
    transform: translateY(-10px) scale(1.1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
  }
}

/* Click (image) */
.about-toggle-checkbox:checked + .about-img {
  transform: translateY(-15px) scale(1.1);
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.3);
  border-color: var(--flutter-light-blue);
}

/* Click (icons) */
.about-toggle-checkbox:checked + .about-icon-box .about-icon {
  transform: translateY(-12px) scale(1.15);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.3));
}

/* --- Contact Page --- */
.contact-page {
  padding: 50px 0;
}
.align-center {
  align-items: center;
}
.contact-info {
  margin-bottom: 30px;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.contact-item h4 {
  margin-bottom: 5px;
  color: var(--flutter-blue);
}
.contact-item p {
  color: var(--text-light);
}

/* Icon Styles & Effects */
.contact-icon {
  font-size: 30px;
  color: var(--flutter-cyan);
  margin-right: 20px;
  transition:
    transform 0.4s ease,
    filter 0.4s ease,
    color 0.4s ease;
  cursor: pointer;
}
@media (hover: hover) {
  .contact-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
    color: var(--flutter-light-blue);
  }
}
.contact-icon:active {
  transform: translateY(-8px) scale(1.15);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.3));
  color: var(--flutter-light-blue);
}

@media only screen and (max-width: 600px) {
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .contact-icon {
    margin-right: 0;
  }
}

/* Image Styles & Effects */
.contact-image-box {
  display: block;
  cursor: pointer;
  perspective: 1000px;
}
.contact-image-box img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 350px;
  border: 3px solid transparent;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
@media (hover: hover) {
  .contact-image-box:hover img {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--flutter-light-blue);
  }
}
.cat-toggle-checkbox:checked + .contact-image-box img {
  transform: translateY(-15px) scale(1.08);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--flutter-light-blue);
}

.contact-form-row {
  margin-top: 50px;
  justify-content: center;
}
.contact-form-container {
  background: var(--bg-light-gray);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.contact-form-container h3 {
  margin-bottom: 20px;
  color: var(--flutter-blue);
  text-align: center;
}
.contact-form-container form {
  display: flex;
  flex-direction: column;
}
.contact-form-container .btn {
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}
