/* =========================
   GLOBAL RESET
========================= */
{
  
--main-color: #0;
--hover-color: #319bf1;
}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #222;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  padding: .5rem 1rem;
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background-color: #076683;
  padding: .5rem 1rem;
  border-radius: .4rem;
}

/* LOGO */
.gleam-logo {
  height: 40px;
  width: auto;
}

/* NAV LINKS */
.navbar-nav .nav-link {
  font-weight: 500;
  color: #f8f7f7;
}

.navbar-nav .nav-link:hover {
  color: #076683;
}

.close-navbar-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

/* CART COUNT */
.navbar sup {
  font-size: 11px;
  background: #076683;
  color: #fff;
  padding: 2px 5px;
  border-radius: 10px;
}

/* =========================
   SEARCH BAR (DESKTOP)
========================= */
.navbar form.d-flex {
  align-items: center;
}

.navbar input[type="search"] {
  min-width: 220px;
}

.btn-custom {
    margin-top: 1rem;
  background: #076683;
  color: #fff;
  border: none;
}

.btn-custom:hover {
  background: #076683;
}

/* =========================
   MOBILE NAVBAR (≤ 992px)
========================= */
@media (max-width: 992px) {

  /* ONE LINE TOP BAR */
  .navbar .container-fluid {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
  }

  /* TOGGLER RIGHT */
  .navbar-toggler {
    margin-left: auto;
    border: none;
  }

  /* SLIDE MENU RIGHT → LEFT */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: #076683;
    padding: 20px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 1050;
  }

  .navbar-collapse.show {
    right: 0;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 12px;
  }

  /* SEARCH BAR FULL WIDTH */
  .navbar form.d-flex {
    width: 100%;
    /* margin-top: 12px; */
  }

  .navbar input[type="search"] {
    width: 100%;
    min-width: unset;
  }
}

/* =========================
   HERO BANNER
========================= */
.hero-banner {
  background: linear-gradient(135deg, #076683);
  color: #fff;
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2rem;
}

/* =========================
   PRODUCT GRID
========================= */
.product-grid,
.row-g-g {
     display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: .5rem;
    padding: .5rem;
}

/* =========================
   SIDEBAR (CATEGORIES)
========================= */
.sidebar {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
}
.sidebar p {
  align-items: center;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #11addc;

}
.sidebar h4 {
  margin-bottom: 12px;
  text-align: center;
  color: #f1eded;
  font-weight: 600;
  font-size: 1.5rem;
}


.toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: #076683;
    color: #f7f5f5;
    text-align: left;
    border-radius: 5px;
    padding: 16px 20px;
    position: fixed;
    z-index: 1050;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.toast-notification.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateY(20px);
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    margin-left: 15px;
    cursor: pointer;
}

/* =========================
   CART
========================= */
.cart-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* =========================
   PROFILE / DASHBOARD
========================= */
.profile-sidebar {
  background: #fff;
  border-radius: 12px;
}

.profile-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.profile-content {
  background: #fff;
  border-radius: 12px;
}

/* =========================
   TABLES
========================= */
.table {
  background: #fff;
}

.table th {
  white-space: nowrap;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #fff;
  border-top: 1px solid #ddd;
}

/* =========================
   SMALL SCREENS (≤ 340px)
========================= */
@media (max-width: 340px) {
  .gleam-logo {
    height: 32px;
  }

  .hero-banner {
    font-size: 1rem;
    padding: 14px;
  }

  .navbar-collapse {
    width: 100%;
  }
}


/* ===============================
   CATEGORY DROPDOWN (RESPONSIVE)
   =============================== */

/* Default (Desktop) */
.category-toggle-btn {
    display: none;
}

.sidebar {
    background: #076683;
    padding: 16px;
    border-radius: 10px;
    width: 24%;
    margin-top: .5rem;
}

/* MOBILE & TABLET */
@media (max-width: 992px) {

    /* Toggle button */
    .category-toggle-btn {
        display: block;
        width: 100%;
        background: #076683;
        color: #fff;
        border: none;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        margin-left: .8rem;
        margin-right: .8rem;
        width: 93%;
    }

    /* Sidebar becomes dropdown */
    .sidebar {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.35s ease;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .sidebar.active {
        max-height: 500px; /* enough for categories */
        padding: 16px;
        width: 95%;
        margin: 0 .5rem;
    }

    /* Categories list */
    .sidebar ul li {
        text-align: center;
    }

    .sidebar ul li a {
        font-size: 15px;
        color: #222;
        font-weight: 500;
    }
}


/* ===============================
   PRODUCT DETAILS PAGE
   =============================== */

/* Main image */
.product-main-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.03);
}

/* Thumbnail images */
.product-small-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.product-small-image:hover {
    border-color: #0d6efd;
    transform: scale(1.08);
}

/* Product text */
.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}


.btn-view-product {
    background-color: transparent;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background-color: #f1f1f1;
    border-color: #999;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

/* Tablets */
@media (max-width: 991px) {
    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 22px;
    }

    .product-small-image {
        width: 70px;
        height: 70px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .product-main-image {
        max-width: 320px;
        margin-bottom: 20px;
    }

    .product-small-image {
        width: 65px;
        height: 65px;
    }

    .product-title {
        font-size: 22px;
        text-align: center;
    }

    .product-price {
        text-align: center;
    }

    .product-description {
        text-align: center;
    }

    .btn-custom,
    .btn-view-product {
        width: 100%;
        margin: 5px 0;
    }

    .btn-view-product {
        margin-left: 0;
    }
}

/* ======================================================
   ORDERS PAGE – AMAZON / ECOMMERCE STYLE RESPONSIVE CSS
   Desktop: Table | Mobile: Order Cards
   Works from 992px down to 340px
   ====================================================== */

/* ---------- DESKTOP (DEFAULT) ---------- */

.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}

.table td {
    font-size: 14px;
    vertical-align: middle;
}

.order-actions-cell .btn {
    margin: 3px 2px;
}

/* ---------- TABLET + MOBILE (≤ 991px) ---------- */

@media (max-width: 991px) {

    .table-responsive {
        background: #f5f6f8;
        padding: 10px;
    }

    table,
    thead,
    tbody,
    th,
    tr,
    td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        background: #fff;
        border-radius: 14px;
        margin-bottom: 16px;
        padding: 14px;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 13px;
    }

    /* Hide serial number only for orders list (use .orders-table) */
    .orders-table tbody td:first-child {
      display: none;
    }

    /* Order ID highlight */
    tbody td:nth-child(2) {
        font-size: 15px;
        font-weight: 700;
        color: #111;
        margin-bottom: 8px;
    }

    /* Amount highlight */
    tbody td:nth-child(5) {
        font-size: 15px;
        font-weight: 700;
        justify-content: center;
    }

    /* Status badges */
    .badge {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 20px;
    }

    /* Action buttons */
    .order-actions-cell {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .order-actions-cell .btn {
        width: 100%;
        font-size: 13px;
        padding: 8px;
    }
}

/* ---------- SMALL MOBILE (≤ 480px) ---------- */

@media (max-width: 480px) {

    tbody tr {
        padding: 12px;
    }

    tbody td {
        font-size: 12px;
    }

    .badge {
        font-size: 10px;
    }

    .order-actions-cell .btn {
        font-size: 12px;
        padding: 7px;
    }
}

/* ---------- EXTRA SMALL DEVICES (≤ 340px) ---------- */

@media (max-width: 340px) {

    .table-responsive {
        background: #f5f6f8;
        padding: 10px;
    }

    table,
    thead,
    tbody,
    th,
    tr,
    td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        background: #fff;
        border-radius: 14px;
        margin-bottom: 16px;
        padding: 14px;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 13px;
    }

    /* Hide serial number only for orders list (use .orders-table) */
    .orders-table tbody td:first-child {
      display: none;
    }

    /* Order ID highlight */
    tbody td:nth-child(2) {
        font-size: 15px;
        font-weight: 700;
        color: #111;
        margin-bottom: 8px;
    }

    /* Amount highlight */
    tbody td:nth-child(5) {
        font-size: 15px;
        font-weight: 700;
        color: #0f5132;
    }

    /* Status badges */
    .badge {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 20px;
    }

    /* Action buttons */
    .order-actions-cell {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
 */

    .order-actions-cell .btn {
        font-size: 11px;
        padding: 6px;
    }
}


.edit_address_btn {
    background-color: transparent;
    border: none;
    color: #3572ed;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
}



