/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #ffffff; /* White background */
    font-size: 16px; /* Base font size for consistency */
}

.section-container {
    max-width: 1200px;
    margin: auto;
    padding: 3rem 1rem; /* Consistent padding */
}

h2 {
    font-family: 'Playfair Display', serif; /* Match nav header font */
    font-size: 1.5rem;
    color: #000000; /* Black */
    margin-bottom: 1rem;
    text-align: center;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    color: #ffffff; /* White text */
    white-space: nowrap;
    background-color: #000000; /* Black to match .add-to-cart-btn */
    border-radius: 0; /* Sharp corners */
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none; /* Ensure no underline for button links */
}

.btn:hover {
    background-color: #a60b00; /* Darker red to match .add-to-cart-btn */
}

/* Track Form */
.track-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 0.4rem;
}

input {
    padding: 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #000000; /* Visible border */
    border-radius: 0; /* Sharp corners */
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #a60b00; /* Darker red to match hover */
    outline: none;
}

.track-btn {
    background-color: #000000; /* Black to match .add-to-cart-btn */
    color: #ffffff; /* White text */
    text-decoration: none; /* Ensure no underline */
}

.track-btn:hover {
    background-color: #a60b00; /* Darker red to match .add-to-cart-btn */
    text-decoration: none; /* Ensure no underline on hover */
}

/* Tracking Result */
.tracking-result {
    background: #ffffff; /* White container */
    padding: 1.2rem;
    border: none; /* No border */
    border-radius: 0; /* Sharp corners */
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.tracking-result p {
    font-size: 0.9rem;
    color: #000000;
    margin: 0.4rem 0;
    line-height: 1.6;
}

.tracking-result strong {
    color: #000000; /* Black */
}

.error {
    color: #c8102e; /* Deep red */
    font-size: 0.9rem;
    background: #fff6f7; /* Light red background */
    padding: 0.4rem;
    border-radius: 0; /* Sharp corners */
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background-color: #000000; /* Black to match .add-to-cart-btn */
    color: #ffffff; /* White text */
    z-index: 10;
    border: none; /* No border */
    border-radius: 0; /* Sharp corners */
}

.back-to-top:hover {
    background-color: #a60b00; /* Darker red to match .add-to-cart-btn */
}

/* Account Dropdown Styles */
.account-dropdown {
    position: relative;
    z-index: 10009;
}

.account-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding: 0.6rem;
    display: block;
}

.account-link:hover {
    color: #c8102e;
    border-bottom: 2px solid #c8102e;
}

.account-submenu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    background-color: #ffffff;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    z-index: 99999;
    border: none; /* No border */
    border-radius: 0; /* Sharp corners */
}

.account-dropdown:hover .account-submenu {
    display: block;
}

.account-submenu li {
    padding: 0.5rem 1rem;
}

.account-submenu a, .account-submenu button {
    font-size: 0.85rem;
    color: #000000;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.account-submenu a:hover, .account-submenu button:hover {
    color: #c8102e;
}

/* Responsive */
@media (min-width: 768px) {
    .track-form {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.8rem;
    }

    .form-group {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .account-link {
        color: #ffffff;
        padding: 0.6rem;
        border-bottom: 2px solid transparent;
    }

    .account-link:hover {
        color: #c8102e;
        border-bottom: 2px solid #c8102e;
    }

    .account-submenu {
        top: 100%;
        width: 100%;
        background-color: #c8102e;
        border: none;
        border-radius: 0; /* Sharp corners */
    }

    .account-submenu a, .account-submenu button {
        color: #ffffff;
    }

    .account-submenu a:hover, .account-submenu button:hover {
        color: #ffffff;
        text-decoration: underline;
    }
}

/* Status Colors */
.status-pending { color: #ff9800; }
.status-processing { color: #2196f3; }
.status-shipped { color: #4caf50; }
.status-delivered { color: #2e7d32; }
.status-cancelled { color: #f44336; }