/* ===================================================
   MERINHUB PREMIUM GLOBAL CSS
   Version: 2.0
=================================================== */

/* Google Font */

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

/* ===========================
        CSS VARIABLES
=========================== */

:root {
  --primary: #725bff;
  --primary-dark: #5d49e8;

  --secondary: #171a2e;

  --success: #16a34a;

  --danger: #dc2626;

  --warning: #f59e0b;

  --info: #0ea5e9;

  --light: #f8f9fc;

  --white: #ffffff;

  --border: #e8eaf2;

  --text: #20243a;

  --text-light: #6b7280;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.12);

  --radius: 14px;

  --transition: 0.3s ease;
}

/* ===========================
        RESET
=========================== */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;

  background: var(--light);

  color: var(--text);

  overflow-x: hidden;

  line-height: 1.6;
}

img {
  max-width: 100%;

  display: block;
}

a {
  text-decoration: none;

  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  transition: var(--transition);
}

/* ===========================
      BOOTSTRAP OVERRIDE
=========================== */

.container {
  max-width: 1320px;
}

.form-control,
.form-select {
  border: 1px solid var(--border);

  border-radius: 10px;

  padding: 12px 15px;

  font-size: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(114, 91, 255, 0.12);
}

.btn {
  border-radius: 10px;

  padding: 11px 22px;

  font-weight: 600;

  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);

  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);

  border-color: var(--primary-dark);

  transform: translateY(-2px);
}

.btn-outline-primary {
  border-color: var(--primary);

  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
}

/* ===========================
        NAVBAR
=========================== */

.navbar {
  background: #171a2e !important;

  padding: 14px 0;

  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 28px;

  font-weight: 800;

  letter-spacing: 1px;
}

.navbar-brand img {
  height: 45px;
}

.nav-link {
  color: #d7d9e6 !important;

  font-weight: 500;

  margin-left: 12px;

  position: relative;
}

.nav-link:hover {
  color: #fff !important;
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -5px;

  width: 0;

  height: 2px;

  background: var(--primary);

  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===========================
        HERO
=========================== */

.hero-section {
  min-height: 600px;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  color: white;

  background:
    linear-gradient(rgba(15, 18, 32, 0.72), rgba(15, 18, 32, 0.72)),
    url("../images/banner/banner.jpg");

  background-size: cover;

  background-position: center;
}

.hero-section h1 {
  font-size: 58px;

  font-weight: 800;
}

.hero-section p {
  margin: 25px auto;

  font-size: 21px;

  max-width: 700px;

  color: #f2f2f2;
}

/* ===========================
        SECTION TITLE
=========================== */

.section-title {
  font-size: 34px;

  font-weight: 800;

  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-light);

  margin-bottom: 40px;
}
/* ===================================================
        PRODUCT CARD
=================================================== */

.product-card {
  background: var(--white);

  border-radius: var(--radius);

  overflow: hidden;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-lg);
}

.product-card img {
  width: 100%;

  height: 240px;

  object-fit: contain;

  padding: 20px;

  background: #fff;
}

.product-card .card-body {
  padding: 18px;
}

.product-card h5 {
  font-size: 17px;

  font-weight: 700;

  color: var(--text);

  min-height: 48px;
}

.product-card h6 {
  color: var(--success);

  font-size: 20px;

  font-weight: 800;
}

.product-card .btn {
  width: 100%;
}

/* ===================================================
        CATEGORY CARD
=================================================== */

.category-card {
  background: #fff;

  border-radius: var(--radius);

  border: 1px solid var(--border);

  transition: var(--transition);

  overflow: hidden;

  text-align: center;

  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow);
}

.category-card img {
  height: 170px;

  object-fit: contain;

  padding: 20px;
}

.category-card h5 {
  padding-bottom: 20px;

  font-weight: 700;
}

/* ===================================================
        PRODUCT DETAILS
=================================================== */

.product-details {
  background: #fff;

  border-radius: 18px;

  padding: 30px;

  box-shadow: var(--shadow-sm);
}

.product-title {
  font-size: 34px;

  font-weight: 800;
}

.product-price {
  color: var(--success);

  font-size: 34px;

  font-weight: 800;
}

.product-old-price {
  color: #999;

  font-size: 20px;

  text-decoration: line-through;

  margin-left: 10px;
}

.product-description {
  color: var(--text-light);

  margin-top: 20px;

  line-height: 1.8;
}

/* ===================================================
        PRODUCT GALLERY
=================================================== */

.product-gallery {
  background: #fff;

  border-radius: 18px;

  overflow: hidden;

  border: 1px solid var(--border);
}

.product-gallery-main {
  width: 100%;

  height: 420px;

  object-fit: contain;

  padding: 25px;

  cursor: zoom-in;

  background: white;
}

.product-thumbnails {
  display: flex;

  gap: 10px;

  justify-content: center;

  flex-wrap: wrap;

  padding: 15px;

  border-top: 1px solid var(--border);
}

.product-thumbnail {
  width: 70px;

  height: 70px;

  object-fit: contain;

  border: 2px solid transparent;

  border-radius: 10px;

  cursor: pointer;

  background: white;

  transition: var(--transition);
}

.product-thumbnail:hover {
  border-color: var(--primary);
}

.product-thumbnail.active {
  border-color: var(--primary);
}

/* ===================================================
        SPECIFICATION
=================================================== */

.specification-table {
  background: #fff;

  border-radius: 15px;

  overflow: hidden;

  box-shadow: var(--shadow-sm);
}

.specification-table table {
  margin: 0;
}

.specification-table td {
  padding: 14px 18px;
}

/* ===================================================
        CART
=================================================== */

.cart-card {
  background: #fff;

  border-radius: 18px;

  padding: 20px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);

  margin-bottom: 20px;
}

.cart-product-image {
  width: 110px;

  height: 110px;

  object-fit: contain;
}

.cart-total {
  background: #171a2e;

  color: #fff;

  border-radius: 18px;

  padding: 25px;

  position: sticky;

  top: 100px;
}

.cart-total h4 {
  font-weight: 700;
}

.quantity-box {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;
}

.quantity-box button {
  width: 36px;

  height: 36px;
}

/* ===================================================
        CHECKOUT
=================================================== */

.checkout-card {
  background: #fff;

  border-radius: 18px;

  padding: 25px;

  box-shadow: var(--shadow-sm);

  border: 1px solid var(--border);
}

.checkout-summary {
  background: #fff;

  border-radius: 18px;

  padding: 25px;

  box-shadow: var(--shadow-sm);

  position: sticky;

  top: 100px;
}

/* ===================================================
        PROFILE
=================================================== */

.profile-card {
  background: #fff;

  border-radius: 18px;

  padding: 30px;

  text-align: center;

  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 130px;

  height: 130px;

  border-radius: 50%;

  object-fit: cover;

  margin: auto;

  border: 5px solid #eee;
}

.profile-card h4 {
  margin-top: 15px;

  font-weight: 700;
}

.profile-menu {
  margin-top: 30px;
}

.profile-menu a {
  display: block;

  padding: 14px 18px;

  border-radius: 10px;

  color: var(--text);

  margin-bottom: 8px;
}

.profile-menu a:hover {
  background: #f3f2ff;

  color: var(--primary);
}
/* ===================================================
        AUTH (LOGIN / REGISTER / VERIFY)
=================================================== */

.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 15px;
}

.auth-box {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  padding: 35px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-logo {
  width: 80px;
  margin: auto;
  margin-bottom: 20px;
}

.auth-title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}

.auth-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
}

.auth-box .btn {
  width: 100%;
  margin-top: 10px;
}

/* ===================================================
                ORDER CARD
=================================================== */

.order-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.order-id {
  font-size: 14px;
  font-weight: 700;
}

.order-price {
  font-size: 22px;
  color: var(--success);
  font-weight: 800;
}

.order-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}

.status-pending {
  background: #fff3cd;
  color: #8a6d00;
}

.status-processing {
  background: #d6ecff;
  color: #0057b8;
}

.status-shipped {
  background: #e3f8e8;
  color: #157347;
}

.status-delivered {
  background: #d1fadf;
  color: #027a48;
}

.status-cancelled {
  background: #ffe4e6;
  color: #b42318;
}

/* ===================================================
                FOOTER
=================================================== */

footer {
  margin-top: 80px;
  background: #171a2e;
  color: #fff;
  padding: 60px 0 25px;
}

footer h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

footer p {
  color: #c9ccd8;
  margin-bottom: 8px;
}

.footer-links a {
  display: block;
  color: #c9ccd8;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  margin-right: 10px;
  transition: 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  color: #aeb3c5;
  font-size: 14px;
}

/* ===================================================
            BADGES
=================================================== */

.badge-success {
  background: #d1fadf;
  color: #027a48;
}

.badge-danger {
  background: #ffe4e6;
  color: #b42318;
}

.badge-warning {
  background: #fff3cd;
  color: #8a6d00;
}

/* ===================================================
            LOADER
=================================================== */

.loader {
  width: 45px;
  height: 45px;
  border: 4px solid #eee;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ===================================================
            FADE ANIMATION
=================================================== */

.fade-up {
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ===================================================
            UTILITIES
=================================================== */

.shadow-card {
  box-shadow: var(--shadow);
}

.rounded-xl {
  border-radius: 20px;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary-soft {
  background: #f3f2ff;
}

.cursor-pointer {
  cursor: pointer;
}

.section-space {
  padding: 70px 0;
}

/* ===================================================
            RESPONSIVE
=================================================== */

@media (max-width: 992px) {
  .hero-section {
    min-height: 500px;
  }

  .hero-section h1 {
    font-size: 46px;
  }

  .product-gallery-main {
    height: 320px;
  }

  .profile-avatar {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 24px;
  }

  .hero-section {
    padding: 60px 20px;
  }

  .hero-section h1 {
    font-size: 34px;
  }

  .hero-section p {
    font-size: 17px;
  }

  .section-title {
    font-size: 28px;
  }

  .product-card img {
    height: 190px;
  }

  .product-gallery-main {
    height: 260px;
  }

  .cart-total {
    position: relative;

    top: 0;

    margin-top: 20px;
  }

  .checkout-summary {
    position: relative;

    top: 0;

    margin-top: 20px;
  }

  .auth-box {
    padding: 25px;
  }

  .profile-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 420px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .hero-section p {
    font-size: 15px;
  }

  .btn {
    width: 100%;
  }

  .product-gallery-main {
    height: 220px;
  }

  .product-thumbnail {
    width: 55px;
    height: 55px;
  }

  footer {
    text-align: center;
  }

  .footer-social {
    margin-top: 15px;
  }
}
