
/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    cursor: pointer;
}

.btn:hover, .btn:focus {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

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

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

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn.disabled, .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

.form-row > .form-group {
    flex: 0 0 100%;
    padding-right: 5px;
    padding-left: 5px;
}

.form-row.two-columns > .form-group {
    flex: 0 0 50%;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}

/* Alerts */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-right: 1.5rem;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #007bff;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-box {
    margin-right: 1.5rem;
    position: relative;
}

.search-box input {
    padding-right: 2.5rem;
    border-radius: 20px;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
}

.cart-icon {
    position: relative;
    margin-right: 1.5rem;
    font-size: 1.25rem;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #007bff;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.user-menu-btn:hover {
    background-color: #f5f5f5;
}

.user-menu-btn i {
    margin-right: 0.5rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.auth-links a {
    margin-left: 1rem;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background-color: #343a40;
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.75rem;
    color: #fff;
    transition: background-color 0.2s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.newsletter h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.newsletter form {
    display: flex;
}

.newsletter input {
    flex: 1;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem 0 0 0.25rem;
}

.newsletter button {
    padding: 0.375rem 0.75rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-links a {
    color: #adb5bd;
    margin-left: 1rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    background-color: #007bff;
    color: #fff;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

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

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

/* Homepage Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
}

.view-all {
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card a {
    display: block;
    padding: 1.5rem;
    text-align: center;
    color: #333;
    text-decoration: none;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

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

.product-card {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card a {
    display: block;
    color: #333;
    text-decoration: none;
}

.product-image {
    height: 200px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

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

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.product-info {
    padding: 1rem;
}

.product-name {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.product-price {
    font-weight: 700;
    color: #007bff;
}

.product-actions {
    padding: 0 1rem 1rem;
}

.benefits-section {
    margin: 3rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
}

/* Auth Forms */
.auth-form {
    max-width: 500px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-form h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.error-container,
.success-container {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Product Listing Page */
.products-wrapper {
    display: flex;
    gap: 2rem;
}

.product-sidebar {
    flex: 0 0 250px;
}

.products-content {
    flex: 1;
}

.sidebar-section {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    color: #333;
    text-decoration: none;
    border-radius: 0.25rem;
}

.category-list a:hover,
.category-list a.active {
    background-color: #f0f0f0;
}

.category-list .count {
    color: #6c757d;
    font-size: 0.875rem;
}

.price-filter-form {
    display: flex;
    flex-direction: column;
}

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

.products-tools {
    display: flex;
    align-items: center;
}

.product-count {
    margin-right: 1.5rem;
    color: #6c757d;
}

.sort-dropdown {
    display: flex;
    align-items: center;
}

.sort-dropdown label {
    margin-right: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    color: #007bff;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.page-link:hover {
    background-color: #f0f0f0;
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

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

.product-gallery {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-image {
    margin-bottom: 1rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 0.25rem;
    overflow: hidden;
}

.main-image img {
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: #f5f5f5;
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: #6c757d;
}

.product-title {
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.product-sku {
    margin-right: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.product-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-attributes {
    margin-bottom: 1.5rem;
}

.product-attributes h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.product-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-attributes li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.attribute-name {
    font-weight: 500;
}

.product-actions {
    margin-top: 2rem;
}

.stock-status {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: inline-block;
    font-weight: 500;
}

.stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.quantity-selector label {
    margin-right: 1rem;
    font-weight: 500;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 1px solid #ced4da;
    cursor: pointer;
}

.quantity-btn.minus {
    border-radius: 0.25rem 0 0 0.25rem;
}

.quantity-btn.plus {
    border-radius: 0 0.25rem 0.25rem 0;
}

.quantity-selector input {
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #ced4da;
    border-left: none;
    border-right: none;
}

/* Related Products */
.related-products {
    margin-top: 3rem;
}

/* Cart Page */
.cart-page {
    margin: 2rem 0;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

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

.cart-items {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.cart-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.cart-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product .product-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 1rem;
}

.cart-product .product-name {
    font-weight: 500;
}

.price-col, .total-col {
    font-weight: 500;
}

.quantity-form {
    display: flex;
    align-items: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
}

.btn-remove:hover {
    color: #bd2130;
}

.cart-summary {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.summary-header h2 {
    margin: 0;
}

.summary-content {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row.shipping {
    color: #6c757d;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
}

.summary-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 1rem 0;
}

.checkout-button {
    margin-bottom: 1rem;
}

.continue-shopping {
    text-align: center;
}

/* Checkout Page */
.checkout-page {
    margin: 2rem 0;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: calc(100% - 40px);
    height: 2px;
    background-color: #e0e0e0;
    transform: translate(20px, -50%);
}

.step.active .step-number {
    background-color: #007bff;
    color: #fff;
}

.step-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #6c757d;
    font-weight: 700;
    margin-right: 0.75rem;
}

.step-label {
    font-weight: 500;
}

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

.checkout-form {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1rem;
}

.address-options,
.shipping-options,
.payment-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.address-option input,
.shipping-option input,
.payment-option input {
    display: none;
}

.address-card,
.shipping-card,
.payment-card {
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}

.address-option input:checked + .address-card,
.shipping-option input:checked + .shipping-card,
.payment-option input:checked + .payment-card {
    border-color: #007bff;
}

.address-content p {
    margin: 0 0 0.5rem;
}

.default-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #007bff;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.shipping-card .shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.shipping-card h3,
.payment-card h3 {
    margin: 0;
    font-size: 1rem;
}

.shipping-price {
    font-weight: 700;
}

.shipping-description {
    color: #6c757d;
    margin: 0;
}

.payment-card .payment-content {
    display: flex;
    align-items: center;
}

.payment-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #007bff;
}

.payment-details h3 {
    margin: 0;
}

.payment-details p {
    margin: 0;
    color: #6c757d;
}

.payment-form {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 0.5rem;
}

.review-section {
    margin-bottom: 1.5rem;
    position: relative;
}

.review-section h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.review-items {
    margin-bottom: 1rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.item-details h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.item-details p {
    margin: 0;
    color: #6c757d;
}

.review-address p {
    margin: 0 0 0.25rem;
}

.change-link {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.875rem;
}

.checkout-sidebar {
    align-self: flex-start;
    position: sticky;
    top: 85px;
}

.order-summary {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-summary h3 {
    margin-bottom: 1.5rem;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #333;
}

.item-info {
    display: flex;
}

.item-quantity {
    margin-right: 0.5rem;
    color: #6c757d;
}

/* Confirmation Page */
.confirmation-page {
    margin: 2rem 0;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.order-info {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.order-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.order-info-header h2 {
    margin: 0;
}

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

.order-section {
    margin-bottom: 1.5rem;
}

.order-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.order-section h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.address-box {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.address-box p {
    margin: 0 0 0.25rem;
}

.payment-status {
    font-weight: 500;
}

.payment-status.completed {
    color: #28a745;
}

.payment-status.pending {
    color: #ffc107;
}

.payment-status.failed {
    color: #dc3545;
}

.order-items {
    margin-top: 2rem;
}

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

.items-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.items-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.items-table tfoot td {
    padding: 0.75rem;
    border-bottom: none;
}

.items-table .text-right {
    text-align: right;
}

.items-table .total-row {
    font-weight: 700;
    color: #007bff;
    font-size: 1.1rem;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
    }
    
    .order-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .main-nav {
        margin-bottom: 1rem;
    }
    
    .products-wrapper {
        flex-direction: column;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-tools {
        margin-top: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-count {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .form-row.two-columns > .form-group {
        flex: 0 0 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}