@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

body{
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
    overflow-y: auto;
}

h1, h2, h3, h4, h5, h6, .product-name, .category-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(33, 33, 33, 0.5) transparent;
}

body, * {
    scrollbar-width: thin;
    scrollbar-color: rgba(33, 33, 33, 0.5) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(33, 33, 33, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(33, 33, 33, 0.6);
}

::-webkit-scrollbar-button {
    display: none !important;
}

::-webkit-scrollbar-corner {
    background: transparent;
}
.barrasup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #212121;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.menulupa{
    margin-left: 12px;
}

.login{
    margin-right: 12px;
}

.logo{
    height: 80px;
    width: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo a {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
}

.menu-btn:hover {
    transform: scale(1.1);
}

.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background-color: #212121;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.close-sidebar {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-sidebar svg {
    stroke: #fff;
    transition: all 0.3s ease;
}

.close-sidebar:hover svg {
    stroke: #ff4444;
    transform: rotate(90deg) scale(1.1);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 80px 0 0 0;
    height: calc(100% - 80px);
}

.sidebar-nav a {
    padding: 15px 30px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
}

.sidebar-nav a:not(:first-child) {
    border-top: none;
}

.sidebar-nav a:hover {
    background-color: #f0f0f0;
    color: #212121;
    padding-left: 40px;
}

.sidebar-nav .btn-logout {
    margin-top: auto;
    padding: 15px 30px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.sidebar-nav .btn-logout:hover {
    background-color: #cc0000;
}

.sidebar-nav .btn-logout svg {
    stroke: white;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-icon svg {
    stroke: #fff;
    transition: all 0.3s ease;
}

.login-icon:hover svg {
    transform: scale(1.1);
}

.navbar-horizontal {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-horizontal .nav-link {
    padding: 15px 30px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid #444;
    flex: 1;
    text-align: center;
}

.navbar-horizontal .nav-link:first-child {
    border-left: 1px solid #444;
}

.navbar-horizontal .nav-link:hover {
    background-color: #555;
    color: #fff;
}

.navbar-horizontal .nav-link.active {
    background-color: #fff;
    color: #212121;
}

@media (max-width: 768px) {
    .navbar-horizontal {
        display: none;
    }
}

@media (min-width: 769px) {
    body {
        padding-top: 80px;
    }
}

.underupbar {
    height: 80px;
    background-color: #212121;
}

@media (min-width: 768px) {
    .underupbar {
        height: 50px;
    }
}

.hero-banner {
    width: 100%;
    height: 60dvh;
    background-image: url('logos/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-left: 5%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 769px) {
    .hero-banner {
        background-position: center 30%;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
        max-width: 400px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        max-width: 180px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Categories Section */
.categories-section {
    padding: 0 5%;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    width: 100%;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    max-height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category-image {
    width: 100%;
    flex: 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-title {
    padding: 15px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212121;
    margin: 0;
    flex-shrink: 0;
}

/* Desktop: Cards overlap banner */
@media (min-width: 769px) {
    .categories-section {
        margin-top: -80px;
        position: relative;
        z-index: 10;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .categories-section {
        padding: 10px 5%;
    }
    
    .category-title {
        font-size: 1.2rem;
        padding: 12px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .categories-section {
        padding: 10px 5%;
    }
    
    .category-title {
        font-size: 1rem;
        padding: 10px 5px;
    }
}

/* Featured Products Sections */
.featured-section {
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #212121;
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
    padding: 0 5%;
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0;
}

.featured-products-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.featured-products-container::-webkit-scrollbar {
    display: none;
}

.featured-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    aspect-ratio: 1 / 1.4;
    width: 200px;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    color: #212121;
}

.carousel-btn:hover {
    background-color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

.carousel-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.featured-product-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.1);
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.featured-product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212121;
    margin: 0 0 6px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-product-description {
    font-size: 0.75rem;
    color: #666;
    margin: 0 0 auto 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-product-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.featured-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #2196f3;
}

.loading-message, .no-products-message, .error-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1rem;
    width: 100%;
}

.error-message {
    color: #ff4444;
}

/* Tablet */
@media (max-width: 1024px) {
    .featured-products-container {
        gap: 20px;
    }
    
    .featured-product-card {
        width: 180px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .carousel-wrapper {
        width: 100%;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn-prev {
        left: -22px;
    }
    
    .carousel-btn-next {
        right: -22px;
    }
}

@media (max-width: 768px) {  
    .carousel-wrapper {
        width: 100%;
    }
    
    .featured-products-container {
        gap: 15px;
    }
    
    .featured-product-card {
        width: 160px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: -15px;
    }
    
    .carousel-btn-next {
        right: -15px;
    }
}

/* Mobile */
@media (max-width: 480px) {  
    .carousel-wrapper {
        width: 100%;
    }
    
    .featured-products-container {
        gap: 12px;
    }
    
    .featured-product-card {
        width: 140px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    
    .featured-product-details {
        padding: 8px;
    }
    
    .featured-product-title {
        font-size: 0.8rem;
    }
    
    .featured-product-description {
        font-size: 0.7rem;
    }
    
    .featured-product-price {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-btn-prev {
        left: -10px;
    }
    
    .carousel-btn-next {
        right: -10px;
    }
}

.watermark {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
    background-color: transparent;
    padding: 8px;
    transition: all 0.3s ease;
}

.watermark:hover {
    transform: scale(1.05);
}

.watermark a {
    color: #212121;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.watermark a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .watermark {
        bottom: 10px;
        right: 10px;
    }
    
    .watermark a {
        font-size: 10px;
    }
}
