* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --text-white: #fff;
  --btn-blue: #6dcbff;
  --text-blue: #040a1c;
  --text-rotate: #57a2cc;
  --nav-background: #00283f;
  --cart-text: #7a7879;
  --bg-dark-blue: #004d73;
  --accent-blue: #55c2e1;
}

@font-face {
  font-family: "Asap";
  src: url("fonts/asap/Asap-Regular.ttf") format(truetype);
}

@font-face {
  font-family: "Satisfy";
  src: url("fonts/satisfy/Satisfy-Regular.ttf") format(truetype);
}

body {
  font-family: "Asap";
  overflow-x: hidden; /* Fixes the horizontal gap/scroll issue */
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none !important;
}

ul li {
  list-style: none;
}

ul {
  padding-left: 0 !important;
}

svg {
  width: 72px;
  height: 72px;
}

/* ========= Header Section =========== */

.bg_header {
  position: absolute;
  width: 100%;
  z-index: 99;
}
.brand_logo a{
  max-width: 200px;
  display: block;
}
.header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-background);
}
.header.sticky .navbar-toggler-icon {
  color: var(--text-white);
}
.nav-link {
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.nav-link:hover {
  border-bottom: 2px solid white;
}
.logo-text {
  font-family: "Cursive", serif;
  font-size: 2.5rem;
  line-height: 1;
}
.sub-logo {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact_info a {
  color: white;
}
.contact_info a:hover {
  color: var(--btn-blue);
  transition: 0.5s ease-in-out;
}
.social_icons a i:hover {
  color: var(--btn-blue);
  transition: 0.5s ease-in-out;
}
.navbar .nav-item.dropdown {
  position: relative;
}
/* .navbar .has-megamenu {
  position: static;
} */
.navbar .megamenu {
  top: 100%;
  left: 0;
  min-width: 300px;
  width: auto !important;
  position: absolute;
  margin-top: 0;
  background-color: var(--nav-background);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  z-index: 1000;
}

.megamenu .title {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.megamenu ul li a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 5px 0;
  transition: 0.3s;
}

.megamenu ul li a:hover {
  color: var(--btn-blue);
  padding-left: 5px;
}

.navbar .megamenu_1,
.navbar .megamenu_2,
.navbar .megamenu_3,
.navbar .megamenu_4,
.navbar .megamenu_5,
.navbar .megamenu_6,
.navbar .megamenu_7 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block;
}
.navbar .megamenu_3 {
  width: 600px !important;
  margin: 0 auto !important;
  display: block;
}

.navbar-toggler-icon {
  color: var(--text-white) !important;
}

/* ===============Most Important================ */
/* Target the dropdown menu */
.navbar .nav-item.dropdown .dropdown-menu {
  display: block; /* Keep it in the DOM */
  opacity: 0; /* Start invisible */
  visibility: hidden; /* Prevent clicking while invisible */
  transform: translateY(10px); /* Slight slide-down effect */
  transition: all 0.3s ease-in-out;
  transition-delay: 0.1s; /* Small delay before it disappears */
}

/* Show on Hover */
.navbar .nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s; /* Open instantly on hover */
}

/* ========= My Account Banner =========== */

.my_account {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 400px 15px 9rem 15px;
  background:
    linear-gradient(rgba(39, 56, 89, 0.6), rgba(0, 0, 0, 0.6)),
    url("images/slide3.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 500px;
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  background: transparent;
  margin-bottom: 10px;
}

.breadcrumb a,
.breadcrumb span {
  margin: 0 10px;
  color: white;
}

.title h1 {
  font-family: "Satisfy";
  font-size: clamp(3rem, 10vw, 5rem); /* Scalable font size */
}

/* ========= Order History Styling=========== */
.brand-font {
    font-family: "Satisfy";
  font-size: 2.5rem;
  color: #1a2b3c;
}

/* Table Styling */
.table thead th {
  background-color: #e2f5ff;
  border: none;
  color: #333;
}
.table td {
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}
.btn-view {
  color: #5dade2;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Cart Styling */
.cart-container {
  background-color: #00517f;
  color: white;
  border-radius: 4px;
  padding: 20px;
  height: 100%;
}
.cart-header {
    font-family: "Satisfy";
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.cart-item img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}
.cart-item-title {
  font-size: 1rem;
  margin-bottom: 0;
}
.cart-item-price {
  font-size: 0.85rem;
  opacity: 0.8;
}
.remove-btn {
  color: white;
  opacity: 0.7;
  font-size: 1.2rem;
  cursor: pointer;
}
.remove-btn:hover {
  opacity: 1;
}

/* Checkout Button */
.btn-checkout {
  background-color: #5dade2;
  border: none;
  color: white;
  padding: 12px;
  width: 100%;
  border-radius: 0;
  transition: 0.3s;
}
.btn-checkout:hover {
  background-color: #3498db;
}

/* ========= Dashboard Content =========== */

.history_dashboard {
  padding: 9rem 0;
  background: url("images/squid_bg.png") top right no-repeat;
}

.cursive-title {
  font-family: "Satisfy";
  color: #040a1c;
  font-size: 2.5rem;
}

.text-blue {
  color: var(--btn-blue);
}

.btn-custom {
  background-color: #00517f;
  color: white;
  border-radius: 0;
  padding: 8px 25px;
  border: none;
  transition: 0.3s;
}
.dashboard_image {
  max-width: 500px;
  display: block;
}
.btn-custom:hover {
  background-color: var(--text-rotate);
  color: white;
}

.card-custom {
  background-color: #f5f7f8;
  border: none;
}

/* ========= Footer Section =========== */
.footer-section {
  background-color: var(--nav-background);
  background-image: url("images/about_us/footer_btm.jpg");
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Headings styles */
.script-font {
  font-family: "Satisfy";
  font-size: 2.2rem;
}
.footer .brand_logo {
  margin: 0 auto;
}
.logo-font {
  font-family: "Cursive", sans-serif;
  font-size: 3rem;
  color: #87ceeb; /* Sky Blue */
}
.phone_no a {
  color: var(--text-white);
}
.phone_no a:hover {
  color: var(--accent-blue);
  transition: 0.5s ease-in-out;
}
.email a {
  color: var(--text-white);
}
.email a:hover {
  color: var(--accent-blue);
  transition: 0.5s ease-in-out;
}
/* Links and Hover Effects */
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #87ceeb;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-icons a {
  color: #87ceeb;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* Back to Top Position */
.back-to-top {
  position: absolute;
  right: 0;
  bottom: 20%;
}

.tracking-widest {
  letter-spacing: 2px;
}

/* ========= Media Queries =========== */

@media (max-width: 767px) {
  .social_icons {
    display: none;
  }
  .my_account {
    padding-top: 250px;
  }
  .history_dashboard {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .history_dashboard,
  .address-box {
    text-align: center !important;
  }

  .btn-custom {
    margin: 0 auto;
    display: block;
    width: 100% !important;
  }

  /* Responsive Table Fix */
  .table-responsive {
    border: none;
    overflow-x: hidden;
  }

  .table thead {
    display: none;
  }

  .table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    background: #fff;
    padding: 10px;
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 10px 5px;
    border-bottom: 1px solid #f8f9fa;
  }

  /* Use the data-label from HTML for mobile headers */
  .table td::before {
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
  }
}
