/* =========================
   GLOBAL
   ========================= */

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

body {
    font-family: Arial, sans-serif;
    background: var(--mds-background);
    color: var(--mds-text);
}


/* =========================
   HEADER
   ========================= */

header {
    background: var(--mds-header);
    color: white;

    padding: 18px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex: 0 0 50px;
}

.logo-text {
    display: inline-block;
    margin-left: 4px;
}

.logo-text span {
    color: #f59e0b;
}

.search {
    flex: 1;
    max-width: 600px;
}

.search {
    position: relative;
}

.search input {
    width: 100%;
    padding: 13px 52px 13px 18px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--mds-primary);
    color: var(--mds-header);
    cursor: pointer;
    font-size: 16px;
}

.search-submit:hover {
    background: var(--mds-hover);
}

/* Product detail header: keep only menu, search and account. */
.product-detail-header .product-detail-hide {
    display: none !important;
}

.product-detail-header {
    gap: 14px;
}

@media (max-width: 900px) {
    .product-detail-header {
        flex-wrap: wrap;
    }

    .product-detail-header .search {
        order: 3;
        flex-basis: 100%;
    }
}

@media (max-width: 550px) {
    .product-detail-header {
        padding: 15px 4%;
        gap: 12px;
    }

    .product-detail-header .search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
}

.cart {
    background: var(--mds-primary);
    color: #111;

    padding: 11px 18px;

    border-radius: 25px;

    font-weight: bold;
    white-space: nowrap;
}



/* =========================
   ACCOUNT BUTTON
   ========================= */

.account-btn {
    background: var(--mds-card);
    color: var(--mds-header);
    padding: 11px 18px;
    border-radius: 25px;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}

.account-btn:hover {
    background: var(--mds-primary);
    color: #111;
}

/* =========================
   CATEGORY BAR - ADD ONLY
   ========================= */

.category-bar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.category-bar-inner {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 12px 4px 10px;
    min-height: 108px;
}

.category-item {
    flex: 0 0 auto;
    min-width: 78px;
    color: #111827;
    text-decoration: none;
    text-align: center;
    padding: 2px 4px 4px;
    border-radius: 12px;
    transition: .2s ease;
}

.category-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.category-item.active {
    background: #fff7e6;
}

.category-circle {
    width: 68px;
    height: 68px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

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

.category-fallback {
    font-size: 28px;
    line-height: 1;
}

.category-name {
    max-width: 92px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 auto;
    word-break: break-word;
}

.category-bar::-webkit-scrollbar {
    height: 6px;
}

.category-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

@media (max-width: 550px) {
    .category-bar-inner {
        width: 96%;
        gap: 10px;
        padding: 9px 2px 8px;
        min-height: 94px;
    }

    .category-item {
        min-width: 68px;
    }

    .category-circle {
        width: 58px;
        height: 58px;
    }

    .category-name {
        font-size: 11px;
        max-width: 76px;
    }
}


/* =========================
   HERO - IMAGE SLIDER ADD ONLY
   ========================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #111827,
            #374151
        );

    color: white;

    padding: 45px 5% 35px;

    text-align: center;
}

.hero-slider {
    position: relative;
    width: min(1100px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 12px 35px rgba(0,0,0,.20);
}

.hero-slide {
    display: none;
    width: 100%;
    height: auto;
}

.hero-slide.active {
    display: block;
}

.hero-slide a {
    display: block;
    width: 100%;
    height: auto;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #111827;
    font-size: 25px;
    line-height: 42px;
    padding: 0;
    cursor: pointer;
}

.hero-slide-arrow:hover {
    background: var(--mds-primary);
}

.hero-slide-prev {
    left: 14px;
}

.hero-slide-next {
    right: 14px;
}

.hero-slide-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.hero-slide-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    cursor: pointer;
}

.hero-slide-dot.active {
    transform: scale(1.35);
    background: #fff;
}


/* =========================
   CONTAINER
   ========================= */

.container {
    width: 90%;
    max-width: 1300px;

    margin: 40px auto;
}

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

.popular-section,
.latest-section,
.recently-viewed-section {
    margin-bottom: 55px;
}

.load-more-wrap {
    text-align: center;
    margin-top: 28px;
}

.load-more-btn {
    border: none;
    background: var(--mds-header);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.load-more-btn:hover {
    background: var(--mds-primary);
    color: #111;
}

.popular-product-card.popular-hidden {
    display: none;
}


/* =========================
   PRODUCTS
   ========================= */

.products {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}

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

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(0,0,0,.08);

    transition: .2s;
}

.product:hover {
    transform: translateY(-4px);
}

.product-image {
    height: 230px;

    background: #f3f4f6;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================
   SALE BADGE
   ========================= */

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: #dc2626;
    color: white;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.detail-sale-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.no-image {
    color: #999;
}

.product-info {
    padding: 18px;
}

.product-name {
    font-size: 18px;

    font-weight: bold;

    margin-bottom: 8px;
}

.model {
    font-size: 13px;

    color: #777;

    margin-bottom: 8px;
}

.product-description {
    color: #666;

    font-size: 14px;

    height: 40px;

    overflow: hidden;

    margin-bottom: 12px;
}

.price {
    color: var(--mds-header);

    font-size: 21px;

    font-weight: bold;

    margin-bottom: 8px;
}

.old-price {
    color: #999;

    text-decoration: line-through;

    font-size: 14px;

    margin-left: 7px;
}


/* =========================
   BUY / VIEW BUTTON
   ========================= */

.buy-btn {
    display: block;

    width: 100%;

    text-align: center;

    background: var(--mds-header);

    color: white;

    padding: 11px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;
}

.buy-btn:hover {
    background: var(--mds-primary);
    color: #111;
}


/* =========================
   WISHLIST HOME BUTTON
   ========================= */

.product-actions {
    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;
}

.wishlist-card-btn {
    width: 100%;

    padding: 10px;

    border: 1px solid #e5e7eb;

    background: var(--mds-card);

    color: var(--mds-header);

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;

    font-size: 14px;
}

.wishlist-card-btn:hover {
    border-color: var(--mds-primary);

    background: #fff7e6;
}

.wishlist-card-btn.active {
    background: #fff1f2;

    border-color: #fecdd3;

    color: #dc2626;
}


/* =========================
   EMPTY
   ========================= */

.empty {
    background: var(--mds-card);

    padding: 40px;

    text-align: center;

    border-radius: 12px;

    color: #777;
}


/* =========================
   PRODUCT DETAIL
   ========================= */

.detail-box {
    background: var(--mds-card);

    border-radius: 18px;

    padding: 30px;

    box-shadow:
        0 4px 20px rgba(0,0,0,.08);

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;
}


/* =========================
   SLIDER
   ========================= */

.slider {
    position: relative;

    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.main-image-box {
    width: 100%;

    height: 520px;

    background: #f7f7f7;

    border-radius: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: default;
    user-select: none;
    touch-action: pan-x pan-y;
}

.slider-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background:
        rgba(17,24,39,.85);

    color: white;

    font-size: 25px;

    cursor: pointer;

    z-index: 5;
}

.slider-arrow:hover {
    background: var(--mds-primary);
    color: #111;
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}


/* =========================
   DOTS
   ========================= */

.slider-dots {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    flex-wrap: wrap;
}

.slider-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    border: none;

    background: #c7c7c7;

    cursor: pointer;
}

.slider-dot.active {
    background: var(--mds-header);

    transform: scale(1.25);
}


/* =========================
   THUMBNAILS
   ========================= */

.thumbnails {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding: 12px 2px 4px;
}

.thumbnail {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    border: 2px solid transparent;

    border-radius: 8px;

    background: #f3f4f6;

    overflow: hidden;

    cursor: pointer;
}

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

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================
   DETAIL INFO
   ========================= */

.detail-info h1 {
    font-size: 34px;

    margin-bottom: 12px;
}

.detail-model {
    color: #777;

    margin-bottom: 20px;
}

.detail-description {
    color: #555;

    line-height: 1.7;

    margin-bottom: 25px;
}

.detail-price {
    font-size: 32px;

    font-weight: bold;

    color: var(--mds-header);

    margin-bottom: 10px;
}

.detail-old-price {
    font-size: 17px;

    color: #999;

    text-decoration: line-through;

    margin-left: 10px;
}

.stock {
    margin: 18px 0;

    font-weight: bold;
}

.in-stock {
    color: #16803c;
}

.out-stock {
    color: #d11a2a;
}

.back-btn {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--mds-header);

    text-decoration: none;

    font-weight: bold;
}

.back-btn:hover {
    color: #f59e0b;
}


/* =========================
   PURCHASE
   ========================= */

.purchase-box {
    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #eee;
}

.quantity-label {
    font-weight: bold;

    margin-bottom: 9px;
}

.quantity-row {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 14px;
}

.qty-btn {
    width: 42px;
    height: 42px;

    border: 1px solid #ddd;

    background: #f3f4f6;

    border-radius: 8px;

    font-size: 22px;

    font-weight: bold;

    cursor: pointer;
}

.qty-btn:hover {
    background: #e5e7eb;
}

#detailQuantity {
    width: 70px;
    height: 42px;

    text-align: center;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 17px;

    font-weight: bold;
}

.purchase-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.purchase-buttons .buy-btn {
    margin: 0;
}

.buy-now-btn {
    background: var(--mds-primary);

    color: #111;
}

.buy-now-btn:hover {
    background: var(--mds-hover);

    color: #111;
}

/* =========================
   WHATSAPP BUTTONS - ADD ONLY
   ========================= */

.whatsapp-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #1ebe5d;
    cursor: pointer;
}

.whatsapp-product-btn:hover {
    background: #1ebe5d;
    color: #fff;
}

.mds-whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 17px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

.mds-whatsapp-float:hover {
    background: #1ebe5d;
    color: #fff;
}

.mds-whatsapp-float-icon {
    font-size: 21px;
    line-height: 1;
}

@media (max-width: 600px) {
    .mds-whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 12px 15px;
        font-size: 14px;
    }
}


.purchase-note {
    margin-top: 10px;

    color: #777;

    font-size: 12px;
}

/* DELIVERY DATE - ADD ONLY */
.delivery-date-info {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--mds-header);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-date-info .delivery-icon {
    font-size: 18px;
}


/* =========================
   DETAIL WISHLIST
   ========================= */

.wishlist-detail-form {
    margin-top: 10px;
}

.wishlist-detail-btn {
    width: 100%;

    padding: 13px;

    border: 1px solid #e5e7eb;

    background: var(--mds-card);

    color: var(--mds-header);

    border-radius: 8px;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}

.wishlist-detail-btn:hover {
    background: #fff7e6;

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

.wishlist-detail-btn.active {
    background: #fff1f2;

    border-color: #fecdd3;

    color: #dc2626;
}


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

footer {
    margin-top: 60px;

    background: var(--mds-footer);

    color: white;

    text-align: center;

    padding: 30px;
}

.mds-footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.mds-footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.mds-footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 22px;
    line-height: 1.6;
    font-size: 14px;
}

.mds-footer-contact a {
    color: white;
    text-decoration: none;
}

.mds-footer-contact a:hover {
    text-decoration: underline;
}

.mds-footer-policies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 22px;
}

.mds-footer-policies a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.mds-footer-policies a:hover {
    text-decoration: underline;
}

.mds-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.mds-footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    font-size: 18px;
    transition: .2s ease;
}

.mds-footer-social a:hover {
    transform: translateY(-2px);
    border-color: white;
}

.mds-footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .mds-footer-contact,
    .mds-footer-policies {
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    header {
        flex-wrap: wrap;
    }

    .search {
        order: 3;

        flex-basis: 100%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .detail-box {
        grid-template-columns: 1fr;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 550px) {

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        width: 100%;
    }

    .product {
        min-width: 0;

        border-radius: 11px;
    }

    .product-image {
        height: 155px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 15px;

        margin-bottom: 5px;
    }

    .model {
        font-size: 12px;

        margin-bottom: 5px;
    }

    .price {
        font-size: 16px;

        margin-bottom: 6px;

        white-space: nowrap;
    }

    .old-price {
        display: block;

        margin-left: 0;

        margin-top: 3px;

        font-size: 12px;
    }

    .product-description {
        font-size: 12px;

        height: 34px;

        margin-bottom: 8px;
    }

    .buy-btn {
        font-size: 13px;

        padding: 9px 5px;
    }

    .wishlist-card-btn {
        font-size: 12px;

        padding: 9px 4px;
    }

    .hero {
        padding: 50px 20px;
    }

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

    .logo {
        font-size: 23px;
    }

    .container {
        width: 94%;
    }

    .detail-box {
        padding: 15px;

        gap: 25px;
    }

    .main-image-box {
        height: 380px;
    }

    .detail-info h1 {
        font-size: 26px;
    }

    .detail-price {
        font-size: 27px;
    }

    .purchase-buttons {
        grid-template-columns: 1fr;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;

        font-size: 20px;
    }
}



/* =========================
   PRODUCT RATINGS & REVIEWS
   ========================= */

.product-review-section {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.product-review-section h2 {
    margin-bottom: 18px;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-average-number {
    font-size: 34px;
    font-weight: 700;
}

@media (max-width: 550px) {
    .product-review-section {
        overflow: hidden;
    }

    .review-summary {
        padding-left: 10px;
    }

    .review-average-number {
        min-width: 58px;
        text-align: center;
        margin-left: 4px;
    }
}

.review-average-stars,
.review-item-stars {
    color: #f59e0b;
    font-size: 22px;
    letter-spacing: 2px;
}

.review-count {
    color: #64748b;
    font-size: 14px;
}

.review-form {
    background: var(--mds-card);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.review-form-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.review-form label {
    display: block;
    font-weight: 600;
    margin: 12px 0 7px;
}

.review-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    font: inherit;
}

.review-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.review-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-rating-input label {
    margin: 0;
    font-size: 31px;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
}

.review-rating-input label:hover,
.review-rating-input label:hover ~ label,
.review-rating-input input:checked ~ label {
    color: #f59e0b;
}

.review-submit-btn {
    margin-top: 14px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--mds-primary);
    color: #111;
    font-weight: 700;
    cursor: pointer;
}

.review-submit-btn:hover {
    background: var(--mds-hover);
}

.review-login-note,
.review-success,
.review-error,
.review-empty {
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-login-note {
    background: #f8fafc;
}

.review-success {
    background: #dcfce7;
    color: #166534;
}

.review-error {
    background: #fee2e2;
    color: #991b1b;
}

.review-login-note a {
    font-weight: 700;
}

.review-item {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.review-item:last-child {
    border-bottom: 0;
}

.review-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.review-item-customer {
    margin-top: 6px;
    font-weight: 700;
}

.review-item-date {
    color: #64748b;
    font-size: 13px;
}

.review-item-text {
    margin-top: 8px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 550px) {

    .product-review-section {
        margin-top: 25px;
        padding-top: 22px;
    }

    .review-item-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .review-rating-input label {
        font-size: 28px;
    }
}


/* =========================
   CUSTOMER NOTIFICATIONS - ADD ONLY
   ========================= */

.notification-wrap {
    position: relative;
    flex: 0 0 auto;
}

.notification-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 25px;
    background: var(--mds-card);
    color: var(--mds-header);
    text-decoration: none;
    font-size: 21px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.notification-btn:hover {
    background: var(--mds-primary);
    color: #111;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 20px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    border: 2px solid var(--mds-header);
}

.notification-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 30px);
    background: #fff;
    color: #111827;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
    overflow: hidden;
    z-index: 9998;
}

.notification-wrap.open .notification-panel {
    display: block;
}

.notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.notification-panel-head strong {
    font-size: 17px;
}

.notification-view-all {
    color: var(--mds-link);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.notification-list {
    max-height: 390px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #fffaf0;
}

.notification-item-title {
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-item-message {
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.notification-item-date {
    margin-top: 7px;
    color: #94a3b8;
    font-size: 11px;
}

.notification-empty {
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 550px) {
    .notification-panel {
        position: fixed;
        top: 78px;
        left: 10px;
        right: auto;
        width: min(330px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        z-index: 99999;
    }

    .notification-btn {
        min-width: 42px;
        padding: 0 10px;
    }
}



/* =========================
   HAMBURGER SIDE MENU - ADD ONLY
   Existing website styles/functions remain unchanged.
   ========================= */
.menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: var(--mds-card);
    color: var(--mds-header);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    font-size: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.menu-toggle:hover {
    background: var(--mds-primary);
    color: #111;
}

.mds-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 10000;
    display: none;
}

.mds-menu-overlay.open {
    display: block;
}

.mds-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(390px, 88vw);
    height: 100vh;
    background: #fff;
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,.16);
    overflow-y: auto;
}

.mds-side-menu.open {
    transform: translateX(0);
}

.mds-side-menu-head {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.mds-side-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mds-header);
    font-size: 22px;
    font-weight: 800;
}

.mds-side-menu-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.mds-side-menu-close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.mds-menu-section-title {
    padding: 20px 22px 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mds-menu-list {
    padding: 0 14px 20px;
}

.mds-menu-link {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.mds-menu-link:hover {
    background: #f8fafc;
    color: var(--mds-header);
}

.mds-menu-category {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.mds-menu-category:hover {
    background: #f8fafc;
}

.mds-menu-category-image {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mds-menu-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mds-menu-category-fallback {
    font-size: 18px;
}

.mds-menu-bottom {
    padding: 0 14px 28px;
}

@media (max-width: 550px) {
    .menu-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .mds-side-menu {
        width: min(360px, 88vw);
    }
}


/* VARIABLE PRODUCT SELECTORS - ADD ONLY */
.variable-options{
    margin:20px 0 14px;
    padding:16px 0 4px;
    border-top:1px solid #eef0f3;
}
.variable-option{margin-bottom:18px}
.variable-option-title{
    font-size:14px;
    font-weight:800;
    color:#111827;
    text-transform:capitalize;
    letter-spacing:.2px;
    margin-bottom:9px;
}
.variable-values{display:flex;flex-wrap:wrap;gap:9px}
.variable-value-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    border:1px solid #d9dee7;
    background:#fff;
    color:#374151;
    border-radius:10px;
    padding:9px 14px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    box-shadow:0 1px 2px rgba(15,23,42,.04);
    transition:all .18s ease;
}
.variable-value-btn:hover{
    border-color:#9ca3af;
    background:#fafafa;
    transform:translateY(-1px);
}
.variable-value-btn.active{
    border:2px solid var(--mds-header);
    background:#f8fafc;
    color:#111827;
    padding:8px 13px;
    box-shadow:0 3px 10px rgba(15,23,42,.08);
}
.variable-color-dot{
    display:inline-block;
    width:19px;
    height:19px;
    flex:0 0 19px;
    border-radius:50%;
    vertical-align:middle;
    margin-right:8px;
    border:1px solid #aeb4bd;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.55),0 1px 3px rgba(0,0,0,.12);
}

/* PRODUCT DETAIL VISUAL POLISH - STYLE ONLY */
.detail-info h1{
    color:#111827;
    font-weight:800;
    letter-spacing:-.5px;
}
.detail-model{
    display:inline-block;
    background:#f8fafc;
    border:1px solid #eef1f5;
    color:#6b7280;
    border-radius:8px;
    padding:7px 10px;
    margin-bottom:14px;
    font-size:13px;
}
.detail-model strong{color:#111827}
.detail-description{
    color:#4b5563;
    background:#fafbfc;
    border-left:3px solid var(--mds-primary);
    border-radius:0 10px 10px 0;
    padding:11px 13px;
    line-height:1.65;
    margin-bottom:18px;
}
.detail-price{
    color:#111827;
    font-size:34px;
    font-weight:850;
    letter-spacing:-.7px;
    margin:4px 0 8px;
}
.detail-old-price{
    color:#9ca3af;
    font-size:16px;
    font-weight:600;
}
.detail-sale-badge{
    box-shadow:0 5px 14px rgba(220,38,38,.16);
}
.stock{
    display:inline-flex;
    align-items:center;
    width:max-content;
    background:#f0fdf4;
    border:1px solid #dcfce7;
    border-radius:9px;
    padding:8px 11px;
    margin:4px 0 2px;
    font-size:14px;
}
.in-stock{color:#15803d}
.out-stock{color:#dc2626;background:#fef2f2;border-color:#fee2e2}
.purchase-box{margin-top:18px;padding-top:18px;border-top:1px solid #edf0f3}
.quantity-label{font-size:14px;color:#111827;font-weight:800}
.qty-btn,#detailQuantity{
    border-color:#d9dee7;
    background:#fff;
}
.qty-btn:hover{background:#f8fafc}
.purchase-note{color:#8a929e}


/* PRODUCT DETAIL ORDER + RELATED PRODUCTS - ADD ONLY */
.detail-description-bottom{
    margin-top:22px;
    margin-bottom:0;
    border-left:0;
    border-top:1px solid #eef0f3;
    border-radius:14px;
    background:#fff;
    padding:18px 0 0;
}
.detail-section-title{
    font-size:20px;
    font-weight:800;
    color:#111827;
    margin-bottom:9px;
}
.detail-description-text{
    color:#4b5563;
    background:#fafbfc;
    border:1px solid #eef1f5;
    border-radius:12px;
    padding:15px 16px;
    line-height:1.7;
}

/* Product description: show about 13 lines first, then Read More */
.detail-description-content{
    line-height:1.7;
    max-height:22.1em; /* 13 lines × 1.7 line-height */
    overflow:hidden;
    position:relative;
}

.detail-description-content.is-expanded{
    max-height:none;
    overflow:visible;
}

.description-toggle-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:12px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--mds-link);
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.description-toggle-btn:hover{
    text-decoration:underline;
}

.description-toggle-btn[hidden]{
    display:none !important;
}
.related-products-section{
    margin-top:28px;
    padding:24px;
    background:#fff;
    border:1px solid #edf0f4;
    border-radius:18px;
    box-shadow:0 6px 22px rgba(15,23,42,.05);
}
.related-products-head{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
    margin-bottom:18px;
}
.related-products-head h2{
    margin:0;
    font-size:24px;
    color:#111827;
}
.related-products-head span{
    color:#6b7280;
    font-size:14px;
}
.related-products-grid{
    margin-top:0;
}
.product-review-section-bottom{
    margin-top:30px;
    margin-bottom:35px;
}

/* Product-page mobile movement fix */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}
img {
    -webkit-user-drag: none;
    user-drag: none;
}
