/*
Theme Name: Women77 Exact Copy
Description: women77.shop 정확한 복제본 - 전문적인 쇼핑몰 디자인
Version: 1.0
Author: Claude Code
Template: storefront
*/

@import url("../storefront/style.css");

/* =========================
   Women77.shop 정확한 복제 디자인
========================= */

/* 사이드바 완전 제거 및 원페이지 레이아웃 - 최우선순위 */
#secondary, 
.widget-area,
.storefront-primary-navigation,
.site-header-cart,
.sidebar,
aside,
#sidebar,
.widget,
.widgetarea,
.right-sidebar,
.left-sidebar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

body.storefront #secondary {
    display: none !important;
}

/* Storefront 특정 사이드바 */
.storefront .site-content #secondary {
    display: none !important;
}

/* 콘텐츠 영역 전체 너비 */
#primary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.site-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Storefront 콘텐츠 레이아웃 오버라이드 */
.storefront .site-content {
    display: block !important;
    width: 100% !important;
}

.storefront .content-area {
    width: 100% !important;
    float: none !important;
}

/* 2컬럼 레이아웃 강제 해제 */
.storefront .site-main {
    width: 100% !important;
    margin: 0 !important;
}

/* 메인 컨테이너 */
.col-full {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 전체 색상 시스템 - 깔끔하고 전문적 */
:root {
    --primary-color: #333333;
    --secondary-color: #666666;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #e5e5e5;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --hover-bg: #f5f5f5;
}

/* 기본 폰트 및 레이아웃 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: var(--white);
    line-height: 1.6;
}

/* =========================
   헤더 디자인 - Women77 스타일
========================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0;
}

/* 상단 유틸리티 바 */
.header-top {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 12px;
    color: var(--light-text);
}

.header-top .col-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 메인 헤더 */
.header-main {
    padding: 15px 0;
}

.header-main .col-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 로고 */
.site-branding {
    margin-bottom: 0;
}

.site-branding .site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.site-branding .site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 헤더 우측 영역 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 검색 */
.site-search {
    position: relative;
    margin-bottom: 0;
}

.site-search .widget_product_search form {
    position: relative;
    display: flex;
}

.site-search input[type="search"] {
    width: 280px;
    height: 40px;
    padding: 0 40px 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--white);
    font-size: 14px;
    outline: none;
}

.site-search input[type="search"]:focus {
    border-color: var(--accent-color);
}

.site-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 장바구니 */
.site-header-cart {
    margin-bottom: 0;
}

.cart-contents {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--white);
    transition: all 0.2s ease;
}

.cart-contents:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
}

.cart-contents .count {
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* =========================
   네비게이션 - 깔끔하고 전문적
========================= */
.main-navigation {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    clear: both;
}

.main-navigation .menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu > li {
    position: relative;
}

.main-navigation .menu > li > a {
    display: block;
    padding: 18px 25px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.main-navigation .menu > li:hover > a,
.main-navigation .menu > li.current-menu-item > a {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* 드롭다운 메뉴 */
.main-navigation .menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.main-navigation .menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .menu ul li a {
    padding: 12px 20px;
    color: var(--primary-color);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: 1px solid var(--border-color);
}

.main-navigation .menu ul li:last-child a {
    border-bottom: none;
}

.main-navigation .menu ul li a:hover {
    background: var(--light-bg);
    color: var(--accent-color);
}

/* =========================
   페이지 헤더 - 깔끔한 배너
========================= */
.page-header {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.page-header .page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px;
}

.page-header .page-description {
    color: var(--light-text);
    font-size: 14px;
    margin: 0;
}

/* =========================
   상품 그리드 - Women77.shop 정확한 카드 스타일
========================= */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

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

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

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

/* 상품 카드 - women77.shop과 동일한 스타일 */
.woocommerce ul.products li.product {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product.product-hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* 상품 이미지 */
.woocommerce ul.products li.product img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.woocommerce ul.products li.product:hover img,
.woocommerce ul.products li.product.product-hover img {
    transform: scale(1.05);
}

/* 상품 정보 영역 */
.woocommerce ul.products li.product .product-info {
    padding: 20px 15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.4;
    height: auto;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 가격 */
.woocommerce ul.products li.product .price {
    margin: 10px 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.2;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}

/* 장바구니 버튼 - women77.shop 스타일 */
.woocommerce ul.products li.product .button {
    width: calc(100% - 20px);
    margin: 0 10px 15px;
    padding: 12px 20px;
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-1px);
}

/* 세일 배지 - 더 세련된 스타일 */
.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: var(--white);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 15px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* 빠른보기 버튼 (호버 시 나타남) */
.woocommerce ul.products li.product .quick-view {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.woocommerce ul.products li.product:hover .quick-view,
.woocommerce ul.products li.product.product-hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}

.woocommerce ul.products li.product .quick-view:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* 상품 카테고리 라벨 */
.woocommerce ul.products li.product .product-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 3px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover .product-category,
.woocommerce ul.products li.product.product-hover .product-category {
    opacity: 1;
    transform: translateY(0);
}

/* 상품 등급/별점 (있는 경우) */
.woocommerce ul.products li.product .star-rating {
    margin: 5px auto 10px;
    font-size: 12px;
}

/* 재고 상태 */
.woocommerce ul.products li.product .stock {
    font-size: 11px;
    color: var(--light-text);
    margin-top: 5px;
}

.woocommerce ul.products li.product .stock.in-stock {
    color: #27ae60;
}

.woocommerce ul.products li.product .stock.out-of-stock {
    color: #e74c3c;
}

/* =========================
   푸터 - 전문적인 디자인
========================= */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.site-footer h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.site-footer a:hover {
    color: var(--accent-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
    font-size: 12px;
}

/* =========================
   반응형 디자인
========================= */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-navigation .menu > li > a {
        padding: 15px 20px;
        font-size: 13px;
    }
    
    .site-search input[type="search"] {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header-main .col-full {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-navigation .menu {
        flex-direction: column;
    }
    
    .main-navigation .menu > li > a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        border-bottom-width: 1px;
    }
    
    .main-navigation .menu > li:hover > a,
    .main-navigation .menu > li.current-menu-item > a {
        border-bottom-width: 1px;
    }
    
    .site-search input[type="search"] {
        width: 250px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    .site-search input[type="search"] {
        width: 200px;
    }
    
    .page-header .page-title {
        font-size: 24px;
    }
}

/* =========================
   정리 및 마무리
========================= */
.clear::after {
    content: "";
    display: table;
    clear: both;
}

/* 불필요한 Storefront 스타일 오버라이드 */
.storefront-primary-navigation {
    margin: 0;
    padding: 0;
}

.site-header .col-full {
    padding: 0 20px;
}

/* 접근성 */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* 성능 최적화 */
img {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}