/* tipitoe-public.css */
:root { 
    --tt-dark: #1a1a2e; 
    --tt-teal: #0f766e; 
    --tt-teal-hover: #0d9488;
    --tt-orange: #ea580c;
    --tt-orange-hover: #f97316;
    --tt-purple: #6d28d9;
    --tt-gray: #64748b; 
    --tt-light-bg: #f8fafc;
    --tt-border: #e2e8f0;
    --tt-font: 'Inter', -apple-system, system-ui, sans-serif; 
    --tt-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --tt-shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --tt-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

.tt-wrapper { max-width: 1200px; margin: 0 auto; font-family: var(--tt-font); color: var(--tt-dark); padding: 0 20px; }

/* --- SVG ICONS --- */
.tt-svg { width: 1.15rem; height: 1.15rem; display: inline-block; vertical-align: text-bottom; margin-right: 6px; flex-shrink: 0; }
.tt-icon { display: flex; align-items: center; justify-content: center; color: var(--tt-teal); }

/* --- CAROUSEL RE-STYLING --- */
.tt-slider-wrapper { margin: 60px 0; overflow: hidden; font-family: var(--tt-font); }
.tt-slider-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; border-bottom: 2px solid var(--tt-light-bg); padding-bottom: 12px; }
.tt-header-titles h2 { margin: 0 0 4px 0; font-size: 1.75rem; font-weight: 700; color: var(--tt-dark); letter-spacing: -0.02em; }
.tt-subtext { margin: 0; font-size: 0.95rem; color: var(--tt-gray); }
.tt-see-all { color: var(--tt-teal); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; white-space: nowrap; }
.tt-see-all:hover { color: var(--tt-teal-hover); text-decoration: underline; }

.tt-carousel-container { padding: 15px 5px 30px 5px; margin: -5px; }
.tt-track { display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 10px; }
.tt-track::-webkit-scrollbar { display: none; }

/* --- CARDS BASE --- */
.tt-slide-card { 
    min-width: calc(33.333% - 16px); max-width: calc(33.333% - 16px);
    background: #fff; border: 1px solid var(--tt-border); border-radius: 16px; 
    overflow: hidden; box-shadow: var(--tt-shadow-md);
    display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: fit-content; position: relative;
}
.tt-slide-card:hover { transform: translateY(-6px); box-shadow: var(--tt-shadow-hover); border-color: transparent; }
.is-premium { border-top: 4px solid #f59e0b; }

.tt-card-media { position: relative; width: 100%; height: 220px; background: transparent; overflow: hidden; }
.tt-img-cover { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.5s ease; }
.tt-slide-card:hover .tt-img-cover { transform: scale(1.05); }
.tt-placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0.15; color: var(--tt-dark); }

.tt-badge-float { 
    position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.95); 
    padding: 6px 12px; border-radius: 30px; font-weight: 700; font-size: 0.75rem; 
    box-shadow: var(--tt-shadow-sm); z-index: 2; color: var(--tt-dark); backdrop-filter: blur(4px);
}

.tt-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.tt-card-title { margin: 0 0 16px 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.tt-card-title a { text-decoration: none; color: var(--tt-dark); transition: color 0.2s; }
.tt-card-title a:hover { color: var(--tt-teal); }

.tt-data-row { display: flex; align-items: flex-start; margin-bottom: 10px; font-size: 0.9rem; color: var(--tt-gray); line-height: 1.5; }
.tt-text { flex: 1; }
.tt-data-row a { color: var(--tt-teal); text-decoration: none; font-weight: 500; }
.tt-data-row a:hover { text-decoration: underline; }

.tt-toggle-btn { 
    background: var(--tt-light-bg); border: 1px solid var(--tt-border); color: var(--tt-dark); 
    font-weight: 600; cursor: pointer; padding: 10px 16px; border-radius: 8px; margin-top: 16px; 
    font-size: 0.9rem; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center;
}
.tt-toggle-btn:hover { background: #e2e8f0; }
.tt-hidden-details { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--tt-border); animation: fadeIn 0.3s ease; }
.tt-desc-small { font-size: 0.9rem; color: var(--tt-gray); margin: 16px 0; background: transparent; padding: 12px 0; border-radius: 0; border-left: none; }

/* --- MODERN PRODUCT CARDS --- */
.tt-modern-product-card { border-top: none; }
.tt-modern-product-card .tt-card-media { height: 240px; }
.tt-modern-product-card .tt-price-tag {
    position: absolute; bottom: 12px; right: 12px; background: rgba(255, 255, 255, 0.95);
    color: var(--tt-dark); font-weight: 800; font-size: 1.1rem; padding: 6px 14px;
    border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); backdrop-filter: blur(4px); z-index: 2;
}
.tt-modern-product-card .tt-card-body { padding: 20px; }
.tt-product-meta { margin-bottom: 8px; }
.tt-seller-name { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 600; color: var(--tt-gray); text-transform: uppercase; letter-spacing: 0.05em; }
.tt-modern-product-card .tt-card-title { font-size: 1.15rem; margin-bottom: 20px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tt-product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid var(--tt-border); padding-top: 16px; }
.tt-stock-pill { display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.tt-stock-pill .tt-svg { width: 1rem; height: 1rem; margin-right: 4px; }
.tt-in-stock { background: #dcfce7; color: #166534; }
.tt-low-stock { background: #fee2e2; color: #991b1b; }

.tt-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--tt-orange); color: white; border-radius: 50%; transition: background 0.2s, transform 0.2s; }
.tt-btn-icon .tt-svg { margin: 0; width: 1.25rem; height: 1.25rem; }
.tt-btn-icon:hover { background: var(--tt-orange-hover); transform: translateX(3px); }

/* --- DASHBOARD STYLES --- */
.tt-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--tt-border); gap: 15px; }
.tt-header h1 { margin: 0 0 5px 0; font-size: 2rem; }
.tt-date { margin: 0; color: var(--tt-gray); font-size: 0.95rem; }
.tt-status-indicator { font-weight: 600; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; }
.tt-status-indicator.premium { background: #fef3c7; color: #b45309; }
.tt-status-indicator.basic { background: #e2e8f0; color: #475569; }

.tt-main-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 50px; }
.tt-card { background: #fff; border: 1px solid var(--tt-border); border-radius: 12px; padding: 25px; display: flex; flex-direction: column; box-shadow: var(--tt-shadow-sm); }
.tt-card-text h3 { margin: 0 0 10px 0; font-size: 1.25rem; }
.tt-card-text p { color: var(--tt-gray); margin-bottom: 20px; }

.tt-btn { background: var(--tt-teal); color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; display: inline-block; width: auto; transition: 0.2s; }
.tt-btn:hover { background: var(--tt-teal-hover); }
.tt-btn-orange { background: var(--tt-orange); } .tt-btn-orange:hover { background: var(--tt-orange-hover); }
.tt-btn-purple { background: var(--tt-purple); } .tt-btn-purple:hover { background: #5b21b6; }
.tt-btn-locked { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.tt-btn-outline { color: var(--tt-dark); border: 1px solid var(--tt-border); padding: 8px 16px; border-radius: 6px; text-decoration: none; font-weight: 500; transition: 0.2s; }
.tt-btn-outline:hover { background: var(--tt-light-bg); }

.tt-clean-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tt-clean-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--tt-border); color: var(--tt-gray); }
.tt-clean-table td { padding: 15px 12px; border-bottom: 1px solid var(--tt-border); }
.tt-badge { padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.status-publish { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-draft { background: #f1f5f9; color: #475569; }

/* --- MODALS --- */
.tt-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.tt-modal-box { background: #fff; width: 100%; max-width: 600px; border-radius: 12px; display: flex; flex-direction: column; max-height: 90vh; box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.tt-modal-header { padding: 20px 25px; border-bottom: 1px solid var(--tt-border); display: flex; justify-content: space-between; align-items: center; }
.tt-modal-header h3 { margin: 0; font-size: 1.25rem; }
.tt-modal-body { padding: 25px; overflow-y: auto; }
.tt-close { font-size: 24px; cursor: pointer; color: #999; transition: 0.2s; } .tt-close:hover { color: #333; }
.tt-form input, .tt-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 1rem; margin-top: 5px; font-family: var(--tt-font); }
.form-group { margin-bottom: 15px; } .form-group label { font-weight: 600; font-size: 0.9rem; color: var(--tt-dark); }
.half { width: 48%; display: inline-block; vertical-align: top; } .half:nth-child(even) { margin-left: 3%; }
.tt-btn-group { display: flex; margin-top: 20px; gap: 10px; }
.tt-btn-cancel { background: #f1f1f1; color: #333; border: 1px solid #ccc; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; flex: 1; transition: 0.2s; }
.tt-btn-cancel:hover { background: #e2e8f0; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .tt-slide-card { min-width: calc(50% - 12px); max-width: calc(50% - 12px); } }
@media (max-width: 600px) { .tt-slide-card { min-width: 85%; max-width: 85%; } .half { width: 100%; margin-left: 0 !important; } }