/* ============================================
   MODERN CSS FOR FLEURSMEMORIES
   Updated: 2025
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #fdf2f8;
}

/* ============================================
   CARD STYLES - MODERN
   ============================================ */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   PRODUCT IMAGE STYLES
   ============================================ */
.card-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #fafafa;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.product-image-container {
    position: relative;
    max-height: 500px;
    overflow: hidden;
    border-radius: 16px;
    background: white;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* ============================================
   PRICE SECTION STYLES
   ============================================ */
.price-section {
    margin-bottom: 1.5rem;
}

.price-card {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border: 2px solid #f9a8d4;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15);
}

/* ============================================
   STATUS BADGE
   ============================================ */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ============================================
   BUTTON STYLES - MODERN
   ============================================ */
.btn {
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #ec4899, #be185d);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #be185d, #9d174d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899, #be185d);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #be185d, #9d174d);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.btn-outline-primary {
    border-radius: 12px;
    border: 2px solid #ec4899;
    color: #ec4899;
    background: white;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
    border: none;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ============================================
   SEARCH AND FILTER STYLES
   ============================================ */
.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.input-group-text {
    background: white;
    border: 2px solid #f3f4f6;
    border-right: none;
    color: #6b7280;
}

.form-control {
    border: 2px solid #f3f4f6;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
    outline: none;
}

.form-select {
    border-radius: 8px;
    border: 2px solid #f3f4f6;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
    outline: none;
}

/* ============================================
   MODAL STYLES - ABU-ABU HEADER
   ============================================ */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: #f5f5f5;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
    background: #fafafa;
    padding: 1.5rem;
}

.btn-close {
    filter: none;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-label {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #f3f4f6;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
    outline: none;
}

/* ============================================
   ALERT STYLES - MODERN
   ============================================ */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    border-left: 4px solid #10b981;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ============================================
   DESCRIPTION CONTENT
   ============================================ */
.description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ============================================
   BREADCRUMB STYLES
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    color: #6b7280;
}

.breadcrumb-item.active {
    color: #ec4899;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #9ca3af;
    font-size: 1.2rem;
}

/* ============================================
   FOOTER STYLES - BLACK
   ============================================ */
footer {
    background: #000000 !important;
    color: #ffffff !important;
    margin-top: 4rem;
    padding: 3rem 0;
}

footer h5 {
    color: #ffffff !important;
}

footer p,
footer li,
footer span {
    color: #d1d5db !important;
}

footer a {
    color: #d1d5db !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ec4899 !important;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #fef3c7 !important;
    transform: translateY(-1px);
}

/* ============================================
   PRODUCT INFO ENHANCEMENTS
   ============================================ */
.product-info h1 {
    color: #1f2937;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-details ul {
    list-style: none;
    padding: 0;
}

.product-details ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
}

.product-details ul li:last-child {
    border-bottom: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .card-img-container {
        height: 200px;
    }

    .product-image-container {
        max-height: 320px;
    }

    .price-section .row {
        margin: 0 -5px;
    }

    .price-section .col-md-6 {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .modal-dialog {
        margin: 10px;
    }

    h1,
    .h1 {
        font-size: 1.75rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-img-container {
        height: 180px;
    }

    .h2 {
        font-size: 1.25rem;
    }

    .price-card h4 {
        font-size: 1.1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.product-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ============================================
   NO RESULTS MESSAGE
   ============================================ */
#noResults {
    animation: fadeIn 0.5s ease-in-out;
    padding: 3rem 0;
}

/* ============================================
   PRICE DISPLAY IN MODAL
   ============================================ */
.price-display {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid #f9a8d4;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f9a8d4;
}

.price-item:last-child {
    border: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: #be185d;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #ec4899;
}

.price-label {
    font-weight: 500;
}

.price-value {
    font-weight: 600;
    color: #831843;
}

/* ============================================
   DELIVERY INFO
   ============================================ */
.delivery-fee-info {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #86efac;
    border-radius: 8px;
    padding: 0.875rem;
    margin-top: 0.5rem;
}

.free-delivery {
    color: #15803d;
    font-weight: 600;
}

/* ============================================
   QRIS SECTION
   ============================================ */
.qris-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.qris-section img {
    max-width: 280px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-muted-custom {
    color: #6b7280 !important;
}

.shadow-sm-custom {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-custom {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-lg-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}