@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Poppins:wght@300;500&display=swap');

:root {
            --dark-bg: #1A1A1A;
            --white: #FFFFFF;
            --accent: #D7B4A3;
            --accent-hover: #c69c8b;
            --mid-gray: #2B2B2B;
            --light-gray: #F8F8F8;
            --border-color: #EFEFEF;
            --text-primary: #282828;
            --text-secondary: #777777;
            --error-red: #f44336;
            --error-red-light: rgba(244, 67, 54, 0.1);
            --success-green: #4CAF50;
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
        }
      
 /* Reset and base styles */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

li {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Ensure no conflicting styles for the logo */
.logo-z, .logo-text {
    all: unset; /* Reset any styles from shop.css that might override main-nav styles */
}


/* Hero Section - match shop.css */
.hero {
    background: linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
    color: #FFFFFF;
    padding: 150px 0px 100px 0px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('/api/placeholder/1200/400') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Improved Breadcrumbs */
.zgadget-breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1.5rem;
    backdrop-filter: blur(5px);
    max-width: 80%;
    margin: 0 auto;
    border: 1px solid #D7B4A3;
}

.zgadget-breadcrumbs a {
    color: #D7B4A3;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 0.5rem;
}

.zgadget-breadcrumbs a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.zgadget-breadcrumbs .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.3rem;
}

.zgadget-breadcrumbs span.current {
    color: #fff;
    font-weight: 600;
    padding: 0 0.5rem;
}

        /* Header & Page Title */
        .page-title-container {
            background-color: var(--light-gray);
            padding: 3rem 0;
            margin-bottom: 4rem;
        }

        .page-title-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .breadcrumbs {
            display: flex;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .breadcrumbs a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .breadcrumbs a:hover {
            color: var(--accent);
        }

        .breadcrumbs i {
            font-size: 0.7rem;
            margin-top: 0.25rem;
        }

        .page-title {
            font-size: 2.5rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        /* Cart Container */
        .cart-container {
            max-width: 1200px;
            margin: 0 auto 6rem;
            padding: 0 1.5rem;
        }

        .cart-content {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 3rem; /* Increased gap for more spacing between products and order summary */
        }

        /* Cart Table */
        .cart-table-wrapper {
            background: var(--white);
            border-radius: 6px;
            overflow: hidden;
            padding: 1.5rem 1.5rem 1.5rem 1.5rem; /* Add padding for inner spacing */
        }

        .cart-table {
            width: 100%;
            border-collapse: collapse;
        }

        .cart-table th, 
        .cart-table td {
            padding: 1.5rem 1rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .cart-table th {
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
            border-bottom: 2px solid var(--border-color);
        }

        .cart-table tr:last-child td {
            border-bottom: none;
        }

        /* Product Display */
        .product-details {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .product-image {
            position: relative;
            width: 100px;
            height: 100px;
            overflow: hidden;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .product-image img:hover {
            transform: scale(1.05);
        }

        .product-info {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .product-name {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .product-name:hover {
            color: var(--accent);
        }

        .product-variant {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        /* Price Display */
        .price-column {
            font-weight: 500;
            font-size: 1.05rem;
            color: var(--text-primary);
        }

        .subtotal-column {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--text-primary);
        }

        /* Quantity Input */
        .quantity-control {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            width: 120px;
            height: 44px;
            overflow: hidden;
        }

        .qty-btn {
            width: 36px;
            height: 44px;
            background: var(--white);
            border: none;
            color: var(--text-secondary);
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .qty-btn:hover {
            background-color: var(--light-gray);
            color: var(--text-primary);
        }

        .cart-qty-input {
            width: 48px;
            height: 44px;
            border: none;
            border-left: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
            text-align: center;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-primary);
            background-color: var(--white);
            appearance: none;
            -moz-appearance: textfield;
        }

        .cart-qty-input::-webkit-outer-spin-button,
        .cart-qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .cart-qty-input:focus {
            outline: none;
        }

        /* Cart Actions */
        .cart-remove-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1rem;
            padding: 0.5rem;
            transition: color 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cart-remove-btn:hover {
            color: var(--error-red);
        }

        /* Order Summary */
        .order-summary {
            background: var(--light-gray);
            border-radius: 6px;
            padding: 2.5rem 2rem 2.5rem 2rem; /* More padding for better spacing */
            margin-right: 0.5rem; /* Add a little space from the edge */
            box-sizing: border-box;
        }

        .summary-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 1rem 0;
            border-bottom: 1px solid var(--border-color);
        }

        .summary-row:last-of-type {
            border-bottom: none;
            padding-bottom: 0;
        }

        .summary-label {
            font-weight: 500;
            color: var(--text-secondary);
        }

        .summary-value {
            font-weight: 600;
            color: var(--text-primary);
        }

        .summary-total {
            font-size: 1.3rem;
            color: var(--text-primary);
        }

        .summary-notice {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-top: 1.5rem;
            text-align: center;
        }

        /* Buttons */
        .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            font-weight: 600;
            font-size: 1rem;
            border-radius: 4px;
            transition: all 0.2s ease;
            cursor: pointer;
            text-decoration: none;
            border: none;
            width: 100%;
        }

        .btn-primary {
            background-color: var(--accent);
            color: var(--white);
        }

        .btn-primary:hover {
            background-color: var(--accent-hover);
        }

        .btn-secondary {
            background-color: var(--text-primary);
            color: var(--white);
            margin-top: 1rem;
        }

        .btn-secondary:hover {
            background-color: var(--mid-gray);
        }

        .checkout-btn {
            margin-top: 1.5rem;
        }
        /* Cart Top Actions */
        .cart-actions-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .cart-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .continue-shopping {
            color: var(--text-secondary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: color 0.2s ease;
        }

        .continue-shopping:hover {
            color: var(--accent);
        }

        /* Cart Bottom Actions */
        .cart-actions-bottom {
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
            margin-top: 1.2rem;
            padding-right: 1rem;
            align-items: center;
        }

        .clear-cart-btn {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            background: #fff;
            color: #888; /* Changed from var(--error-red) to grey */
            border: 1px solid #bbb; /* Changed from var(--error-red) to grey border */
            font-weight: 500;
            font-size: 0.97rem;
            padding: 0.5rem 1.1rem;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
            box-shadow: 0 1px 4px rgba(180, 180, 180, 0.07); /* subtle grey shadow */
            outline: none;
            min-width: 0;
            min-height: 0;
        }
        .clear-cart-btn:hover, .clear-cart-btn:focus {
            background: #bbb; /* grey background on hover */
            color: #fff;
            border-color: #bbb;
            box-shadow: 0 2px 8px rgba(180, 180, 180, 0.13);
            transform: translateY(-1px) scale(1.01);
        }

        .update-cart {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--white);
            font-weight: 600;
            background: var(--accent);
            border: none;
            cursor: pointer;
            transition: background 0.18s, color 0.18s, box-shadow 0.18s;
            padding: 0.55rem 1.3rem 0.55rem 0.9rem;
            border-radius: 5px;
            font-size: 0.99rem;
            box-shadow: 0 1px 4px rgba(215, 180, 163, 0.13);
            position: relative;
            min-width: 0;
            min-height: 0;
        }
        /* Pop effect when updating, but keep text and icon visible */
        .update-cart.updating {
            background: #ff9800 !important; /* vivid orange */
            color: #fff !important;         /* ensure text/icon stays white */
            box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.18), 0 6px 24px rgba(255, 152, 0, 0.25);
            transform: scale(1.08);
            border: 2px solid #ff9800;
        }
        .update-cart.updating i {
            color: #fff !important;         /* ensure icon stays white */
        }
    
        .update-cart:hover, .update-cart:focus {
            background: var(--accent-hover);
            color: #fff;
            outline: none;
            box-shadow: 0 2px 8px rgba(215, 180, 163, 0.18);
            transform: translateY(-1px) scale(1.01);
        }
        .update-cart i {
            font-size: 1rem;
        }
        .clear-cart-btn i {
            font-size: 1rem;
        }

        /* Empty Cart */
        .cart-empty {
            text-align: center;
            padding: 5rem 0;
            margin: 0 auto;
            max-width: 600px;
        }

        .cart-empty-icon {
            font-size: 3.5rem;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            opacity: 0.7;
        }

        .cart-empty h2 {
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        .cart-empty p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
        }

        .btn-lg {
            padding: 1.2rem 2.5rem;
            font-size: 1.1rem;
            display: inline-flex;
        }

        /* Order Summary Mobile */
        .order-summary-mobile {
            display: none;
            margin-top: 2rem;
        }

        /* Responsive Design */
        @media screen and (max-width: 992px) {
            .cart-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            .order-summary {
                margin-top: 2rem;
                margin-right: 0;
            }
            .cart-table-wrapper {
                padding: 1rem;
            }
            .cart-actions-bottom {
                padding-right: 0.5rem;
                justify-content: flex-end;
            }
        }

        /* Mobile view improvements */
        @media screen and (max-width: 768px) {
            .cart-actions-bottom {
                flex-direction: column;
                align-items: stretch;
                gap: 0.5rem;
                padding-right: 0;
                margin-top: 1rem;
            }
            .clear-cart-btn,
            .update-cart {
                width: 100%;
                justify-content: center;
                font-size: 1rem;
                padding: 0.7rem 0.9rem;
            }
        }

        /* Extra mobile tweaks */
        @media screen and (max-width: 576px) {
            .cart-table {
                display: block;
            }
            .cart-table thead {
                display: none;
            }
            .cart-table tbody,
            .cart-table tr,
            .cart-table td {
                display: block;
                width: 100%;
            }
            .cart-table tr {
                margin-bottom: 1.5rem;
                padding: 1rem 0;
                border-bottom: 1px solid #EFEFEF;
                position: relative;
            }
            .cart-table tr:last-child {
                margin-bottom: 0;
            }
            .cart-table td {
                border-bottom: none;
                padding: 0.5rem 0;
                text-align: right;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            .cart-table td:before {
                content: attr(data-label);
                font-weight: 600;
                float: left;
                color: #777;
            }
            .product-details {
                flex-direction: row;
                width: 100%;
                justify-content: flex-end;
            }
            .product-info {
                align-items: flex-end;
                text-align: right;
            }
            .product-variant {
                text-align: right;
            }
            .cart-remove-btn {
                position: absolute;
                right: 0;
                top: 0.5rem;
            }
            .quantity-control {
                margin-left: auto;
            }
            .cart-actions-bottom {
                flex-direction: column;
                align-items: stretch;
                gap: 0.7rem;
                padding-right: 0;
                margin-top: 1.2rem;
            }
            .order-summary {
                padding: 1rem 0.5rem;
            }
        }