:root {
    /* Override Bootstrap Primary Color (Old btn-oferta color) */
    --bs-primary: #205fad;
    --bs-primary-rgb: 32, 95, 173;

    /* Override Bootstrap Success Color (Old btn-whatsapp color) */
    --bs-success: #50b127;
    --bs-success-rgb: 80, 177, 39;
}

/* Custom Hover Opacity for Primary and Success Buttons */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover,
.btn-success:hover {
    opacity: 0.9;
}

.btn-success {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
}

/* Maintain the text color as white */
.btn-primary,
.btn-success {
    color: #fff !important;
}

/* Header Action Buttons - Option 2 (Tag Shape) */
.btn-tag-shape {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4rem;
    font-weight: 400;
    color: white;
    padding: 0.2rem 0.6rem 0.2rem 1.4rem;
    position: relative;
    clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 50%);
    transition: all 0.2s;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.btn-tag-shape:hover {
    padding-left: 1.8rem;
    color: white;
}

.tag-warning {
    background-color: #f59e0b;
}

.tag-danger {
    background-color: #ef4444;
}

.tag-coupon {
    background-color: #ee6c3a;
}

/* Option 9: Vertical Icon (Compacto) */
.nav-vertical-icon {
    gap: 20px;
    justify-content: center;
    border-bottom: none !important;
}

.nav-vertical-icon .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #95a5a6;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 12px;
    border: none;
    background: transparent;
}

.nav-vertical-icon .nav-link i {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.nav-vertical-icon .nav-link:hover {
    color: #2060af;
    background: #f0f4f8;
}

.nav-vertical-icon .nav-link:hover i {
    transform: translateY(-3px);
}

.nav-vertical-icon .nav-link.active {
    color: #2060af;
    background: #eef2ff;
}

.nav-vertical-icon .nav-link.active i {
    color: #2060af;
}

/* Mobile Menu Link */
.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    background: white;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: #f9fafb;
    color: var(--bs-primary);
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
}

/* =========================================
   New Header Styles (Migrated from index.html)
   ========================================= */
:root {
    --header-bg-dark: #2060af;
    --header-primary: #2563eb;
    --header-accent: #eab308;
}

.bg-header-dark {
    background-color: var(--header-bg-dark);
}

.text-header-primary {
    color: var(--header-primary);
}

.text-header-dark {
    color: var(--header-bg-dark);
}

.text-header-accent {
    color: var(--header-accent);
}

.header-search-input {
    background-color: #f9fafb;
    border: 2px solid #f3f4f6;
    transition: all 0.3s;
}

.header-search-input:focus {
    background-color: #ffffff;
    border-color: var(--header-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.nav-link-hover:hover {
    color: var(--header-primary) !important;
}

.cart-badge {
    background-color: var(--header-accent);
    color: white;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Product Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 95, 173, 0.85);
    /* Primary color with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through */
    backdrop-filter: blur(2px);
}

.product-card-hover:has(.internal-image-container:hover, .card-title:hover) .card-overlay {
    opacity: 1;
}

/* Breadcrumbs (Classic/Minimal) */
.breadcrumb-container {
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: #bdc3c7;
    content: "/";
}

.breadcrumb-item a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

/* --- COUPON CARD: TICKET STYLE --- */
.coupon-card-ticket {
    background: radial-gradient(circle at 0 50%, transparent 10px, white 11px) 0 50% / 51% 100% no-repeat,
        radial-gradient(circle at 100% 50%, transparent 10px, white 11px) 100% 50% / 51% 100% no-repeat;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    padding: 1.5rem 2rem;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: transform 0.2s;
}

/* .coupon-card-ticket:hover {
    transform: translateY(-3px);
} */

.ticket-dashed-line {
    border-top: 2px dashed #cbd5e1;
    margin: 1rem 0;
    position: relative;
    width: 100%;
}

.ticket-btn {
    background-color: #0f172a;
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ticket-btn:hover {
    background-color: #1e293b;
    color: #fff;
}

.store-logo-placeholder {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid #e9ecef;
    color: #333;
}

.coupon-code-ticket {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px dashed #cbd5e1;
    cursor: pointer;
}

/* Coupon Voting & Expired Badge */
.bg-expired-overlay {
    background-color: rgba(220, 53, 69, 0.9) !important;
    pointer-events: none;
    z-index: 100;
}

.vote-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vote-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.vote-btn.voted-like {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.vote-btn.voted-dislike {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.expired-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    border: 4px solid #dc3545;
    color: #dc3545;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 12px;
    opacity: 0.8;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.9);
    z-index: 20;
}

/* Option 6: Bar/Split Style */
.vote-container-opt6 {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    width: 140px;
    height: 32px;
}

.vote-btn-opt6 {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.2s;
    cursor: pointer;
    padding: 0;
}

.vote-btn-opt6:hover {
    background: rgba(0, 0, 0, 0.05);
}

.vote-btn-opt6.like {
    color: #10b981;
}

.vote-btn-opt6.dislike {
    color: #ef4444;
}

.vote-btn-opt6.like.voted-like {
    background: #10b981;
    color: white;
}

.vote-btn-opt6.dislike.voted-dislike {
    background: #ef4444;
    color: white;
}

.vote-separator {
    width: 1px;
    background: #cbd5e1;
}

/* Option 13: Full Width Feedback Banner */
.vote-banner-opt13 {
    background: #f8fafc;
    margin: 1.5rem -1.5rem -1.5rem -1.5rem;
    /* Negative margins to fill width */
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 16px;
    /* Match card radius */
    border-bottom-right-radius: 16px;
}

.vote-banner-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.vote-btn-opt13 {
    border: 1px solid #cbd5e1;
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    transition: all 0.2s;
    cursor: pointer;
}

.vote-btn-opt13:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.vote-btn-opt13:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vote-btn-opt13.like:hover:not(:disabled) {
    color: #10b981;
    border-color: #10b981;
    background: #ecfdf5;
}

.vote-btn-opt13.dislike:hover:not(:disabled) {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

.vote-btn-opt13.like.voted {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.vote-btn-opt13.dislike.voted {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}