/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #d4af37; /* Golden color */
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

/* Page header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-header h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

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

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

.main-header h1 {
    font-size: 1.8rem;
    margin: 0;
}

.main-header .logo i {
    color: #d4af37; /* Golden color */
    margin-right: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #d4af37; /* Golden color */
}

.main-nav span {
    margin-right: 20px;
}

.cart-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    vertical-align: top;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Empty cart section */
.empty-cart-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #d4af37; /* Golden color */
    margin-bottom: 1rem;
}

.empty-cart-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.empty-cart-section p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Cart layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem 0;
}

/* Cart items section */
.cart-items-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-items-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.cart-items-header h3 {
    margin: 0;
    color: #1a1a2e;
}

/* Cart item card */
.cart-item-card {
    display: grid;
    grid-template-columns: 100px 1fr 150px 100px 50px;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

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

.cart-item-image {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image-cart {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    color: #1a1a2e;
}

.item-price {
    font-weight: bold;
    color: #e74c3c;
    margin: 0;
}

.cart-item-quantity .quantity-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #d4af37; /* Golden color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #b8860b; /* Darker golden color */
}

.cart-item-quantity input[type="number"] {
    width: 50px;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.update-btn {
    width: 100%;
    padding: 0.3rem;
}

.cart-item-subtotal .subtotal-amount {
    font-weight: bold;
    color: #1a1a2e;
    margin: 0;
    text-align: center;
}

.cart-item-actions {
    text-align: center;
}

.cart-item-actions .btn {
    padding: 0.4rem;
}

/* Cart summary section */
.cart-summary-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-summary-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.cart-summary-card h3 {
    margin: 0 0 1.5rem 0;
    color: #1a1a2e;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

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

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

.summary-row:last-child {
    margin-bottom: 0;
}

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

.total-row {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.total-amount {
    font-size: 1.2rem;
    color: #e74c3c;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.secure-checkout {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #27ae60;
    font-size: 0.9rem;
}

.secure-checkout i {
    margin-right: 0.5rem;
}

/* Cart help */
.cart-help {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.cart-help h4 {
    margin: 0 0 1rem 0;
    color: #1a1a2e;
}

.cart-help p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.cart-help p:last-child {
    margin-bottom: 0;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.9)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d4af37; /* Golden color */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #d4af37; /* Golden color */
    color: white;
}

.btn-primary:hover {
    background-color: #b8860b; /* Darker golden color */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured products */
.featured-products {
    padding: 4rem 0;
    background-color: #fff;
}

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

.featured-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.featured-card .product-image {
    height: 200px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.featured-card .product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.featured-card .product-info {
    padding: 1.5rem;
}

.featured-card .product-info h3 {
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.featured-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* All products */
.all-products {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.no-image {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.description {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

/* Newsletter section */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #d4af37, #b8860b); /* Golden gradient */
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: #000000; /* Black color */
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #333333; /* Dark gray on hover */
}

/* Footer */
.main-footer {
    background-color: #000000; /* Black color */
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #d4af37; /* Golden color */
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #d4af37; /* Golden color */
}

.footer-column p {
    color: #ccc;
    margin-bottom: 1rem;
}

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

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

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

.footer-column ul li a:hover {
    color: #d4af37; /* Golden color */
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d4af37; /* Golden color */
}

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

.footer-bottom i {
    color: #e74c3c;
}

/* Product detail page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
}

.product-images {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    border-radius: 4px;
    height: 400px;
    position: relative;
}

.product-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image-large {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h2 {
    margin-bottom: 1rem;
    color: #1a1a2e;
}

/* Product rating */
.product-rating {
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.rating-stars .fas.fa-star,
.rating-stars .fas.fa-star-half-alt {
    color: #f1c40f;
}

.rating-stars .far.fa-star {
    color: #bdc3c7;
}

.rating-text {
    margin-left: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.original-price-detail {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.discount-price-detail {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-form {
    margin-top: 1rem;
}

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

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

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.required {
    color: #e74c3c;
}

/* Reviews section */
.reviews-section {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.reviews-section h3 {
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Review form */
.review-form-container {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form-container h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

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

.review-form .form-group {
    margin-bottom: 1rem;
}

/* Rating input */
.rating-input {
    display: flex;
    gap: 0.5rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 1.5rem;
    color: #bdc3c7;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #f1c40f;
}

/* Review card */
.review-card {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-card:last-child {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info h5 {
    margin: 0 0 0.5rem 0;
    color: #1a1a2e;
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.review-rating .fas.fa-star {
    color: #f1c40f;
}

.review-rating .far.fa-star {
    color: #bdc3c7;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-comment {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Admin panel */
.admin-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h3 {
    margin-bottom: 1rem;
    color: #1a1a2e;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.admin-section h4 {
    margin: 1rem 0;
    color: #1a1a2e;
}

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

.admin-form .form-group {
    margin-bottom: 1rem;
}

.admin-form .form-group small {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.2rem;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
    display: block;
}

/* Image options */
.image-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.image-option:hover {
    background-color: #f1f1f1;
}

.image-option input[type="radio"] {
    margin: 0;
}

.image-option label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

/* Product image preview in admin panel */
.product-image-preview {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.admin-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-card {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    border: 1px solid #eee;
}

.category-card h5 {
    margin: 0 0 0.5rem 0;
    color: #1a1a2e;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.category-actions {
    text-align: right;
}

/* Cart page */
.cart-items table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-items th, .cart-items td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-items th {
    background-color: #d4af37; /* Golden color */
    color: white;
}

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

.quantity-form input {
    width: 60px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-actions-old {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
}

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

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Admin login */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ecf0f1;
}

.admin-login-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.admin-login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.login-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Products table */
.products-table {
    overflow-x: auto;
}

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

.products-table th, .products-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.products-table th {
    background-color: #d4af37; /* Golden color */
    color: white;
}

/* Messages */
.success-message, .error-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

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

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

/* Responsive design */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-item-card {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.8rem;
    }
    
    .cart-item-image {
        grid-row: 1 / 3;
        grid-column: 1;
    }
    
    .cart-item-details {
        grid-row: 1;
        grid-column: 2;
    }
    
    .cart-item-quantity {
        grid-row: 2;
        grid-column: 2;
    }
    
    .cart-item-subtotal {
        grid-row: 1;
        grid-column: 3;
        justify-self: end;
    }
    
    .cart-item-actions {
        grid-row: 2;
        grid-column: 3;
        justify-self: end;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .image-options {
        flex-direction: column;
    }
    
    .review-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-items {
        overflow-x: auto;
    }
    
    .cart-items table {
        min-width: 600px;
    }
    
    .cart-actions-old {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-actions-old a, .cart-actions-old form {
        width: 100%;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background-color: #162447;
        padding: 1rem;
        border-radius: 4px;
        display: none;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        margin: 0;
        width: 100%;
        padding: 0.8rem;
        justify-content: center;
    }
    
    .main-nav span {
        margin: 0;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .cart-item-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        grid-row: 1;
        grid-column: 1;
        height: 120px;
        width: 100%;
    }
    
    .cart-item-details {
        grid-row: 2;
        grid-column: 1;
    }
    
    .cart-item-quantity {
        grid-row: 3;
        grid-column: 1;
    }
    
    .cart-item-subtotal {
        grid-row: 4;
        grid-column: 1;
        justify-self: start;
    }
    
    .cart-item-actions {
        grid-row: 5;
        grid-column: 1;
        justify-self: start;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}