/* ==================================================
   RESET
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================================================
   BODY
================================================== */

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;

    background: #f5f5f5;
    color: #222;
}

/* ==================================================
   COMMON
================================================== */

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 0 15px;
}

/* ==================================================
   HEADER TOP
================================================== */

.header-top {
    background: #2f3e9e;
    color: #fff;
}

.hotline-email {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 10px 0;
}

.hotline-email a {
    color: #fff;
    font-weight: bold;
}

/* ==================================================
   NAVBAR
================================================== */

.navbar-menu {
    background: #fff;

    position: sticky;
    top: 0;

    z-index: 999;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-menu .container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 80px;
}

/* ==================================================
   LOGO
================================================== */

.logo img {
    height: 42px;
    width: auto;
}

/* ==================================================
   MENU
================================================== */

#cssmenu {
    flex: 1;

    margin-left: 40px;
}

.menu {
    display: flex;
    align-items: center;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;

    padding: 28px 18px;

    font-size: 15px;

    font-weight: 600;

    color: #222;

    transition: 0.2s;
}

.menu > li > a:hover {
    color: #2f3e9e;
}

/* ==================================================
   SUB MENU
================================================== */

.sub-menu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 220px;

    background: #fff;

    border-radius: 0 0 10px 10px;

    box-shadow: 0 10px 24px rgba(0,0,0,0.12);

    padding: 10px 0;
}

.sub-menu li a {
    display: block;

    padding: 12px 16px;

    font-size: 14px;

    transition: 0.2s;
}

.sub-menu li a:hover {
    background: #f3f3f3;
}

#cssmenu .menu li:hover > .sub-menu {
    display: block;
}

/* ==================================================
   SEARCH
================================================== */

.searchproduct form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.searchproduct input {
    width: 220px;

    height: 40px;

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 0 12px;

    outline: none;
}

.searchproduct button {
    height: 40px;

    padding: 0 16px;

    border: none;

    border-radius: 8px;

    background: #2f3e9e;

    color: #fff;

    cursor: pointer;
}

/* ==================================================
   MAIN LAYOUT
================================================== */

.main-layout {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    padding: 20px;
}

/* ==================================================
   SIDEBAR
================================================== */

.sidebar-pk {
    width: 280px;

    min-width: 280px;

    background: #fff;

    border-radius: 12px;

    padding: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* TITLE */

.sidebar-pk h3 {
    margin-bottom: 20px;

    font-size: 20px;

    color: #2f3e9e;
}

/* ==================================================
   SIDEBAR MENU
================================================== */

.pk-list li {
    margin-bottom: 10px;
}

/* MAIN ITEM */

.pk-list > li > a {
    display: block;

    padding: 12px;

    border-radius: 8px;

    font-weight: 600;

    background: #f8f8f8;

    transition: 0.2s;
}

.pk-list > li > a:hover {
    background: #ececec;
}

/* ==================================================
   SUB MENU LEFT
================================================== */

.pk-list .sub-menu {
    display: none;

    position: static;

    background: transparent;

    box-shadow: none;

    padding: 8px 0 0 15px;

    margin-top: 8px;

    border-left: 2px solid #ddd;
}

.pk-list .sub-menu li {
    margin-bottom: 6px;
}

.pk-list .sub-menu a {
    display: block;

    padding: 8px 10px;

    font-size: 14px;

    font-weight: 500;

    border-radius: 6px;

    color: #555;

    transition: 0.2s;
}

.pk-list .sub-menu a:hover {
    background: #f1f1f1;
}

.pk-list li.active .sub-menu {
    display: block;
}

/* ==================================================
   CONTENT
================================================== */

.content-pk {
    flex: 1;
}

/* ==================================================
   PRODUCT LIST
================================================== */

#list {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

/* ==================================================
   PRODUCT CARD
================================================== */

.product-card {
    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    cursor: pointer;

    transition: 0.25s;

    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* IMAGE */

.product-card img {
    width: 100%;

    height: 220px;

    object-fit: contain;

    background: #fff;

    padding: 10px;
}

/* TEXT */

.product-card div {
    padding: 0 14px;

    margin-top: 8px;

    font-size: 14px;
}

.product-card div:last-child {
    padding-bottom: 16px;
}

.product-card b {
    display: block;

    line-height: 1.5;
}

/* ==================================================
   FOOTER
================================================== */

#footer {
    margin-top: 40px;

    background: #1e1e1e;

    color: #fff;

    padding: 40px 0;
}

.footer-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: #ccc;
}

.footer-bottom {
    margin-top: 30px;

    text-align: center;

    font-size: 13px;

    color: #aaa;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1200px) {

    #list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {

    .main-layout {
        flex-direction: column;
    }

    .sidebar-pk {
        width: 100%;
        min-width: 100%;
    }

    #list {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-menu .container {
        flex-wrap: wrap;
    }

    .menu {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {

    .hotline-email {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu > li > a {
        padding: 14px 0;
    }

    .searchproduct {
        width: 100%;
        margin-top: 10px;
    }

    .searchproduct form {
        width: 100%;
    }

    .searchproduct input {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    #list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CART ICON
========================= */
.cart-icon {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  background: #ff5a2c;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

/* =========================
   POPUP
========================= */
.popup-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  padding: 10px;
}

.popup-box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
  padding: 18px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  font-size: 20px;
  cursor: pointer;

}

.popup-layout {
  
  
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 30px;
}

.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.left-info,
.right-option {
  width: 100%;
}

.left-info p {
  margin: 8px 0;
  font-size: 14px;
}

.right-option fieldset {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.right-option legend {
  padding: 0 6px;
  font-weight: 700;
}

.right-option label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.bottom-buy {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 16px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-box button {
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.qty-box input {
  width: 60px;
  height: 38px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.btn-cart {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #ff5a2c;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}