body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#E0B7B7;
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed header */
}

/* HEADER */
header {
    background: #523249;
    color: #ffffff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h2 {
    margin: 0;
    font-size: 24px;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* CAROUSEL SECTION */

.carousel {
    position: relative;
    height: 70vh;
    max-height: 600px;
    min-height: 40vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide {
    overflow: hidden;
}

.carousel-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) saturate(150%);
    transform: scale(1.1);
    opacity: 0.8;
    z-index: 0;
}

.carousel-slide img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.carousel-content {
    position: relative;
    z-index: 2;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    background: rgba(129, 83, 85, 0.7);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
}

.carousel-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.shop-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #523249;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s ease;
}

.shop-btn:hover {
    background: #6a3a5c;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #ffffff;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.about-us {
    background: #ffffff;
    padding: 60px 20px;
}

.about-us-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-us h2 {
    margin-bottom: 20px;
    font-size: 40px;
    color: #523249;
    font-family: 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #d48aa7 0%, #8f5a76 45%, #4d2b3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 2px 0 rgba(255,255,255,0.65),
        0 10px 20px rgba(82, 50, 73, 0.25);
    transform: rotate(-1deg);
}

.about-us p {
    margin: 0 auto 15px;
    max-width: 760px;
    color: #5f4b55;
    font-size: 16px;
    line-height: 1.8;
}

/* Generic button styles */
.btn, button {
    background: #523249;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.btn:hover, button:hover {
    background: #6a3a5c;
}

/* FORM STYLES */
.search-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
}

.search-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    color: #523249;
}

.card input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* LAYOUT */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.main-content {
    float: left;
    width: 75%;
    padding-right: 20px;
    box-sizing: border-box;
}

.sidebar {
    float: right;
    width: 20%;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .main-content,
    .sidebar {
        float: none;
        width: 100%;
        padding-right: 0;
    }
    .sidebar {
        margin-top: 20px;
    }
}

.sidebar h3 {
    margin-top: 0;
    color: #523249;
    border-bottom: 2px solid #E0B7B7;
    padding-bottom: 10px;
}

.cart-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

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

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

.product-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    background: #f8f4f1;
}
.product-info {
    padding: 15px;
}

.product-info h4 {
    margin: 0 0 10px 0;
    color: #523249;
    font-size: 18px;
}

.product-info .price {
    font-size: 20px;
    font-weight: bold;
    color: #815355;
    margin: 0 0 10px 0;
}

.product-info .details {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.product-info form {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info .product-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.product-info .product-custom-name {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-info .product-custom-name label {
    font-size: 14px;
    color: #523249;
}

.product-info .product-custom-name input,
.product-info input[type="number"] {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.product-info input[type="number"] {
    width: 60px;
}

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

.cart-container h2 {
    color: #523249;
    margin-bottom: 30px;
    text-align: center;
}

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

.empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
    align-items: center;
    gap: 20px;
}

.cart-item-image {
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-details h3 {
    margin: 0 0 10px 0;
    color: #523249;
}

.cart-price, .cart-quantity, .cart-subtotal {
    margin: 5px 0;
    color: #666;
}

.cart-subtotal {
    font-weight: bold;
    color: #815355;
}

.cart-item-actions {
    flex-shrink: 0;
    min-width: 200px;
}

.cart-item-actions form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-actions label {
    font-weight: bold;
    color: #523249;
}

.cart-item-actions input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100px;
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
}

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

.cart-summary {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-total h3 {
    margin: 0;
    color: #523249;
    font-size: 24px;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #523249;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 16px;
}

.btn-primary:hover {
    background: #6a3a5c;
}

/* ADMIN LOGIN */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    color: #523249;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #523249;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #523249;
    box-shadow: 0 0 5px rgba(82, 50, 73, 0.3);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    color: #523249;
    margin: 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
}

.stat-card h3 {
    color: #523249;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #815355;
    margin: 0 0 10px 0;
}

.stat-card p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.dashboard-actions {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.dashboard-actions h3 {
    color: #523249;
    margin: 0 0 20px 0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

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

.product-admin-card:hover {
    transform: translateY(-2px);
}

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

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

.no-image {
    color: #666;
    font-style: italic;
}

.product-details {
    padding: 20px;
}

.product-details h3 {
    color: #523249;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #815355;
    margin: 0 0 15px 0;
}

.product-info {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.product-status {
    margin: 10px 0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.product-status.active {
    background: #d4edda;
    color: #155724;
}

.product-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.product-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-success {
    background: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background: #218838;
}

/* ORDERS */
.orders-list {
    display: grid;
    gap: 20px;
}

.order-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    transition: transform 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-header h3 {
    color: #523249;
    margin: 0;
}

.order-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

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

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

.order-details p {
    margin: 8px 0;
    color: #666;
}

.order-details strong {
    color: #523249;
}

.order-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ORDER DETAILS */
.order-details-card, .order-products-card, .order-actions-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.order-details-card h3, .order-products-card h3, .order-actions-card h3 {
    color: #523249;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #E0B7B7;
    padding-bottom: 10px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 10px 0;
}

.info-item strong {
    color: #523249;
    display: block;
    margin-bottom: 5px;
}

.order-items {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.item-details h4 {
    margin: 0 0 5px 0;
    color: #523249;
}

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

.item-total {
    font-weight: bold;
    color: #815355;
    font-size: 16px;
}

.order-total {
    text-align: right;
    border-top: 2px solid #E0B7B7;
    padding-top: 15px;
}

.order-total h3 {
    color: #523249;
    margin: 0;
}

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

.checkout-container h2 {
    color: #523249;
    text-align: center;
    margin-bottom: 30px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.checkout-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.checkout-card h3 {
    color: #523249;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #E0B7B7;
    padding-bottom: 10px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    color: #523249;
    font-weight: bold;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #523249;
    box-shadow: 0 0 5px rgba(82, 50, 73, 0.3);
}

.checkout-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
    margin-top: 10px;
}

.order-summary {
    max-height: 400px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-weight: bold;
    color: #523249;
}

.item-quantity {
    color: #666;
    font-size: 14px;
}

.item-price {
    font-weight: bold;
    color: #815355;
}

.summary-divider {
    height: 2px;
    background: #E0B7B7;
    margin: 15px 0;
}

.summary-total {
    text-align: right;
    font-size: 18px;
    color: #523249;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkout-container {
        padding: 10px;
    }
}

/* RESPONSIVE DESIGN */

/* Mobile Navigation */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    header h2 {
        font-size: 18px;
        flex: 1;
    }

    nav {
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
    }

    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }

    body {
        padding-top: 70px; /* Adjust for smaller header on mobile */
    }

    header {
        padding: 8px 0;
    }
}

/* Tablet and Mobile Styles */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .main-content {
        width: 100%;
        padding-right: 0;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

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

    .stat-card {
        padding: 20px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    header h2 {
        font-size: 16px;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    nav a {
        flex: 1;
        text-align: center;
        padding: 8px 4px;
        font-size: 12px;
    }

    /* Product Cards */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        margin: 0 10px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h4 {
        font-size: 16px;
    }

    /* Cart Page */
    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .cart-item-image {
        margin-bottom: 15px;
    }

    .cart-item-actions {
        margin-top: 15px;
        min-width: auto;
    }

    .cart-summary {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* Admin Pages */
    .admin-container {
        padding: 15px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

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

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Order Details */
    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .order-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* Forms */
    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-form input[type="text"] {
        min-width: auto;
    }

    /* Carousel */
    .carousel-content {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .carousel-content h1 {
        font-size: 32px;
    }

    .carousel-prev, .carousel-next {
        padding: 12px;
        font-size: 20px;
    }

    /* Login */
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }

    .login-card h2 {
        font-size: 24px;
    }

    /* Buttons */
    .btn, button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Ensure touch targets are at least 44px */
    .btn, button, nav a, .indicator, .carousel-prev, .carousel-next {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .admin-container, .checkout-container, .cart-container {
        padding: 10px;
    }

    .checkout-card {
        padding: 20px 15px;
    }

    .product-admin-card {
        margin: 0 5px;
    }

    .order-card {
        padding: 20px 15px;
    }

    .stat-card {
        padding: 15px;
    }

    /* Typography adjustments */
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }

    /* Form adjustments */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Carousel mobile adjustments */
    .carousel-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #ffffff;
        background: rgba(129, 83, 85, 0.8);
        padding: 20px;
        border-radius: 10px;
        max-width: 90%;
        width: auto;
    }

    .carousel-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .carousel-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .shop-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Ensure all interactive elements are touch-friendly */
    .btn, button, input, select, textarea, nav a {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Carousel indicators for mobile */
    .indicator {
        width: 16px;
        height: 16px;
        margin: 0 4px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }

    .btn:hover, button:hover {
        background: #523249;
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn, button {
        border: 2px solid #523249;
    }

    .product-card, .checkout-card, .order-card, .stat-card {
        border: 2px solid #523249;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Clear floats */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}