@charset "UTF-8";

/* ========== MODERN CART PAGE STYLES ========== */

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --accent-gold: #ffd700;
    --accent-orange: #ff6b35;
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, var(--accent-orange), #ff8c42);
    --gradient-secondary: linear-gradient(135deg, #2b2b2b, #1a1a1a);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-neon: 0 6px 24px rgba(255, 107, 53, 0.28);
    --shadow-neon-strong: 0 10px 36px rgba(255, 107, 53, 0.36);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.16);
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}


/* ========== NAVBAR FIXES ========== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 236, 239, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


/* ========== HERO SECTION ========== */

.cart-hero {
    min-height: 50vh;
    position: relative;
    padding: 8rem 0 2rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.08), rgba(0, 0, 0, 0.06));
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.title-sub {
    display: block;
    font-size: 1.3rem;
    color: #333333;
    font-weight: 600;
}


/* ========== CART SECTION ========== */

.cart-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}


/* ========== CART MAIN ========== */

.cart-main {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--card-border);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.cart-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
}

.item-count {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cart-item:hover::before {
    transform: scaleX(1);
}

.item-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.item-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.cart-item:hover .item-image img {
    transform: scale(1.05);
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.item-size {
    color: #000000;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-top: 0.5rem;
}

.item-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
    background: #f8f9fa;
    border-color: #000000;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.qty-btn:active {
    transform: scale(1.05);
}

.quantity {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    min-width: 35px;
    text-align: center;
    background: #ffffff;
    padding: 0.5rem 0.8rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.remove-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #e9ecef;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.remove-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.remove-btn:hover {
    background: #ff4757;
    color: #ffffff;
    border-color: #ff4757;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

.remove-btn:hover::before {
    width: 100%;
    height: 100%;
}

.remove-btn:active {
    transform: scale(1.05);
}


/* ========== CART SUMMARY ========== */

.cart-summary {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--card-border);
}

.summary-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 1.1rem;
    color: #000000;
    font-weight: 700;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-orange);
    border-top: 2px solid var(--accent-orange);
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.btn-checkout {
    width: 100%;
    padding: 1.2rem 2rem;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-neon);
    margin-bottom: 1.5rem;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon-strong);
}

.cart-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-item i {
    color: #000000;
    font-size: 1.2rem;
    width: 20px;
}

.feature-item span {
    font-weight: 800;
    color: #000000;
    font-size: 1rem;
}


/* ========== EMPTY CART STATE ========== */

.empty-cart {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.empty-content {
    text-align: center;
    background: #ffffff;
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.empty-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.empty-content i {
    font-size: 6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.empty-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.empty-content p {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 500;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 2.5rem;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-shop::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-shop:hover::before {
    width: 300px;
    height: 300px;
}

.btn-shop:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.btn-shop i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-shop:hover i {
    transform: scale(1.2) rotate(10deg);
}


/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cart-summary {
        position: static;
        order: -1;
    }
    .title-main {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .cart-hero {
        padding: 6rem 0 2rem 0;
        min-height: 40vh;
    }
    .container {
        padding: 0 1rem;
    }
    .title-main {
        font-size: 2.5rem;
    }
    .title-sub {
        font-size: 1.1rem;
    }
    .cart-main,
    .summary-card {
        padding: 1.5rem;
    }
    .cart-item {
        grid-template-columns: 100px 1fr auto;
        gap: 1rem;
        padding: 1rem;
    }
    .item-image img {
        height: 100px;
    }
    .item-name {
        font-size: 1.1rem;
    }
    .item-price {
        font-size: 1.2rem;
    }
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .cart-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cart-hero {
        padding: 5rem 0 1rem 0;
    }
    .title-main {
        font-size: 2rem;
    }
    .title-sub {
        font-size: 1rem;
    }
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    .item-image {
        width: 120px;
        margin: 0 auto;
    }
    .item-details {
        text-align: center;
        margin-bottom: 1rem;
    }
    .item-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .quantity-controls {
        order: 1;
        margin: 0 auto;
    }
    .remove-btn {
        order: 2;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 auto;
    }
    .qty-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .quantity {
        font-size: 1.1rem;
        padding: 0.4rem 0.6rem;
        color: #000000;
        font-weight: 800;
    }
    .empty-content {
        padding: 3rem 2rem;
        margin: 1rem;
        border-radius: 20px;
    }
    .empty-content i {
        font-size: 4rem;
    }
    .empty-content h3 {
        font-size: 1.8rem;
    }
    .empty-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .btn-shop {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 40px;
    }
}


/* ========== ANIMATIONS ========== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: slideInUp 0.6s ease-out forwards;
}

.cart-item:nth-child(1) {
    animation-delay: 0.1s;
}

.cart-item:nth-child(2) {
    animation-delay: 0.2s;
}

.cart-item:nth-child(3) {
    animation-delay: 0.3s;
}

.cart-item:nth-child(4) {
    animation-delay: 0.4s;
}

.cart-item:nth-child(5) {
    animation-delay: 0.5s;
}


/* ========== LOADING STATES ========== */

.cart-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.qty-btn:disabled,
.remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ========== SCROLL ANIMATIONS ========== */

.cart-section>* {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
}

.cart-section>*:nth-child(1) {
    animation-delay: 0.1s;
}

.cart-section>*:nth-child(2) {
    animation-delay: 0.2s;
}