/* ========================================
   CHECKOUT.CSS - HALAMAN CHECKOUT
   ======================================== */

/* =========================
   RESET & BASE STYLES
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #988E80;
    color: #ffffff;
    line-height: 1.6;
}

/* =========================
   NAVBAR STYLES
========================= */

.navbar {
    background: #988E80;
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgb(97, 87, 87);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

/* Logo */
.navbar-brand img {
    max-height: 36px;
    width: auto;
    display: block;
}

/* Text PEARLYS */
.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.navbar-menu li a:hover {
    opacity: 0.85;
}

/* =========================
   CONTAINER
========================= */

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* =========================
   CARD
========================= */

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title::before {
    content: '🛒';
    font-size: 2rem;
}

/* =========================
   CHECKOUT GRID
========================= */

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

.checkout-grid h3 {
    color: #2d3748;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #988E80;
    display: inline-block;
}

/* =========================
   FORM STYLES
========================= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #2d3748;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #988E80;
    box-shadow: 0 0 0 4px rgba(152, 142, 128, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =========================
   PAYMENT METHOD SECTION
========================= */

.payment-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.payment-title {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-title::before {
    content: '💳';
}

.payment-options {
    display: grid;
    gap: 1rem;
}

/* Payment Option Card */
.payment-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #988E80;
    box-shadow: 0 4px 12px rgba(152, 142, 128, 0.15);
    transform: translateY(-2px);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-content {
    border-left: 4px solid #988E80;
    padding-left: 1rem;
}

.payment-option input[type="radio"]:checked ~ .checkmark {
    background: #988E80;
    border-color: #988E80;
}

.payment-option input[type="radio"]:checked ~ .checkmark::after {
    display: block;
}

.payment-content {
    flex: 1;
    padding-left: 0.5rem;
    transition: all 0.3s ease;
}

.payment-method-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-desc {
    font-size: 0.875rem;
    color: #718096;
}

/* Custom Radio Checkmark */
.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: white;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-left: auto;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

/* =========================
   SUMMARY BOX
========================= */

.summary-box {
    background: linear-gradient(135deg, #988E80 0%, #7a6f63 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(152, 142, 128, 0.4);
    color: #ffffff;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.item-mini {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.summary-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.summary-total h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    border: none;
    padding: 0;
}

.summary-total h2 {
    color: #ffd700;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* =========================
   BUTTON
========================= */

.btn-success-wider {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-success-wider:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.5);
    transform: translateY(-3px);
}

.btn-success-wider:active {
    transform: translateY(-1px);
}

.btn-success-wider:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =========================
   UTILITY CLASSES
========================= */

.mb-1 {
    margin-bottom: 1rem;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 968px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 0.6rem;
    }

    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .checkout-grid h3 {
        font-size: 1.2rem;
    }

    .summary-box {
        padding: 1.5rem;
    }

    .summary-total h2 {
        font-size: 1.5rem;
    }

    .btn-success-wider {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .payment-option {
        padding: 1rem;
    }

    .payment-method-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.3rem;
    }

    .summary-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .summary-price {
        align-self: flex-end;
    }
}
/* ===== CART BADGE ===== */
.cart-badge {
    background: #ff4d4d;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 4px;
}
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Welcome Title */
.welcome-title {
    text-align: center;
    margin: 2rem 0;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: bold;
}

/* Flex Row Layout */
.flex-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.flex-row.reverse {
    flex-direction: row-reverse;
}

/* Square Image */
.square-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.square-img:hover {
    transform: scale(1.05);
}

/* kategori product */
.desc-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desc-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* About Section */
.about-box {
    background: linear-gradient(135deg, #B4AFA7 0%, #8A8786 100%);
    padding: 3rem;
    border-radius: 15px;
    margin: 4rem 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(34, 21, 43, 0.3);
}

.about-line {
    width: 100px;
    height: 4px;
    background-color: white;
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.about-text {
    color: white;
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Footer Styles */
footer {
    background: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

.footer-address {
    color: #333;
    font-weight: 500;
}

.footer-contact {
    font-size: 16px;
    color: #333;
}

.footer-copyright {
    color: #333;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .navbar-menu {
        flex-direction: column;
        gap: 1rem;
    }
    .flex-row,
    .flex-row.reverse {
        flex-direction: column;
        gap: 1.5rem;
    }
    .square-img {
        width: 100%;
        height: 300px;
    }
    .desc-title {
        font-size: 2rem;
        text-align: center;
    }
    .desc-text {
        font-size: 1rem;
    }
    .container {
        padding: 1rem;
    }
    .welcome-title {
        font-size: 1.8rem;
    }
}