/* ====================================
   Alice Springs Hospital RMO Society
   Main Stylesheet
   ==================================== */

/* ========== Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7B9D8B;
    --secondary-color: #E26A4C;
    --accent-color: #DDB750;
    --dark-color: #0E383B;
    --muted-color: #6B7280;
    --light-gray:  #F7F9FC;
    --medium-gray: #6B7280;
    --border-color: #D4C895;
    --primary-tint: #C8D9D1;
    --secondary-tint: #F5C8BD;
    --accent-tint: #F0E8B8;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header and Navigation ========== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-tagline {
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.welcome-text {
    opacity: 0.9;
    font-weight: 500;
}

.btn-compact {
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.header-top a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-top a:hover {
    opacity: 0.8;
}

.header-top .btn-primary {
    opacity: 1;
}

.header-top .btn-primary:hover {
    opacity: 0.95;
}

nav {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h1 {
    font-size: 1.25rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.nav-links-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease;
}

.nav-toggle:hover {
    border-color: var(--primary-color);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.nav-links .btn-primary::after {
    display: none;
}

/* ========== Main Content ========== */
main {
    min-height: calc(100vh - 250px);
}

/* ========== Messages ========== */
.messages {
    margin: 1rem 0;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123,157,139,0.3);
}

.btn-secondary {
    background-color: var(--medium-gray);
}

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

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

.btn-danger:hover {
    background-color: #c82333;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* ========== Cards ========== */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* ========== Footer ========== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* ========== Forms ========== */
form input, form textarea, form select {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus, form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ========== Home Page ========== */
.hero {
    background: linear-gradient(rgba(14, 56, 59, 0.7), rgba(123, 157, 139, 0.5)), url('/media/dsc_0636.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 12px 12px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1rem -2rem;
}

.partner-logo {
    width: 150px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

/* ========== Page Header (used in multiple pages) ========== */
.page-header {
    background: linear-gradient(rgba(14, 56, 59, 0.7), rgba(123, 157, 139, 0.5)), url('/media/dsc_0636.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 12px 12px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ========== Membership / Join Now Page ========== */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.membership-card {
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.membership-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.membership-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

.membership-card.featured .membership-header {
    background-color: var(--secondary-color);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.info-section {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

/* ========== Events Page ========== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.event-card {
    display: flex;
    flex-direction: column;
}

.event-image {
    width: calc(100% + 4rem);
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

.event-date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.event-location {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.event-description {
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.section-divider {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

/* ========== Partnerships Page ========== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.partner-logo-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    flex-shrink: 0;
}

.partner-logo-container img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.partner-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
    min-height: 3.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-description {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== Contact Page ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-info-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
}

.contact-method {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* ========== Responsive Styles ========== */
@media (max-width: 992px) {
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .nav-links-wrapper {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background-color: #fff;
        border-top: 1px solid var(--border-color);
        padding: 0.75rem 0 0;
    }
    
    .nav-links-wrapper.is-open {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        padding: 0.75rem 0;
    }
    
    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .grid,
    .events-grid,
    .partners-grid,
    .membership-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card img,
    .event-image {
        width: 100%;
        margin: 0 0 1rem 0;
        border-radius: 12px 12px 0 0;
    }
    
    .membership-header {
        margin: 0 0 1.5rem 0;
    }
    
    .membership-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .header-top {
        font-size: 0.75rem;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-actions,
    .header-links {
        width: 100%;
        justify-content: center;
    }
    
    .header-top-content > .site-tagline {
        order: 1;
    }
}

/* ========== Shopping Cart Styles ========== */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-right: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: 0;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Add to cart button animation */
.add-to-cart-btn {
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== Commerce / Cart / Checkout Styles ========== */
.commerce-page {
    padding: 3rem 0;
}

.commerce-page h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border-color);
}

.cart-item:first-child {
    border-radius: 12px 12px 0 0;
}

.cart-item:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.cart-item:only-child {
    border-radius: 12px;
}

.cart-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.cart-item-meta {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.cart-item-price .price {
    font-size: 2rem;
    color: var(--success-color);
    margin: 0;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cart-quantity-control label {
    margin: 0;
    font-weight: normal;
}

.cart-quantity-control input {
    width: 80px;
    padding: 0.5rem;
    margin: 0;
    text-align: center;
}

.badge-recurring {
    display: inline-block;
    background-color: var(--primary-tint);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-of-type {
    border-bottom: 2px solid var(--dark-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.summary-total .amount {
    color: var(--success-color);
}

.summary-note {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--primary-tint);
    border-radius: 8px;
}

.btn-checkout {
    width: 100%;
    background-color: var(--success-color);
    padding: 1rem;
    font-size: 1.125rem;
}

.btn-checkout:hover {
    background-color: #218838;
}

.btn-continue-shopping {
    display: block;
    text-align: center;
    color: var(--medium-gray);
    text-decoration: none;
    padding: 0.75rem;
    margin-top: 1rem;
    transition: color 0.3s;
}

.btn-continue-shopping:hover {
    color: var(--dark-color);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-cart h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.empty-cart p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

/* Checkout Page */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.checkout-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkout-form-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.checkout-form-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--dark-color);
}

.billing-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-element-container {
    margin: 1.5rem 0;
}

.payment-hint {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
    font-style: italic;
}

.btn-pay {
    width: 100%;
    background-color: var(--success-color);
    padding: 1rem;
    font-size: 1.125rem;
}

.btn-pay:hover:not(:disabled) {
    background-color: #218838;
}

.btn-pay:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}

/* Order Details Page */
.order-detail-page {
    padding: 3rem 0;
}

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.order-header h1 {
    font-size: 2.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.order-date {
    color: var(--medium-gray);
}

.status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.order-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.order-items-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.order-items-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.order-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.order-item-details h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.order-item-description {
    color: var(--medium-gray);
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

.order-item-pricing {
    text-align: right;
}

.unit-price {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.item-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    margin-top: 0.25rem;
}

.order-summary-box {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-summary-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.billing-info-box {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
}

.billing-info-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.info-item {
    margin-bottom: 1rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: var(--dark-color);
}

.order-notes {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.order-notes h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Payment Success Page */
.success-page {
    padding: 3rem 0;
}

.success-container {
    max-width: 800px;
    margin: 0 auto;
}

.success-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    color: var(--success-color);
}

.success-card h1 {
    font-size: 2.5rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-card .subtitle {
    font-size: 1.25rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
}

.order-details-box {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.order-details-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.detail-row {
    margin-bottom: 1.5rem;
}

.detail-label {
    color: var(--medium-gray);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
}

.detail-value.large {
    font-size: 2rem;
    color: var(--success-color);
}

.order-items-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.order-items-summary h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.summary-item-name {
    font-weight: 500;
    flex: 1;
}

.summary-item-meta {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.summary-item-price {
    font-weight: 600;
    margin-left: 1rem;
}

.confirmation-notice {
    background-color: var(--primary-tint);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2rem 0;
}

.confirmation-notice p {
    color: var(--dark-color);
    margin: 0;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 200px;
}

/* Responsive Commerce Styles */
@media (max-width: 992px) {
    .cart-layout,
    .checkout-layout,
    .order-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary,
    .order-summary-box,
    .billing-info-box {
        position: static;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .billing-fields {
        grid-template-columns: 1fr;
    }
    
    .cart-item-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-item-price {
        align-items: flex-start;
    }
    
    .order-item-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-item-pricing {
        text-align: left;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

