:root {
    --primary-color: #FF0000;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --discount-color: #FF0000;
    --store-bg: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
    width: 100%;
}

.container {
    overflow: hidden;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    margin-top: 100px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    position: relative;
    width: 100%;
}

.product-info {
    flex: 1;
    min-width: 300px;
    margin-left: 24px;
    width: 100%;
}

.media-display {
    width: 100%;
    height: 350px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.main-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.product-video {
    width: 100%;
    height: 100%;
    display: none;
}

.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.features p {
    font-size: 14px;
    margin-bottom: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.thumbnail-wrapper {
    position: relative;
    flex-shrink: 0;
}

.video-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
}

.video-thumbnail-wrapper::after {
    content: "\f04b";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    opacity: 0.8;
}

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


.product-header,
.product-details,
.product-actions {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
}

.sold-count {
    margin-right: 15px;
    position: relative;
}

.sold-count:after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: var(--light-text);
}

.rating {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.rating-star {
    color: #FFD700;
    margin-right: 4px;
    font-size: 14px;
}

.rating-count {
    margin-left: 4px;
}

.price-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.current-price {
    font-size: 22px;
    font-weight: 700;
    color: #FF0000;
    margin-right: 10px;
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: var(--light-text);
}

.product-details {
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-list {
    list-style-type: none;
    margin-bottom: 15px;
    font-size: 16px;
}

.detail-list li {
    margin-bottom: 8px;
}

.features {
    margin-bottom: 15px;
}

.feature-item {
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.feature-item:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 5px;
    font-weight: bold;
}

.product-actions {
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 0;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    flex: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f9f9f9;
}

.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.image-zoom-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform: translate(-50%, -50%) scale(0.5)}
    to {transform: translate(-50%, -50%) scale(1)}
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-zoom:hover {
    color: #bbb;
}

.wa-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wa-button img {
    width: 35px;
    height: 35px;
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 60px;
    }
    
    .product-info {
        margin-left: 0;
    }
    
    .product-gallery, .product-info {
        min-width: 100%;
        max-width: 100%;
    }
    
    .media-display {
        height: 300px;
    }
    
    .product-title {
        font-size: 18px;
    }

    .container {
        padding: 15px;
    }
    
    header {
        padding: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-gallery {
        max-width: 400px;
    }
}

/* MAIN WEBSITE */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    max-height: 40px;
    margin-right: 10px;
}

header .menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

header nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

header nav.open {
    display: flex;
    left: 0;
}

header .nav-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #FF0000;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

header .nav-buttons button:hover {
    background-color: #e03d00;
}

.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 20px 40px;
    background-color: #fff;
    margin-top: 60px;
    background-image: url('images/jual-alat-gym-terlengkap.webp');
    background-size: cover;
    height: 480px;
    background-position: center 35%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .text {
    position: relative;
    z-index: 2;
    flex: 1;
    padding-right: 20px;
    color: white;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 0px;
}

.hero p {
    font-size: 18px;
    margin-top: 12px;
}

footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    margin-bottom: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.footer-section ul li a:hover {
    color: #FF0000;
    text-decoration: underline;
}

.footer-section form {
    display: flex;
    gap: 10px;
}

.footer-section form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.footer-section form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #FF0000;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.footer-section form button:hover {
    background-color: #e03d00;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
}

.footer-bottom p {
    color: #888;
}

.social-media-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 10px;
}

.social-media-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #515151;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.social-media-footer a:hover {
    background-color: #e03d00;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding-left: 16px;
    font-weight: 700;
}

@media (max-width: 980px) {
    header .menu-icon {
        display: block;
    }

    .nav-links a {
        padding-left: 0;
    }

    header nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background-color: #f5f5f5;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        text-align: left;
    }

    header nav.open {
        display: flex;
        left: 0;
    }

    header .nav-buttons {
        width: 100%;
    }

    header .drawer-logo {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        justify-content: flex-start;
    }

    header .drawer-logo img {
        max-height: 40px;
        margin-right: 10px;
    }

    header .close-icon {
        display: none;
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    header nav.open .close-icon {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero .text {
        padding: 0;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
}

.critical-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}
.product-title, .product-meta, .price-container, .product-details {
    width: 100%;
    word-wrap: break-word;
}