* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;                          
    overflow-x: hidden;
}


/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo span {
    color: #4CAF50;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4CAF50;
}

.util {
    display: flex;
    align-items: center;
}

.util .wishlist-icon {
    margin-top: 5px;
}

.util .cart-icon {
    margin-top: 5px;
}

.util li {
    position: relative;
    list-style: none;
    margin: 0 10px;
    color: #000000;
}


.util li a {
    margin-top: 50px;
    text-decoration: none;
    color: #000000;
    transition: 0.5s;
    font-weight: 500;
}


.util li a ion-icon {
    font-size: 1.2em;
    font-weight: 500;
}

.util li a:hover {
    color: #4CAF50;
}

.header-actions {
    display: flex;
    gap: 1rem;
}


.mobile-menu-btn {
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #374151;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-btn button:hover {
    background-color: #f3f4f6;
}

.menu-icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    padding: 0.5rem;
    background-color: white;
}

.mobile-menu.show {
    display: block;
}


@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-links {
    padding: 0.5rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #4CAF50;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53e3e;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

.container h1 {
    margin: 100px;
}

/* Header styles */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.site-header h1 {
    font-size: 2rem;
    color: #2d3748;
}

/* Cart container styles */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

/* Cart items styles */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.cart-item-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.category {
    font-size: 0.9rem;
    color: #718096;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: #edf2f7;
    color: #2d3748;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-controls button:hover {
    background: #e2e8f0;
}

.quantity-controls span {
    font-size: 1rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Remove button */
.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

/* Cart summary styles */
.cart-summary {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    position: sticky;
    top: 24px;
}

.cart-summary h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #4a5568;
}

.summary-item.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

/* Checkout button */
.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: #2563eb;
}

/* Empty cart styles */
.empty-cart {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.continue-shopping {
    margin-top: 15px;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}


/* Continue shopping link in summary */
.continue-shopping-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
}

.continue-shopping-link:hover {
    color: #2d3748;
}

/* Cart notification */
.cart-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #48bb78;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

footer {
    background: #333;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section h4 span {
    color: #4CAF50;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4CAF50;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #4CAF50;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive Design */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 2rem;
    }

    .cart-container {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .cart-container {
        padding: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 100px 1fr auto;
        gap: 1rem;
    }

    .cart-item-image img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .util {
        gap: 1rem;
    }
    
    .container {
        padding: 1rem;
    }

    .site-header {
        margin-top: 4rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .site-header h1 {
        font-size: 1.75rem;
        margin: 0;
    }

    .cart-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .cart-summary {
        position: static;
        order: -1;
        margin-bottom: 1.5rem;
    }

    .cart-items {
        gap: 1rem;
    }

    .cart-item {
        padding: 1rem;
    }

    .cart-item-details h3 {
        font-size: 1.1rem;
    }

    .category {
        font-size: 0.8rem;
    }

    .price {
        font-size: 1.1rem;
    }

    .quantity-controls {
        gap: 0.5rem;
    }

    .quantity-controls button {
        width: 28px;
        height: 28px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .site-header h1 {
        font-size: 1.5rem;
    }

    .cart-container {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        padding: 0.75rem;
    }

    .cart-item-image img {
        width: 80px;
        height: 80px;
    }

    .cart-item-details {
        gap: 0.5rem;
    }

    .cart-item-details h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .remove-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }

    .quantity-controls {
        margin-top: 0.5rem;
    }

    .quantity-controls button {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }

    .cart-summary {
        padding: 1rem;
    }

    .cart-summary h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .summary-item {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .summary-item.total {
        font-size: 1.1rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .checkout-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .continue-shopping-link {
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }

    .cart-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        margin-bottom: 0.75rem;
    }

    .cart-item-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .remove-btn {
        top: 0.5rem;
        right: 0.5rem;
    }

    .quantity-controls {
        justify-content: center;
    }
}


@media (hover: none) {
    .cart-btn,
    .checkout-btn,
    .quantity-controls button,
    .remove-btn {
        cursor: default;
    }

    .quantity-controls button,
    .remove-btn {
        min-width: 44px;
        min-height: 44px;
    }
}


@supports (padding: env(safe-area-inset-top)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}