/* ============================================
   SHOP / CATEGORY / ARCHIVE PAGES STYLING
   Minimal, Attractive & Professional Design
   ============================================ */

/* Shop Main Container */
.shop-main {
    width: 100%;
    background: #ffffff;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* ============================================
   SHOP HEADER
   ============================================ */

.shop-header {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.shop-header__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.shop-header__title {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #000 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 !important;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.shop-header__title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 2px;
    background: #000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.shop-header__description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    line-height: 1.8;
    margin: 0 !important;
}

/* ============================================
   SHOP CONTROLS - Clean & Minimal
   ============================================ */

.sc {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sc__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Result Count */
.sc__count {
    flex-shrink: 0;
}

.sc__count .woocommerce-result-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background: none;
}

/* Sorting */
.sc__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc__sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.sc__sort .woocommerce-ordering {
    margin: 0;
}

.sc__sort .woocommerce-ordering select,
.woocommerce-ordering select {
    padding: 10px 36px 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 180px;
}

.sc__sort .woocommerce-ordering select:hover,
.woocommerce-ordering select:hover {
    border-color: #000;
}

.sc__sort .woocommerce-ordering select:focus,
.woocommerce-ordering select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Hide default WooCommerce ordering label */
.woocommerce-ordering::before {
    display: none !important;
}

/* ============================================
   PRODUCTS GRID - Clean & Minimal
   ============================================ */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 40px 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* ============================================
   PRODUCT CARD - FC-Inspired Minimal Design
   ============================================ */

.pc {
    position: relative;
    list-style: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.pc__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image Container - FC Style */
.pc__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 16px 16px 0 0;
}

.pc__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc__img--main {
    opacity: 1;
}

.pc__img--hover {
    opacity: 0;
    transform: scale(1.02);
}

.pc:hover .pc__img--main {
    opacity: 0;
    transform: scale(1.08);
}

.pc:hover .pc__img--hover {
    opacity: 1;
    transform: scale(1);
}

/* Overlay - Subtle Gradient */
.pc__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pc:hover .pc__overlay {
    opacity: 1;
}

/* Badges - Glass Morphism */
.pc__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 3;
}

.pc__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.pc__badge--sale {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

.pc__badge--new {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Quick View Button - Glass Style */
.pc__quick {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.pc__quick-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.pc__quick-text:hover {
    background: #000;
    color: #fff;
}

.pc:hover .pc__quick {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Content Body - Clean & Minimal */
.pc__body {
    padding: 18px 16px;
    background: #fff;
}

.pc__cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    position: relative;
}

.pc__title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.pc:hover .pc__title {
    color: #666;
}

/* Price - Bold & Clean */
.pc__price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #000;
}

.pc__price del {
    font-size: 14px;
    font-weight: 400;
    color: #bbb;
    text-decoration: line-through;
}

.pc__price ins {
    text-decoration: none;
    color: #000;
}

/* Add to Cart - Creative Floating Icon */
.pc__cart {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
}

.pc__cart-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(0, 0, 0, 0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    transform: scale(1);
}

.pc__cart-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc__cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.pc__cart-btn:hover::before {
    transform: scale(1);
}

.pc__cart-btn:hover .pc__cart-icon,
.pc__cart-btn:hover .pc__cart-plus {
    color: #fff;
}

.pc__cart-btn:active {
    transform: scale(0.95);
}

.pc__cart-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pc__cart-btn:disabled:hover {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pc__cart-btn:disabled:hover::before {
    transform: scale(0);
}

/* Cart Icon */
.pc__cart-icon {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pc__cart-icon svg {
    width: 100%;
    height: 100%;
}

/* Plus Badge */
.pc__cart-plus {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pc__cart-plus svg {
    width: 8px;
    height: 8px;
    color: #fff;
}

.pc__cart-btn:hover .pc__cart-plus {
    background: #fff;
    transform: rotate(90deg);
}

.pc__cart-btn:hover .pc__cart-plus svg {
    color: #1a1a1a;
}

/* Check Icon (Added State) */
.pc__cart-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
    color: #fff;
}

.pc__cart-check svg {
    width: 22px;
    height: 22px;
}

/* Added State */
.pc__cart-btn.added {
    background: #22c55e;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.pc__cart-btn.added::before {
    transform: scale(0);
}

.pc__cart-btn.added .pc__cart-icon,
.pc__cart-btn.added .pc__cart-plus {
    opacity: 0;
    transform: scale(0.5);
}

.pc__cart-btn.added .pc__cart-check {
    opacity: 1;
    transform: scale(1);
}

.pc__cart-btn.added:hover {
    background: #16a34a;
    transform: scale(1.1);
}

/* Loading State */
.pc__cart-btn.loading {
    pointer-events: none;
}

.pc__cart-btn.loading .pc__cart-icon {
    animation: cartSpin 0.8s linear infinite;
}

.pc__cart-btn.loading .pc__cart-plus {
    opacity: 0;
}

@keyframes cartSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Variable Product (Options Button) - REMOVED */

/* Hover Reveal Animation */
.pc .pc__cart {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc:hover .pc__cart {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Pulse Ring on Hover */
.pc__cart-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.pc__cart-btn:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Hide old WooCommerce add to cart button */
.pc__cart .add_to_cart_button,
.pc__cart .button,
.pc__cart .added_to_cart {
    display: none !important;
}

/* ============================================
   PAGINATION
   ============================================ */

.shop-pagination {
    padding: 60px 0;
    text-align: center;
}

.woocommerce-pagination {
    display: flex !important;
    justify-content: center;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-pagination li {
    display: inline-block !important;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    padding: 10px 16px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.woocommerce-pagination a:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    transform: translateY(-2px) !important;
}

.woocommerce-pagination span.page-numbers {
    background: #f5f5f5 !important;
}

.woocommerce-pagination span.page-numbers.current {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }

    .shop-header__title {
        font-size: 40px;
    }
    
    .pc {
        border-radius: 14px;
    }
    
    .pc__media {
        border-radius: 14px 14px 0 0;
    }
    
    .pc__body {
        padding: 16px 14px;
    }
    
    .pc__title {
        font-size: 14px;
    }
    
    .pc__cart {
        bottom: 14px;
        right: 14px;
    }
    
    .pc__cart-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 991px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    
    .shop-header__title {
        font-size: 32px !important;
        letter-spacing: 1px !important;
        text-align: center !important;
    }
    
    .pc {
        border-radius: 12px;
    }
    
    .pc__media {
        border-radius: 12px 12px 0 0;
    }
    
    .pc__badges {
        top: 10px;
        left: 10px;
        gap: 6px;
    }
    
    .pc__badge {
        padding: 5px 10px;
        font-size: 9px;
    }
    
    .pc__body {
        padding: 14px 12px;
    }
    
    .pc__cart {
        bottom: 12px;
        right: 12px;
    }
    
    .pc__cart-btn {
        width: 42px;
        height: 42px;
    }
    
    .pc__cart-icon {
        width: 18px;
        height: 18px;
    }
    
    .pc__cart-plus {
        width: 12px;
        height: 12px;
        top: 4px;
        right: 4px;
    }
    
    .pc__cart-plus svg {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 768px) {
    /* 2-Column Grid on Mobile */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 24px 0 !important;
    }

    .shop-header {
        padding: 50px 0 35px;
    }

    .shop-header__title {
        font-size: 24px !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Shop Controls Responsive */
    .sc {
        padding: 18px 0;
    }
    
    .sc__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    
    .sc__count {
        order: 2;
        text-align: center;
    }
    
    .sc__count .woocommerce-result-count {
        font-size: 12px;
    }
    
    .sc__sort {
        order: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .sc__sort-label {
        font-size: 12px;
    }
    
    .sc__sort .woocommerce-ordering select,
    .woocommerce-ordering select {
        width: 100%;
        min-width: auto;
        padding: 12px 36px 12px 14px;
    }
    
    /* Product Card Mobile - FC Style */
    .pc {
        border-radius: 12px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .pc:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }
    
    .pc__media {
        border-radius: 12px 12px 0 0;
        aspect-ratio: 1 / 1.15;
    }
    
    .pc__badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }
    
    .pc__badge {
        padding: 4px 8px;
        font-size: 8px;
        border-radius: 12px;
    }
    
    .pc__quick {
        display: none;
    }
    
    .pc__overlay {
        display: none;
    }
    
    .pc__body {
        padding: 12px 10px;
    }
    
    .pc__cat {
        font-size: 8px;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    
    .pc__title {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }
    
    .pc__price {
        font-size: 14px;
        gap: 6px;
    }
    
    .pc__price del {
        font-size: 11px;
    }
    
    /* Mobile Floating Cart Button - Always Visible */
    .pc .pc__cart {
        opacity: 1;
        transform: translateY(0) scale(1);
        bottom: 10px;
        right: 10px;
    }
    
    .pc__cart-btn {
        width: 38px;
        height: 38px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
    
    .pc__cart-icon {
        width: 16px;
        height: 16px;
    }
    
    .pc__cart-plus {
        width: 11px;
        height: 11px;
        top: 3px;
        right: 3px;
    }
    
    .pc__cart-plus svg {
        width: 6px;
        height: 6px;
    }
    
    .pc__cart-check svg {
        width: 18px;
        height: 18px;
    }
    
    .pc__cart-btn::after {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Compact 2-Column Grid */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 16px 0 !important;
    }
    
    .shop-container {
        padding: 0 10px;
    }

    .shop-header {
        padding: 35px 0 25px;
    }

    .shop-header__title {
        font-size: 18px !important;
        letter-spacing: 0.3px !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        line-height: 1.3 !important;
    }
    
    /* Ultra Compact Product Cards */
    .pc {
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
    
    .pc:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
    
    .pc__media {
        border-radius: 10px 10px 0 0;
        aspect-ratio: 1 / 1.1;
    }
    
    .pc__badges {
        top: 6px;
        left: 6px;
        gap: 3px;
    }
    
    .pc__badge {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 10px;
    }
    
    .pc__body {
        padding: 10px 8px;
    }
    
    .pc__cat {
        font-size: 7px;
        margin-bottom: 3px;
        letter-spacing: 0.8px;
    }
    
    .pc__title {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.35;
    }
    
    .pc__price {
        font-size: 13px;
        gap: 4px;
    }
    
    .pc__price del {
        font-size: 10px;
    }
    
    /* Small Mobile Floating Cart Button */
    .pc .pc__cart {
        bottom: 8px;
        right: 8px;
    }
    
    .pc__cart-btn {
        width: 34px;
        height: 34px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }
    
    .pc__cart-icon {
        width: 14px;
        height: 14px;
    }
    
    .pc__cart-plus {
        width: 10px;
        height: 10px;
        top: 2px;
        right: 2px;
    }
    
    .pc__cart-plus svg {
        width: 5px;
        height: 5px;
    }
    
    .pc__cart-check svg {
        width: 16px;
        height: 16px;
    }

    .shop-pagination {
        padding: 30px 0;
    }

    .woocommerce-pagination a,
    .woocommerce-pagination span {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}
