/* ========================================
   VERA DRINKS - Shop / Catalog Styles
   ======================================== */

/* ---- PAGE HEADER ---- */
.page-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1d3557 100%);
    padding: 140px 0 60px;
    text-align: center;
}
.page-header h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}
.page-header p {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    margin: 0;
}

/* ---- CART LINK ---- */
.cart-link {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---- CATALOG ---- */
.catalog-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

/* Filter Sidebar */
.filter-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #eee;
    position: sticky;
    top: 100px;
}
.filter-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li a {
    display: block;
    padding: 9px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 500;
}
.category-list li a:hover,
.category-list li a.active {
    background: rgba(230,57,70,0.08);
    color: var(--primary);
}
.category-list li a.active {
    font-weight: 600;
}

.search-box .form-control {
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}
.search-box .btn {
    border-radius: 0 8px 8px 0;
}

.search-result-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #eee;
}

/* Product Card */
.product-catalog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.product-img-area {
    position: relative;
    height: 180px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img-placeholder {
    font-size: 50px;
    color: #c5d0dc;
}
.product-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(29,53,87,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}
.product-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}
.product-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.meta-item {
    font-size: 12px;
    color: #999;
}
.meta-item i {
    margin-right: 3px;
}

.btn-add-cart {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: auto;
    transition: all 0.3s ease;
}
.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.3);
    color: #fff;
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
}
.empty-state i {
    font-size: 64px;
    color: #d0d5dd;
    margin-bottom: 16px;
    display: block;
}
.empty-state h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
}

/* ---- CART ---- */
.cart-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

.cart-items-card,
.order-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #eee;
}
.card-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text);
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e5e7eb;
}
.qty-value {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.btn-remove {
    background: none;
    border: 1px solid #fee2e2;
    color: #ef4444;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-remove:hover {
    background: #fef2f2;
}

.cart-actions {
    padding-top: 16px;
    margin-top: 10px;
}

.order-form-card .form-label {
    font-size: 13px;
    font-weight: 600;
}
.order-form-card .form-control,
.order-form-card .form-select {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
}
.order-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

/* Order success */
.order-success-panel {
    text-align: center;
    padding: 30px 10px;
}
.success-icon {
    font-size: 56px;
    color: #10b981;
    margin-bottom: 12px;
}
.order-success-panel h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.tracking-code-display {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    background: #fff5f5;
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
    border: 2px dashed var(--primary);
}

/* ---- TRACKING ---- */
.track-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

.track-search-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.track-search-card .input-group-text {
    background: #f8f9fa;
    border-right: none;
    border-radius: 10px 0 0 10px;
}
.track-search-card .form-control {
    border-left: none;
    font-size: 16px;
}
.track-search-card .btn {
    border-radius: 0 10px 10px 0;
    padding: 12px 24px;
    font-weight: 600;
}

.order-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* QR Code */
.qr-code-wrapper {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    margin-bottom: 12px;
}
.qr-image {
    width: 160px;
    height: 160px;
    border-radius: 8px;
}
.tracking-code-large {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);
}

/* Status Timeline */
.status-timeline {
    margin: 30px 0;
}
.timeline-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
    transition: all 0.3s;
}
.timeline-step.active .step-icon {
    background: var(--gradient);
    color: #fff;
}
.timeline-step.current .step-icon {
    box-shadow: 0 0 0 4px rgba(230,57,70,0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230,57,70,0.3); }
    70% { box-shadow: 0 0 0 10px rgba(230,57,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}
.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
}
.timeline-step.active .step-label {
    color: var(--dark);
}

.timeline-connector {
    width: 40px;
    height: 3px;
    background: #e5e7eb;
    margin-bottom: 28px;
    border-radius: 3px;
}
.timeline-connector.active {
    background: var(--primary);
}

.cancelled-badge {
    text-align: center;
    padding: 16px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
}

/* Order info grid */
.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.info-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}
.info-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.order-notes {
    padding: 14px 18px;
    background: #fff8e1;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    border-left: 4px solid #ffa000;
}

/* ---- SHOP FOOTER ---- */
.shop-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 20px 0;
    font-size: 13px;
}
.shop-footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}
.shop-footer a:hover {
    color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .filter-card {
        position: static;
        margin-bottom: 20px;
    }
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    .timeline-steps {
        flex-wrap: wrap;
        gap: 8px;
    }
    .timeline-connector {
        display: none;
    }
}
@media (max-width: 767px) {
    .page-header {
        padding: 120px 0 40px;
    }
    .page-header h1 {
        font-size: 26px;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
    .tracking-code-display {
        font-size: 20px;
    }
}
