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

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

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

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
    border-bottom: 2px solid white;
    padding-bottom: 0.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg) translate(12px, 12px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) translate(10px, -10px);
}

/* Side Menu for Mobile */
.side-menu-mobile {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #00a8e8, #0077be);
    color: white;
    padding: 20px;
    transition: right 0.35s ease;
    z-index: 99;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.side-menu-mobile.active {
    right: 0;
}

.side-menu-mobile h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    font-weight: 700;
}

.nav-menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu-mobile li {
    margin-bottom: 0;
}

.nav-menu-mobile li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}

.nav-menu-mobile li a:hover,
.nav-menu-mobile li a.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-menu-mobile li a i {
    width: 25px;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1200px;
    margin: 80px auto 1.5rem;
    padding: 0 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0077be;
    text-decoration: none;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Cart Wrapper */
.cart-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Cart Items Section */
.cart-items-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-items-section h1 {
    color: #0077be;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.1);
    border-color: #0077be;
}

.cart-item-image {
    width: 120px;
    min-height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #0077be;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

.view-details-btn {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid #0077be;
    color: #0077be;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #d0d0d0;
}

#quantity {
    width: 50px;
    border: 1px solid #ddd;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
}

.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 120px;
}

.item-subtotal {
    font-size: 1.2rem;
    font-weight: bold;
    color: #001aff;
    margin-bottom: 0.5rem;
}

.remove-btn {
    background: #fff5f5;
    color: #0077be;
    border: 2px solid #0077be;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-btn:hover {
    background: #0077be;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 119, 190, 0.2);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.empty-cart i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    margin-bottom: 0.5rem;
    color: #666;
}

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

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

.cart-summary {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: static;
    top: auto;
    border: 2px solid #f0f0f0;
}

.cart-summary h2 {
    color: #333;
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #555;
}

.summary-item.total {
    border: none;
    border-top: 2px solid oklch(57.878% 0.23169 259.655);
    border-bottom: 2px solid oklch(57.878% 0.23169 259.655);
    padding: 0.7rem 0;
    font-size: 1.05rem;
    font-weight: bold;
    color: #0077be;
    margin: 0.6rem 0;
}

.discount-text {
    color: #4caf50;
    font-weight: 600;
}

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

/* Promo Code */
.promo-code {
    display: flex;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.promo-code input {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.promo-code input:focus {
    outline: none;
    border-color: #0077be;
}

.btn-promo {
    padding: 0.6rem 1rem;
    background: #0077be;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-promo:hover {
    background: #0077be;
}

/* Buttons */
.btn {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-checkout {
    background: linear-gradient(135deg, #0077be 0%, #00a8e8 100%);
    color: white;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 107, 0, 0.3);
    width: 100%;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    background: linear-gradient(135deg, #ff5500 0%, #ff7a2a 100%);
}

.btn-checkout:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #0077be;
    border: 2px solid #0077be;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0077be;
    color: white;
    transform: translateY(-2px);
}

/* Delivery Options */
.delivery-options {
    background: white;
    padding: 1.1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.delivery-options h3 {
    color: #0077be;
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.delivery-option:hover {
    background: #f0f0f0;
    border-left-color: #0077be;
}

.delivery-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.delivery-option span:last-child {
    margin-left: auto;
    font-weight: 600;
    color: #00a8e8;
}

/* Suggested Products */
.suggested-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.suggested-section h2 {
    color: #0077be;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.suggested-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.suggested-card:hover {
    border-color: #0077be;
    transform: translateY(-5px);
}

.suggested-card-image {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

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

.suggested-card-info {
    padding: 1rem;
}

.suggested-card-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.suggested-card-price {
    color: #00a8e8;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.suggested-card-btn {
    width: auto;
    height: 40px;
    padding: 0 12px;
    background: #0077be;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s;
}

.suggested-card-btn:hover {
    background: #00a8e8;
}

.suggested-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.suggested-card-actions button {
    margin: 0;
}

.suggested-card-actions .suggested-card-btn {
    flex: 1;
}

.suggested-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.stock-very-high {
    background: rgba(0, 121, 107, 0.92);
}

.stock-high {
    background: rgba(46, 125, 50, 0.92);
}

.stock-medium {
    background: rgba(239, 108, 0, 0.92);
}

.stock-low {
    background: rgba(106, 27, 154, 0.92);
}

.stock-critical {
    background: rgba(198, 40, 40, 0.92);
}

.stock-out {
    background: rgba(69, 90, 100, 0.92);
}

.suggested-wishlist-btn {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    color: #777;
    cursor: pointer;
    flex-shrink: 0;
}

.suggested-wishlist-btn.liked {
    background: #ffe1e8;
    border-color: #ff9cb0;
    color: #c81634;
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

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

.footer-section a {
    color: #a8d8ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .suggested-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 0;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-total {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px solid #ddd;
    }

    .cart-items-section h1 {
        font-size: 1.4rem;
    }

    .suggested-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        margin: 70px auto 1rem;
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand h1 {
        font-size: 1rem;
    }

    .side-menu-mobile {
        width: min(86vw, 320px);
        right: calc(-1 * min(86vw, 320px) - 10px);
    }

    .cart-items-section,
    .cart-summary,
    .delivery-options,
    .suggested-section {
        padding: 1rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
    }
}

/* Motion settings */
html {
    scroll-behavior: auto;
}

*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
}

.cart-item:hover,
.remove-btn:hover,
.btn-checkout:hover,
.btn-secondary:hover,
.suggested-card:hover {
    transform: none !important;
}
