.category-section { 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 20px; 
    margin-bottom: 25px; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); 
}

.category-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
    gap: 12px; 
}

.category-card { 
    text-decoration: none; 
    color: #333; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 15px 8px; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    transition: all 0.2s; 
    background: #fff; 
    text-align: center; 
    height: 100%;
}

.category-card:hover { 
    border-color: #e67e22; 
    transform: translateY(-2px); 
}

.category-icon-wrapper { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem; 
    margin-bottom: 8px; 
    flex-shrink: 0;
}

.category-name { 
    font-size: 0.82rem; 
    font-weight: 600; 
    color: #444; 
    line-height: 1.2;
}

.product-card { 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    overflow: hidden; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.2s, box-shadow 0.2s; 
    position: relative; 
    color: inherit;
    text-decoration: none !important;
}

.product-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 18px rgba(0,0,0,0.1); 
    color: inherit;
}

.product-img-holder { 
    height: 180px; 
    background-color: #f8f9fa; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    position: relative; 
}

.product-img-holder img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.product-body { 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.product-title { 
    font-size: 0.90rem; 
    font-weight: 600; 
    color: #222; 
    line-height: 1.3;
    max-height: 2.6em; 
    margin-bottom: 4px !important; 
    overflow: hidden; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sales-count {
    font-size: 0.78rem;
    color: #777;
}

.product-price { 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: #e67e22; 
}

.original-price { 
    font-size: 0.8rem; 
    color: #888; 
    text-decoration: line-through; 
}

.discount-badge { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    background-color: #dc3545; 
    color: #fff; 
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 2px 6px; 
    border-radius: 4px; 
    z-index: 2; 
}

.shopee-sort-bar { 
    background: #ededed; 
    border-radius: 6px; 
    position: relative;
    z-index: 100;
    overflow: visible !important;
}

.shopee-sort-btn { 
    font-size: 0.85rem; 
    font-weight: 500; 
    white-space: nowrap;
}

.shopee-sort-btn.active { 
    background-color: #e67e22 !important; 
    color: #fff !important; 
    border-color: #e67e22 !important; 
}

.sidebar-item { 
    border-bottom: 1px solid #f0f0f0; 
}

.sidebar-link { 
    color: #333; 
    transition: color 0.2s; 
    font-size: 0.9rem; 
}

.sidebar-link:hover, 
.sidebar-link.active { 
    color: #e67e22 !important; 
    font-weight: 600; 
}

.sub-sidebar-link { 
    font-size: 0.80rem; 
    color: #666; 
    transition: color 0.2s; 
}

.sub-sidebar-link:hover, 
.sub-sidebar-link.active { 
    color: #e67e22 !important; 
    font-weight: 600; 
}

.mobile-sort-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible !important;
}

.dropdown {
    position: relative;
    z-index: 101;
}

.dropdown-menu {
    z-index: 1050 !important;
}

.dropdown-menu .dropdown-item.active, 
.dropdown-menu .dropdown-item:active {
    background-color: #e67e22;
    color: #fff;
}

/* Jail Store Carousel Styles */
.jail-banner-carousel { 
    border-radius: 8px; 
    overflow: hidden; 
}

.jail-banner-img { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
}

/* Product Details Gallery & Media */
.shopee-main-media {
    width: 100%;
    max-height: 300px;
    min-height: 180px;
    height: auto;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeeef;
    position: relative;
}

.shopee-main-media img, 
.shopee-main-media video {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.thumb-nav-wrapper {
    position: relative;
    margin-top: 10px;
    padding: 0 32px;
}

.thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar { 
    display: none; 
}

.shopee-thumb-box {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.shopee-thumb-box.active, 
.shopee-thumb-box:hover { 
    border-color: #ee4d2d; 
}

.shopee-thumb-box img, 
.shopee-thumb-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 64px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}

.thumb-arrow:hover { 
    background: rgba(0, 0, 0, 0.55); 
}

.thumb-arrow.left { 
    left: 0; 
    border-radius: 4px 0 0 4px; 
}

.thumb-arrow.right { 
    right: 0; 
    border-radius: 0 4px 4px 0; 
}

.star-gold { 
    color: #f39c12; 
    font-size: 0.95rem;
}

.badge-preorder {
    background-color: #eab308;
    color: #ffffff !important;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
}

.preorder-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #eab308;
    color: #ffffff !important;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
}

/* Reviews Component Styles */
.media-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: transform 0.2s, border-color 0.2s;
}

.media-thumb:hover { 
    transform: scale(1.05); 
    border-color: #0d6efd;
}

.review-card {
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

body.modal-open { 
    padding-right: 0 !important; 
    overflow: auto !important; 
}

.modal { 
    padding-right: 0 !important; 
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover { 
    transform: translateY(-2px); 
    color: #fff; 
    opacity: 0.9; 
}

.btn-facebook { 
    background-color: #1877f2; 
}

.btn-messenger { 
    background-color: #0084ff; 
}

.btn-tiktok { 
    background-color: #000000; 
}

.btn-copy { 
    background-color: #6c757d; 
}

.btn-chat-messenger {
    background-color: #0084ff;
    border-color: #0084ff;
    color: #ffffff;
    transition: all 0.25s ease-in-out;
}

.btn-chat-messenger:hover {
    background-color: #006bdf;
    border-color: #006bdf;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.35) !important;
}

.container-dev { 
    width: 90%; 
    max-width: 1000px;
    margin: 20px auto 40px; 
}

.dev-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

.dev-photo-section {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 300px;
    color: #fff;
}

.dev-avatar-slideshow {
    width: 160px;
    height: 180px;
    position: relative;
    border-radius: 10px;
    border: 4px solid #e67e22;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    background-color: #fff;
    overflow: hidden;
}

.dev-avatar-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-avatar-slideshow img.slide-1 { animation: fadeImage1 20s infinite ease-in-out; }
.dev-avatar-slideshow img.slide-2 { animation: fadeImage2 20s infinite ease-in-out; }

@keyframes fadeImage1 {
    0%, 35% { opacity: 1; }
    50%, 85% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeImage2 {
    0%, 35% { opacity: 0; }
    50%, 85% { opacity: 1; }
    100% { opacity: 0; }
}

.dev-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #ffffff;
    line-height: 1.3;
}

.dev-rank, .dev-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-rank {
    color: #bdc3c7;
    font-weight: 600;
    margin-bottom: 4px;
}

.dev-role {
    color: #e67e22;
    font-weight: 700;
    margin-bottom: 15px;
}

.dev-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #bdc3c7;
    text-align: left;
    width: 100%;
}

.dev-info-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    word-break: break-all;
}

.dev-content-section {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.dev-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a252f;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 6px;
}

.dev-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background-color: #e67e22;
    border-radius: 2px;
}

.dev-message {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
}

.dev-message p {
    margin-bottom: 14px;
}

.dev-message p:last-child {
    margin-bottom: 0;
}

.feedback-note {
    background-color: #fcf8f3;
    border-left: 3px solid #e67e22;
    padding: 12px 15px;
    font-size: 0.90rem;
    color: #444;
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
}

/* Feedback Specific Styles */
.feedback-card {
    max-width: 580px;
    background: #ffffff;
    border-radius: 12px;
}

.rating-container {
    margin-top: 4px;
    margin-bottom: 12px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 32px;
    gap: 8px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease-in-out, transform 0.1s ease-in-out;
    user-select: none;
    line-height: 1;
}

.star-rating label:hover {
    transform: scale(1.18);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f39c12;
}

.rating-description {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e67e22;
    margin-top: 6px;
    min-height: 20px;
}

footer {
    background: #1a252f;
    color: #bdc3c7;
    padding: 40px 0 20px;
    border-top: 3px solid #e67e22;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #e67e22;
}

@media (max-width: 768px) {
    .container-dev {
        width: 95%;
        margin: 15px auto 30px;
    }
    .dev-card {
        flex-direction: column;
    }
    .dev-content-section {
        padding: 25px 20px;
    }
}

@media (max-width: 575.98px) {
    .jail-banner-img { 
        height: 160px; 
    }

    .shopee-main-media { 
        max-height: 220px; 
    }

    .shopee-main-media img, 
    .shopee-main-media video { 
        max-height: 220px; 
    }

    .shopee-thumb-box { 
        width: 54px; 
        height: 54px; 
    }

    .thumb-arrow { 
        height: 54px; 
        width: 24px; 
    }

    .category-section { 
        padding: 12px; 
        margin-bottom: 16px; 
    }

    .category-grid { 
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; 
    }

    .category-card { 
        padding: 10px 4px; 
    }

    .category-icon-wrapper { 
        width: 38px; 
        height: 38px; 
        font-size: 1.1rem; 
        margin-bottom: 4px; 
    }

    .category-name { 
        font-size: 0.72rem; 
    }

    .product-img-holder { 
        height: 135px; 
    }

    .product-body { 
        padding: 8px; 
    }

    .product-title { 
        font-size: 0.82rem; 
        max-height: 2.4em; 
        margin-bottom: 2px !important;
    }

    .star-rating {
        font-size: 28px;
        gap: 6px;
    }

    .sales-count {
        font-size: 0.70rem;
    }

    .product-price { 
        font-size: 0.95rem; 
    }

    .original-price { 
        font-size: 0.72rem; 
    }

    .discount-badge { 
        font-size: 0.65rem; 
        padding: 1px 4px; 
        top: 5px; 
        right: 5px; 
    }

    .preorder-card-badge { 
        font-size: 0.65rem; 
        padding: 1px 4px; 
        top: 5px; 
        left: 5px; 
    }

    .media-thumb {
        width: 44px;
        height: 44px;
    }

    .review-card .card-body {
        padding: 12px !important;
    }

    .feedback-card {
        padding: 20px !important;
    }
}