/* Variables */
:root {
    --primary-color: #2F353F;
    --secondary-color: #EA4E2D; 
    --text-color: #333333;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--gray-100);
}

/* Typography */
.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
}

/* Carousel */
#promotion .carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-item img {
    object-fit: cover;
    height: 400px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--secondary-color);
}

/* Categories */

a{
    color: #070D0D;
    font-weight: 700;
}

a:hover{
    color: #EA4E2D;
}
#Kategori-Display .col img {
    border-radius: 10px;
    transition: var(--transition-base);
}

#Kategori-Display .col img:hover {
    transform: translateY(-5px);
}

/* Product Cards */
.produk-baru-item {
    transition: var(--transition-base);
    border-radius: 12px;
    overflow: hidden;
}

.produk-baru-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.img-wrapper {
    height: 200px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.produk-baru-item:hover .img-wrapper img {
    transform: scale(1.05);
}

.card-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Brands Section */
#Kategori-Display-Brand .col img {
    transition: var(--transition-base);
    padding: 1rem;
}

#Kategori-Display-Brand .col img:hover {
    transform: scale(1.1);
}

/* YouTube Section */
.youtube-section {
    background-color: white;
    padding: 4rem 0;
    position: relative;
}

.youtube-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.05;
}

.youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-title {
    text-align: center;
    margin-bottom: 2rem;
}

.youtube-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.youtube-title p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .img-wrapper {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 200px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .youtube-section {
        padding: 2rem 0;
    }
}

* {
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* Navigation */
.navbar {
    padding:1rem 0;
}

.navbar-brand img {
    max-width: 90px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: border-bottom 0.3s ease;
}


/* .navbar-toggler.always-visible {
    display: block !important;
} */

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    padding-bottom: 0.5rem;
    border-bottom: 4px solid #070D0D;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* Categories */
#Kategori-Display img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

#Kategori-Display img:hover {
    transform: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.whatsapp-float img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover img {
    transform: scale(1.1);
}
.whatsapp-float span {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #25D366;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
}
.whatsapp-float:hover span {
    display: block;
    transition-duration: 500ms;
}

@media (max-width: 576px) {
    #Kategori-Display .row {
        row-gap: 1rem;
    }
}

/* Products */
.produk-baru-item {
    /* aspect-ratio: 4 / 3; */
    border: 1px solid rgba(7, 13, 13, 0.1);
    border-radius: 10px;
    box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.produk-baru-item:hover {
    border: 2px solid #070D0D;
    transform: translateY(-5px);
}

.ratio-box {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.produk-baru-item img {
    width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.produk-baru-item .card-title {
    font-size: 1rem;
    font-weight: 600;
}

.produk-baru-item .card-text {
    font-size: 0.9375rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .produk-baru-item .card-title {
        font-size: 0.875rem;
    }
    .produk-baru-item .card-text {
        font-size: 0.8125rem;
    }
}

/* Horizontal Product List on Mobile */
@media (max-width: 576px) {
    .product-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
    }
    .product-list .col {
        flex: 0 0 auto;
        width: 80%;
    }
}

/* Brands */
#Kategori-Display-Brand .col {
    display: flex;
    justify-content: center;
    align-items: center;
}

#Kategori-Display-Brand img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#Kategori-Display-Brand img:hover {
    border-color: rgba(7, 13, 13, 0.3);
    box-shadow: 0 4px 16px rgba(234, 78, 45, 0.08);
}

/* Benefits */
#Benefit {
    margin-bottom: 2rem;
}

#Benefit-Item {
    margin-bottom: 4rem;
}

#Benefit-Item .col {
    transition: var(--transition-base);
}

#Benefit-Item .col:hover {
    transform: scale(1.1);
}

#Benefit-Item img {
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 0.75rem;
    font-weight: 650;
}

@media (min-width: 768px) {
    .benefit-title {
        font-size: 0.875rem;
    }
}

/* Footer */
.footer-title {
    font-size: 0.9375rem;
    font-weight: 700;
}

footer a {
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    transition: border-bottom 0.3s ease;
}

footer a:hover {
    border-bottom: 1px solid white;
}

.logo-medplace img {
    max-width: 60px;
}

#Logo-Medsos img {
    max-width: 30px;
}

@media (max-width: 576px) {
    .footer-title {
        font-size: 0.8125rem;
    }
    footer a {
        font-size: 0.6875rem;
    }
    .logo-medplace img {
        max-width: 50px;
    }
    #Logo-Medsos img {
        max-width: 25px;
    }
}

.category-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s ease;
    padding: 15px;
    background: white;
    border: 2px solid var(--gray-300);
}

.category-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.category-image {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    display: block;
}

.category-text {
    text-align: center;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

#Kategori-Display .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

@media (max-width: 768px) {
    .category-link {
        padding: 12px;
    }
    
    .category-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .category-link {
        padding: 10px;
    }
    
    #Kategori-Display .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }
    .hero-section .row,
    .hero-section .col-lg-6 {
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
    }
    .hero-section .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }
    .hero-section .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-section .btn.btn-outline-light {
        text-align: center;
        justify-content: center;
        align-items: center;
        display: flex;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .hero-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .hero-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    .hero-section .d-flex.gap-3 {
        gap: 1.25rem !important;
    }
    .hero-section .btn {
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 771px) and (max-width: 998px) {
    #Kategori-Display .row {
        justify-content: center !important;
    }
}

.hero-section {
    padding-top: 120px;
}


