/* Navbar */
.navbar {
    background-color: var(--ay-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand span {
    color: var(--ay-orange);
}

.navbar-search {
    flex: 0 1 400px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 45px;
    border-radius: 99px;
    background-color: #FFFFFF;
    border: 1px solid var(--ay-border);
    color: #111827;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.navbar-search input:focus {
    border-color: var(--ay-orange-strong);
    box-shadow: 0 0 0 3px rgba(200, 58, 0, 0.25);
}

.navbar-search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ay-muted);
    cursor: pointer;
    font-size: 16px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-item {
    font-weight: 500;
    font-size: 15px;
    color: #E5E7EB;
}

.nav-item:hover, .nav-item.active {
    color: var(--ay-orange);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
    border: none;
}

.btn-primary {
    background-color: var(--ay-orange-strong);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--ay-orange);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background-color: var(--ay-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #E5E7EB;
}

.footer-links li a:hover {
    color: var(--ay-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: 14px;
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--ay-white);
    border-radius: 8px;
    border: 1px solid var(--ay-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--ay-orange);
}

.product-image-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-color: #ffffff;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.03);
}

.product-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ay-orange-strong);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    color: var(--ay-text);
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ay-border);
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--ay-text);
}

.product-stock {
    font-size: 11px;
    color: var(--ay-success);
    background-color: rgba(18, 166, 106, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.product-stock.out {
    color: var(--ay-danger);
    background-color: rgba(217, 45, 32, 0.1);
}

/* Category Page Specifics (Sidebar, Sort, Pagination) */
.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        display: none; /* Can toggle via js or simple CSS triggers */
    }
}

.filter-sidebar {
    background-color: var(--ay-white);
    border: 1px solid var(--ay-border);
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ay-border);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--ay-navy);
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    accent-color: var(--ay-orange-strong);
    width: 16px;
    height: 16px;
}

/* Sort Dropdown */
.list-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sort-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--ay-border);
    background-color: var(--ay-white);
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--ay-text);
    outline: none;
    cursor: pointer;
}

/* Filter Chips */
.active-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-chip {
    background-color: #ECEFF3;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ay-text);
    font-weight: 500;
}

.filter-chip a {
    color: var(--ay-muted);
    font-weight: bold;
}

.filter-chip a:hover {
    color: var(--ay-danger);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--ay-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: var(--ay-white);
    font-size: 14px;
    color: var(--ay-text);
}

.pagination-item:hover, .pagination-item.active {
    background-color: var(--ay-orange-strong);
    color: #FFFFFF;
    border-color: var(--ay-orange-strong);
}

/* Product Detail Page Specific CSS */
.badge-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.badge-trust {
    background-color: rgba(8, 24, 40, 0.08);
    color: var(--ay-navy);
}

.badge-delivery {
    background-color: rgba(18, 166, 106, 0.08);
    color: var(--ay-success-strong);
}

.badge-social {
    background-color: rgba(255, 90, 0, 0.08);
    color: var(--ay-orange-strong);
}

/* Collapsible Accordion Tabs */
.accordion-wrapper {
    margin-top: 30px;
    border: 1px solid var(--ay-border);
    border-radius: 8px;
    background-color: var(--ay-white);
    overflow: hidden;
}

.accordion-tab {
    border-bottom: 1px solid var(--ay-border);
}

.accordion-tab:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 16px;
    background-color: var(--ay-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: var(--ay-navy);
}

.accordion-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--ay-surface);
}

.accordion-tab.open .accordion-content {
    padding: 20px 24px;
    max-height: 1000px;
}

/* Reviews List */
.review-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--ay-border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.review-rating {
    color: #FFC247;
    font-weight: bold;
}

.review-user {
    color: var(--ay-text);
    font-weight: 600;
}

.review-date {
    color: var(--ay-muted);
}

.review-text {
    font-size: 14px;
    color: var(--ay-text);
    line-height: 1.5;
}

/* Seller Card Details */
.seller-card {
    background-color: var(--ay-white);
    border: 1px solid var(--ay-border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--ay-navy);
}

.seller-rating {
    background-color: var(--ay-success);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.other-sellers-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.other-seller-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--ay-border);
}
