/* ============================================
   DYPAQE - GLOBAL STYLES
   Modern, Minimalist, Consistent Design System
   ============================================ */

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000;
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
h1 {
    font-size: 2.5em;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.3em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.1em;
    font-weight: 900;
    margin-bottom: 10px;
}

p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ============================================
   HEADER - CONSISTENT ACROSS ALL PAGES
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #000;
}

.header-left,
.header-right {
    display: flex;
    width: 60px;
}

.header-right {
    justify-content: flex-end;
}

.logo {
    font-weight: 900;
    font-size: 1.5em;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-icon {
    cursor: pointer;
    font-size: 1.3em;
    color: #000;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.nav-icon:hover {
    transform: scale(1.1);
}

.nav-icon:active {
    transform: scale(0.95);
}

/* ============================================
   BOTTOM NAVIGATION - MOBILE ONLY
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    z-index: 999;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
    height: 60px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    font-size: 0.65em;
    font-weight: 600;
    padding: 10px 8px 8px;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.5em;
    margin-bottom: 3px;
    transition: all 0.2s ease;
}

.bottom-nav-item span {
    font-size: 0.85em;
    margin-top: 2px;
}

.bottom-nav-item:hover {
    color: #666;
}

.bottom-nav-item.active {
    color: #000;
}

.bottom-nav-item.active i {
    transform: scale(1.05);
}

.bottom-nav-item:active i {
    transform: scale(0.95);
}

/* ============================================
   MOBILE MENU - UNIFIED DESIGN
   ============================================ */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #000;
    padding: 80px 30px 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

#mobile-menu.active {
    transform: translateX(0);
}

#menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8em;
    cursor: pointer;
    color: #000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

#menu-close-btn:hover {
    transform: rotate(90deg);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
}

.menu-logo {
    font-weight: 900;
    font-size: 1.8em;
    letter-spacing: 1px;
}

.menu-cart-icon {
    font-size: 1.5em;
}

#mobile-menu nav a {
    display: block;
    font-size: 1.8em;
    font-weight: 900;
    margin: 25px 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding-left: 0;
}

#mobile-menu nav a:hover {
    padding-left: 10px;
    opacity: 1;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.content-wrapper {
    padding-top: 60px;
    padding-bottom: 70px;
    min-height: calc(100vh - 130px);
}

.page-content {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS - CONSISTENT DESIGN
   ============================================ */
.btn {
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   FORMS - CONSISTENT STYLING
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85em;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #000;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #d00;
    font-size: 0.85em;
    font-weight: 700;
    margin-top: 5px;
}

/* ============================================
   CARDS & PRODUCT ITEMS
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-info {
    padding: 15px 0;
}

.product-title {
    font-weight: 900;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 500;
    font-size: 1em;
    color: #000;
}

/* ============================================
   FOOTER - CONSISTENT DESIGN
   ============================================ */
footer {
    background-color: #000;
    color: #fff;
    padding: 50px 20px 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-weight: 900;
    font-size: 1.8em;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.1em;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-section a {
    display: block;
    color: #fff;
    font-size: 0.9em;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (min-width: 768px) {
    /* Show desktop header */
    header {
        justify-content: space-between;
    }
    
    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none;
    }
    
    .content-wrapper {
        padding-bottom: 0;
        min-height: calc(100vh - 60px);
    }
    
    .page-content {
        padding: 40px 30px;
    }
    
    h1 {
        font-size: 3em;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 40px;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / 2;
    }
}

@media (min-width: 1024px) {
    header {
        padding: 15px 40px;
    }
    
    .page-content {
        padding: 50px 40px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header,
    footer,
    .nav-icon,
    .btn {
        display: none;
    }
    
    .content-wrapper {
        padding-top: 0;
    }
}
