/* CSI Collegiate - Main Stylesheet */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f8f8;
    color: #2a2b2c;
    line-height: 1.65;
    font-size: 14px;
}

a {
    color: #f25c41;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #35C2D8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: #2a2b2c;
}

/* Header */
.header {
    background: white;
    border-bottom: 3px solid #35C2D8;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #DADADA;
    border-bottom: 2px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #2a2b2c;
    background: #F8F8F8;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: #35C2D8;
    background: white;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.search-result-item .result-info {
    flex: 1;
}

.search-result-item .result-sku {
    font-size: 12px;
    color: #35C2D8;
    font-weight: 600;
}

.search-result-item .result-name {
    font-size: 13px;
    color: #2a2b2c;
}

.quote-icon {
    position: relative;
    background: #f25c41;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-bottom: 3px solid #c94a33;
}

.quote-icon:hover {
    background: #e04d33;
    transform: translateY(-1px);
    color: white;
}

.quote-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #35C2D8;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Main Navigation */
.main-nav {
    background: #3A3F43;
    padding: 0;
}

.main-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.main-nav a:hover {
    background: #f25c41;
    color: white;
}

.main-nav .active a {
    border-bottom: 3px solid #35C2D8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3A3F43 0%, #2a2b2c 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    color: white;
}

.hero-content h1 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #35C2D8;
}

.hero-content p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.hero-btn-primary {
    background: #f25c41;
    color: white;
    border-bottom: 3px solid #c94a33;
}

.hero-btn-primary:hover {
    background: #e04d33;
    color: white;
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #35C2D8;
}

.hero-btn-secondary:hover {
    background: #35C2D8;
    color: white;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Feature Boxes */
.feature-boxes {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    gap: 20px;
}

.feature-box {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    max-width: 280px;
    min-width: 0;
    background: white;
    padding: 25px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #eee;
    border-bottom: 3px solid #35C2D8;
    transition: all 0.2s;
    text-decoration: none;
    color: #2a2b2c;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    color: #2a2b2c;
}

.feature-box:nth-child(1) { border-bottom-color: #f25c41; }
.feature-box:nth-child(2) { border-bottom-color: #35C2D8; }
.feature-box:nth-child(3) { border-bottom-color: #8FB813; }
.feature-box:nth-child(4) { border-bottom-color: #f25c41; }

.feature-box-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 13px;
    color: #999;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.container-full {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: white;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-bottom: 2px solid #DADADA;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2a2b2c;
    font-family: 'Oswald', sans-serif;
}

.sidebar-widget h3 span {
    background: #f25c41;
    color: white;
    padding: 2px 8px;
    font-size: 14px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    color: #2a2b2c;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-menu a:hover {
    background: #f0f0f0;
    color: #f25c41;
}

.nav-menu a.active {
    background: #f25c41;
    color: white;
}

/* Thumbnail Navigation */
.thumbnail-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thumbnail-nav li {
    margin-bottom: 12px;
}

.thumbnail-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #2a2b2c;
    font-size: 13px;
    transition: all 0.2s;
}

.thumbnail-nav a:hover {
    background: #fff;
    border-color: #35C2D8;
    color: #f25c41;
}

.thumbnail-nav img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.thumbnail-nav .thumb-title {
    flex: 1;
    line-height: 1.3;
}

/* Main Content */
.main-content {
    flex: 1;
}

.page-title {
    background: white;
    border-radius: 4px;
    padding: 25px 30px;
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-left: 4px solid #f25c41;
}

.page-title h1 {
    font-size: 26px;
    color: #2a2b2c;
    margin-bottom: 8px;
}

.page-title p {
    color: #999;
    font-size: 15px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    border: 1px solid #eee;
    border-bottom: 2px solid #DADADA;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: #35C2D8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    background: white;
    border-radius: 4px;
    padding: 10px;
    border: 1px solid #eee;
    display: block;
}

.product-sku {
    font-size: 13px;
    color: #35C2D8;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #2a2b2c;
    margin-bottom: 12px;
    min-height: 44px;
    line-height: 1.4;
}

.product-price {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price strong {
    font-size: 18px;
    color: #f25c41;
}

.bestseller-badge {
    display: inline-block;
    background: #f25c41;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-quote {
    width: 100%;
    padding: 12px;
    background: #3A3F43;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-quote:hover {
    background: #f25c41;
}

.btn-add-quote.added {
    background: #35C2D8;
}

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

.pagination a, .pagination span {
    padding: 10px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2a2b2c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f25c41;
    color: white;
    border-color: #f25c41;
}

.pagination .current {
    background: #f25c41;
    color: white;
    border-color: #f25c41;
}

/* Product Detail Page */
.product-detail {
    background: white;
    border-radius: 4px;
    padding: 40px;
    border: 1px solid #eee;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.product-info .sku {
    color: #35C2D8;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-info .description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.pricing-table th, .pricing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background: #f8f8f8;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.pricing-table td {
    font-size: 15px;
}

.pricing-table .price {
    color: #f25c41;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-selector input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Cart Page */
.cart-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

.cart-table th {
    background: #3A3F43;
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-sku {
    font-size: 12px;
    color: #35C2D8;
}

.cart-qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.btn-remove:hover {
    color: #f25c41;
}

.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-top: 20px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a2b2c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #35C2D8;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #f25c41;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #e04d33;
    color: white;
}

.btn-secondary {
    background: #3A3F43;
}

.btn-secondary:hover {
    background: #2a2b2c;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f25c41;
    color: #f25c41;
}

.btn-outline:hover {
    background: #f25c41;
    color: white;
}

/* Footer */
.footer {
    background: #3A3F43;
    color: white;
    margin-top: 50px;
    padding: 50px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    border-bottom: 2px solid #f25c41;
    padding-bottom: 10px;
    display: inline-block;
}

.footer p,
.footer a {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footer a:hover {
    color: #35C2D8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #555;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Thank You Pages */
.thank-you-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.thank-you-box {
    background: white;
    border-radius: 8px;
    padding: 50px 40px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.thank-you-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.thank-you-box h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #35C2D8;
}

.thank-you-box p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-box {
    background: white;
    border-radius: 4px;
    padding: 40px;
    border: 1px solid #eee;
}

.contact-info-box {
    background: #3A3F43;
    border-radius: 4px;
    padding: 40px;
    color: white;
}

.contact-info-box h3 {
    color: white;
    margin-bottom: 30px;
}

.contact-info-item {
    margin-bottom: 25px;
}

.contact-info-item h4 {
    color: #35C2D8;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-info-item p {
    color: #ccc;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #f25c41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .search-bar {
        margin: 15px 0;
        max-width: 100%;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .feature-boxes {
        margin-top: -20px;
    }

    .hero {
        padding: 40px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .feature-boxes {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .feature-box {
        -ms-flex: 1 1 calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        -ms-flex: 0 1 100%;
        flex: 0 1 100%;
        max-width: 100%;
    }

    .quote-icon {
        padding: 10px 16px;
        font-size: 13px;
    }
}
