/* ============================================
   UltraBox Store - Main Stylesheet
   Dark theme, mobile-first responsive design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #60a5fa;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #f1f5f9;
    line-height: 1.3;
}

main {
    flex: 1;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    text-align: center;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
}

.btn-primary:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #3B82F6;
    border-color: #3B82F6;
}

.btn-secondary:hover {
    background: #3B82F6;
    color: #fff;
}

.btn-danger {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}

.btn-success {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar .logo {
    flex-shrink: 0;
}

.navbar .logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a {
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f1f5f9;
    background: rgba(59, 130, 246, 0.1);
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #EF4444;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .btn {
    font-size: 1.0625rem;
    padding: 0.875rem 2.5rem;
}

/* --- Section --- */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* --- Product Card --- */
.product-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #3B82F6;
}

.product-card-image {
    background: #0f172a;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
}

.product-card-image img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

.product-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .category-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.product-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.product-card h3 a {
    color: #f1f5f9;
}

.product-card h3 a:hover {
    color: #3B82F6;
}

.product-card .short-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    flex: 1;
}

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

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10B981;
}

/* --- Category Filters --- */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-filters a {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 2rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.category-filters a:hover,
.category-filters a.active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #fff;
}

/* --- Product Detail --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.product-detail-image {
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.product-detail-image img {
    max-height: 280px;
    width: auto;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-info .category-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.product-detail-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-detail-info .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 1rem;
}

.product-detail-info .description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Quantity Controls --- */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #0f172a;
}

.qty-btn {
    background: #1e293b;
    border: none;
    color: #e2e8f0;
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #334155;
}

.qty-input {
    width: 50px;
    text-align: center;
    background: #0f172a;
    border: none;
    color: #e2e8f0;
    font-size: 0.9375rem;
    height: 40px;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #64748b;
}

.breadcrumb a {
    color: #94a3b8;
}

.breadcrumb a:hover {
    color: #3B82F6;
}

.breadcrumb .separator {
    color: #475569;
}

.breadcrumb .current {
    color: #e2e8f0;
}

/* --- Cart --- */
.cart-section {
    padding: 2rem 0;
}

.cart-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border-bottom: 2px solid #334155;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #1e293b;
    vertical-align: middle;
}

.cart-table .cart-item-image {
    width: 60px;
    height: 60px;
    background: #0f172a;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.cart-table .cart-item-image img {
    max-height: 40px;
}

.cart-table .cart-item-name {
    font-weight: 600;
    color: #f1f5f9;
}

.cart-table .cart-item-price,
.cart-table .cart-item-total {
    font-weight: 600;
}

.cart-table .cart-item-total {
    color: #10B981;
}

.cart-table .remove-btn {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.cart-table .remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Mobile cart cards */
.cart-item-mobile {
    display: none;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-item-mobile-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cart-item-mobile-image {
    width: 60px;
    height: 60px;
    background: #0f172a;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.5rem;
}

.cart-item-mobile-image img {
    max-height: 40px;
}

.cart-item-mobile-info h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.cart-item-mobile-info .price {
    color: #94a3b8;
    font-size: 0.875rem;
}

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

.cart-item-mobile-footer .line-total {
    font-weight: 700;
    color: #10B981;
}

/* Cart Summary */
.cart-summary {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
}

.cart-summary-row.total {
    border-top: 2px solid #334155;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.cart-summary-row.total .value {
    color: #10B981;
}

.cart-summary .btn {
    margin-top: 1.25rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.cart-empty h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cart-empty p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* --- Checkout --- */
.checkout-section {
    padding: 2rem 0;
}

.checkout-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

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

/* --- Forms --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

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

/* --- Order Summary (checkout sidebar) --- */
.order-summary {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.order-summary h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.order-summary-item .name {
    color: #cbd5e1;
    flex: 1;
}

.order-summary-item .qty {
    color: #64748b;
    margin: 0 0.75rem;
}

.order-summary-item .item-total {
    font-weight: 600;
    color: #e2e8f0;
}

.order-summary .summary-totals {
    border-top: 1px solid #334155;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* --- Alerts --- */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.badge-paid {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-shipped {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-delivered {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

.badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge-refunded {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

/* --- Benefits / Features Grid --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.benefit-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
}

.benefit-card p {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* --- Order Success --- */
.order-success {
    text-align: center;
    padding: 3rem 1rem;
}

.order-success .checkmark {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #10B981;
}

.order-success h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.order-success .order-number {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.order-success .email-note {
    color: #64748b;
    margin-bottom: 2rem;
}

.order-success-details {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

/* --- Order Cancel --- */
.order-cancel {
    text-align: center;
    padding: 3rem 1rem;
}

.order-cancel .warning-icon {
    width: 80px;
    height: 80px;
    background: rgba(234, 179, 8, 0.15);
    border: 2px solid #EAB308;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #EAB308;
}

.order-cancel h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.order-cancel p {
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Error Pages --- */
.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.error-page p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* --- Page Content (legal pages etc.) --- */
.page-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    line-height: 1.8;
}

.page-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.375rem;
    margin: 2rem 0 0.75rem;
}

.page-content h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.page-content ul, .page-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* --- Contact Page --- */
.contact-page {
    padding-top: 2rem;
}

.contact-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.contact-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #94a3b8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.contact-info-column {
    display: grid;
    gap: 1.25rem;
}

.contact-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.contact-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-size: 1rem;
    margin: 1rem 0 0.35rem;
}

.contact-card p {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.contact-card ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.contact-card li {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.contact-meta {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.contact-meta li {
    margin-bottom: 1rem;
}

.contact-meta li:last-child {
    margin-bottom: 0;
}

.contact-meta-label {
    display: block;
    color: #94a3b8;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.contact-meta address {
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.6;
}

.contact-form-card .form-group:last-child {
    margin-bottom: 0;
}

.required {
    color: #f87171;
}

.faq-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.faq-links a {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid #334155;
    background: #0f172a;
    border-radius: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.faq-links a:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.15);
    color: #f1f5f9;
}

/* --- Footer --- */
.site-footer {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #f1f5f9;
}

.footer-col p,
.footer-col li {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.375rem;
}

.footer-col a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #3B82F6;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #64748b;
}

/* --- Related Products --- */
.related-products {
    padding: 2rem 0;
    border-top: 1px solid #334155;
    margin-top: 2rem;
}

.related-products h2 {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

/* --- Tables (generic) --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border-bottom: 2px solid #334155;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1e293b;
    font-size: 0.9375rem;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #94a3b8; }
.text-success { color: #10B981; }
.text-danger { color: #EF4444; }
.text-warning { color: #EAB308; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }

.hidden { display: none; }

/* --- Responsive --- */
@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

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

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

    .contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .cart-table {
        display: none;
    }

    .cart-item-mobile {
        display: block;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .product-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #1e293b;
        border-bottom: 1px solid #334155;
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        display: block;
    }
}
