* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f3f6;
    color: #212121;
}

/* Header Styles */
header {
    background-color: #b4b6b9;
    color: white;
    padding: 12px 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo i {
    font-size: 28px;
    margin-right: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    font-style: italic;
}

.logo span {
    color: #ffe11b;
}

.header-actions {
    display: flex;
    align-items: center;
}

.action-item {
    margin-left: 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    position: relative;
}

.action-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.cart-icon, .wishlist-icon {
    position: relative;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6161;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
}

/* Navigation Styles */
nav {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 15px;
    position: relative;
}

.nav-items {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.nav-item {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #212121;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav-item i {
    margin-right: 5px;
    color: #2874f0;
}

.nav-item:hover {
    color: #2874f0;
    background-color: #f0f8ff;
}

.hamburger-menu {
    display: none;
    font-size: 20px;
    cursor: pointer;
    padding: 12px 15px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.mobile-nav-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.mobile-nav-item i {
    margin-right: 10px;
    color: #2874f0;
}

/* Main Content Styles */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.banner {
    background: linear-gradient(to right, #2874f0, #4a90e2);
    border-radius: 5px;
    padding: 30px;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 500px;
}

.banner-btn {
    background: #fff;
    color: #2874f0;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.banner-image {
    width: 300px;
    position: relative;
    z-index: 2;
}

/* Categories Section */
.section-title {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    font-size: 14px;
    color: #2874f0;
    cursor: pointer;
    transition: all 0.3s;
}

.view-all:hover {
    text-decoration: underline;
}

.categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.category {
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 30px;
    color: #2874f0;
    margin-bottom: 10px;
}

.category-name {
    font-size: 13px;
    font-weight: 500;
}

/* Products Section */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product:hover .product-image img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #ccc;
    transition: all 0.3s;
    z-index: 10;
}

.wishlist-btn.active {
    color: #ff6161;
}

.wishlist-btn:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #388e3c;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-stars {
    color: #ffe234;
    margin-right: 5px;
}

.rating-count {
    font-size: 12px;
    color: #878787;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart, .buy-now {
    padding: 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: background-color 0.3s;
}

.add-to-cart {
    background: #2874f0;
    color: white;
}

.add-to-cart:hover {
    background: #ff8300;
}

.buy-now {
    background: #fb641b;
    color: white;
}

.buy-now:hover {
    background: #e55a17;
}

.add-to-cart i, .buy-now i {
    margin-right: 5px;
}

/* Cart Modal */
.cart-modal, .wishlist-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.cart-header, .wishlist-header {
    padding: 15px;
    background: #2874f0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart, .close-wishlist {
    font-size: 20px;
    cursor: pointer;
}

.cart-items, .wishlist-items {
    padding: 15px;
}

.cart-item, .wishlist-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image, .wishlist-item-image {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 5px;
}

.cart-item-image img, .wishlist-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details, .wishlist-item-details {
    flex-grow: 1;
}

.cart-item-name, .wishlist-item-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-price, .wishlist-item-price {
    font-weight: bold;
    color: #388e3c;
    margin-bottom: 5px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background: #f0f0f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.quantity {
    margin: 0 10px;
    font-weight: bold;
}

.remove-item {
    color: #ff6161;
    cursor: pointer;
    margin-left: 10px;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.move-to-cart {
    background: #ff9f00;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.cart-total, .wishlist-empty {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.checkout-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    background: #fb641b;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #e55a17;
}

.empty-cart, .empty-wishlist {
    text-align: center;
    padding: 30px;
    color: #878787;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


/* Checkout Page Specific Styles */
.breadcrumb {
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 15px;
    font-size: 14px;
    color: #878787;
}

.breadcrumb a {
    color: #2874f0;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
}

/* Checkout Container */
.checkout-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 30px;
}

.checkout-form {
    flex: 2;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.checkout-summary {
    flex: 1;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px;
}

.subsection-subtitle {
    font-size: 14px;
    color: #878787;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #2874f0;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.divider {
    height: 1px;
    background: #f0f0f0;
    margin: 20px 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-label {
    font-size: 14px;
}

.payment-options {
    margin: 20px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #2874f0;
}

.payment-option.active {
    border-color: #2874f0;
    background-color: #f0f8ff;
}

.payment-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #2874f0;
}

.payment-details {
    flex-grow: 1;
}

.payment-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.payment-description {
    font-size: 12px;
    color: #878787;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 5px;
}

.order-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.order-item-details {
    flex-grow: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.order-item-description {
    font-size: 12px;
    color: #878787;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-item-price {
    display: flex;
    align-items: center;
}

.current-price {
    font-weight: 600;
    color: #388e3c;
    margin-right: 10px;
}

.original-price {
    font-size: 12px;
    color: #878787;
    text-decoration: line-through;
}

.coupon-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.coupon-input {
    display: flex;
    gap: 10px;
}

.coupon-input input {
    flex-grow: 1;
}

.apply-coupon {
    background: #2874f0;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
}

.order-summary {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: 600;
    font-size: 18px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 10px;
}

.terms {
    font-size: 12px;
    color: #878787;
    margin: 20px 0;
    text-align: center;
}

.checkout-actions {
    display: flex;
    gap: 15px;
}

.return-to-cart, .place-order {
    padding: 12px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    transition: background-color 0.3s;
    font-size: 16px;
}

.return-to-cart {
    background: #f0f0f0;
    color: #212121;
}

.return-to-cart:hover {
    background: #e0e0e0;
}

.place-order {
    background: #fb641b;
    color: white;
}

.place-order:hover {
    background: #e55a17;
}