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

body {
    font-family: var(--roboto);
}

:root {

    /* color  */
    --blue-color: #1372F4;
    --dark: #525456;
    --sky-white: #F7F9FC;
    --footer-bg: #D8E8FF;
    --black: #000000B2;
    --light-white: #FFFFFF;
    --light-dark: #A1A1A1;
    --product-rating-stars-color: #FFCB2B;
    --border: #C0C4C8;
    --danger: #FF143B;


    /* font-family  */
    --roboto: "Roboto", sans-serif;

    /* font size  */
    --heading-title: clamp(16px, 1.7vw, 24px);
    --common-size: clamp(10px, 0.9vw, 14px);
    --mediuum-size: clamp(12px, 1.1vw, 16px);
    --lg-size: clamp(14px, 1.1vw, 18px);
    --xl-size: clamp(16px, 1.3vw, 20px);
    --banner-heading: clamp(24px, 2vw, 30px);
    --strar-size: clamp(12px, 1vw, 16px);




    /* font-weight */
    --fw-thin: 100;
    --fw-extra-light: 200;
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semi-bold: 600;
    --fw-bold: 700;
    --fw-extra-bold: 800;
    --fw-black: 900;
}




a {
    text-decoration: none;
}

.review-star i {
    color: var(--product-rating-stars-color);
    font-size: var(--strar-size);
}

.star-not-fill i {
    color: var(--dark);
    font-size: var(--strar-size);
}

.dark {
    color: var(--dark);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title-icon {
    width: 30px;
    height: 30px;
}

.title-border {
    width: 1px;
    height: 20px;
    background-color: var(--dark);
}

.heading-title {
    font-weight: var(--fw-medium);
    font-size: var(--heading-title);
    color: var(--dark);
}

.title-info {
    font-size: var(--common-size);
    font-weight: var(--fw-normal);
    color: var(--light-dark);
}

.dark-info {
    font-size: var(--mediuum-size);
    font-weight: var(--fw-normal);
    color: var(--dark);
}



/* button  */
.common-btn {
    border-radius: 50px;
    padding: 6px 16px;
    border: 1px solid var(--dark);
    color: var(--dark);
    font-size: var(--mediuum-size);
    font-weight: var(--fw-medium);
    cursor: pointer;
}

.common-btn a {
    color: var(--dark);
}

.common-btn:hover a {
    color: var(--light-white);
}

.common-bg-btn {
    background-color: var(--sky-white);
}


/* slider  */
.pre-arrow {
    position: absolute;
    z-index: 1;
    top: 45%;
    /* left: 15px; */
    left: 0;
    border: 0;
    font-size: 20px;
    background: transparent;
}

.next-arrow {
    position: absolute;
    z-index: 1;
    top: 45%;
    /* right: 30px; */
    right: 0;
    border: 0;
    font-size: 20px;
    background: transparent;
}

.pre-arrow i,
.next-arrow i {
    background-color: var(--dark);
    color: var(--light-white);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.multiple-items .slick-slide {
    padding-inline: 10px;
    box-sizing: border-box;
}








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

.navbar {
    box-shadow: 0px 0px 8px -1px var(--dark);
}

.navbar .navbar-brand img {
    width: 150px;
}


.navbar ul li a.active::before {
    position: absolute;
    content: "";
    border-radius: 2px;
    background-color: var(--blue-color);
}

.navbar ul li a.active {
    color: var(--blue-color) !important;
}


.navbar .navbar-nav .nav-item .nav-link {
    color: var(--dark);
    padding-inline: 14px;
    position: relative;
    font-weight: var(--fw-normal);
    font-size: var(--mediuum-size);
}

.navbar .navbar-nav .nav-item .dropdown-menu {
    text-align: start !important;
}

.navbar form .login-buuton {
    background-color: var(--blue-color);
    color: var(--sky-white);
    padding-inline: 1.75rem !important;
    border-radius: 50px;
}

.navbar .logout-modal .modal-content {
    border-radius: 28px;
}

.navbar .logout-modal .modal-content .modal-body i {
    color: var(--blue-color);
    font-size: 50px;
}

.navbar .logout-modal .modal-content .modal-body .logout-info {
    font-weight: var(--fw-normal);
    font-size: var(--mediuum-size);
    color: var(--light-dark);
}

.navbar .logout-modal .modal-content .modal-footer {
    background-color: var(--border);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
}

.navbar .logout-modal .modal-content .modal-footer button {
    border: 1px solid var(--light-dark);
    width: 139px;
    height: 50px;
}





/* user buuton */

.login-icon .user-button {
    border-radius: 50%;
    background-color: var(--dark);
    border: 0;
}

.login-icon .user-button i {
    color: var(--light-white);
}

.login-icon .dropdown-menu {
    text-align: start !important;
    right: 0;
    top: 45px;
    background-color: var(--sky-white);
    border: 0;
    border-radius: 0;
}

.login-icon .dropdown-toggle::after {
    display: none;
}

.login-icon .dropdown-menu .dropdown-item {
    background-color: var(--light-white);
    border: 1px solid var(--light-dark);
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: var(--fw-normal);
    font-size: var(--common-size);
    color: var(--dark);
    padding-block: 8px;
    display: flex;
    align-items: center;
}

.login-icon .dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 16px;
}

.nav-item .login-icon button {
    background-color: transparent;
    color: var(--dark);
    border: 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.rotate-up {
    transform: rotate(180deg);
}


/* ============== search-bar ============== */

.input-group {
    width: 50%;
}

.search-box {
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 40px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    border-radius: 999px 0 0 999px;
    font-size: clamp(10px, 1vw, 14px);
    font-weight: var(--fw-normal);
}

.search-box input::placeholder {
    color: var(--light-dark);
}

.search-btn {
    background-color: var(--border);
    border: none;
    display: flex;
    align-items: center;
    border-radius: 0 999px 999px 0;
    color: var(--dark);
    font-size: clamp(10px, 1vw, 14px);
    font-weight: var(--fw-normal);
}

.search-btn i {
    margin-right: 5px;
    font-size: 16px;
}



/* ============== BANNER ============== */
.banner-title {
    font-weight: var(--fw-bold);
    color: var(--sky-white);
    font-size: var(--banner-heading);
}

.banner-info {
    font-weight: var(--fw-normal);
    color: var(--sky-white);
    font-size: var(--mediuum-size);
}



/* ============== page-title ============== */
.page-title {
    background-color: var(--sky-white);
}

.page-title h5 a {
    color: var(--light-dark);
    font-weight: var(--fw-normal);
    font-size: var(--mediuum-size);
}

.page-title h5 a.active {
    color: var(--dark);
}

.page-title h5 a i {
    margin-inline: 8px;
}





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

footer {
    background-color: var(--light-white);
    /* border-top: 1px solid var(--black); */

    border-top: 1px solid #dee2e6;
}


footer .footer-logo {
    width: 300px;
    height: 300px;
}

footer .footer-title {
    color: var(--dark);
    font-weight: var(--fw-medium);
    font-size: var(--heading-title);
}

footer .footer-text-border {
    bottom: -10px;
}

footer .list-unstyled li i {
    color: var(--dark);
    font-size: clamp(16px, 1.1vw, 20px);
}

footer .list-unstyled li .footer-link {
    color: var(--dark);
    font-size: var(--common-size);
    font-weight: var(--fw-normal);
}

footer .footer-download-info {
    color: var(--dark);
    font-size: var(--mediuum-size);
    font-weight: var(--fw-normal);
}

footer .app-btn {
    font-size: var(--xl-size);
    font-weight: var(--fw-normal);
    border: 1px solid var(--dark);
    border-radius: 0.375rem;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
}

footer .footer-icon-btn {
    width: 40px;
    height: 40px;
}

footer .footer-bottom {
    background-color: var(--sky-white);
    /* border-top: 1px solid var(--dark); */
     border-top: 1px solid #dee2e6;
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

footer .footer-bottom span {
    color: var(--light-dark);
    font-size: var(--common-size);
    font-weight: var(--fw-normal);
}

footer .footer-bottom span strong {
    color: var(--dark);
}






/* ============== All Product ==============  */
.all-product {
    background-color: var(--sky-white);
}

.all-product .view-buuton {
    border: 0;
    background-color: transparent;
    font-size: var(--common-size);
    font-weight: var(--fw-normal);
    color: var(--dark);
}

.all-product .product-card {
    border: 1px solid var(--border);
    border-radius: 8px;
}

.all-product .product-card .card-body {
    background-color: var(--light-white);
    width: 100%;
}

.all-product .product-card .camera-img {
    width: 100%;
    height: 300px;
}

.all-product .product-card .camera-img img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}


.all-product .product-card .card-body {
    border-radius: 8px;
}


.all-product .product-card .card-body .card-title {
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: var(--fw-medium);
    color: var(--dark);
    margin-bottom: 2px;
}

.all-product .product-card .card-body .card-text {
    font-size: var(--common-size);
    font-weight: var(--fw-normal);
    color: var(--dark);
    margin-bottom: 4px;
}

.all-product .product-card .card-body .product-price {
    font-size: var(--mediuum-size);
    font-weight: var(--fw-medium);
    color: var(--dark);
}

.all-product .product-card .card-body .price-offer {
    font-size: var(--common-size);
    font-weight: var(--fw-normal);
    color: var(--light-dark);
    text-decoration: line-through;
}


.all-product .product-card .card-body .off-btn {
    padding-inline: 0.50rem;
    padding-block: 0.10rem;
    font-size: var(--common-size);
    font-weight: var(--fw-medium);
    color: var(--sky-white);
    background-color: var(--danger);
}

.all-product .product-card .card-body .rating-point {
    font-size: var(--mediuum-size);
    font-weight: var(--fw-bold);
    color: var(--dark);
}

.all-product .product-card .card-body .card-button {
    border-top: 1px solid var(--light-dark);
    padding-top: 10px;
}

.all-product .product-card .card-body .card-button button {
    /* padding-inline: 20px; */
    font-size: var(--common-size);
    font-weight: var(--fw-medium);
    color: var(--dark);
    border-color: var(--border);
    width: 110px;
}

.all-product .product-card .card-body .card-button button:hover {
    background-color: var(--light-white);
}

/* localized profile toggle styles */
.profile-toggle {
    background: var(--dark);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    transition: box-shadow .12s ease, transform .08s ease
}

.profile-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08)
}

.profile-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.profile-toggle i {
    color: #fff;
    font-size: 20px
}

/* Panel */
.profile-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 12px;
    display: none;
    z-index: 1100;
    /* prepare for subtle show/hide transitions */
    opacity: 0;
    transform: translateY(-8px);
    transition: transform .18s ease, opacity .12s ease;
}

.profile-panel.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.profile-head {
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.profile-head img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px
}

.profile-name {
    font-weight: 600
}

.profile-email {
    font-size: 12px;
    color: #666
}

.profile-panel .manage-btn {
    display: inline-block;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #333;
    font-size: 13px
}

.profile-panel .list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px
}

.profile-panel .list a {
    color: #333;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    gap: 8px;
    align-items: center
}

.profile-panel .list a:hover {
    background: #f5f5f5
}

.profile-panel .footer {
    margin-top: 10px
}

/* Responsive behavior */
@media (max-width: 992px) {
    .profile-panel {
    /* make panel fixed on tablet so it's not clipped by navbar collapse */
    position: fixed;
    top: 64px; /* sits under the navbar */
    right: 8px;
    left: 8px;
    width: auto;
    max-width: 640px;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    max-height: calc(100vh - 88px);
    overflow: auto;
    }
}

@media (max-width: 576px) {

    /* bottom sheet style on small screens */
    .profile-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 16px;
    max-height: 85vh;
    overflow: auto;
    /* start off-screen for bottom-sheet animation */
    transform: translateY(100%);
    opacity: 0;
    }

    .profile-toggle {
        width: 40px;
        height: 40px
    }
}

/* sheet header (drag handle + close) for mobile */
.profile-panel .sheet-header {
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
}

.profile-panel .sheet-header .drag-bar {
    width: 48px;
    height: 4px;
    background: #ddd;
    border-radius: 999px;
}

.profile-panel .sheet-header .close-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
}

/* bottom-sheet animation state */
@media (max-width: 576px) {
    .profile-panel {
        transform: translateY(100%);
        opacity: 0;
    }
    .profile-panel.open {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Desktop tweaks */
@media (min-width: 1200px) {
    .profile-panel {
        width: 340px;
        top: calc(100% + 10px);
    }
}

/* ensure collapsed navbar doesn't clip panel visibility */
.navbar .collapse {
    overflow: visible !important;
}

.profile-panel {
    z-index: 2100; /* above typical bootstrap components */
    transition: transform .18s ease, opacity .12s ease;
}

.profile-panel.open {
    /* if using transform-based animation later, keep identity when open */
    transform: none;
    opacity: 1;
}

/* lock body scroll when panel is open on small screens */
body.profile-panel-lock {
    overflow: hidden;
}

.log-out-btn {
  background-color: initial; /* Keep default background */
  color: #666;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.3s ease; /* Smooth color transition */
}

.log-out-btn:hover {
  background-color: #faa5af; /* Background stays #f788a0 */
  color: #8f0505; /* Text changes to #f50000 */
}
