/* Product Detail Section */
.product-detail {
    /* background-color: #ECECEC; */
    padding: 32px 20px;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 100%;
    gap: 32px;
}

/* Product Images */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    position: relative;
    text-align: center;
}

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

.image-underline {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: #960100;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.6;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px;
}

.thumbnail-item {
    min-width: 70px;
    width: 70px;
    height: 70px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
    padding: 8px;
}

.thumbnail-item.active {
    border-color: #960100;
}

.thumbnail-item:hover {
    border-color: #960100;
    opacity: 0.8;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.product-name {
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
}

.span-product-name {
    font-size: 18px;
    font-weight: bold;
    color: #1F2937;
}

.product-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background-color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    padding-top: 11px !important;
}

.badge-tosca {
    background-color: #40e0ce;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}

.badge-tosca:hover {
    background-color: #15b5a3;
    color: #000000;
}

.badge-pink {
    background-color: #ff88cd;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
}

.badge-pink:hover {
    background-color: #f34aad;
    color: #000000;
}

.badge-red {
    background-color: #e95353;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.badge-red:hover {
    background-color: #bc1c1c;
    color: #ffffff;
}

.badge-green {
    background-color: #7aea4a;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.badge-yellow {
    background-color: #dadd30;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.badge-blue {
    background-color: #495cd8;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.badge-blue:hover {
    background-color: #253ac3;
    color: #ffffff;
}

.product-status {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
}

.price-original {
    font-size: 18px;
    color: #9CA3AF;
    text-decoration: line-through;
}

.price-koncolari {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-label {
    font-size: 13px;
    color: #6B7280;
    font-weight: 600;
}

.price-value {
    font-size: 26px;
    font-weight: 700;
    color: #960100;
}

/* Size Selection */
.product-size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.product-size-option {
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background-color: white;
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.product-size-option:hover {
    border-color: #CBD5E0;
    background-color: #F7FAFC;
}

.product-size-option.active {
    border-color: #C53030;
    color: #C53030;
    background-color: #FFF5F5;
}

/* Add to Cart Button */
.cart-button {
    width: 100%;
    padding: 16px;
    background-color: #960100;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.cart-button:hover {
    background-color: #DC2626;
}

/* All Products Section */
.all-products-section {
    background-color: #fff;
    padding: 48px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-title {
    font-size: 26px;
    font-weight: 700;
    color: #960100;
    margin-bottom: 32px;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.filter-button:hover {
    border-color: #960100;
    color: #960100;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.product-card {
    background-color: #F9FAFB;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-info {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.product-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #1F2937;
}

.product-card-footer {
    display: block;
    align-items: center;
    margin-top: 4px;
}

.product-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #960100;
}

.product-card-actions {
    display: block;
    gap: 6px;
}

.product-card-button {
    width: 100%;
    padding: 1px 10px;
    background-color: #960100;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.product-card-button:hover {
    background-color: #DC2626;
}

.action-icon {
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #9CA3AF;
    border: 1px solid #E5E7EB;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: none;
    background-color: #F3F4F6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.page-btn:hover {
    background-color: #E5E7EB;
}

.page-btn.active {
    background-color: #960100;
    color: #fff;
}

.page-btn.nav {
    background-color: #960100;
    color: #fff;
}

.page-btn.nav:hover {
    background-color: #DC2626;
}

/* Social Media Section */
.social-section {
    background-color: #ECECEC;
    padding: 48px 20px;
}

.social-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #960100;
    margin-bottom: 32px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.shopee {
    background-color: #D1F4E0;
    color: #047857;
}

.social-link.tokopedia {
    background-color: #FED7AA;
    color: #C2410C;
}

.social-link.instagram {
    background-color: #FBCFE8;
    color: #BE185D;
}

.social-link.whatsapp {
    background-color: #D1F4E0;
    color: #047857;
}

.stock {
    font-weight: bold;
    color: #000;
}

.product-modal {
    background-color: white;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.modal-product-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: contain;
    background-color: #E0F2F1;
}

.modal-product-details {
    flex: 1;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #C53030;
    margin-bottom: 8px;
}

.product-stock {
    font-size: 14px;
    color: #718096;
}

.modal-content {
    padding: 20px;
}

.section {
    margin-bottom: 24px;
}

/* Size Selection */
.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.size-table-link {
    font-size: 13px;
    color: #4299E1;
    text-decoration: none;
    cursor: pointer;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.size-option {
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    background-color: white;
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.size-option:hover {
    border-color: #CBD5E0;
    background-color: #F7FAFC;
}

.size-option.active {
    border-color: #C53030;
    color: #C53030;
    background-color: #FFF5F5;
}

.size-recommendation {
    font-size: 13px;
    color: #718096;
}

/* Quantity Selection */
.quantity-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background-color: white;
    color: #4A5568;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #F7FAFC;
    border-color: #CBD5E0;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background-color: #E2E8F0;
    color: #A0AEC0;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    margin-top: 20px;
}

.add-to-cart-btn.active {
    background-color: #2D3748;
    color: white;
    cursor: pointer;
}

.add-to-cart-btn.active:hover {
    background-color: #1A202C;
}

/* Responsive */
@media (max-width: 480px) {
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-product-image {
        width: 100px;
        height: 100px;
    }

    .product-price {
        font-size: 20px;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none; /* Hidden by default */
    align-items: flex-end;
}

.modal-overlay.show {
    display: flex;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 12px;
}

@media (min-width: 769px){
    .product-modal {
        width: 70%;
        left: 15%;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .product-wrapper {
        grid-template-columns: 50% 50%;
        gap: 48px;
    }

    .thumbnail-list {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 22px;
    }

    .price-value {
        font-size: 22px;
    }

    .section-header-title {
        font-size: 26px;
    }
}