/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: #ffffff;
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
}

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

/* Header Styles */
header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 2rem 0;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-link {
    color: #2c2c2c;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #f0f0f0;
}

.social-link:hover {
    color: #666;
    transform: translateY(-2px);
    border-color: #2c2c2c;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.admin-link {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.admin-link:hover {
    color: #666;
    border-color: #2c2c2c;
    transform: translateY(-2px);
}

/* Request Button Styles */
.request-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    position: absolute;
    right: 0;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-button:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.request-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}


/* Main Content */
main {
    padding: 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 8rem 0;
    color: #2c2c2c;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 2rem 0 4rem 0;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c2c2c;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 300;
}

.author-photo {
    margin-bottom: 1rem;
}

.author-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    transition: all 0.3s ease;
}

.author-photo img:hover {
    border-color: #2c2c2c;
    transform: scale(1.05);
}

/* Categories Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.category-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 3rem 2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.category-card:hover {
    border-color: #2c2c2c;
    transform: translateY(-2px);
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    letter-spacing: -0.01em;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.subcategory-tag {
    background: #f8f8f8;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.subcategory-tag:hover {
    background: #2c2c2c;
    color: #ffffff;
    border-color: #2c2c2c;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.product-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-card:hover {
    border-color: #2c2c2c;
    transform: translateY(-2px);
}

.product-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.product-image-link:hover {
    transform: scale(1.02);
}

.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* NEW widget styles */
.product-image-container {
    position: relative;
    display: block;
    width: 100%;
}

.new-widget {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2c2c2c;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    }
}

/* Mobile styles for NEW widget */
@media (max-width: 768px) {
    .new-widget {
        top: 6px;
        right: 6px;
        font-size: 0.5rem;
        padding: 3px 6px;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
        }
        50% {
            box-shadow: 0 1px 6px rgba(255, 215, 0, 0.5);
        }
        100% {
            box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
        }
    }
}

.product-info {
    padding: 2rem 1.5rem;
    text-align: left;
}

.product-category {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



.product-price {
    font-weight: 500;
    font-size: 1.1rem;
    color: #2c2c2c;
}

.product-brand, .product-ref {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-brand strong, .product-ref strong {
    color: #2c2c2c;
}





/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .author-photo img {
        width: 120px;
        height: 120px;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 0.8rem;
        padding-bottom: 1rem;
    }
    
    .request-button {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        position: static;
        margin-top: 0.5rem;
        height: 2rem;
    }
}

@media (max-width: 600px) {
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-category {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-brand, .product-ref {
        font-size: 0.75rem;
    }
}

/* Form Controls */
.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    font-size: 0.9rem;
    background: #ffffff;
    color: #2c2c2c;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2c2c2c;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Order Button Styles */
.order-button {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.order-button:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.order-button:active {
    transform: translateY(0);
}

/* Order Modal Styles */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c2c2c;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0.5rem;
    margin: -0.5rem;
}

.close-modal:hover {
    color: #2c2c2c;
}

.modal-body {
    padding: 2rem;
}

.product-preview {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.product-details {
    flex: 1;
}

.product-details p {
    margin: 0.5rem 0;
    color: #2c2c2c;
}

.product-link {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #2c2c2c;
}

.product-link:hover {
    color: #666;
    border-color: #666;
}

.order-description {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 4px;
}

.order-description p {
    margin: 0;
    color: #666;
    font-style: italic;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c2c2c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

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

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e5e5e5;
}

.btn-submit {
    background: #2c2c2c;
    color: white;
}

.btn-submit:hover:not(:disabled) {
    background: #1a1a1a;
}

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

/* Mobile Responsive Modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        max-height: none;
    }
    
    .product-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .modal-product-image {
        width: 100px;
        height: 100px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}


