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

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #f8b500;
    --bg-color: #f8f9fa;
    --text-color: #2d3436;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Increase container width on larger screens for better space utilization */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.cart-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.loading, .error {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.error {
    color: #e74c3c;
}

.hidden {
    display: none !important;
}

.products h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
}

/* Improve products section header on larger screens */
@media (min-width: 1024px) {
    .products h2 {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1440px) {
    .products h2 {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.filter-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.filter-section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-section-header:hover {
    background: #f5f5f5;
}

.filter-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.filter-toggle-icon {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.filter-section.active .filter-toggle-icon {
    transform: rotate(45deg);
}

.filter-section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    max-height: 500px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.filter-section-content.collapsed {
    max-height: 0;
    padding: 0 1rem;
    overflow: hidden;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 157, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.category-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
    .category-filters {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .filter-section {
        flex: 1;
        min-width: 200px;
        border: none;
        background: transparent;
    }
    
    .filter-section-header {
        background: transparent;
        padding: 0 0 0.5rem 0;
        cursor: default;
    }
    
    .filter-section-header:hover {
        background: transparent;
    }
    
    .filter-toggle-icon {
        display: none;
    }
    
    .filter-section-content {
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .filter-section-content.collapsed {
        max-height: none !important;
        padding: 0 !important;
    }
    
    .filter-section-title {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .category-btn {
        display: inline-block;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Enhance category filters for larger screens */
@media (min-width: 1024px) {
    .category-filters {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .filter-section-title {
        font-size: 1rem;
    }
    
    .category-btn {
        font-size: 0.95rem;
        padding: 0.65rem 1.3rem;
    }
}

@media (min-width: 1440px) {
    .category-filters {
        padding: 2.5rem;
        gap: 2rem;
    }
    
    .filter-section-title {
        font-size: 1.05rem;
    }
    
    .category-btn {
        font-size: 1rem;
        padding: 0.7rem 1.4rem;
    }
}

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

/* Tablet and small desktop improvements */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Medium desktop - limit to 3 columns max */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
        max-width: 100%;
    }
}

/* Large desktop - limit to 4 columns max for better visual balance */
@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .product-card {
        max-width: 100%;
    }
}

/* Extra large desktop - maintain 4 columns but increase spacing */
@media (min-width: 1920px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        min-height: 250px;
    }
    
    .product-info {
        padding: 2rem;
    }
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-color);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Improved pagination layout for larger screens */
@media (min-width: 768px) {
    .pagination {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 2rem;
    }
    
    .pagination-info {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-color);
        flex-shrink: 0;
    }
    
    .pagination-controls {
        gap: 0.75rem;
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .pagination {
        padding: 2rem 2.5rem;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pagination-info {
        font-size: 1rem;
        margin-right: 2rem;
    }
    
    .pagination-controls {
        gap: 1rem;
    }
    
    .pagination-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-width: 100px;
    }
    
    .page-number-btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        min-width: 48px;
    }
}

@media (min-width: 1440px) {
    .pagination {
        padding: 2.5rem 3rem;
        max-width: 100%;
    }
    
    .pagination-info {
        font-size: 1.05rem;
        margin-right: 3rem;
    }
    
    .pagination-controls {
        gap: 1.25rem;
    }
    
    .page-numbers {
        gap: 0.5rem;
    }
}

.pagination-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number-btn {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
}

.page-number-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-number-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.page-ellipsis {
    padding: 0.6rem 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    user-select: none;
}

@media (min-width: 1024px) {
    .page-ellipsis {
        padding: 0.75rem 0.75rem;
        font-size: 1rem;
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 200px;
    font-size: 4rem;
}

.product-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

/* Enhance product cards for larger screens */
@media (min-width: 1024px) {
    .product-image {
        min-height: 220px;
        padding: 1.25rem;
    }
    
    .product-info {
        padding: 1.75rem;
    }
    
    .product-name {
        font-size: 1.35rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .product-description {
        font-size: 0.95rem;
    }
}

@media (min-width: 1440px) {
    .product-image {
        min-height: 240px;
        padding: 1.5rem;
    }
    
    .product-info {
        padding: 2rem;
    }
    
    .product-name {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .product-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .add-to-cart-btn {
        padding: 0.875rem;
        font-size: 1.05rem;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    backdrop-filter: blur(5px);
}

.cart, .checkout, .product-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 300;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.product-detail {
    max-width: 900px;
}

.cart-header, .checkout-header, .product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h2, .checkout-header h2, .product-detail-header h2 {
    color: var(--secondary-color);
    font-size: 1.75rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.cart-items {
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.cart-item-image-placeholder {
    font-size: 1.5rem;
    color: #ddd;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.cart-item-quantity {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.remove-item-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-item-btn:hover {
    background: #c0392b;
}

.cart-footer {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.cart-total {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: right;
    color: var(--secondary-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover:not(.disabled):not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.02);
}

.checkout-btn.disabled,
.checkout-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Stepper Styles */
.stepper-container {
    margin: 2rem 0;
    padding: 0 1rem;
}

.stepper-progress {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.stepper-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    width: 0%;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.stepper-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.stepper-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.stepper-step:last-child::after {
    display: none;
}

.stepper-step.active::after,
.stepper-step.completed::after {
    background: var(--primary-color);
}

.stepper-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.stepper-step.completed .stepper-step-number {
    background: var(--primary-color);
    color: white;
}

.stepper-step.completed .stepper-step-number::after {
    content: '✓';
    font-size: 1.2em;
}

.stepper-step-label {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    font-weight: 500;
}

.stepper-step.active .stepper-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.stepper-step.completed .stepper-step-label {
    color: var(--primary-color);
}

/* Checkout Steps */
.checkout-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.checkout-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-cart-review {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.checkout-cart-item:last-child {
    margin-bottom: 0;
}

.checkout-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: white;
}

.checkout-cart-item-info {
    flex: 1;
}

.checkout-cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.checkout-cart-item-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.checkout-cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Checkout Navigation */
.checkout-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.checkout-nav-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-nav-btn-primary {
    background: var(--primary-color);
    color: white;
}

.checkout-nav-btn-primary:hover:not(:disabled) {
    background: #66bb6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.checkout-nav-btn-secondary {
    background: #f5f5f5;
    color: var(--text-color);
    border: 1px solid #e0e0e0;
}

.checkout-nav-btn-secondary:hover {
    background: #e8e8e8;
}

.checkout-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Order Confirmation */
.order-confirmation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
}

.order-confirmation.hidden {
    display: none;
}

.confirmation-content {
    text-align: center;
    max-width: 500px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.confirmation-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.order-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.order-details h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

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

.order-details-label {
    font-weight: 600;
    color: #666;
}

.order-details-value {
    color: var(--text-color);
}

/* Mobile Responsive for Stepper */
@media (max-width: 768px) {
    .stepper-step-label {
        font-size: 0.75rem;
    }
    
    .stepper-step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .checkout-navigation {
        flex-direction: column;
    }
    
    .checkout-nav-btn {
        width: 100%;
    }
}

.product-detail-content {
    min-height: 200px;
}

.product-detail-loading, .product-detail-error {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
}

.product-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.product-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-detail-image .no-image {
    font-size: 6rem;
    color: #ddd;
}

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

.product-detail-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-dimension {
    color: #666;
    font-size: 0.9rem;
}

.product-detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.category-tag {
    background: var(--bg-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.product-detail-description {
    line-height: 1.6;
    color: var(--text-color);
}

.product-detail-description strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.detail-add-to-cart {
    margin-top: 1rem;
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input.field-invalid,
.form-group textarea.field-invalid {
    border-color: #f44336;
}

.form-group input.field-invalid:focus,
.form-group textarea.field-invalid:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.field-error {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.available-dates-container {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.available-dates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.available-dates-header strong {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.toggle-dates-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-dates-btn:hover {
    background: var(--secondary-color);
}

.available-dates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.available-date-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: var(--text-color);
}

.available-date-btn:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateY(-1px);
}

.available-date-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .available-dates-list {
        grid-template-columns: 1fr;
    }
    
    .available-dates-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .toggle-dates-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .cart, .checkout, .product-detail {
        width: 95%;
        padding: 1.5rem;
    }
    
    .product-detail-main {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

