/* Brand Page - Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #d32f2f;
    --text-light: #666;
    --bg-light: #fafafa;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 60px 0 40px;
    text-align: center;
    margin-top: 30px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Brand Page Section */
.brand-page {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

/* Brand Header */
.brand-header {
    margin-bottom: 50px;
}

.brand-info {
    display: flex;
    gap: 40px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    align-items: center;
}

.brand-info-logo {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.brand-info-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-info-content {
    flex: 1;
}

.brand-info-content h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.brand-info-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-info-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 15px;
}

.brand-info-meta i {
    font-size: 14px;
    color: var(--primary-color);
}

.brand-info-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* Filter Tabs */
.brand-filter-tabs {
    margin-bottom: 30px;
}

.filter-tab-section {
    margin-bottom: 25px;
}

.filter-tab-section h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.brand-tab-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-tab-btn {
    padding: 10px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-tab-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.brand-tab-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.brand-tab-btn .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.brand-tab-btn.active .count {
    background: rgba(255,255,255,0.2);
}

/* Category Actions */
.category-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.category-sort select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 4px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    color: var(--primary-color);
}

.view-btn:hover {
    background: var(--bg-light);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Products Grid */
.products-wrapper {
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    gap: 30px;
}

.products-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

/* Product Card */
.watch-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.watch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* List View Styles */
.list-view .watch-card {
    flex-direction: row;
}

.list-view .watch-image {
    width: 300px;
    height: 250px;
    flex-shrink: 0;
}

.list-view .watch-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-view .watch-description {
    display: block;
}

/* Watch Tag */
.watch-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    z-index: 2;
}

/* Watch Image */
.watch-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--bg-light);
}

.watch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.watch-card:hover .watch-image img {
    transform: scale(1.05);
}

/* Watch Actions */
.watch-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.watch-card:hover .watch-actions {
    opacity: 1;
}

.watch-action {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--primary-color);
}

.watch-action:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Watch Info */
.watch-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.watch-category {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.watch-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.watch-title a:hover {
    opacity: 0.7;
}

.watch-collection {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    font-style: italic;
}

.watch-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
}

.old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-stock {
    margin-bottom: 15px;
    font-size: 14px;
}

.in-stock {
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.out-of-stock {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.watch-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    display: none;
}

.watch-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.watch-btn:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
}

.watch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.no-products-icon {
    font-size: 60px;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-products h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .brand-info {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-info-logo {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .brand-page {
        padding: 40px 0;
    }
    
    .brand-info {
        padding: 25px;
        gap: 25px;
    }
    
    .brand-info-logo {
        width: 120px;
        height: 120px;
    }
    
    .brand-info-content h1 {
        font-size: 26px;
    }
    
    .brand-info-meta {
        gap: 15px;
        font-size: 14px;
    }
    
    .products-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .list-view .watch-card {
        flex-direction: column;
    }
    
    .list-view .watch-image {
        width: 100%;
        height: 250px;
    }
    
    .category-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-sort {
        width: 100%;
    }
    
    .category-sort select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .brand-tab-nav {
        gap: 8px;
    }
    
    .brand-tab-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .products-grid.grid-view {
        grid-template-columns: 1fr;
    }
    
    .watch-card {
        border-radius: 4px;
    }
    
    .watch-image {
        height: 250px;
    }
    
    .watch-info {
        padding: 20px;
    }
    
    .watch-title {
        font-size: 16px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .watch-btn {
        width: 100%;
        justify-content: center;
    }
}