/* Remember The XIth Memorial Shop - Stylesheet */

:root {
    --primary-color: #8B0000;
    --primary-dark: #660000;
    --secondary-color: #2C3E50;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

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

/* Header */
header {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.logo .tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Flash Messages */
.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

/* Shop Header */
.shop-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shop-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Shop Controls */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--light-gray);
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.out-of-stock {
    color: #999;
    font-style: italic;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}
.product-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.product-description-full {
    line-height: 1.8;
    margin-bottom: 2rem;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.quantity-selector input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.stock-info {
    color: #666;
    font-size: 0.9rem;
}
.out-of-stock-notice {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}
.product-info-box {
    background: #fff8e1;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-top: 2rem;
}
/* Cart */
.empty-cart {
    text-align: center;
    padding: 3rem;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.cart-table th {
    background: var(--light-gray);
    font-weight: 600;
}
.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}
.product-info {
    display: flex;
    align-items: center;
}
.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.cart-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.cart-summary {
    max-width: 400px;
    margin-left: auto;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.summary-row.total {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.2rem;
}
.shipping-notice {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0;
}
.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.charity-notice {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-notice {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}
.order-summary-sidebar {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 1rem;
}
.summary-items {
    margin-bottom: 1rem;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.summary-totals .summary-row {
    margin-bottom: 0.75rem;
}
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-secondary {
    background: var(--secondary-color);
    color: white;
}
.btn-secondary:hover {
    background: #1a252f;
}
.btn-danger {
    background: var(--danger-color);
    color: white;
}
.btn-danger:hover {
    background: #a02722;
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-block {
    width: 100%;
}
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.btn-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.9rem;
}
.btn-remove:hover {
    text-decoration: underline;
}
/* Order Confirmation */
.order-confirmation {
    max-width: 800px;
    margin: 0 auto;
}
.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
}
.confirmation-header h1 {
    color: var(--success-color);
    font-size: 2.5rem;
}
.order-details-box {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.confirmation-message {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.order-items-table th,
.order-items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.order-items-table tfoot td {
    font-weight: 500;
}
.total-row td {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}
.shipping-details {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}
.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}
.support-message {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}
/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}
.admin-nav {
    display: flex;
    gap: 1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}
.admin-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th {
    background: var(--light-gray);
    font-weight: 600;
}
.admin-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.no-image-thumb {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #999;
    border-radius: 4px;
}
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}
.status-active,
.status-completed {
    background: #d4edda;
    color: #155724;
}
.status-inactive,
.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}
.status-pending {
    background: #fff3cd;
    color: #856404;
}
.actions {
    display: flex;
    gap: 0.5rem;
}
/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}
.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.login-box h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: normal;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.login-footer {
    text-align: center;
    margin-top: 1rem;
}
/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}
.footer-section ul {
    list-style: none;
}
.footer-section a {
    color: rgba(255,255,255,0.8);
    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 rgba(255,255,255,0.1);
}
/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .shop-controls {
        flex-direction: column;
    }

    .search-form {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-table {
        font-size: 0.9rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-nav {
        flex-wrap: wrap;
    }
}
/* Print Styles */
@media print {
    header, footer, .btn, .admin-nav {
        display: none;
    }
}


.gift-aid-confirmation {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.gift-aid-confirmation h3 {
    color: #2e7d32;
    margin-top: 0;
}






css/* ===== PRODUCT CARD FIX ===== */

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

.product-card {
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: box-shadow 0.3s !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.product-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}

.product-image-placeholder {
    width: 100% !important;
    height: 200px !important;
    background: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
}

.product-info {
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.product-info h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    color: #333 !important;
    min-height: 2.2rem !important;
}

.product-category {
    display: inline-block !important;
    padding: 0.25rem 0.5rem !important;
    background: #f5f5f5 !important;
    border-radius: 3px !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
    color: #666 !important;
}

.product-description {
    color: #666 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
    flex: 1 !important;
}

.product-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid #eee !important;
}

.product-price {
    font-size: 1.3rem !important;
    font-weight: bold !important;
    color: #8B0000 !important;
}

.btn-primary {
    display: inline-block !important;
    padding: 0.5rem 1.2rem !important;
    background: #8B0000 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
}

.btn-primary:hover {
    background: #660000 !important;
    color: white !important;
    text-decoration: none !important;
}

.out-of-stock {
    color: #999 !important;
    font-style: italic !important;
    font-size: 0.9rem !important;
}

/* Make sure container doesn't interfere */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}


/* ===== PayPal Payment Step ===== */
.paypal-payment-step {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #27ae60;
}

.paypal-payment-step h2 {
    color: #27ae60;
    margin-top: 0;
}

.paypal-amount-display {
    background: #f0f9f0;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.paypal-amount-display strong {
    font-size: 22px;
    color: #1a1a2e;
}

#paypal-button-container {
    margin: 24px 0;
    max-width: 400px;
}

.paypal-note {
    color: #666;
    margin-top: 10px;
}

/* ===== Shipping Method Selector ===== */
.shipping-method-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 24px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.shipping-option:hover {
    border-color: #1a1a2e;
    background: #f8f8f8;
}

.shipping-option.selected {
    border-color: #1a1a2e;
    background: #f0f0f8;
}

.shipping-option input[type="radio"] {
    width: auto;
    flex-shrink: 0;
    margin: 0;
    accent-color: #1a1a2e;
}

.shipping-option span strong {
    display: block;
    margin-bottom: 2px;
}

/* ===== Collection & International Notices ===== */
.collection-notice {
    background: #f0f9f0;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 16px 0;
    color: #1a5c30;
}

.collection-notice p {
    margin: 0;
}

.international-shipping-notice {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 12px 0;
    color: #7a5c00;
}

.international-shipping-notice p {
    margin: 0;
}

.international-shipping-notice a {
    color: #1a1a2e;
    font-weight: bold;
}