/*
Theme Name: Hipsterifique
Theme URI: https://example.com/hipsterifique
Author: Your Name
Author URI: https://example.com
Description: An intellectual t-shirt shop theme with vintage paper aesthetics and typewriter styling
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hipsterifique
Tags: e-commerce, vintage, creative, portfolio
*/

/* ====================================
   CSS RESET & BASE STYLES
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Special Elite', serif;
    color: #2a2825;
    background-color: #c5b396;
    background-image: url('https://www.transparenttextures.com/patterns/cardboard-flat.png');
    min-height: 100vh;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: 'IBM Plex Mono', monospace;
}

::selection {
    background-color: rgba(163, 87, 74, 0.3);
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
}

.mono-type {
    font-family: 'Cutive Mono', monospace;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

/* ====================================
   LAYOUT UTILITIES
   ==================================== */

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

.grid {
    display: grid;
    gap: 3rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

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

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

/* ====================================
   SPECIAL EFFECTS & DECORATIONS
   ==================================== */

.ink-bleed {
    filter: contrast(120%) brightness(90%) blur(0.2px);
    opacity: 0.92;
}

.deckled-edge {
    clip-path: polygon(
        0% 0.5%, 2% 0%, 5% 0.8%, 8% 0.2%, 12% 0.7%, 15% 0%, 18% 0.6%, 22% 0.1%, 25% 0.9%, 28% 0.3%, 32% 0.8%, 35% 0%, 38% 0.7%, 42% 0.2%, 45% 0.9%, 48% 0.1%, 52% 0.8%, 55% 0.2%, 58% 0.6%, 62% 0.1%, 65% 0.9%, 68% 0.3%, 72% 0.8%, 75% 0%, 78% 0.6%, 82% 0.1%, 85% 0.9%, 88% 0.3%, 92% 0.8%, 95% 0%, 98% 0.6%, 100% 0.5%,
        100% 100%, 0% 100%
    );
}

.notebook-paper {
    background-color: #f8f9fa;
    background-image:
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee 0.1em, transparent 0.1em);
    background-size: 100% 1.6rem;
    position: relative;
    box-shadow: 5px 5px 25px rgba(0,0,0,0.2);
}

.notebook-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 80px;
    width: 2px;
    height: 100%;
    background-color: #ff9999;
}

.graph-paper {
    background-color: #ffffff;
    background-image:
        linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

.wide-ruled {
    background-color: #fffcf2;
    background-image: linear-gradient(#d1d5db 1px, transparent 1px);
    background-size: 100% 2.5rem;
    box-shadow: 4px 4px 15px rgba(0,0,0,0.15);
}

.scrap {
    background-color: #fff;
    background-image: linear-gradient(#d1d5db 1px, transparent 1px);
    background-size: 100% 1rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.tape {
    background: rgba(255, 255, 230, 0.4);
    backdrop-filter: blur(1.5px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 1px;
}

.staple {
    width: 30px;
    height: 6px;
    background: linear-gradient(to bottom, #94a3b8, #475569);
    border-radius: 2px;
    position: absolute;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.paperclip {
    width: 12px;
    height: 40px;
    border: 2px solid #94a3b8;
    border-radius: 10px;
    position: absolute;
}

/* ====================================
   HEADER STYLES
   ==================================== */

.site-header {
    padding-top: 2rem;
    position: relative;
    z-index: 50;
}

.header-wrapper {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: rotate(-0.5deg);
    border: 4px dashed #a8a29e;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin: 0;
}

.site-title a {
    color: inherit;
}

.main-navigation {
    display: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.875rem;
    font-weight: bold;
    transition: all 0.3s;
}

.main-navigation a:hover {
    text-decoration: underline;
    text-decoration-color: #A3574A;
    text-underline-offset: 4px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.header-icon:hover {
    color: #A3574A;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero-section {
    position: relative;
    min-height: 750px;
    margin-bottom: 8rem;
    padding: 3rem 0;
}

.hero-paper {
    width: 100%;
    padding: 3rem;
    transition: transform 0.5s;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-left: 3rem;
}

.hero-image-wrapper {
    width: 100%;
    position: relative;
}

.hero-badge {
    position: absolute;
    top: -3rem;
    left: -3rem;
    z-index: 30;
    border: 4px solid #A3574A;
    color: #A3574A;
    padding: 0.5rem 1rem;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
    transform: rotate(-12deg);
    opacity: 0.8;
    mix-blend-mode: multiply;
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-image {
    aspect-ratio: 4/5;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 0.5rem;
    position: relative;
}

.hero-image-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-image .tape {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 6rem;
    height: 2rem;
}

.hero-meta {
    margin-top: 2rem;
    font-family: 'Cutive Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    color: #78716c;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
}

.hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    padding-top: 1rem;
}

.hero-category {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.75rem;
    color: #a8a29e;
    border-bottom: 1px solid #d6d3d1;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.6rem;
    margin: 0.5rem 0 0 0;
}

.hero-title .highlight {
    background-color: rgba(254, 249, 195, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6rem;
    color: #57534e;
    font-style: italic;
    padding-left: 2rem;
    position: relative;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hero-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: rgba(163, 87, 74, 0.4);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.hero-price {
    font-family: 'Cutive Mono', monospace;
    font-size: 1.875rem;
    font-weight: bold;
    color: #A3574A;
    line-height: 1.6rem;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.btn-wrapper {
    position: relative;
}

.btn-wrapper .tape {
    position: absolute;
    width: 3rem;
    height: 1.5rem;
    z-index: 20;
}

.btn-wrapper .tape:first-child {
    top: -0.75rem;
    left: 1rem;
    transform: rotate(-5deg);
}

.btn-wrapper .tape:nth-child(2) {
    bottom: -0.75rem;
    right: 1rem;
    transform: rotate(10deg);
}

.btn-primary {
    border: 1px solid #d6d3d1;
    padding: 1.25rem 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s;
    position: relative;
    z-index: 10;
    font-size: 1.25rem;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: none;
}

.btn-primary:hover {
    transform: rotate(-1deg);
}

.btn-secondary {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.875rem;
    border-bottom: 2px dashed #a8a29e;
    line-height: 1.6rem;
    transition: color 0.3s;
}

.btn-secondary:hover {
    color: #A3574A;
}

.hero-holes {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2rem 0;
}

.hole {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #b8a487;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0.4;
}

/* ====================================
   PRODUCT GRID SECTION
   ==================================== */

.products-section {
    position: relative;
    margin-bottom: 8rem;
}

.products-section .paperclip {
    top: -2rem;
    left: 50%;
    margin-left: -1.5rem;
    z-index: 40;
    opacity: 0.5;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    background-color: rgba(243, 229, 171, 0.4);
    padding: 0.25rem 1rem;
    margin: 0;
}

.section-divider {
    flex: 1;
    border-top: 2px dashed #a8a29e;
}

.product-card {
    position: relative;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: rotate(-1deg);
}

.product-card .staple {
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.product-card .tape {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    width: 3rem;
    height: 1.5rem;
    transform: rotate(12deg);
    opacity: 0.4;
}

.product-card .paperclip {
    top: -1rem;
    right: 2rem;
    opacity: 0.4;
}

.product-image {
    aspect-ratio: 1;
    background-color: white;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e7e5e4;
}

.product-image-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s;
}

.product-card:hover .product-image-inner {
    transform: scale(1.1);
}

.product-index {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.625rem;
    color: #78716c;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #e7e5e4;
    display: inline-block;
}

.product-title {
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.product-price {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.875rem;
    color: #A3574A;
    font-weight: bold;
}

.add-to-cart {
    width: 2rem;
    height: 2rem;
    border: 1px solid #d6d3d1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: #f3e5ab;
}

.add-to-cart::after {
    content: '+';
    font-size: 0.875rem;
}

/* ====================================
   NEWSLETTER SECTION
   ==================================== */

.newsletter-section {
    position: relative;
    margin-bottom: 8rem;
}

.newsletter-wrapper {
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    transform: rotate(-0.5deg);
}

.newsletter-wrapper .tape {
    position: absolute;
    width: 8rem;
    height: 2.5rem;
    z-index: 20;
}

.newsletter-wrapper .tape:first-child {
    top: -1rem;
    left: 25%;
    transform: rotate(-2deg);
}

.newsletter-wrapper .tape:nth-child(2) {
    bottom: -1rem;
    right: 25%;
    transform: rotate(3deg);
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.newsletter-text h3 {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-family: 'Cutive Mono', monospace;
    color: #57534e;
    font-size: 1.125rem;
    line-height: 1.5;
}

.newsletter-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input-wrapper {
    position: relative;
}

.newsletter-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #d6d3d1;
    padding: 1rem;
    font-family: 'Cutive Mono', monospace;
}

.newsletter-input:focus {
    outline: none;
    border-color: #A3574A;
    box-shadow: 0 0 0 3px rgba(163, 87, 74, 0.1);
}

.newsletter-input::placeholder {
    color: #a8a29e;
}

.newsletter-submit {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    background-color: #292524;
    color: #f3e5ab;
    padding: 0 1rem;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.newsletter-submit:hover {
    background-color: #000;
}

.newsletter-ref {
    font-size: 0.625rem;
    font-family: 'Cutive Mono', monospace;
    color: #78716c;
    text-transform: uppercase;
    text-align: right;
    font-style: italic;
}

/* ====================================
   INFO BLOCKS
   ==================================== */

.info-section {
    margin-bottom: 5rem;
}

.info-block {
    padding: 2.5rem;
    position: relative;
}

.info-block.graph-paper {
    transform: rotate(-1deg);
}

.info-block.wide-ruled {
    transform: rotate(1.5deg);
}

.info-block .staple {
    top: -0.25rem;
    left: 2.5rem;
}

.info-block .tape {
    position: absolute;
    top: -0.5rem;
    right: 2.5rem;
    width: 6rem;
    height: 2rem;
    opacity: 0.4;
}

.info-block h4 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e7e5e4;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.info-block.quote h4 {
    font-family: 'Cutive Mono', monospace;
    font-weight: bold;
    font-size: 0.75rem;
    color: #A3574A;
    text-decoration: underline;
    text-decoration-style: double;
    text-underline-offset: 4px;
}

.info-block p {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #57534e;
    margin-bottom: 1.5rem;
}

.info-block p:last-of-type {
    margin-bottom: 0;
}

.info-block blockquote {
    font-size: 1.875rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.info-block cite {
    margin-top: 2rem;
    font-family: 'Cutive Mono', monospace;
    font-size: 0.875rem;
    color: #78716c;
    display: block;
    text-align: right;
    font-style: normal;
}

/* ====================================
   FOOTER
   ==================================== */

.site-footer {
    background-color: #2a2825;
    color: rgba(243, 229, 171, 0.6);
    padding: 5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5rem;
    background-color: #c5b396;
    background-image: url('https://www.transparenttextures.com/patterns/cardboard-flat.png');
    transform: rotate(180deg);
}

.footer-content {
    margin-bottom: 4rem;
}

.footer-branding h2 {
    color: #f3e5ab;
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-branding p {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.875rem;
    max-width: 400px;
    line-height: 1.6;
}

.footer-section h5 {
    color: #f3e5ab;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(243, 229, 171, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    font-family: 'Cutive Mono', monospace;
    font-size: 0.75rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #f3e5ab;
}

.footer-section p {
    font-size: 0.625rem;
    font-family: 'Cutive Mono', monospace;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(243, 229, 171, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.625rem;
    font-family: 'Cutive Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: #f3e5ab;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
    }
    
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        flex-direction: row;
        margin-left: 5rem;
    }
    
    .hero-image-wrapper {
        width: 75%;
    }
    
    .hero-text {
        width: 58.333333%;
    }
    
    .hero-title {
        font-size: 4.5rem;
        line-height: 3.2rem;
    }
    
    .hero-paper {
        padding: 6rem;
    }
    
    .newsletter-content {
        flex-direction: row;
    }
    
    .newsletter-text {
        width: 66.666667%;
    }
    
    .newsletter-form {
        width: 33.333333%;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
    }
    
    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .newsletter-wrapper h3 {
        font-size: 1.75rem;
    }
    
    .info-block blockquote {
        font-size: 1.5rem;
    }
}
/* Custom Logo Fix */
.site-branding .custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-branding .custom-logo {
    max-height: 20px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    filter: contrast(120%) brightness(90%) blur(0.2px) !important;
    opacity: 0.92 !important;
    transition: opacity 0.3s !important;
}

.site-branding .custom-logo:hover {
    opacity: 1 !important;
}
