.category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.category-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.category-header .lead {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 0;
    max-width: 800px;
    margin: 0 auto;
}

.coupon-count {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coupon-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.coupon-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

/* Affiliate Disclaimer */
.affiliate-disclaimer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 20px 0;
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.affiliate-disclaimer i {
    color: #0D6EFD;
    font-size: 1rem;
}

.store-logo-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.coupon-info {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 120px;
}

.coupon-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.coupon-title {
    font-size: 1.1rem;
    color: #2d3436;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 6px;
}

.coupon-description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    margin-bottom: 8px;
}

.verified-badge {
    color: #0D6EFD;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-badge i {
    margin-right: 5px;
}

.code-section {
    min-width: 250px;
    border-left: 2px dashed #e9ecef;
    padding-left: 25px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: stretch;
}

.code-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.code-mask {
    font-family: monospace;
    font-size: 18px;
    color: #2d3436;
    letter-spacing: 2px;
    font-weight: 500;
}

.show-code {
    background: #0D6EFD;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.show-code:hover {
    background: #0b5ed7;
}

.show-code.btn-success {
    background: #0D6EFD;
}

.show-code i {
    font-size: 15px;
}

.deal-button {
    background: #0D6EFD;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.deal-button:hover {
    background: #0b5ed7;
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .coupon-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .coupon-info {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
        gap: 15px;
    }
    
    .coupon-details {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
    }
    
    .code-section {
        width: 100%;
        min-width: unset;
        border-left: none;
        border-top: 2px dashed #e9ecef;
        padding: 15px 0 0;
        margin: 15px 0 0;
        align-self: center;
    }

    .coupon-btn {
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
} 

.store-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    margin-bottom: 8px;
}

.store-name i {
    color: #636e72;
    font-size: 12px;
}

.store-name a {
    color: #636e72;
    text-decoration: none;
    transition: color 0.3s ease;
}

.store-name a:hover {
    color: #0D6EFD;
    text-decoration: none;
} 

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
    gap: 5px;
}

.page-link {
    color: #0D6EFD;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0D6EFD;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #0D6EFD;
    border-color: #0D6EFD;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

@media (max-width: 576px) {
    .pagination {
        gap: 3px;
    }

    .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-item.active {
    color: #2c3e50;
}

/* Responsive Breadcrumb */
@media (max-width: 576px) {
    .breadcrumb-nav {
        padding: 10px 0;
        margin-bottom: 20px;
    }

    .breadcrumb-item {
        font-size: 13px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 5px;
    }
} 

.show-code-btn {
    position: relative;
    width: 100%;
    height: 46px;
    background: #3b82f6;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
}

.btn-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 0 15px 0 20px;
    background: #3b82f6;
    transition: all 0.2s ease;
}

.code-text {
    position: relative;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #ffffff;
    color: #333;
    font-family: monospace;
    font-size: 17px;
    font-weight: 500;
    padding: 0 12px;
    transition: all 0.2s ease;
    border: none;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%233B82F6' stroke-width='2.5' stroke-dasharray='6%2c 6' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    margin: 0;
}

.half-char-container {
    position: relative;
    width: 6px;
    overflow: hidden;
    margin: 0;
    display: flex;
    align-items: center;
}

.half-char {
    position: relative;
    display: inline-block;
    transform: translateX(-50%);
    color: #333;
    margin: 0;
}

.last-chars {
    color: #333;
    margin-left: 4px;
    display: flex;
    align-items: center;
}

.code-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-image: url("data:image/svg+xml,%3csvg width='2' height='12' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='1' y1='0' x2='1' y2='12' stroke='%233B82F6' stroke-width='2' stroke-dasharray='3%2c 3'/%3e%3c/svg%3e");
    background-repeat: repeat-y;
}

.show-code-btn:hover .code-text {
    min-width: 65px;
    background: #ffffff;
    justify-content: flex-end;
    padding: 0 10px;
}

.show-code-btn:hover .half-char-container {
    width: 12px;
    overflow: visible;
    margin: 0;
}

.show-code-btn:hover .half-char {
    transform: translateX(0);
}

.show-code-btn.revealed .code-text {
    min-width: auto;
    width: auto;
    padding: 0 12px;
    font-size: 17px;
    background-image: none;
    border: 2.5px solid #16a34a;
    border-left: none;
    color: #333;
    background-color: #f0fdf4;
}

.show-code-btn.revealed .half-char,
.show-code-btn.revealed .last-chars {
    color: #333;
}

.show-code-btn:hover {
    background: #2563eb;
}

.show-code-btn:hover .btn-text {
    background: #2563eb;
}

.show-code-btn.revealed {
    background: #16a34a;
}

.show-code-btn.revealed .btn-text {
    background: #16a34a;
}

.show-code-btn.revealed .code-text {
    min-width: auto;
    padding: 0 15px;
    border-left: none;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .code-section {
        min-width: unset;
        width: 100%;
        border-left: none;
        border-top: 2px dashed #e9ecef;
        padding: 20px 0;
        margin: 15px 0 0 0;
        display: flex;
        justify-content: center;
        height: auto;
    }

    .coupon-btn {
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .show-code-btn {
        height: 42px;
        width: 100%;
    }

    .code-text {
        min-width: 45px;
        font-size: 16px;
        padding: 0 10px;
    }

    .show-code-btn:hover .code-text {
        min-width: 50px;
    }

    .show-code-btn.revealed .code-text {
        font-size: 17px;
    }

    .btn-text {
        font-size: 14px;
    }

    .half-char {
        font-size: 16px;
        width: 16px;
    }

    .half-char-container {
        width: 6px;
    }
} 