/* Modern Cart Design - Premium 2025 Style */

/* Design System Variables */
:root {
    /* Sophisticated color palette */
    --primary: #5046e5;        /* Rich indigo */
    --primary-light: #6366f1;  /* Lighter indigo */
    --primary-dark: #4338ca;   /* Darker indigo */
    --accent: #14b8a6;          /* Teal accent */
    --success: #22c55e;         /* Green */
    --warning: #f59e0b;         /* Amber */
    --danger: #ef4444;          /* Red */
    
    /* Neutral palette */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Semantic colors */
    --background: #ffffff;
    --surface: #fafafa;
    --surface-hover: #f4f4f5;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --text-muted: #a1a1aa;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
}

/* Global styles */
#order-standard_cart {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header - Minimal and elegant */
#order-standard_cart .cart-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

#order-standard_cart .cart-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.125rem 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#order-standard_cart .cart-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Container */
#order-standard_cart .cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

#order-standard_cart .cart-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* Cart items section - Premium feel */
#order-standard_cart .cart-items-section {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#order-standard_cart .cart-items-header {
    background: linear-gradient(to bottom, var(--surface), var(--background));
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Cart items */
#order-standard_cart .cart-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    position: relative;
}

#order-standard_cart .cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

#order-standard_cart .cart-item:hover {
    background: var(--surface);
}

#order-standard_cart .cart-item:hover::before {
    transform: scaleY(1);
}

#order-standard_cart .cart-item:last-child {
    border-bottom: none;
}

#order-standard_cart .cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
}

#order-standard_cart .cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

#order-standard_cart .cart-item-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

#order-standard_cart .cart-item-price {
    text-align: right;
    flex-shrink: 0;
}

#order-standard_cart .cart-item-price .amount {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

#order-standard_cart .cart-item-price .cycle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.125rem;
}

/* Modern badges */
#order-standard_cart .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

#order-standard_cart .badge-new {
    background: linear-gradient(135deg, #5046e5, #6366f1);
    color: white;
}

#order-standard_cart .badge-addon {
    background: linear-gradient(135deg, #14b8a6, #10b981);
    color: white;
}

#order-standard_cart .badge-renewal {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

/* Action buttons */
#order-standard_cart .cart-item-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

#order-standard_cart .cart-item-actions .btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

#order-standard_cart .cart-item-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

#order-standard_cart .cart-item-actions .btn-edit {
    color: var(--primary);
    border-color: var(--primary);
}

#order-standard_cart .cart-item-actions .btn-edit:hover {
    background: var(--primary);
    color: white;
}

#order-standard_cart .cart-item-actions .btn-remove {
    color: var(--danger);
    border-color: transparent;
}

#order-standard_cart .cart-item-actions .btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Empty cart - Premium design */
#order-standard_cart .empty-cart-container {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

/* Subtle gradient background - no animation */
#order-standard_cart .empty-cart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(80, 70, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Premium illustration */
#order-standard_cart .empty-cart-illustration {
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}

#order-standard_cart .empty-cart-illustration svg {
    filter: drop-shadow(0 10px 40px rgba(80, 70, 229, 0.15));
}

#order-standard_cart .empty-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

#order-standard_cart .empty-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 3.5rem 0;
    position: relative;
    z-index: 1;
}

/* Quick actions - Glass morphism cards */
#order-standard_cart .quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

#order-standard_cart .quick-action-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#order-standard_cart .quick-action-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(80, 70, 229, 0.1) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#order-standard_cart .quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(80, 70, 229, 0.3);
    border-color: rgba(80, 70, 229, 0.2);
}

#order-standard_cart .quick-action-card:hover::after {
    opacity: 1;
}

#order-standard_cart .card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.375rem;
    box-shadow: 0 10px 20px -5px rgba(80, 70, 229, 0.25);
}

#order-standard_cart .quick-action-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

#order-standard_cart .quick-action-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0 0 1.75rem 0;
    line-height: 1.5;
}

/* Domain search - Premium input */
#order-standard_cart .search-wrapper {
    position: relative;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

#order-standard_cart .search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(80, 70, 229, 0.1);
}

#order-standard_cart .search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 100px;
    border: none;
    font-size: 0.9375rem;
    background: transparent;
    color: var(--text-primary);
}

#order-standard_cart .search-input:focus {
    outline: none;
}

#order-standard_cart .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

#order-standard_cart .search-btn:hover {
    background: var(--primary-dark);
}

/* Popular items - Modern grid */
#order-standard_cart .popular-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

#order-standard_cart .popular-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

#order-standard_cart .popular-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.2s ease;
}

#order-standard_cart .popular-item i {
    color: var(--primary);
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

#order-standard_cart .popular-item span {
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

#order-standard_cart .popular-item:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

#order-standard_cart .popular-item:hover::before {
    opacity: 0.05;
}

/* Browse button - Premium style */
#order-standard_cart .browse-all {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

#order-standard_cart .browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(80, 70, 229, 0.25);
    white-space: nowrap;
}

#order-standard_cart .browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px 0 rgba(80, 70, 229, 0.35);
}

/* Order summary - Floating card */
#order-standard_cart .order-summary-section {
    position: sticky;
    top: 1.5rem;
}

#order-standard_cart .order-summary {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

#order-standard_cart .order-summary h2 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}

#order-standard_cart .order-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
}

#order-standard_cart .order-summary-line .label {
    color: var(--text-secondary);
}

#order-standard_cart .order-summary-line .value {
    color: var(--text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

#order-standard_cart .order-summary-line.total {
    border-top: 2px solid var(--border);
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

#order-standard_cart .order-summary-line.total .value {
    color: var(--primary);
    font-size: 1.375rem;
}

/* Checkout button - Premium */
#order-standard_cart .checkout-button {
    width: 100%;
    padding: 0.875rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(80, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

#order-standard_cart .checkout-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#order-standard_cart .checkout-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px 0 rgba(80, 70, 229, 0.35);
}

#order-standard_cart .checkout-button:hover::before {
    width: 300px;
    height: 300px;
}

#order-standard_cart .checkout-button:disabled {
    background: linear-gradient(135deg, var(--gray-400), var(--gray-500));
    cursor: not-allowed;
    box-shadow: none;
}

#order-standard_cart .continue-shopping {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

#order-standard_cart .continue-shopping:hover {
    color: var(--primary);
}

/* Promo section */
#order-standard_cart .promo-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

#order-standard_cart .promo-section h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

#order-standard_cart .promo-input-group {
    display: flex;
    gap: 0.5rem;
}

#order-standard_cart .promo-input-group input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

#order-standard_cart .promo-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(80, 70, 229, 0.1);
}

#order-standard_cart .promo-input-group button {
    padding: 0.625rem 1.25rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#order-standard_cart .promo-input-group button:hover {
    background: var(--gray-700);
}

/* Responsive */
@media (max-width: 991px) {
    #order-standard_cart .cart-content {
        grid-template-columns: 1fr;
    }
    
    #order-standard_cart .order-summary-section {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    #order-standard_cart .quick-actions {
        grid-template-columns: 1fr;
    }
    
    #order-standard_cart .empty-title {
        font-size: 1.875rem;
    }
    
    #order-standard_cart .popular-items {
        grid-template-columns: 1fr;
    }
    
    #order-standard_cart .popular-item {
        justify-content: center;
    }
}
